The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]()
Hi Dismounted
thanks for the rpely i'm not really sure what you're saying but, the plugin works just fine. it's just that i want to display only avatars from paid subscribers(through their usergroup) but the contionals just doesn't work, i've also added into the plugin, but to no avail. maybe i'm doing it wrongly? |
#12
|
||||
|
||||
![]()
I could be that the usergroupid is not available at the place you are trying to use it. Or, it has a different name. I didn't go look through the code to find out. Go look and see where $thread is defined and see if the usergroupid was grabbed at the same time in the query. If not, you may have to write a query to grab it based on $thread['userid']
|
#13
|
||||
|
||||
![]()
Got it.
Would you know of any other plugin or mods residing in the forumdisplay or threadbit which requires the need to grab usergroups? It would help me learn the codes from there As for writing queries, can you point me in the right direction to do so? i'd really love to get the plugin working for my purpose any help is much appreciated! Thanks! Tom |
#14
|
||||
|
||||
![]()
This is on the forumdisplay.php page, right? You are wanting to put the thread starters avatar next to the thread on the page? But, you only want to display the avatar if the thread starter is a paid subscriber - it has nothing to do with the user *viewing* the page, right?
The query that grabs the thread info is around line 878 of forumdisplay. There is a hook right above it for you to grab the user.usergroupid. You will have to add a join as well as the field. The hook location is 'forumdisplay_query'. |
#15
|
||||
|
||||
![]()
hi lynne
thanks for the advice! |
#16
|
|||
|
|||
![]()
I like to know the same thing, any solution?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|