Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Mark User as Contributor Details »»
Mark User as Contributor
Version: 1.00, by assassingod assassingod is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 02-01-2004 Last Update: Never Installs: 87
DB Changes
 
No support by the author.

Mark User as Contributor [vB3]

Coded by: assassingod
Original: MarkB

Thanks to MarkB for letting me port this hack to vBulletin 3 and creating the original.

Description:
This allows you as an administrator to mark users if they have donated to your website. You can use text/icon whatever you want by editing the phrase. It appears in postbit and the users profile

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 03-02-2004, 12:43 AM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ap0c
for the image showing up in the postbit, couldnt you just use the rank feature.I set mine up using subscriptions which are automatic, and a new rank for that usergroup they entered with the $ image for rank.
You can but this is even better because you can save ranks for other things.
Reply With Quote
  #33  
Old 03-08-2004, 10:18 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by assassingod
This would be pretty easy, i'll make it an addon soon.
Its "dirty" code and don't have VB code vs. hard code, I am sure there is a simple way, but here is some thoughts.



Code:
<?php
require('./global.php');

$contribreport=mysql_query("SELECT userid,username,contrib FROM user WHERE contrib='1' ORDER BY userid");
while(list($userid,$username,$contrib)=mysql_fetch_row($contribreport)){

?>
<table width='98%' border='0' cellspacing='1' cellpadding='0' align='center'>
  <tr>
  <td align='center' width='100%'><a target='_blank' href='../forums/member.php?u=<? echo"$userid"; ?>'><font size='1' face='Verdana'><? echo" $username"; ?></font></a></td>
 </tr>

<?
}
?>
Reply With Quote
  #34  
Old 03-09-2004, 04:29 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Contributor Page:
Upload contributors.php and upload it to your forums root directory

Add the template 'CONTRIBUTORS'
Code:
 $stylevar[htmldoctype]
 <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
 <head>
 	<title>$vboptions[bbtitle] - $vbphrase[contribs]</title>
 $headinclude
 </head>
 <body>
 $header
 $navbar
 <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
 <thead>
 	<tr>
 		<td class="tcat">
 			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('newpost_options')"><img id="collapseimg_newpost_options" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_newpost_options].gif" alt="" border="0" /></a>$vbphrase[contribs]
 		</td>
 	</tr>
 </thead>
 <tbody id="collapseobj_newpost_options" style="$vbcollapse[collapseobj_newpost_options]">	
 	<tr valign="top">
 		<td class="panelsurround" align="center">
 		<div class="panel">
 			<div style="width:$stylevar[formwidth]" align="$stylevar[left]">	    	
 			<fieldset class="fieldset">
 				<legend>$vbphrase[contribs]</legend>
 				<div style="padding:$stylevar[formspacer]px">
 		    	    <div>$contrib_bit</div>
 				</div>
 			</fieldset>
 			</div>
 		</div>
 		</td>
 	</tr>
 </tbody>
 </table>
 $footer
 
 </body>
 </html>
Add the template 'contrib_bit'
Code:
 <a href="member.php?$session[sessionurl]userid=$contributors[userid]">$contributors[username]</a>
 <br />
Edit template 'footer'
Find:
Code:
 <a href="$vboptions[contactuslink]">$vbphrase[contact_us]</a>
Above, add:
Code:
 		    	<a href="contributors.php">Contributors</a> -
Add phrase:
Quote:
varname: contribs
text: Contributors
Reply With Quote
  #35  
Old 03-09-2004, 06:59 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent addition, Steve! Good work!
Reply With Quote
  #36  
Old 03-09-2004, 11:44 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by assassingod
Contributor Page:
:banana:

I changed a few things:
http://www.gzhq.net/forums/contributors.php
Reply With Quote
  #37  
Old 03-09-2004, 11:49 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HarryButt
:banana:

I changed a few things:
http://www.gzhq.net/forums/contributors.php
That looks great! Would you care to share the code?
Reply With Quote
  #38  
Old 03-10-2004, 12:20 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
That looks great! Would you care to share the code?

Template: CONTRIBUTORS (in this template is Yoursite.com and Youremail@Yoursite.com) *fill in your info.

Code:
$stylevar[htmldoctype]
 <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
 <head>
 	<title>$vboptions[bbtitle] - Contributors</title>
 $headinclude
 </head>
 <body>
 $header
 $navbar
 <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
 <thead>
 	<tr>
 		<td class="tcat">
 			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('newpost_options')"><img id="collapseimg_newpost_options" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_newpost_options].gif" alt="" border="0" /></a>$vbphrase[contribs]
 		</td>
 	</tr>
 </thead>
 <tbody id="collapseobj_newpost_options" style="$vbcollapse[collapseobj_newpost_options]">	
 	<tr valign="top">
 		<td class="panelsurround" align="center">
 		<div class="panel">
 			<div style="width:$stylevar[formwidth]" align="$stylevar[left]">	    	
 			<fieldset class="fieldset">
 				<legend>$vbphrase[contribs]</legend>
 				<div style="padding:$stylevar[formspacer]px">
 		    	    <div><p align="center">Yoursite.com would like to extend its thanks to the following individuals who 
have helped us pay back some of our debts and expenses over the years. Yoursite.com 
is currently fueled only by such notable individuals at those that follow, and 
it is they who help us keep this site online. If you are interested in donating 
to Yoursite.com, please use Paypal and this <a target="_blank" 
href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=Youremail@Yoursite.com&amp;item_name=Donation%20to%20Yoursite.com&amp;item_number=Donation&amp;no_shipping=1">link</A>. <br>
                      <br>
                      <b><font size="5">The People Making Yoursite.com Possible</font></b></p></div>
 		    	    <div><center>$contrib_bit</center><br></div>
 				</div>
 			</fieldset>
 			</div>
 		</div>
 		</td>
 	</tr>
 </tbody>
 </table>
 $footer
 
 </body>
 </html>
Template: contrib_bit
Code:
<a target="_blank" href="member.php?$session[sessionurl]userid=$contributors[userid]">$contributors[username]</a>
 <br />
Phrase: contribs (in this Phrase is Yoursite.com) *fill in your info.
Code:
<img border="0" src="$stylevar[imgdir_misc]/donate.gif" alt="Yoursite.com Contributors !!!" width="16" height="16"> Contributors
Image: donate.gif (style image/misc)
VBroot/images/misc
Reply With Quote
  #39  
Old 03-10-2004, 01:59 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, sir.
Reply With Quote
  #40  
Old 03-10-2004, 05:37 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks good
Reply With Quote
  #41  
Old 03-25-2004, 12:52 PM
Infopro Infopro is offline
 
Join Date: May 2003
Location: Pennsylvania
Posts: 267
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
.....It appears in postbit and the users profile
It appears on the profile page, but I can't make it appear on postbit. It does have a space there, but the text does not show. I noticed this same issue on another members forum here in this thread as well.

Any ideas? Thanks.
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 06:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05519 seconds
  • Memory Usage 2,325KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete