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

Reply
 
Thread Tools
Details »»

Version: , by trilOByte trilOByte is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-24-2001 Last Update: Never Installs: 570
 
No support by the author.

Well, with over 200 downloads and 32 problem free install's, I though it time to take this out of the beta hacks forum (note, there are no changes to the file in the beta forum, so no need to re-download if you already have the hack installed).

I put this together originally as a walkthrough for an admin friend, and thought someone might find it useful. Althouth technically, my contribution is a couple of simple template edits, it does contain hacks posted previously.

Like I said, it's a combination of 2 previously relesed hacks (both credited fully). One by Firefly (avatar hack) and one by MrLister (since your last visit). It combines both of these hacks into a welcome panel at the top of the BB, just like the one here and on a few other sites. I'm pretty much a newbie to vB hacking, and struggled to put this together myself (couldn't find any instructions/hacks etc), but I think I've done an OK job. Maybe this will save a few headaches to others like myself

Anyway, here's a pic to illustrate the hack/edit (or whatever it is )





You can see a working verion of this hack here:

The Genome Collective

Thanks to Firefly and MrLister for providing the PHP hacks in this err, whatever

(BTW, if this is in the wrong forum, please (mods) feel free to move it)

Happy Christmas everyone.

here it is:

edit: updated version number to 2.2.6 because it works There are no changes to the files - it's not a new release. Thanks. /edit

Show Your Support

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

Comments
  #192  
Old 04-08-2002, 02:53 PM
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
Location: Miami, FL
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

help plz
Reply With Quote
  #193  
Old 04-08-2002, 03:19 PM
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Location: Pittsburgh
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried using your forumhome template, and the avatar shows up just fine on mine. I would check your code in index.php
Reply With Quote
  #194  
Old 04-09-2002, 01:29 PM
LilleMartin's Avatar
LilleMartin LilleMartin is offline
 
Join Date: Jan 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #195  
Old 04-09-2002, 01:32 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

rofl
Reply With Quote
  #196  
Old 04-09-2002, 02:42 PM
pHAZE_1 pHAZE_1 is offline
 
Join Date: Mar 2002
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for some reason it didnt work for bout 2 days, but all of a sudden boom theres my avatar. lol
Reply With Quote
  #197  
Old 04-11-2002, 06:54 PM
Rcooper Rcooper is offline
 
Join Date: Nov 2001
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack Thanks!
Reply With Quote
  #198  
Old 04-11-2002, 07:41 PM
99SIVTEC 99SIVTEC is offline
 
Join Date: Nov 2001
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #199  
Old 04-12-2002, 02:39 PM
Rick Rick is offline
 
Join Date: Nov 2001
Location: Wittmann, AZ
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #200  
Old 04-12-2002, 03:01 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #201  
Old 04-13-2002, 10:39 PM
Frenck's Avatar
Frenck Frenck is offline
 
Join Date: Dec 2001
Location: Hengelo, The Netherlands
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!!
Reply With Quote
Reply


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 04:07 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.05075 seconds
  • Memory Usage 2,314KB
  • 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
  • (1)bbcode_code
  • (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
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)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