![]() |
Display vBGallery Link In Postbit If User Has One
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] |
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?
|
browseimages.php?c=XX&userid=$post[catuserid]
XX is your main membercategory. That will pull all images under if you have, if not then... |
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.
|
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. |
this hack walk with which gallery ?
|
<a href="http://www.vbadvanced.com/products.php?do=productinfo&p=5" target="_blank">celle la</a>
|
I'll try that. Thank you!
|
Quote:
|
the link only showed if a member had created another category.
|
All times are GMT. The time now is 08:26 PM. |
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:
|