PDA

View Full Version : Verified Users - Modification needed


Duncan
05-26-2007, 07:35 PM
Hello,

I run a large community and we require email verification confirmation before members can post. But, i'm going to start letting unverified users begin posting in a group labled "Unverified" (Which is "USERS AWAITING CONFIRM EMAIL" renamed).

What I want to do is put a small star beside the username in POSBIT (NOT TIED TO THE USERNAME ITSSELF)

This is only going to be for the registered user group.


The star is going to be an image
please help post a modifciation for this request

cheers,
andy

Luky
05-27-2007, 10:57 AM
Its easy, just do an <if> and <else> command in PHP, i dont know how it works, but if you take a look around in your vb installation you can do it, or would you like me to help you?

EnIgMa1234
05-27-2007, 12:16 PM
edit the usergroup and in html markup put in
<img src="IMAGE URL HERE" /> in the first box

In the second put in </img>

Luky
05-27-2007, 12:56 PM
Oh god, i didnt even think about that :| But yes, thats the easy way of doing it :)

Duncan
05-27-2007, 03:59 PM
edit the usergroup and in html markup put in
<img src="IMAGE URL HERE" /> in the first box

In the second put in </img>

But that will display image in who's online & stuff won't it?

Can someone give me the code to put it in the styles//postbit?

Luky
05-27-2007, 04:29 PM
Research into what i said then.

Duncan
05-28-2007, 10:12 PM
If someone could give me the statement and tell me where to put it in postbit & postbit legacy I will pay $5 paypal.

please post "working on job" and send a PM with details so others dont already do it if your working on it.

need asap.

Luky
05-29-2007, 04:15 AM
I will do it free, just a second i will find it.. Read my sig btw :)

Duncan
05-29-2007, 10:02 PM
Ok sounds good :)

Luky
05-30-2007, 02:41 AM
Edit: sorry, below is the method that will display a star next to everyones name if the viewer is unverified, but im sure you can tweak it! Try replacing $bbuserinfo with $post and tell me if it works, if not you have to ask someone else ;)

Ok done, find where you want to put the message or image and insert this:

<if condition="$bbuserinfo['usergroupid'] == '1'">MESSAGE</if>

Replace 1 with the ID of the usergroup you want to show it too and replace MESSAGE with what you want them to see.

so if you wanted people that are not verified to see a star, assuming your un verified by email usergroup is 3 and your star is at http://www.alchemist-team.net/star.gif
You find this in your posbit or postbit legacy template:
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>

and replace it with this:
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><if condition="$bbuserinfo['usergroupid'] == '1'"></if>$post[musername]</a>