Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
Details »»

Version: , by Afterburner Afterburner is offline
Developer Last Online: Oct 2003 Show Printable Version Email this Page

Version: 2.0.x Rating:
Released: 07-10-2001 Last Update: Never Installs: 7
 
No support by the author.

Deutsch:
Ich bin zur?ck mit meinem ersten Hack f?rs VB (in der Vergangenheit habe ich nur die Hacks f?rs UB2K geschrieben)
Dieser Hack zeigt die Usernamen von Administratoren (ID:6) Supermoderatoren (ID:5) Moderatoren (ID:7) und registrierten Membern (ID:2) in der Onlineliste farbig an.

English:
I am back with my first VB Hack. (I wrote only hacks for the UB2K in the past )
If you use this hack you have colored usernames of Administrators (ID:6) Supermoderators (ID:5) Moderators (ID:7) and Members (ID:2) in your Onlinelist.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-12-2001, 12:26 AM
maverick1236 maverick1236 is offline
 
Join Date: Oct 2001
Location: NY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You just saved me a lot of work!!
TX for the swift response!!!!!!!!
  #13  
Old 07-12-2001, 04:52 AM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This can be made more efficient. Example: change this code...

Code:
 if ($farbe == 2 ) {
	 $username = "<font color=blue>".$username."</font>"; // Color for Member
 }
 if ($farbe == 5 ) {
	 $username = "<font color=darkred>".$username."</font>"; // Color for Supermoderator
 } 
 if ($farbe == 6 ) {
	 $username = "<font color=red>".$username."</font>"; // Color for Administrator
 }
 if ($farbe == 7 ) {
	 $username = "<font color=green>".$username."</font>"; // Color for Moderator
 }
...into this...

Code:
  switch ($farbe) {
    case 2:
      $color = "blue";
      break;
    case 5:
      $color = "darkred";
      break;
    case 6:
      $color = "red";
      break;
    case 7:
      $color = "green";
      break;
  }

  $username = "<font color=\"$color\">$username</font>";
I didn't look at the code in significant detail, but I think this can be used in both instances...both times you use that if/else code above, that is. At the very least, you can put it in a function to save some space.
  #14  
Old 07-12-2001, 04:55 AM
Rune1027 Rune1027 is offline
 
Join Date: May 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats great, but How did you get the hypercells? That was a cool hack from UBB that I have missed
  #15  
Old 07-12-2001, 08:27 AM
Afterburner's Avatar
Afterburner Afterburner is offline
 
Join Date: Nov 2001
Location: 53?36'08"N 13?18'22"E
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Rune1027
Thats great, but How did you get the hypercells? That was a cool hack from UBB that I have missed
what do you mean with hypercells ?
  #16  
Old 07-12-2001, 08:37 AM
mojotim mojotim is offline
 
Join Date: Oct 2001
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

he means how do you get your cells to highlight when the cursor is over them. Prob DHTML, right?
  #17  
Old 07-12-2001, 09:43 AM
Afterburner's Avatar
Afterburner Afterburner is offline
 
Join Date: Nov 2001
Location: 53?36'08"N 13?18'22"E
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you have do mofify e.g.

Forum Display Templates
--> forumdisplay_forumbit_level1_post

to:

PHP Code:
<tr align="center">
    <
td bgcolor="{firstaltcolor}" align="left" valign="top" colspan="2">
    <
table cellpadding="0" cellspacing="0" border="0">
    <
tr>
        <
td valign="top"><img src="{imagesfolder}/$forum[onoff].gif" border="0" alt=""></td>
        <
td><img src="images/clear.gif" width="9" height="1" alt=""></td>
        <
td><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a><br>
        <
smallfont>$forum[description]</smallfont></td>
    </
tr>
    </
table>
    </
td>
    <
td bgcolor="{secondaltcolor}"><normalfont>$forum[replycount]</normalfont></td>
    <
td bgcolor="{firstaltcolor}"><normalfont>$forum[threadcount]</normalfont></td>
    <
td bgcolor="{secondaltcolor}"><smallfont>$forum[lastpostinfo]</smallfont></td>
    <
td bgcolor="{firstaltcolor}"><smallfont>$forum[moderators]</smallfont></td>
</
tr
that means the table looks like:

PHP Code:

    
<td bgcolor="#F1F1F1" align="left" onMouseover="this.style.backgroundColor='#AEDEFF'" onMouseout="this.style.backgroundColor='#EEEEEE'"><ilayer width="100%"><layer width="100%" onMouseover="this.bgColor='#AEDEFF'" onMouseout="this.bgColor='#EEEEEE'"><a href="forumdisplay.php?s=&forumid=4"><font face="verdana, arial, helvetica" size="2" ><b>FreeTV,MoreTVPubsPCTV</b></font></a>
    <
br><font face="verdana,arial,helvetica" size="1" >Hier k?nnt ihr alles posten was mit FreeTVMoreTVPubs und PCTV zu tun hat</font></layer></ilayer></td
If the HTML Site of your board is generated


the important code
in the <td> tag you have to insert:

PHP Code:
 onMouseover="this.style.backgroundColor='#AEDEFF'" onMouseout="this.style.backgroundColor='#EEEEEE'"
below the <td> tag this:

PHP Code:

<ilayer width="100%"><layer width="100%" onMouseover="this.bgColor='#AEDEFF'" onMouseout="this.bgColor='#EEEEEE'"
infront of the </td> tag insert this code:

PHP Code:
</layer></ilayer
thats all
replace:

#AEDEFF
#EEEEEE

with your own color

I hope I don?t forgot anything
  #18  
Old 07-12-2001, 01:24 PM
Chin San's Avatar
Chin San Chin San is offline
 
Join Date: Jan 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ya...cool...
  #19  
Old 07-12-2001, 01:43 PM
rmusic
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Afterburner
you have do mofify e.g.

Forum Display Templates
--> forumdisplay_forumbit_level1_post

to:

PHP Code:
<tr align="center">
    <
td bgcolor="#F1F1F1" align="left" valign="top" colspan="2">
    <
table cellpadding="0" cellspacing="0" border="0">
    <
tr>
        <
td valign="top"><img src="images/$forum[onoff].gif" border="0" alt=""></td>
        <
td><img src="images/clear.gif" width="9" height="1" alt=""></td>
        <
td><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a><br>
        <
smallfont>$forum[description]</smallfont></td>
    </
tr>
    </
table>
    </
td>
    <
td bgcolor="#DFDFDF"><normalfont>$forum[replycount]</normalfont></td>
    <
td bgcolor="#F1F1F1"><normalfont>$forum[threadcount]</normalfont></td>
    <
td bgcolor="#DFDFDF"><smallfont>$forum[lastpostinfo]</smallfont></td>
    <
td bgcolor="#F1F1F1"><smallfont>$forum[moderators]</smallfont></td>
</
tr
that means the table looks like:

PHP Code:

    
<td bgcolor="#F1F1F1" align="left" onMouseover="this.style.backgroundColor='#AEDEFF'" onMouseout="this.style.backgroundColor='#EEEEEE'"><ilayer width="100%"><layer width="100%" onMouseover="this.bgColor='#AEDEFF'" onMouseout="this.bgColor='#EEEEEE'"><a href="forumdisplay.php?s=&forumid=4"><font face="verdana, arial, helvetica" size="2" ><b>FreeTV,MoreTVPubsPCTV</b></font></a>
    <
br><font face="verdana,arial,helvetica" size="1" >Hier k?nnt ihr alles posten was mit FreeTVMoreTVPubs und PCTV zu tun hat</font></layer></ilayer></td
If the HTML Site of your board is generated


the important code
in the <td> tag you have to insert:

PHP Code:
 onMouseover="this.style.backgroundColor='#AEDEFF'" onMouseout="this.style.backgroundColor='#EEEEEE'"
below the <td> tag this:

PHP Code:

<ilayer width="100%"><layer width="100%" onMouseover="this.bgColor='#AEDEFF'" onMouseout="this.bgColor='#EEEEEE'"
infront of the </td> tag insert this code:

PHP Code:
</layer></ilayer
thats all
replace:

#AEDEFF
#EEEEEE

with your own color

I hope I don?t forgot anything

forgive me but i dont understand this
because i would also loike to have this if you dont mind
  #20  
Old 07-12-2001, 02:34 PM
orca's Avatar
orca orca is offline
 
Join Date: Oct 2001
Location: Switzerland
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, Afterburner, es scheint dass mehr und mehr EX-UB2K Benutzer zu vBulletin wechseln . Bin seit 2 Monaten auch hier .
  #21  
Old 07-13-2001, 09:07 AM
ThomasP
Guest
 
Posts: n/a
Default

Coole Sache, das
Weiter so,
-Tom
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05085 seconds
  • Memory Usage 2,375KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (10)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete