vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Expert Help - Template or Javascript Problem...or browser? (https://vborg.vbsupport.ru/showthread.php?t=187140)

legionofangels 08-03-2008 06:52 PM

Expert Help - Template or Javascript Problem...or browser?
 
My guess is javascript file.

I don't have a coder online to ask so I'm asking here.

I have changed my star gif images to star png images on my board. In all locations. Editing Threadbit template and Showthread template, as well as editing the XML file for my Photogallery and the PHP file for Dream's Radio/TV add on.

The stars appear everywhere but I just noticed that when I vote inline in a thread, it is showing the gif stars after the vote is processed. This reminds me of changing colors on the Color bar, like we did with our paintbucket, since it's instantaneous it makes me think Javascript file.

View these please:

http://img.photobucket.com/albums/v3..._666/step1.gif

http://img.photobucket.com/albums/v3..._666/step2.gif

http://img.photobucket.com/albums/v3..._666/step3.gif

Step 3 is after refreshing the page.

-----------------------------------------------------------------------------

Now of course if I'm right that means I'd have to find out which JS file it is, I'd take a stab at something like showthread or rating.js; but if anyone knows feel free to relinquish that info as I'd hate to spend hours looking.

Another solution would be just delete the gif files off our server for the stars, but I'd like them to remain in case someone changes my design work down the road if I don't run the site forever. etc.

Then again, I guess I could have missed something in a template, or could it be my browser? I just can't believe it, but we'll see.

Please help!

Thank you,

Legion of Angels

MoT3rror 08-03-2008 08:39 PM

PHP Code:

$xml->add_tag('voteavg'process_replacement_vars("$vbphrase[rating]: <img class=\"inlineimg\" src=\"$stylevar[imgdir_rating]/rating_$thread[rating].gif\" alt=\"" construct_phrase($vbphrase['thread_rating_x_votes_y_average'], $thread['votenum'], $thread['voteavg']) . "\" border=\"0\" />")); 

That line in threadrate.php. It is about line 209. It will take a file edit to change it through, there is no plugin there.

legionofangels 08-04-2008 04:01 AM

Thank you so much.

This is the second time you've helped me with really hard things. Or hard to me at least.

You my friend are a Pro!

Superb,

I can edit the PHP file to make it work then just by changing the file extension and that should do the trick.

Legion of Angels

legionofangels 08-06-2008 09:45 PM

This worked by the way. Thank you very much.


All times are GMT. The time now is 11:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01090 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete