Forums / Templates, Stylesheets, Page Layout / Odd double slashes in path to Sidebox Title Image

Odd double slashes in path to Sidebox Title Image

Views: 915

Results 1 to 9 of 9
3 Jan 2012, 12:40 AM
#1
hell_guapo avatar

hell_guapo

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Odd double slashes in path to Sidebox Title Image

1.3.9h

losteras.com

I went to view the path of a header image and found this strangeness:

I have no idea where the extra / [slash] is coming from. I checked the server and the folder is named correctly. It doesn't seem to effect the website adversely.

Anybody know where this anomaly came from or how to fix it? :huh:

3 Jan 2012, 12:50 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Odd double slashes in path to Sidebox Title Image

Do I remember correctly that you used the second method in the tutorial for sidebox heading image replacement? What did you define the image as? Is there a leading / in the define?

3 Jan 2012, 12:58 AM
#3
hell_guapo avatar

hell_guapo

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Odd double slashes in path to Sidebox Title Image

gjh42:

Do I remember correctly that you used the second method in the tutorial for sidebox heading image replacement? What did you define the image as? Is there a leading / in the define?

Yes I used the second method. Let me look.

3 Jan 2012, 1:00 AM
#4
hell_guapo avatar

hell_guapo

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Odd double slashes in path to Sidebox Title Image

Here is what the Categories statement is:

// categories box text in sideboxes/categories.php
define('BOX_HEADING_CATEGORIES', zen_image(DIR_WS_TEMPLATE . '/buttons/' . $_SESSION['language'] . '/' . 'sidebox_header_categories.jpg', 'Select Costumes & Accessories Below'));

3 Jan 2012, 1:01 AM
#5
hell_guapo avatar

hell_guapo

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Odd double slashes in path to Sidebox Title Image

I cut & pasted from the tutorial page.

3 Jan 2012, 4:47 PM
#6
hell_guapo avatar

hell_guapo

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Odd double slashes in path to Sidebox Title Image

Can someone point out what is causing the extra Slash? I dont want to remove something that will mess the code up. I dont know PHP :wacko:

3 Jan 2012, 5:27 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Odd double slashes in path to Sidebox Title Image

Oops! Looks like you uncovered a typo in the tutorial. Such a define should look like

define('BOX_HEADING_CATEGORIES', zen_image(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/' . 'sidebox_header_categories.jpg', 'Select Costumes & Accessories Below')); 

'buttons/' without a leading slash.

The mods I have written use the zen_image function correctly, but somehow I messed up when rewriting this part of the tutorial. I'll get it fixed as soon as possible.

3 Jan 2012, 5:39 PM
#8
hell_guapo avatar

hell_guapo

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Odd double slashes in path to Sidebox Title Image

Thank you :clap: