Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[release] Kousetsu welcome panel (includes hackless avatar on homepage!) Details »»
[release] Kousetsu welcome panel (includes hackless avatar on homepage!)
Version: 1.00, by Brad Brad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 12-01-2002 Last Update: Never Installs: 0
 
No support by the author.

Kousetsu Welcome Panel
|- because every hacker needs to release at least one .



This modification adds a new table to your index.php, its ment to welcome the user/guest and make everything look neater on forumhome. Check out the Screenshots in the next two post for a preview or view Kousetsu

This modification also includes a hackless verson of fireflys Avatar on homepage hack.

Ive used this on 2.2.5 rc - 2.2.9 final with no problems, all install docs and images in zip. If you use this please click the Install button in this thread, thank you.

Add-on's:

since your last visit XX posts and XX threads - By Anime-loo

Show Your Support

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

Comments
  #2  
Old 12-01-2002, 11:03 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshot of welcome panel when user is logged out/guest hits index.php
Reply With Quote
  #3  
Old 12-01-2002, 11:04 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When user logged in they see this:
Reply With Quote
  #4  
Old 12-01-2002, 11:06 PM
CannonFodder's Avatar
CannonFodder CannonFodder is offline
 
Join Date: Jun 2002
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i like it, i`ll have to try it out
Reply With Quote
  #5  
Old 12-01-2002, 11:12 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm shocked, AL! After that discussion there's still no [release] or header in the post!

Looks nice
Reply With Quote
  #6  
Old 12-01-2002, 11:13 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was just about to add that myself, cooking and posting a modification at the same time makes you forget some things .
Reply With Quote
  #7  
Old 12-01-2002, 11:24 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*crash* Agh! I got boiling water on the keyboard again! *fire sounds*
Reply With Quote
  #8  
Old 12-02-2002, 02:57 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add-on: since your last visit XX posts and XX threads

This modification will add the amount of new post/threads in the welcome panel. Be aware this adds 2 queries to index.php and they are processer intensive. Ive released this modification in stand alone format here.


Install doc: (welcome panel must be installed frist)

---------------------------------------
Open the phpinclude template
---------------------------------------

## find

if (strpos($_SERVER['PHP_SELF'], 'index.php') != false)
{
if ($bbuserinfo[userid]!=0) {
$avatarurl=getavatarurl($bbuserinfo[userid]);
if ($avatarurl=='') {
$avatarurl='images/noavatar.gif';
}
$avatarimage='<img src="'.$avatarurl.'">';
} else {
$avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/guestavatar.gif"></a>';
}
}

## Replace with:

if (strpos($_SERVER['PHP_SELF'], 'index.php') != false)
{
if ($bbuserinfo[userid]!=0) {
$avatarurl=getavatarurl($bbuserinfo[userid]);
if ($avatarurl=='') {
$avatarurl='images/noavatar.gif';
}
$avatarimage='<img src="'.$avatarurl.'">';
} else {
$avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/guestavatar.gif"></a>';
}
// Start new threads/posts
$loonewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]'");
$loonewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'");
}

---------------------------------------------------
Open template forumhome_welcometext
---------------------------------------------------

## Find:

You last visited: $bbuserinfo[lastvisitdate].<br>

## Replace with:

You last visited: $bbuserinfo[lastvisitdate].<br />There have been <b>$loonewthread[threads]</b> threads and <b>$loonewpost[posts]</b> posts since your last visit!<br />

////////
add-on installed
///////

Screenshot
Reply With Quote
  #9  
Old 12-02-2002, 03:12 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, I'll create an add-on for it soon.
Reply With Quote
  #10  
Old 12-05-2002, 02:06 AM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They since last visit add-on is nice. Too bad it requires a nasty index on the dateline field to be usable on large forums. I added this to SitePoint and the query for this alone added two seconds to the processing time.
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 02:04 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.06104 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
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)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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