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)
-   -   Welcome Panel [Final] (https://vborg.vbsupport.ru/showthread.php?t=33477)

voogru 04-08-2002 02:53 PM

having the same problem..http://forums.voogru.com

help plz

Sadie Frost 04-08-2002 03:19 PM

I tried using your forumhome template, and the avatar shows up just fine on mine. I would check your code in index.php :)

LilleMartin 04-09-2002 01:29 PM

Oh my god, I nearly broke my balls trying to get this to work.
Now installed, I love it.

Thanks for a good hack...

-M

Floris 04-09-2002 01:32 PM

rofl

pHAZE_1 04-09-2002 02:42 PM

for some reason it didnt work for bout 2 days, but all of a sudden boom theres my avatar. lol

Rcooper 04-11-2002 06:54 PM

Great hack Thanks!

99SIVTEC 04-11-2002 07:41 PM

Oh man i'm an idiot. My web host moved the servers. I had been connecting to my ftp server via my ip address instead of host name. It turns out I was connecting to the old server. I was editing the templates for my site, but when I would change anything in the actual files it was being changed on the old server instead of the new one. I pulled my head out of my ass and now everything works at it should.

Rick 04-12-2002 02:39 PM

Great hack thanks. One question. I don't allow my users to change their own avatars. How can I disable the link to the edit avatar page when they click on the avatar in the "Welcome" hack?

Thanks,
Rick

Floris 04-12-2002 03:01 PM

Open root/index.php in your fav. editor and search for:
Code:

$avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0">';
And remove the <a> tag from it. BUT! I did not test it, and I do not see the </a> at the end of the line. SO not sure if this will end up in a broken link. But that is the line you need to alter.

Frenck 04-13-2002 10:39 PM

Like some people have noticed,

If you have a big forum (like euhm.. about.. lets say 100.000 posts, like mine)
Than the welcome panel hack really slows down the page!!!

My page generation time with this hack is 2.5 seconds!!!
That's all because of these 2:

Query: SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '1018738585'
Time before: 0.2525429725647
Time after: 0.34668505191803

Query: SELECT count(*) AS posts FROM post WHERE dateline > '1018738585'
Time before: 0.3487149477005
Time after: 1.9500440120697

You can speed this up by adding 2 indexes to your tables.

Just run these 2 query's once on your database:

ALTER TABLE `thread` ADD INDEX(`'lastpost`);
ALTER TABLE `post` ADD INDEX(`dateline`);


After running these 2 I was verry glad with the result:

Query: SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '1018738585'
Time before: 0.40777695178986
Time after: 0.40917897224426

Query: SELECT count(*) AS posts FROM post WHERE dateline > '1018738585'
Time before: 0.41155600547791
Time after: 0.41288495063782

My page generation time is 0.5 seconds after this simpel modification.

Anyways, THX FOR THIS GREAT HACK!!!


All times are GMT. The time now is 04:49 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.01347 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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