View Full Version : Show camera icon if member has photos

October 3rd, 2005, 01:37 AM
I'm using this mod but was wondering if anyone has working updated code for the vb3.php file as its changed.. I can get it to add to the VB_user DB but no matter what I do it also adds if the user makes a comment even after deleting the code.

"$resulta = ppmysql_query("UPDATE {$Globals['dprefix']}user SET posts=posts$do_inc WHERE userid=$usernum",$db_link);"

If anyone knows please PM me or post here.:confused:

Chuck S
October 3rd, 2005, 10:38 AM
what exactly are you trying to do?

What camera icon?

We increment a user's post total in VB in 2 places in image-inc.php and comments.php if you elect to allow that.

If you dont want to do this for comments you would delete this in comments.php

// We only increment post counts if we are tracking them and we view ratings only
if ( $Globals['cpostcount'] == "yes" ) {
if ( ($Globals['dispempty'] == "no" && $message != "") || $Globals['dispempty'] == "yes" ) {

October 3rd, 2005, 05:00 PM
What I'm looking for is a mod that will show an icon in the uses postbit in VB if the member has uploaded a photo.. There was a working mod on photopostdev.com but it doesn't work with the latest files, I just wanted to know if theres updated code?

October 3rd, 2005, 05:26 PM
Where would I find the querys that updates the photo count per user?

Chuck S
October 3rd, 2005, 09:17 PM
You might want to post in that thread on photopostdev about that hack

October 18th, 2005, 10:47 AM
Photopost dev is gone....

Chuck S
October 18th, 2005, 10:57 AM
It was not when I posted that ;)

November 3rd, 2005, 09:11 PM
:) I just write one