Page Index Toggle Pages: 1 ReplyAdd Poll Send Topic
Normal Topic Bad variable call in template (Read 1350 times)
 
Paste Member Name in Quick Reply Box Monni
Language
***
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Mood: Frustrated
Zodiac sign: Pisces
Bad variable call in template
Sep 3rd, 2014 at 3:38am
Mark & QuoteQuote  
Not sure this is the best way to fix it, but to highlight what definitely doesn't work Wink

Code
Select All
 Index: cgi-bin/yabb2/Templates/default/Post.template
 ===================================================================
 --- cgi-bin/yabb2/Templates/default/Post.template	(revision 1560)
 +++ cgi-bin/yabb2/Templates/default/Post.template	(working copy)
 @@ -173,7 +173,7 @@
              {yabb smilieslist}
              </select></td>
              </tr><tr>
 -            <td class="center h_70px"><img name="smiliextra_image" src="'+smilieurl[0]+'" alt="" onclick="javascript: Smiliextra();" class="cursor"></td>
 +            <td class="center h_70px"><img name="smiliextra_image" src="$defaultimagesdir/$SmilieURL[0]" alt="" onclick="javascript: Smiliextra();" class="cursor"></td>
              </tr><tr>
              <td class="center h_15px"><span class="small"><a href="javascript: smiliewin();">$post_smiltxt{'17'}</a></span></td>
              </tr></table>
  

  
Back to top
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Bad variable call in template
Reply #1 - Sep 3rd, 2014 at 4:48am
Mark & QuoteQuote  
That should work.  Embarrassed
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Monni
Language
***
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Mood: Frustrated
Zodiac sign: Pisces
Re: Bad variable call in template
Reply #2 - Sep 3rd, 2014 at 9:27am
Mark & QuoteQuote  
Dandello wrote on Sep 3rd, 2014 at 4:48am:
That should work.  Embarrassed


I don't trust in anything I write in the middle of the night, because next morning I have no idea whatsoever what it was supposed to do Wink

I just check if you did any changes before committing and comment if I see something that doesn't look right Wink
  
Back to top
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Bad variable call in template
Reply #3 - Sep 3rd, 2014 at 2:46pm
Mark & QuoteQuote  
Moved the src call to just after img and made it $imagesdir instead of $defaultimagesdir. YaBB has a function that checks on image paths and $imagesdir helps trigger it - it should work on Smilies, too.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Bad variable call in template

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry