The Arcive of vBulletin Modifications Site. |
|
Display vBGallery Link In Postbit If User Has One Details »»
|
||||||||||||||||||||||||||||||
|
Display vBGallery Link In Postbit If User Has One
Developer Last Online: Nov 2023
Here is a simple mod to display a link in postbit to post user gallery only if he has one.
in showthread.php make the following changes highlighted in red once. I had to change the select statement to select distinct because for some reasons, it was displaying the post in triplicate (thanks to Dark Visor). Quote:
a few lines down in the same query Quote:
then place that conditional in postbit/posbit legacy template where you want to display it, replacing the red with your own. Quote:
For those who don't have a specific member category use this link browseimages.php?do=member&imageuser=$post[catuserid] Show Your Support
|
||||||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
how would i make it display a link only if a member has an image in the members gallery since i don't allow sub-cats in my members gallery?
|
|
#3
|
|||
|
|||
|
browseimages.php?c=XX&userid=$post[catuserid]
XX is your main membercategory. That will pull all images under if you have, if not then... |
|
#4
|
|||
|
|||
|
but it only shows a link if the user has created a category in the members category. i'm wondering how i can make it so that it shows a link if they have uploaded an image to the members category without creating a category.
|
|
#5
|
|||
|
|||
|
The way I understand it, the first time a member uploads, regardless if he created a category or not, a folder with his userid is automatically created on the server. This is that folderid that is being pulled.
Why don't you just try. Can't hurt. |
|
#6
|
||||
|
||||
|
this hack walk with which gallery ?
|
|
#7
|
|||
|
|||
|
<a href="http://www.vbadvanced.com/products.php?do=productinfo&p=5" target="_blank">celle la</a>
|
|
#8
|
|||
|
|||
|
I'll try that. Thank you!
|
|
#9
|
|||
|
|||
|
Quote:
|
|
#10
|
|||
|
|||
|
the link only showed if a member had created another category.
|
![]() |
|
|