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)
-   -   Username Font Color Hack(in postbit) (https://vborg.vbsupport.ru/showthread.php?t=39289)

ScruffyDeluxe 08-21-2002 12:59 AM

Any ideas on how to implement this anywhere you want, like in the Memberlist and Who's Online, for example?

As far as I know, I need to call the profile fields up using the getinfo function... but I dunno how, as I'm a hopeless n00b.

g-force2k2 08-21-2002 02:24 AM

ScruffyDeluxe maybe try $userinfo[fieldXX] XX being the field that the colors are ;)

g-force2k2

ScruffyDeluxe 08-22-2002 01:08 AM

Harder than it sounds... vB doesn't need to call up these parts of a users' profile, so I need to make online.php and member.php get these values. That's what I'm stuck on :-\

g-force2k2 08-22-2002 01:14 AM

well ScruffyDeluxe you can always call the query...

to select the userfield data... but im not sure exact the query but i will look into it for you if you like ;)

g-force2k2

ScruffyDeluxe 08-24-2002 11:31 AM

Whoops, got it working in the memberlist by adding the table from the postbit template to memberlist_bit, and changing $post to $userinfo. :)

Screenie:

g-force2k2 08-24-2002 05:38 PM

Quote:

Originally posted by g-force2k2
ScruffyDeluxe maybe try $userinfo[fieldXX] XX being the field that the colors are ;)

g-force2k2

:p

g-force2k2

bonnmac 08-29-2002 07:59 PM

Hi... I've changed my postbit and now I can't get the Font Color to work? Hoping you can help... The Glow works just not the font color... Here's my postbit...

Code:

<table bgcolor="#0E3652" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="https://vborg.vbsupport.ru/images/space.gif" alt=""></td><td width="100%"><!-- spacer -->

<table cellpadding="0" cellspacing="0" border="0" bgcolor="#0A293E"  width="95%" align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0"  width="100%">
<tr>
        <td bgcolor="$post[backcolor]" width="175" valign="top" nowrap>
    <div align="left">
      <table border="0" width="100%" bgcolor="#13486D">
        <tr>
                <td width="100%" height="12" bgcolor="#1C5780">
                  <p align="center"><a name="post$post[postid]"></a><font face="Verdana" size="2" color="#FFFFFF">
                  $post[firstnewinsert]</font<normalfont color="$post[field5]"><TABLE STYLE="filter:GLOW(color=$post[field6],strength=4)"><b>$post[username]</b></table></normalfont>$post[search]<br>
                  </font>$post[avatar]</td>
        </tr>
        <tr>
                <td width="100%" height="12" bgcolor="#1C5780"></normalfont><font face="Verdana" size="1" color="#FFFFFF"><b>$post[usertitle]</b></font></td>
        </tr>
        <tr>
                <td width="100%" height="12" bgcolor="#1C5780"></normalfont><font face="Verdana" size="1" color="#FFFFFF"><center><b>$flag</b></center></font></td>
        </tr>
        <tr>
                <td width="100%" height="12" bgcolor="#1C5780"><b>
                <font face="Verdana" size="1" color="#FFFFFF">POSTS: </font></b><font size="1" face="Verdana" color="#FFFFFF"></font><smallfont><font size="1"><b><font color="#FFFFFF" face="Verdana">$post[posts] </b> [$postsperday per day]<b></font></b></font></smallfont></td>
        </tr>
        <tr>
                <td width="100%" height="12" bgcolor="#1C5780"><b>
                <font face="Verdana" size="1" color="#FFFFFF">LOCATION:</font></b><smallfont><font size="1">
                <b><font color="#FFFFFF" face="Verdana">$post[field2]</font></b></font></smallfont></td>
        </tr>
        <tr>
                <td width="100%" height="12" bgcolor="#1C5780"><b>
                <font face="Verdana" size="1" color="#FFFFFF">MEMBER:</font></b><smallfont><B><font size="1" color="#FFFFFF" face="Verdana">
                #$post[userid]</font></B></smallfont></td>
        </tr>
        <tr>
                <td width="100%" height="12" bgcolor="#1C5780"><b>
                <font face="Verdana" size="1" color="#FFFFFF">STATUS:</font></b><smallfont><font size="1" face="Verdana" color="#FFFFFF"> $onlinestatus</font></smallfont></td>
        </tr>
      </table>
    </div>
       
        <td bgcolor="$post[backcolor]" width="100%" valign="top">
        <smallfont>$post[icon] <b>$post[title]</b></smallfont>
        <p><normalfont>$post[message]</normalfont></p>
    $post[attachment]
        <p>$post[signature]</p>
        <p>$post[editedby]</p>
        <p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>
        </td>
</tr>
<tr>
        <td bgcolor="$post[backcolor]" width="175" height="16" nowrap><smallfont>$post[foldericon]
        $post[postdate] <font color="#FF9C58">$post[posttime]</font></smallfont></td>
       
        <td bgcolor="$post[backcolor]" 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[buddy]
                        <!-- $ post[icqicon] --> <!-- $ post[aimicon] --> <!-- $ post[yahooicon] -->
                        </smallfont></td>
                        <td align="right" nowrap><smallfont>
                        <a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="https://vborg.vbsupport.ru/images/edit.gif" border="0" alt="Edit/Delete Message"></a>
                        <a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="https://vborg.vbsupport.ru/images/quote.gif" border="0" alt="Reply w/Quote"></a>
                        </smallfont></td>
                </tr>
                </table>
        </td>
</tr>
</table>
</td></tr></table>

<!-- spacer --></td><td width="10"><img width="10" height="1" src="https://vborg.vbsupport.ru/images/space.gif" alt=""></td></tr></table>

Thanks :)

g-force2k2 08-29-2002 08:05 PM

bonnmac find:

PHP Code:

</font<normalfont color="$post[field5]"

and replace it with:

PHP Code:

]</font><normalfont color="$post[field5]"

see if that does the trick ;) regards...

g-force2k2

bonnmac 08-29-2002 08:39 PM

Yes it did. Thanks a bunch :)

Sweet Cheeks 09-02-2002 04:03 PM

Waaah how can I get this hack :( I can't find the place to download it. Pretty please I would be ever so grateful http://www.belliesandbabies.com/boar...es/eyebrow.gif my email, julie@belliesandbabies.com :banana:


All times are GMT. The time now is 09:13 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.01331 seconds
  • Memory Usage 1,762KB
  • 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