Back to vBulletin 3.0 Add-Ons

CMPS Module: Contributors
Mod Version: 1.3, by Zachariah

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 7
Released: 22 Jul 2004 Last Update: Never Downloads: 0
Not Supported DB Changes  

/* ---------------------------------------------------
This is a Module for CMPS to place Contributors in a block. :alien:
Hope it helps !!! Zack - http://www.gzhq.net

NEEDED To Install:

vBadvanced CMPS
vBadvanced CMPS (Content Management & Portal System)
Coded by: Tigga

Mark User as Contributor [vB3]
Mark User as Contributor
Coded by: assassingod
Original: MarkB

=== Display page for all Contributors ======

This is a display page. (contributors.php)

Spoiler (click to open)


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:
varname: contribs
text: Contributors
Attached Files
File Type: php contributors.php (1.5 KB, 97 views)

Close


I did some personal Mods my self:

Spoiler (click to open)


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

Template: CONTRIBUTORS (in this template is Yoursite.com and email) *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;email&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
Attached Images
File Type: gif donate.gif (1,000 Bytes, 496 views)

Close


--------------------------------------------------*/

11.24.04 - Fixed the code to remove 2 extra queries from uncached templates. (edit global.php) Added ".TABLE_PREFIX." to the contrib.php placed in the Moduel folder.

Edit global.php find:
Code:
'adv_portal',
After add:
Code:
'contrib_bit',
'adv_portal_contrib',
Upload new contrib.php to Moduel folder

9.13.04 - requested - post 14
Added option for desired number of users to display on block and a link in template to full user list.

Upgrade: replace contrib.php file and adv_portal_contrib template.

7.22.04

Fixed - missing template

Download

No files for download.

Screenshots

 


vblts.ru supports vBulletin®, 2022-2024