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)
-   -   Glowing Usernames in postbit (https://vborg.vbsupport.ru/showthread.php?t=61942)

Dataforce 02-25-2004 10:00 PM

Glowing Usernames in postbit
 
Adapted from here

**NO SUPPORT GIVEN**
**USE AT YOUR OWN RISK**

=======

This has been tested, and works on VB3 RC4

Works on Internet Explorer based browsers
does NOT work on Mozilla Firefox (at least not for me)

not sure about other browsers.

=======
Enjoy

-DF

Souli 02-26-2004 12:52 PM

:tired:
in vb3 you do not need to hack the functions_showthread.php

use conditions directly in the templates postbit

eg:
HTML Code:

<if condition="$post['usergroupid'] == 6">
<table style="filter:glow(color=red, strength=6)"><tr><td><font class="bigusername" color="white"><b>$post[username]</b></font></td></tr></table>
<else />
$post[musername]
</if>

and after it create two new custum-userfields and give the users an option to selelct the two colors ;)

eg:
HTML Code:

<if condition="$post['usergroupid'] == 6">
<table style="filter:glow(color=$bbuserinfo['field29'], strength=6)"><tr><td><font class="bigusername" color="$bbuserinfo['field30']"><b>$post[username]</b></font></td></tr></table>
<else />
$post[musername]
</if>

$bbuserinfo['field29'] and $bbuserinfo['field30'] are my fieldnumbers

Dataforce 02-26-2004 02:14 PM

as I said it was adapted from the VB2 version which i had used, so i had just taken it directly from my VB2 board, and changed it to work.

atm I'm just doing quick conversion for my old VB2 hacks to VB3 for my members so i'm pretty much following the origonal VB2 instructions but changing the code for VB3

ye your way is more efficient, but my way works - when i come to upgrade my board again I will convert it to use your method.

I would do it now, but i got some other hacks that i need to finish converting

Schorsch 02-26-2004 02:57 PM

do you have a screenshot of the glowing?

Dataforce 02-26-2004 03:37 PM

Attatched Screenshot showing Blue Glow, it shows the same apart from colour for all the other glows.

rinkrat 02-26-2004 04:38 PM

Is there a way that I can only have people with a reputation over 50,000 have the glow?

Sonic625 02-26-2004 11:25 PM

Or perhaps a way to limit it to a certain group?
Thanks,
S

Dataforce 02-27-2004 09:45 AM

Sonic625 it is limited per group, you choose which groups have what coloured glow.

rinkrat sure, just change teh if statement to check the reputation rather than the usergroupid - I don't ahve reputation enabled on my forum so i dunno what the reputation variable is.

Allan 02-27-2004 10:01 AM

i take, thank ;)

Spacey 02-27-2004 07:06 PM

Souli,

Could you post EXACTLY what to do there please!!! im a Hack noob and have no idea where to put those lines of code on my postbit template...

Thank man :)


All times are GMT. The time now is 09:54 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.03909 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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