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)
-   -   User Icons (https://vborg.vbsupport.ru/showthread.php?t=48264)

Vivi Ornitier 01-28-2003 11:08 PM

OMG!! ++++in a. This is the BIGGEST hack i've ever installed. The instructures took me at least an hour . . . . damn it's like 20 pages. God i don't even wanna know how long that took u to write Dark J .. . anywas, GREAT JOB!

Vivi Ornitier 01-28-2003 11:11 PM

Hey i'm having a problem. I installed the hack but then when i go into edit options and click the button, it just goes to a blank page. somethin wrong wit member.php?

Vivi Ornitier 01-28-2003 11:22 PM

oh wait my bad i didn't add any of the templates

Dark Jim 01-28-2003 11:22 PM

You mean totally blank? Did you add all templates because it must be a template is missing. I will check if I included all templates.

Edit: Ok so it was a missing template.
Quote:

Originally posted by Vivi Ornitier
OMG!! ++++in a. This is the BIGGEST hack i've ever installed. The instructures took me at least an hour . . . . damn it's like 20 pages. God i don't even wanna know how long that took u to write Dark J .. . anywas, GREAT JOB!
Well it took a lot of time looking up all avatar code in all files, copying it and modifying it, making some more changes where neccesssary, adding some more stuff.... but like I said a whole lot of the code is almost exactly like that avatar code, I didn't write it from scratch. :confused:

Vivi Ornitier 01-29-2003 12:15 AM

okay the icon isn't showing up anywhere in my forums except for the announcements. I't snot goin on in index.php and not online.php or forumdisplay.php

if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "$iconavatar<b><i><font color=red>$loggedin[username]</font></i></b>"; // Color for Admin

That's my little code for the colors for admin part. I have the color online hack.

I'm on 2.2.6 and this code is NOT in index.php

} else {
$username = $loggedin[username];
}

Dark Jim 01-29-2003 12:29 AM

Did you set to show icons for you in your user cp. I forgot to include these queries in the instructions.

ALTER TABLE user CHANGE options options smallint(6) NOT NULL default '31';

UPDATE user SET options=options+16;

I have 2.2.7 but no default installation of it anymore. I will look at a default 2.2.9.

Edit: I see the code is:
PHP Code:

      } else {
                
$username $loggedin['username'];
            } 

Change that to
PHP Code:

      } else {
                
$username "$iconavatar$loggedin[username]";
            } 


Vivi Ornitier 01-29-2003 12:38 AM

ahhh those queries made the difference. I still didn't see the index.php code but it's good it works, now i gotta find some pics, can u just give me the ones ur using? i need smaller pics.

Dark Jim 01-29-2003 12:42 AM

Also in announcement.php step 2.3 should be:

2.3. Below that add:
-----------------------------------------------------------------
if ($post[iconavatarid]!=0) {
$iconavatarurl=$post[iconavatarpath];
} else {
if ($post[hascustomiconavatar] and $iconavatarenabled) {
$iconavatarurl="iconavatar.php?userid=$post[userid]&dateline=$post[iconavatardateline]";
} else {
$iconavatarurl="";
}
}
if ($iconavatarurl=="") {
$post[iconavatar]="";
} elseif ($bbuserinfo[userid]>0 and !($bbuserinfo[showiconavatars])) {
$post[iconavatar]="";

} else {
eval("\$post[iconavatar] = \"".gettemplate("postbit_iconavatar")."\";");
}
-----------------------------------------------------------------

I assume you had icons set to not display and becauase I forgot the red line it still displayed there. I will update the instructions.

Dark Jim 01-29-2003 12:48 AM

And the icons on my public icon list are some of my smilies which you can find here: at the bottom. You willl need to ask permission though and link to the site like I did and is done on this site. The others you may see are custom icons.

alkatraz 01-29-2003 03:15 AM

Great idea!


All times are GMT. The time now is 06:39 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.01704 seconds
  • Memory Usage 1,741KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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