|
|
Welcome to the Exploding Garrmondo Weiner Interactive Swiss Army Penis. |
GFF is a community of gaming and music enthusiasts. We have a team of dedicated moderators, constant member-organized activities, and plenty of custom features, including our unique journal system. If this is your first visit, be sure to check out the FAQ or our GFWiki. You will have to register before you can post. Membership is completely free (and gets rid of the pesky advertisement unit underneath this message).
|
|
Thread Tools |
vBulletin thread prefix help
I've just installed a thread prefix product on my forums—the same one GFF uses, seemingly—and everything's fine and dandy. However, I can't figure out how the hell to use images for thread prefixes instead of plain text (just like GFF's system). No explanation of how to achieve this exists in the documentation, nor does the UI hint at it being possible.
I'd be extremely grateful if someone could reveal how exactly to do this. Cheers in advance. Jam it back in, in the dark. |
Do you recall having to update an assload of templates (to insert the prefix text)? Yeah, you gotta edit them again to change it into images.
For example, instead of inserting <b>$prefix</b> or something, change it into <img src="upload/your/crap/here/$prefix.gif" alt="$prefix" />. (Change it only for the thread and post displays, not on the administration side). And, of course, name your images after the prefixes and upload them. There's nowhere I can't reach. |
Awesome - cheers for the help, Blah.
I've looked through all the templates I had to alter, and can't figure out which segments of code to replace. I'm having a hard time locating the relevant string — however, I found this bit of code I added to the forumdisplay template: Code:
<if condition="$show['threadprefix']"> <td colspan="2" class="smallfont"> </td> </tr> <tr> <td class="smallfont">$vbphrase[threadprefix]:</td> <td>$threadprefixes</td> </if> <td class="smallfont" align="$stylevar[right]" style="padding-top:$stylevar[cellpadding]px"> <input type="submit" class="button" value="$vbphrase[show_threads]" /> </td> </tr> This thing is sticky, and I don't like it. I don't appreciate it. |
Yeah, that looks like it. You only need to change it for forumdisplay (and maybe showthread if you want).
I am a dolphin, do you want me on your body? |
Hm. I've tried a bunch of changes (including the one above) and nothing's working. Would it be too much to ask to take a peek at how it's done in GFF's forumdisplay?
I was speaking idiomatically. |
Never mind; I figured it out — it was as simple as changing the forum HTML markup to <img src="http://www.gamingforce.org/forums/images/prefixes/${1}.gif" alt="{1}" /> (where {1} is rendered as the name of the prefix). Didn't need to edit any templates or anything. Goddamn I'm stupid.
What kind of toxic man-thing is happening now? |
Looks like you're using a different plugin, I guess.
Also host the images yourself FELIPE NO |
What the fuck, it rendered "/images/prefixes" with the rest of the GFF URL simply because it was wrapped in HTML (despite being unparsed). I AM BEING MADE TO LOOK SILLY
What, you don't want my bikini-clad body? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pre-E3 Wii thread | FatsDomino | Video Gaming | 130 | May 9, 2006 10:13 AM |