Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
alien73
Involved
Involved



Joined: Sep 15, 2008
Posts: 352

PostPosted: Wed Oct 14, 2009 4:45 pm Reply with quote

This is not a bug or a high issue just a good practice when using images.

Some folks like me use SSL [ Only registered users can see links on this board! Get registered or login! ] and without the forward slash with images https will throw an error saying there's unsecure data on the page. Not good when running a online business, collecting credit card data etc...

For someone who doesn't know about this will just leave the page thinking the page is not secure. Oh yes... it happens.....

Code:


images/test.jpg


should be

Code:
/images/test.jpg
 
View user's profile Send private message Visit poster's website
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Wed Oct 14, 2009 7:27 pm Reply with quote

Problem is that some folks put RN into sub-directories and so the root isn't really what you would expect. I hear you though. I just don't think we can do exactly as you have suggested is all... but the alternative could get ugly.

BTW, we have never claimed to support the HTTPS protocol, but we had probably put it on our roadmap, especially now that there is looking to be a eCommerce solution around the corner which supports RN!

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
alien73







PostPosted: Wed Oct 14, 2009 7:47 pm Reply with quote

Sub-directories wouldn't matter it would still be the same just another folder in the path, but I do see what your saying. If they put it in a subfolder they would have to change all the images or code in another method.

before
subdir/images/testimage.jpg

after
/subdir/images/testimage.jpg



It's really the standard thing to do but if your not using [ Only registered users can see links on this board! Get registered or login! ] you wouldn't notice. I do realize Raven Nuke(tm) is not yet SSL friendly.
 
montego







PostPosted: Wed Oct 14, 2009 8:04 pm Reply with quote

Then we have to know what subdirectory they have placed RN in as we don't know that when we're coding an image href... Wink
 
bdmdesign
Worker
Worker



Joined: May 11, 2009
Posts: 154
Location: Winsen/Luhe; Germany

PostPosted: Wed Oct 14, 2009 8:05 pm Reply with quote

alien73 wrote:
Sub-directories wouldn't matter it would still be the same just another folder in the path, but I do see what your saying. If they put it in a subfolder they would have to change all the images or code in another method.

before
subdir/images/testimage.jpg

after
/subdir/images/testimage.jpg



It's really the standard thing to do but if your not using [ Only registered users can see links on this board! Get registered or login! ] you wouldn't notice. I do realize Raven Nuke(tm) is not yet SSL friendly.


Thats works ,too:

../subdir/images/testimage.jpg


Best Regards

Peter

_________________
CMS-Version: pragmaMx 1.12.3.1.33.4.14 :: PHP-Version: 5.3.14 :: MySQL-Version: 5.5.23-log :: Server-Version: Apache/2.2.21 (Linux/SUSE)
Projekt: osc4pragmaMx- 2.3.2 in development 
View user's profile Send private message Visit poster's website
alien73







PostPosted: Wed Oct 14, 2009 9:29 pm Reply with quote

Php has functions that will make it work without reading minds Smile
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Oct 14, 2009 11:34 pm Reply with quote

Alien73 wrote:
Some folks like me use SSL [ Only registered users can see links on this board! Get registered or login! ] and without the forward slash with images https will throw an error saying there's unsecure data on the page. Not good when running a online business, collecting credit card data etc...


Slash or no slash, that is not the issue. All the rules of paths for [ Only registered users can see links on this board! Get registered or login! ] and [ Only registered users can see links on this board! Get registered or login! ] are the same. Somewhere in your code is an [ Only registered users can see links on this board! Get registered or login! ] link reference when it should be [ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message
bdmdesign







PostPosted: Thu Oct 15, 2009 4:53 am Reply with quote

See this: [ Only registered users can see links on this board! Get registered or login! ] its in the same folder as the http site. Thats shared ssl but it works with normal ssl, too i think.

Best Regards


Peter
 
alien73







PostPosted: Thu Oct 15, 2009 6:59 am Reply with quote

I'm speaking of image paths missing the forward slash. LOL...

The image paths "CODED IN A PAGE" are not written out as full urls but could be. In this case there wouldn't be a problem.


Code:
<img src="https://www.test.com/images/testimage.jpg">


but like this

Code:
<img src="images/testimage.jpg">


When a [ Only registered users can see links on this board! Get registered or login! ] page loads and the image doesn't have the forward slash and it throws and error in some browsers telling the user there's unsecure data on the page. "Yes: You can turn this off in the browser"

Or when you have a image link starting with [ Only registered users can see links on this board! Get registered or login! ] on Paypal or any [ Only registered users can see links on this board! Get registered or login! ] page it will show an error. I used IE for the example..

Image
 
Raven







PostPosted: Thu Oct 15, 2009 9:06 am Reply with quote

Brian, the fact that your site works (or not) like that is a coincidence. The paths can be relative and/or absolute. It is not the job of the CMS or any application to redefine the links. As I said above I believe you are missing and [ Only registered users can see links on this board! Get registered or login! ] somewhere, ie, you have an image that your script needs [ Only registered users can see links on this board! Get registered or login! ] but it still has [ Only registered users can see links on this board! Get registered or login! ] .
 
alien73







PostPosted: Thu Oct 15, 2009 9:55 am Reply with quote

As you know Alien Cart(tm) will use SSL so I'm trying to sort this out since it will work with Raven Nuke(tm). No pun intended..

Very Happy
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©