The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
Mostly what I'm looking for is something we can run as a scheduled task. Querying the DB like that for every thread view is time consuming. We had a script, but can't seem to locate it.
We have a field in our FORUM DB called "photos". I want to UPDATE user Set photos = count (photos from gallery DB) but I'm not sure how to do that where I query the Gallery DB and insert the results into the FORUM DB. Does that make more sense? EDIT - 9/16/07 (automatically edited by vB.org) Ok... I figured it out... Here it is. PHP Code:
To add this to user profile info, or on the postbit legacy - insert this Code:
<if condition="$post['photos']"><div>Photos: (<a href="/gallery/showgallery.php?cat=500&ppuser=$post[userid]">$post[photos]</a>) <a href="/gallery/showgallery.php?cat=500&ppuser=$post[userid]">View Gallery</a></div></if> |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|