Gamingforce Interactive Forums
85239 35211

Go Back   Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk
Register FAQ GFWiki Community Donate Arcade ChocoJournal Calendar

Notices

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).


vBulletin thread prefix help
Reply
 
Thread Tools
Krelian
everything is moving


Member 6422

Level 41.55

May 2006


Reply With Quote
Old Jan 20, 2010, 11:34 PM Local time: Jan 21, 2010, 04:34 AM #1 of 8
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.
Bigblah
Tails is incompetent!


Member 5

Level 45.31

Feb 2006


Reply With Quote
Old Jan 21, 2010, 05:58 AM Local time: Jan 21, 2010, 06:58 PM #2 of 8
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.
Krelian
everything is moving


Member 6422

Level 41.55

May 2006


Reply With Quote
Old Jan 21, 2010, 11:12 PM Local time: Jan 22, 2010, 04:12 AM #3 of 8
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">&nbsp;</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>
Would changing $threadprefixes to <img src="imagedirectory/$threadprefixes.gif" alt="$threadprefixes" /> do the trick, or am I barking up the wrong tree? Also, do I need to change any templates other than forumdisplay (as it's the only one the images will actually displayed in), or will I have to go through all the other changed templates in a similar fashion?

This thing is sticky, and I don't like it. I don't appreciate it.
Bigblah
Tails is incompetent!


Member 5

Level 45.31

Feb 2006


Reply With Quote
Old Jan 22, 2010, 12:13 AM Local time: Jan 22, 2010, 01:13 PM #4 of 8
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?
Krelian
everything is moving


Member 6422

Level 41.55

May 2006


Reply With Quote
Old Jan 22, 2010, 11:18 AM Local time: Jan 22, 2010, 04:18 PM #5 of 8
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.
Krelian
everything is moving


Member 6422

Level 41.55

May 2006


Reply With Quote
Old Jan 23, 2010, 11:30 PM Local time: Jan 24, 2010, 04:30 AM #6 of 8
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?
Bigblah
Tails is incompetent!


Member 5

Level 45.31

Feb 2006


Reply With Quote
Old Jan 24, 2010, 03:17 AM Local time: Jan 24, 2010, 04:17 PM 1 #7 of 8
Looks like you're using a different plugin, I guess.

Also host the images yourself

FELIPE NO
Krelian
everything is moving


Member 6422

Level 41.55

May 2006


Reply With Quote
Old Jan 24, 2010, 08:10 AM Local time: Jan 24, 2010, 01:10 PM #8 of 8
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?
Reply


Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk > vBulletin thread prefix help

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pre-E3 Wii thread FatsDomino Video Gaming 130 May 9, 2006 10:13 AM


All times are GMT -5. The time now is 11:02 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.