vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Custom Postbit for every User (https://vborg.vbsupport.ru/showthread.php?t=43688)

vdinh 09-20-2002 03:55 PM

Thanks a lot, Xenon! Finally I figured out what you meant :) It worked like a charm https://vborg.vbsupport.ru/external/2011/01/19.gif

Colon33 09-22-2002 04:16 PM

Quote:

Originally posted by Xenon
colon i think you didn't understand my hack....
a user cannot use a selfmade custom postbit until it has been validatet by an admin, so the risky thing is that you as an admin would oversee anything...

@Link: Are you sure you have applied the changes to functions.php correctly?
because here at my testboard everything works fine


OK. i think i understand. I thought, that you had to validate a user before using it. Not the customization. In that case, its a little more safer. Just one question.

How bad does this lag a board? If at all.

Xenon 09-22-2002 04:43 PM

it adds just one query so the DB queries don't lag a board.
and if the users don't use foreign images then it doesn't lag a board..

Link14716 09-22-2002 09:58 PM

Ok, I figured it out. There was a part of futureal's arcade code in there, I had to switch the position of the code to get it to work ;)

wolfe 09-24-2002 12:34 PM

Xenon m8 is there a way i can make it not show the picture of the default post bit just a option user Default Postbit

and it will only show the pics of the custom postbit i made :D

Xenon 09-24-2002 01:23 PM

you have to edit cpostbit.php:
PHP Code:

  if($bbuserinfo[postbitid]!=0) {
      
$choosetext "<input type=\"radio\" name=\"cpostbit\" value=\"0\"> Use standart";
      
$postbit=getpostbit($post,0);
      eval(
"\$choosebits .= \"".gettemplate('cpostbit_choosebit')."\";");
  } 

not the finest way but try this:
PHP Code:

  if($bbuserinfo[postbitid]!=0) {
      
$choosetext "<input type=\"radio\" name=\"cpostbit\" value=\"0\"> Use standart";
      
$postbit="";
      eval(
"\$choosebits .= \"".gettemplate('cpostbit_choosebit')."\";");
  } 

that should do it

wolfe 09-24-2002 01:34 PM

also there is something wrong i have added a custom postbit

and it goes something like this

Code:

<br>
<table align="center" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="15"><img src="{imagesfolder}/left.gif" border="0"></td>

<td align="center" background="{imagesfolder}/catbg.gif" width="887"><normalfont color="{categoryfontcolor}"><b>$post[title]</b></normalfont></td>

<td width="15"><img src="{imagesfolder}/right.gif" border="0"></td>
</tr>
</table>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>

<DIV id="p$post[postid]h" style="display:$ph">
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
        <td bgcolor="#CFCFCF" width="175" valign="top" nowrap>$plusimg  <font size="4"><b>$post[username]</b></font><br>
