vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Supporting Member hack? (https://vborg.vbsupport.ru/showthread.php?t=71781)

mkdevo 11-15-2004 04:18 PM

Supporting Member hack?
 
1 Attachment(s)
i'm looking for a hack that will display something like 'Supporting Member' with an icon under a user's name, in order to tell who has donated to the site.

i couldn't find anything here, but i've seen this up and running. see here.

example in the attachment. it also shows up as a line in a user's profile.

Colin F 11-15-2004 05:47 PM

Quote:

Originally Posted by mkdevo
i'm looking for a hack that will display something like 'Supporting Member' with an icon under a user's name, in order to tell who has donated to the site.

i couldn't find anything here, but i've seen this up and running. see here.

example in the attachment. it also shows up as a line in a user's profile.

This could be done, for example, with an additional usergroup.

Then, add a template conditional to the postbit, saying something like:

HTML Code:

<if condition="$post[usergroupid] == x">Supporting Member</if>

mkdevo 11-16-2004 11:49 AM

Quote:

Originally Posted by Colin F
This could be done, for example, with an additional usergroup.

Then, add a template conditional to the postbit, saying something like:

HTML Code:

<if condition="$post[usergroupid] == x">Supporting Member</if>

Colin,

thanks for the tip. sounds good, but when i tried to implement it, it showed up on all posts. i added a 'Supporting Member' usergroup, and here's the code i used:

HTML Code:

<if condition="$post[usergroupid] == Supporting Member">__________<br><b>Supporting Member </b><IMG SRC="http://www.thebreakfast.info/forum/images/supportmoney.gif" align=absmiddle></if>
any ideas as to what i've done wrong?

thanks again!

Colin F 11-16-2004 02:41 PM

Quote:

Originally Posted by mkdevo
Colin,

thanks for the tip. sounds good, but when i tried to implement it, it showed up on all posts. i added a 'Supporting Member' usergroup, and here's the code i used:

HTML Code:

<if condition="$post[usergroupid] == Supporting Member">__________<br><b>Supporting Member </b><IMG SRC="http://www.thebreakfast.info/forum/images/supportmoney.gif" align=absmiddle></if>
any ideas as to what i've done wrong?

thanks again!

You almost got it.

You'll have to exchange the x not with Supporting Member, but with the usergroupid of that usergroup. It would then look something like: "$post[usergroupid] == 9"

mkdevo 11-16-2004 02:57 PM

Colin,

Just changed it to reflect the usergroupid, and i'm getting the same results. :(

Are there any other changes I nees to make?

HTML Code:

<if condition="$post[usergroupid] == 10">__________<br><b>Supporting Member </b><IMG SRC="http://www.thebreakfast.info/forum/images/supportmoney.gif" align=absmiddle></if>

mkdevo 11-18-2004 12:04 PM

colin (or anyone else),

this code is still not working for me - showing up for every member when i put it in.

any ideas on how to make it work? (btw, i'm running 2.3.5)

thanks..

Andreas 11-18-2004 12:12 PM

Well Colin, this is the vB2 code modification section ;)
vB 2.x does not support <if ...>

If you want smth. similar for vB 2.x take a look at https://vborg.vbsupport.ru/showthread.php?t=43325

Btw: I'd recommend to upgrade to vB3 - the code is much better.

mkdevo 11-18-2004 01:49 PM

Quote:

Originally Posted by KirbyDE
Btw: I'd recommend to upgrade to vB3 - the code is much better.

yeah, i plan on it.. actually just copied my db so i can start testing vb3 out a little bit. hope to have it going within a few months..

thanks for the tip. thought i was going nuts! ;)

Colin F 11-18-2004 01:52 PM

Sorry about that mkdevo.

I generally go over the new posts link, and that doesn't show me it's vB2.

Once you've upgraded to vB3, the above code should work though :)


All times are GMT. The time now is 04:28 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.01233 seconds
  • Memory Usage 1,737KB
  • 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
  • (5)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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