vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Using an Image on Forum Home who's online? (https://vborg.vbsupport.ru/showthread.php?t=47380)

Sweet Cheeks 01-05-2003 01:26 AM

Using an Image on Forum Home who's online?
 
I saw this on another site I thought is was pretty cool. I searched for about an hour and couldn't find it here as a Hack, perhaps I missed it? :paranoid:

What I am looking for is a hack that will allow the admin's to have an image as their username on the forumhome who's online. What an awesome hack this would be :D

Thanks in advance for anyone who can help me :)

flup 01-05-2003 12:11 PM

I'll look i'll think this may be done by a simple tamplate hack

Sweet Cheeks 01-05-2003 01:52 PM

Awesome, thank you :cool:

kmfdm_kid2000 01-10-2003 05:24 AM

This is done by User ID number in the Method I know...Zajako came up with this idea a long time ago, but I think he coded his differently...

The way I do it alters Afterburner's colored on-line users hack...

Find in index.php:

PHP Code:

// Afterburners Colored OnlineUserHack Start 

Add an extra line, like so:

PHP Code:

} else if (($loggedin['userid'] == 1) and $highlightadmin) {
          
$username "<img border="0" src="http://www.putURLhere.com";
// Image for Admin 

Also, find
PHP Code:

// Invisible User but show to Admin
        
$invisibleuser '*';
      } 

Add under it

PHP Code:

if (($loggedin['userid'] == 1) and $highlightadmin) {
          
$username "<img border="0" src="http://www.URL.com"; // Image for admin 


Sweet Cheeks 01-10-2003 07:04 PM

Hey K_kid :banana: Thanks for your help the other day, you rock :cool:

Chris M 01-10-2003 08:39 PM

@kmfdm_kid2000 - You didn't close or parse the tag;)

Code:

if (($loggedin['userid'] == 1) and $highlightadmin) {
          $username = "<img border=\"0\" src=\"http://www.URL.com\">"; // Image for admin

The same with the one beginning } elseif;)

Satan


All times are GMT. The time now is 01:00 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.01977 seconds
  • Memory Usage 1,720KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete