Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-15-2004, 04:18 PM
mkdevo mkdevo is offline
 
Join Date: May 2004
Location: CT, USA
Posts: 269
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Supporting Member hack?

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.
Attached Images
File Type: jpg support.jpg (8.4 KB, 0 views)
Reply With Quote
  #2  
Old 11-15-2004, 05:47 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #3  
Old 11-16-2004, 11:49 AM
mkdevo mkdevo is offline
 
Join Date: May 2004
Location: CT, USA
Posts: 269
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #4  
Old 11-16-2004, 02:41 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Reply With Quote
  #5  
Old 11-16-2004, 02:57 PM
mkdevo mkdevo is offline
 
Join Date: May 2004
Location: CT, USA
Posts: 269
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #6  
Old 11-18-2004, 12:04 PM
mkdevo mkdevo is offline
 
Join Date: May 2004
Location: CT, USA
Posts: 269
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #7  
Old 11-18-2004, 12:12 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 11-18-2004, 01:49 PM
mkdevo mkdevo is offline
 
Join Date: May 2004
Location: CT, USA
Posts: 269
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #9  
Old 11-18-2004, 01:52 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:35 PM.


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.05269 seconds
  • Memory Usage 2,268KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete