![]() |
awesome hack. :up:
this works much better than the vendor rating forum i had created. <clicks install> |
Good hack, my users love it!
Would it be possible to limit the edit function to admins only? Thanks! cheers, adp |
Thanks
I'll test it. |
First of all, thanks TONS!!! This is a great hack. Paypal coming your way shortly.
Secondly, is there any way to just display the trader rating in the user profile for only a specific forum? I don't want it enabled for all forums, they just need to see it enabled in our buy/sell/swap forum. Thanks again, fantastic job. |
Sure, just wrap an <if></if> conditional around the line in the postbit where the condition is the forumid == whatever (not sure of the variable off the top of my head). If you need more exact code let me know and I can post it for ya.
Quote:
|
Okay, I just posted an Upgrades_Archive.zip file which contains the all the old upgrade files (which some people requested), and the vb2 conversion file.
1.0.0 or 1.0.1 -> 1.1.0 1.1.0 -> 1.2.0 vB2 Version -> 1.2.0 |
Quote:
|
Okay, I checked and made sure it was $thread[forumid].... Also if you want it to display in more than one forum section, just use the in_array function....
Here's an example: Code:
<if condition="$thread['forumid'] == 200">(Your Postbit Code)</if> |
I do a similar thing with conditionals to help promote the trader ratings but instead of just showing a user's score I also show a message at the top of each post indicating how "safe" the user is. This is accomplished with code in two places:
1) In the phpinclude_start template I have the code $classified_forumids = array(308,214,215,216,226,284,220,217,218,219,227, 223); which is an array of all our trader forums (it's easier to use an array then a if/and 10 conditional as you will see later on). 2) In the postbit/ potbig legacy template I have the following code right before <div>$post[message]</div> Code:
<if condition="in_array($forum[forumid], $GLOBALS[classified_forumids])"> |
Great MOD! :)
I only missing the popup window after a new rating!? |
All times are GMT. The time now is 01:38 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|