PDA

View Full Version : Expert Help - Template or Javascript Problem...or browser?


legionofangels
08-03-2008, 06:52 PM
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/v318/scorpion_666/step1.gif

http://img.photobucket.com/albums/v318/scorpion_666/step2.gif

http://img.photobucket.com/albums/v318/scorpion_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
$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.