vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   [RC2] Hackless avatar on homepage (https://vborg.vbsupport.ru/showthread.php?t=88278)

Vb-Hispano 02-28-2004 06:41 PM

installed ;)

Vb-Hispano 02-29-2004 11:59 AM

Quote:

Originally Posted by M1th
Actually, nevermind.. figured it out (thanks to Kura):


Code:

<img src="image.php?$session[sessionurl]u=$bbuserinfo[userid]&amp;dateline=$bbuserinfo[avatardateline]" title="$bbuserinfo[username]'s Avatar" alt="Avatar" border="0" />

ADD

width="64" height="64"

Code:

<img src="image.php?$session[sessionurl]u=$bbuserinfo[userid]&amp;dateline=$bbuserinfo[avatardateline]" title="$bbuserinfo[username]'s Avatar" alt="Avatar" border="0" width="64" height="64" />
and with thist it will be better

64 x 64

Arkham 03-09-2004 10:35 PM

Hmmm...

I put it in the navbar template, but now it only shows up on forumhome. It's missing from deeper pages. Could someone suggest a way to fix this?

I added freddie's config.php suggestion, too.


EDIT - fixed

Great thanks to Vb-Hispano -- His replacement string solved the problem.


imported_kyrnel 03-22-2004 06:03 PM

Quote:

Originally Posted by freddie
If you put this in config.php, you can do this with no added queries:

define('AVATAR_ON_NAVBAR', 1);

How do you put htis code in config.php? Are you sure you didnt mean a different file?

I'm trying to reduce the number of queries being run for Forum Home. So I need to figure this one out. Thx

Arkham 03-22-2004 06:04 PM

Quote:

Originally Posted by kyrnel
How do you put htis code in config.php? Are you sure you didnt mean a different file?

I'm trying to reduce the number of queries being run for Forum Home. So I need to figure this one out. Thx

You have to (download then) edit config.php with a text editor and then re-upload the file to your server.

imported_kyrnel 03-22-2004 06:50 PM

Quote:

Originally Posted by Arkham
You have to (download then) edit config.php with a text editor and then re-upload the file to your server.

I'm sorry, what I meant was that I have never seen a hack that required you to edit that specific file (config.php). I was under the impression that you should never edit it.

Also, there is no code in that file that seems similar to the code he suggested adding. It only contains the basic variables for connecting to the mysql database.

I see Define() statements in index.php and global.php but not in config.php...

Arkham 03-22-2004 07:35 PM

Quote:

Originally Posted by kyrnel
I'm sorry, what I meant was that I have never seen a hack that required you to edit that specific file (config.php). I was under the impression that you should never edit it.

Also, there is no code in that file that seems similar to the code he suggested adding. It only contains the basic variables for connecting to the mysql database.

I see Define() statements in index.php and global.php but not in config.php...

I know what you mean. I had no idea, so I just added add Freddie's suggestion to the bottom of config.php.

LImburg 09-01-2004 07:41 PM

Quote:

Originally Posted by Arkham
Hmmm...

I put it in the navbar template, but now it only shows up on forumhome. It's missing from deeper pages. Could someone suggest a way to fix this?

I added freddie's config.php suggestion, too.


EDIT - fixed


[/color][/size]


Fixed?
How?

I've been trying to figure this out for a good day.. but I can't figure out how to get the avatar displayed on the deeper pages.

Just like it doesn't call the function.

I put the code in the phpinclude_start template

and the html in the header template...

Can anyone help me out?

Erwin 09-01-2004 11:50 PM

Quote:

Originally Posted by freddie
If you put this in config.php, you can do this with no added queries:

define('AVATAR_ON_NAVBAR', 1);

That's too cool.

Erwin 09-06-2004 07:19 AM

Good point - if you have avatars as files, what is the variable to use for the avatar to show up?


All times are GMT. The time now is 11:57 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.01478 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (7)bbcode_quote_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