vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Verified Users - Modification needed (https://vborg.vbsupport.ru/showthread.php?t=148189)

Duncan 05-26-2007 07:35 PM

Verified Users - Modification needed
 
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

Quote:

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:

PHP Code:

<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:
PHP Code:

<class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a

and replace it with this:
PHP Code:

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



All times are GMT. The time now is 04:59 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01126 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete