Log in

View Full Version : I'm just so close to getting this, HELP!


b6gm6n
02-27-2004, 02:38 PM
Hi..

I've written a hack for photopost, shows the latest comments, but it's not very secure (i.e all usergroups can view pix etc)

anyways, i hope to develop that later, but along the same lines, a hack has been released for photopost that shows the latest pix in the vb-index...it's very good i like it and have used it, but it doesn't check for a members usergroup permissions.

I've been modifying it to try and check a users vb usergroup id and then doing an IF/ELSE statement to either show the thumb/link or just show a blank thumb.

Am i right in thinkin i should use "$bbuserinfo['something']"

Please check my alterations to this script in the attachment, i've commented up what i've done...you'll see i'm quite close to nailing this, just need a little extra help

Then i think i can move onto my latest comments hack and check usergroup perms with no worries etc....

Thankyou so much for helping me on this, i've been pulling my hair out

I'm not sure if i should use a query or just check a users [sessionid] or something like that, i should say that my vb & photopost databases are combined into one.

Thanx for your help people

Giveit2u43
02-27-2004, 03:00 PM
couldn`t you just use something like

<if condition="$show['member']">
$thumbnail
<else />
<img src="guest.gif">
</if>

Dean C
02-27-2004, 05:36 PM
I've removed your attachment as it looks like its copyrighted photopost source code or source code modifications for paying customers. If it's not my apologies and feel free to attach it again :)

AN-net
02-27-2004, 05:48 PM
well how many usergroups are you checking for?
do you want just unregistered users/not logged in users not to see it?

b6gm6n
02-27-2004, 08:26 PM
well how many usergroups are you checking for?
do you want just unregistered users/not logged in users not to see it?

well yes, but i also don't want 'registered' also and 'banned' the rest of the usergorups are fine...i just need to know how to check this....

-b

EDIT : no worries Dean, i am a paying licenced member of photopost and i have told micheal of my intensions