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:

g-force2k2 09-02-2002 04:20 PM

Linkage [ Here ]

regards...

g-force2k2

Sweet Cheeks 09-02-2002 06:32 PM

:banana: Thanks a bunch :)

MPM.com 09-16-2002 04:48 PM

Hi

I tried installing this on my forums, as i think it looks cool. The problem is similar to a previous post, but I dont understand how to correct it, new at PHP.

It works fine, but the default GLOW is a nasty colour. Is there any way to make it, so if the fields are blank, the standard font applies? if not, what can I do?

Mark

ScruffyDeluxe 09-21-2002 11:05 PM

https://vborg.vbsupport.ru/showthrea...184#post287184

This time, change {usernameglowcolor} in my example to $ post[backcolor] (remove space after $)

Probably not the best solution; more a bodge... but I'm certain it'll work.

Also, try viewing the HTML source of the finished showthread page. Look at the code for the glow and you'll see it is not complete for users who have not specified colours.
It should be possible to make a replacement for this that puts the username text in a plain table.

Sinzar 11-03-2002 07:36 PM

really nice g-force2k2 []

gengar003 04-22-2003 11:12 PM

Thanx! I like it. *install*

Airs 04-23-2003 03:18 AM

Is there a way one can make this optional? so the user decides wether to leave it normal or not? thnx in advance ! ^^

gengar003 04-28-2003 12:52 AM

You'd just set the default values in the fields to the forum defaults.

jagperk 06-01-2003 11:10 PM

Thanks a bunch Ive seen this glow on a board before and Liked it! I'm going to use it on my board! Thanks again! great hack.

Andrew111888 06-07-2003 05:34 PM

How do I implement html into this? Like it'd be..

Administrator
Super Moderator
Moderator

etc.?

Would I just add the html into the profile field, or what?

Andrew111888 06-07-2003 10:45 PM

Ahh, that wouldn't work, the tags wouldn't end it..

so how would i do that?

Andrew111888 06-08-2003 01:41 PM

Anyone?

Andrew111888 06-08-2003 09:47 PM

bumpo roony

robflack 06-09-2003 03:01 PM

a great little addition to this is using it in conjunction with

https://vborg.vbsupport.ru/showthrea...=&pagenumber=1

It means your users do not have to memorise hex codes and this avoids problems such as them typing in bogus colour names such as BuggerGreen and TurdBrown.

to see in action go to www.londonbydesign.co.uk/forums/communicate

Andrew111888 06-09-2003 09:59 PM

Anyone able to help with the html issue?

blubber12 01-26-2004 11:53 PM

can this be adapted for vb3?

Khashyar 08-16-2005 11:51 AM

G-force...

Thank you for posting this useful informaton...

It works great on my 2.3.4 forum (I haven't upgraded because I have lots of hacks that I like on it)...

I am wondering how you can make the usernames color in the forum display (and homepage display)?

I found the template names, but I can't find the string name that will call up the text color profile template...

(I believe that I already tried to use $userinfo[], and it didn't work...)

I would appreciate any ideas...

Thanks,

Khashyar

Khashyar 08-17-2005 04:57 AM

Also....

Did anyone figure out how to make the GLOW color default at the forum row background color until someone selects a color???

Would that be done in the edit profile page ???

Thanks,

Khashyar


All times are GMT. The time now is 02:47 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.01228 seconds
  • Memory Usage 1,811KB
  • 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
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)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