The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User Album Conditionals?
I would like to display something in postbit but only if the user has a user album. Is there a conditional for this?
Thanks! |
#2
|
||||
|
||||
You would basically have to write a query on the table 'album' to see if they have an albumid for that userid. So, you would have to JOIN with that table ON userid to get, say MAX(albumid) and if that exists then display whatever. If it is NULL, then you wouldn't display anything.
|
#3
|
|||
|
|||
Okay, thanks. If I were to do this in the postbit do you think it would cause a noticeable load on the server?
|
#4
|
||||
|
||||
If you do it by using a plugin to the post query, then I doubt you would notice a thing. If you do it by running a separate query per post, then you could notice something, but it's doubtful since it's such a small query, but that depends on your server really.
|
#5
|
|||
|
|||
Lynn, you are the best!! Thanks very much, I'm going to toy with this for a bit
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|