$bigstars
$goldstars
$pips<br>
              <smallfont>$post[usertitle]</smallfont></td>
        <td bgcolor="#CFCFCF" width="100%" valign="top">
                <table width="100% cellspacing="0" cellpadding="0" border="0">
                <tr>
                <td><smallfont>$post[icon] <b>$post[title]</b></smallfont></td>
                <td align="right" nowrap><smallfont>$onlinestatus $post[foldericon] $post[postdate] <font color="{timecolor}">$post[posttime]</font></smallfont></td><td width="15%" align="right"> <smallfont>(Post# <a href="showthread.php?postid=$post[postid]#post$post[postid]"><smallfont>$countposts</smallfont></a>)</smallfont></td></tr></table><br><normalfont>$post[shortmsg]</normalfont>
               
</tr>
</table>
</DIV>

<DIV id="p$post[postid]e" style="display:$pe">

<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%"><tr>

          <td bgcolor="#CFCFCF" width="175" valign="top" nowrap> <a name="post$post[postid]"></a>
            <br>
            <br>

<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><font face="verdana,arial,helvetica" size="1"><B>Level: $level | Member ID: $post[userid]</b></font></p>

<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><font face="verdana,arial,helvetica" size="1"><B>MP: $maxmp%</font></B></p><table border="1" cellpadding="0" cellspacing="0" width="90%" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000"><tr><td width="100%"><img border="0" src="{imagesfolder}/bar1.gif" width="$maxmp%" height="9"></td>  </tr></table><font face="verdana,arial,helvetica" size="1"><B>HP: $hp%</B><table border="1" cellpadding="0" cellspacing="0" width="90%" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000"><tr><td width="100%"><img border="0" src="{imagesfolder}/bar2.gif" width="$hp%" height="9"></td>  </tr></table><font face="verdana,arial,helvetica" size="1"><B>EXP: $exp%</b><table border="1" cellpadding="0" cellspacing="0" width="90%" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000"><tr><td width="100%"><img border="0" src="{imagesfolder}/bar3.gif" width="$exp%" height="9"></td></tr></table><br>       

<smallfont>
$awaymessage
Registered: $post[joindate]<br>
Location: $post[field2]<br>
Posts: $post[posts] <font color="#00FFFF">[$postsperday Per Day]</font><br>
Board Pounds: $post[storep] $donate<br>
Thread Views: $post[views]<br><br>
</smallfont></td>

          <td bgcolor="CFCFCF" width="100%" valign="top">
            <p><normalfont>$post[firstnewinsert]$minusimg <font size="4"><b>$post[username]</b></font><br>
              $bigstars $goldstars $pips<br>
              <smallfont>$post[usertitle]<br>
              $post[avatar]<br>
              <br>
              <a href='timeonline.php?s=$session[sessionhash]&action=view_leader'><b>Time
              Spent On This Board:</b></a><br>
              $post[onlinetime] </smallfont></normalfont></p>
              $post[attachment]
            <p>$post[signature]</p>
<p>$post[editedby]</p>

            <p align="right"><smallfont></smallfont></p>
            <table border="0" width="100%">
              <tr>
                <td width="85%"> <smallfont>$post[icon] <b>$post[title] </b></smallfont></td>
                <td width="15%" align="right"> <smallfont>(Post# <a href="showthread.php?postid=$post[postid]#post$post[postid]"><smallfont>$countposts</smallfont></a>)</smallfont></td>
              </tr>
            </table>
            <p><br>
              $post[message]</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p align="right"> <a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report
              this post to a moderator</a> | $post[iplogged]<br>
              $post[warnings]</p>
          </td>
        </tr><tr>        <td bgcolor="#CFCFCF" width="175" height="16" nowrap><smallfont>$post[foldericon] $post[postdate] <font color="{timecolor}">$post[posttime]</font></smallfont></td>                <td bgcolor="#CFCFCF" width="100%" valign="middle" height="16"><table width="100%" border="0" cellpadding="0" cellspacing="0">                <tr valign="bottom"><td><smallfont>$post[profile] $post[pmlink] $post[useremail] $post[homepage] $post[search] $post[buddy]$post[icqicon] $post[aimicon] $post[yahooicon] $post[msnicon]</smallfont></td><td align="right" nowrap><smallfont><a href="javascript:showwin('store.php?action=rate&postuserid=$post[userid]&postid=$post[postid]&postusername=$post[username]', 'width=550,height=250')"><img src="{imagesfolder}/storerate.gif" border="0" alt="Rate This Post"></a><a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="{imagesfolder}/edit.gif" border="0" alt="Edit/Delete Message"></a><a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="{imagesfolder}/quote.gif" border="0" alt="Reply w/Quote"></a></smallfont></td></tr>
</table>       
</td></tr>
</table></td></tr>
</table>
</DIV>
<table align="center" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center" width="15"><img src="{imagesfolder}/pbbleft.gif" border="0"></td>

<td align="center" background="{imagesfolder}/postbbg.gif" width="887"></td>

<td align="center" width="15"><img src="{imagesfolder}/pbbright.gif" border="0"></td>
</tr>
</table>

and it is just making the default one what comes with VBB i am using 2.2.7 also when i pick one i made it just still uses the default one i did on the board :( please help

wolfe 09-24-2002 01:36 PM

wtf it just added vbb.org where i had { imagesfolder }

Xenon 09-24-2002 01:40 PM

it shows the postbits correct on the chooserscreen?

be sure you have added correctly every single line to functions.php and showthread.php

normally everything should work, and it works on two of my test boards..

Mathiau 10-01-2002 03:15 AM

wow!

a wicked hack

Question

me, i like things to ALL look the same, so this could make things look "messy" to someone like me.

Would it, if it does not already, have an option, much like a certain template

So, i make my own postbit template and then, when I view forums ALL posbits look like that? OR i can change to say another postbit template and it will look like that? - much the same as u change the color scheme on here... it affects the overall site, nut just what u do.

instead of seeing everyonme diff, postbit - as i can see some people finding that annoying as you get used to something, like profile being in one place, but it is in a few diff. places for diff people....

Just a thought.

but other wiuse very impressive hack!


All times are GMT. The time now is 01:45 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.01059 seconds
  • Memory Usage 1,783KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)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