vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Mark User as Contributor (https://vborg.vbsupport.ru/showthread.php?t=61082)

trackpads 03-02-2004 12:43 AM

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.

Zachariah 03-08-2004 10:18 PM

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>

<?
}
?>


assassingod 03-09-2004 04:29 PM

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

Boofo 03-09-2004 06:59 PM

Excellent addition, Steve! Good work! ;)

Zachariah 03-09-2004 11:44 PM

Quote:

Originally Posted by assassingod
Contributor Page:

:banana:

I changed a few things:
http://www.gzhq.net/forums/contributors.php

Boofo 03-09-2004 11:49 PM

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? ;)

Zachariah 03-10-2004 12:20 AM

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

Boofo 03-10-2004 01:59 AM

Thank you, sir. ;)

assassingod 03-10-2004 05:37 AM

Looks good:)

Infopro 03-25-2004 12:52 PM

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.


All times are GMT. The time now is 07:41 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.01273 seconds
  • Memory Usage 1,763KB
  • 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
  • (8)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete