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
vBindex v2.1 Details »»
vBindex v2.1
Version: 1.00, by NTLDR (Coder) NTLDR is offline
Developer Last Online: Oct 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-04-2002 Last Update: Never Installs: 404
 
No support by the author.

[HIGH]vBindex v2.1[/HIGH]

This hack is **NOT** to be re-distributed or placed on website for download unless I give express permission.

Please read this post and the thread before asking questions. You may find that you question has already been answered. I will ignore posts which ask questions that have been asked several times already.

[HIGH]Latest Stable Version: 2.1[/HIGH]

Latest Avalible Version: 2.1 Final

[high]Using vB3?[/high]

Get vBindex 3.0.0 for vB3 Gamma/RC1 and above!


Version 1.x of this hack was done by el3m3nt, since then there have been many updates and fixes and as e3l3mnt is no longer updating this hack he has given me permission to re-release it (see Permisson.txt in the zip).

[HIGH]Features[/HIGH]
  • Latest Threads;
  • News & Polls (taken from a specified news and a poll forum), with vBcode, Smilies and news posters avatar;
  • Quick User CP Links in the menu when logged in;
  • Shows online and offline buddies when logged in;
  • Very easy to customize, just edit/add templates;
  • Intergtared Welcome Panel;
  • Capable of operating a multi-paged site;
  • Usergroup based viewing permissions;
  • Will work 100% outside of your forums directory;
  • [HIGH]*NEW*[/HIGH] Fully integrated into the Admin CP, change all options there!
  • [HIGH]*NEW*[/HIGH] Fully integrated Shoutbox (this hack is a prerequsit);
  • [HIGH]*NEW*[/HIGH] Limit the length of news posts;
  • [HIGH]*NEW*[/HIGH] Reduced queries and cleaner code;
  • [HIGH]*NEW*[/HIGH] Switch vBindex on and off via the CP.

[HIGH]Demo Site[/HIGH]

A standard demo of vBindex can be found here:

Currently Offline.

A customised demo of vBindex can also be found here:

Currently Offline.

[HIGH]Screenshots From v2.1[/HIGH]

vBindex Home Page
vBindex ACP Options
vBindex Usergroup Options
vBindex Update Counters

[HIGH]vBindex v2.1 Information[/HIGH]

[HIGH]Installation/Upgrade[/HIGH]

Upload vbi_install.php and select the relevent options.
If you wish to use the shoutbox then this hack is a prerequsit, and needs to be installed first, however if you do not require the shoutbox option disable it in the ACP, otherwise you will get DB errors.

[HIGH]Latest Bug Fixes[/HIGH]

None.

[HIGH]Download[/HIGH]

See the attachment on this post.

[HIGH]Credits[/HIGH]

vBindex 1.x by el3m3nt
Shoutbox by TWTCommish
Welcome Panel by trilOByte
News Code based on code by TECK
Poll PHP from vBPortal by wajones

[HIGH]Feature Requests[/HIGH]

If you have any requests for new features please post them in this thread and I will consider integrating them / creating an addon.

[HIGH]Addons[/HIGH]

I will support all addons for vBindex v2 that are either posted by myself or are included in the distribution zip file unless otherwise stated. I cannot guarentee that I can provide support on any other addons.

[HIGH]Support/Feekback[/HIGH]

Please provide me with any feekback you have on this hack, I will be continuing to support this hack here only, unless otherwise arranged. Should you have a question about this hack, please post it in this thread. Support will not be given via PM, Email or IM unless arranged, you will just be ignored.

Please click on the [HIGH]install[/HIGH] button if you use this hack.

French templates have been made for v2.0.1 (Note: vBindex 2.0.1 is no longer avalible), see this post for details.

Show Your Support

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

Comments
  #632  
Old 10-06-2002, 02:53 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You did...

This is because NTLDR did not include an Auto-Installer, meaning your home_shoutbox template would be a Custom Template, rather than a vBindex template

Satan
Reply With Quote
  #633  
Old 10-06-2002, 03:34 PM
groovesalad groovesalad is offline
 
Join Date: Aug 2002
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, so I was supposed to make a custom template and call it home_shoutbox?

If so, where do I find the html code that goes in that template?
Reply With Quote
  #634  
Old 10-06-2002, 04:27 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It should be in the Templates folder

Satan
Reply With Quote
  #635  
Old 10-06-2002, 06:03 PM
groovesalad groovesalad is offline
 
Join Date: Aug 2002
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, weird. I don't have that.
Reply With Quote
  #636  
Old 10-06-2002, 06:34 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh...

Try Re-downloading the file

Satan
Reply With Quote
  #637  
Old 10-06-2002, 07:22 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by groovesalad
Hmm, weird. I don't have that.
The shoutbox is only included in vBindex 2.1 RC1 and later releases, if you have installed 2.0.1 then you don't have the shoutbox code.
Reply With Quote
  #638  
Old 10-08-2002, 10:55 PM
Till Till is offline
 
Join Date: May 2002
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack uses still 35 queries if all options are turned on?!

Just curious.

Thanks,
Till
Reply With Quote
  #639  
Old 10-08-2002, 11:25 PM
groovesalad groovesalad is offline
 
Join Date: Aug 2002
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Man, I can't get vbindex 2.0.1 to install correctly and I definitely can't get 2.1 to install correctly. How do I uninstall everything and just start over?
Reply With Quote
  #640  
Old 10-09-2002, 05:02 AM
digitalJE5U5 digitalJE5U5 is offline
 
Join Date: Sep 2002
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack!

I've got the page up and running, but one problem? The only image that loads on my vbindex.php page is my avatar. All the others lare pointing to the wrong DIR.

Ive installed this vbindex.php file in my base DIR and the forums are in base folder/vbulletin .

Any ideas?


Thanks alot!
/DJ

P.S.
I could not find this in the admin/template.php:
PHP Code:
$only[\'showgroup\'] = \'Show Groups\'; 
So i could NOT replace it with
PHP Code:
$only[\'home\'] = \'vBindex\'; 
Is this the reason for my error??

I tried just adding the "$only[\'show...." but it messed things up.

Dunno
:tired:
Reply With Quote
  #641  
Old 10-09-2002, 05:41 AM
Kohhal's Avatar
Kohhal Kohhal is offline
 
Join Date: Feb 2002
Location: Dublin, Ireland
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First off, great hack

I'm running v2.1 RC1 with vBulletin 2.2.2 successfully for the past week but just noticed one problem today, the "Most users ever online" is getting overwritten from vbIndex somehow.

I've noticed some duplication between what's in my "Original vBulletin code" section and the "Users online today" section which may or may not be causing the problem. It could be because my original code is from v2.2.2 and maybe I should delete some or all of the maxloggedin code?

PHP Code:
// start vBulletin original code
// -------------------------
$activeusers "";
$loggedinusers "";
if (
$displayloggedin) {
  
$datecut=time()-$cookietimeout;

  
$loggedins=$DB_site->query_first("SELECT COUNT(*) AS sessions FROM session WHERE userid=0 AND lastactivity>$datecut");
  
$numberguest=$loggedins['sessions'];

  
$numbervisible=0;
  
$numberregistered=0;

  
$loggedins=$DB_site->query("SELECT DISTINCT session.userid,username,invisible,usergroupid
                              FROM session
                              LEFT JOIN user ON (user.userid=session.userid)
                              WHERE session.userid>0 AND session.lastactivity>
$datecut
                              ORDER BY invisible ASC, username ASC"
);
  if (
$loggedin=$DB_site->fetch_array($loggedins)) {
    
$numberregistered++;
    if (
$loggedin['invisible']==or $bbuserinfo['usergroupid']==6) {
      
$numbervisible++;
      
$userid $loggedin['userid'];
      if (
$loggedin['invisible'] == 1) { // Invisible User but show to Admin
        
$invisibleuser '*';
      } else {
        
$invisibleuser '';
      }
      if (
$loggedin['usergroupid'] == and $highlightadmin) {
          
$username "<b><i>$loggedin[username]</i></b>";
      } else if ((
$mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
          
$username "<b>$loggedin[username]</b>";
      } else {
        
$username $loggedin['username'];
      }
      eval(
"\$activeusers = "".gettemplate('forumhome_loggedinuser')."";");
    }

    while (
$loggedin=$DB_site->fetch_array($loggedins)) {
      
$numberregistered++;
      
$invisibleuser '';
      if (
$loggedin['invisible']==and $bbuserinfo['usergroupid']!=6) {
        continue;
      }
      
$numbervisible++;
      
$userid=$loggedin['userid'];
      if (
$loggedin['invisible'] == 1) { // Invisible User but show to Admin
        
$invisibleuser '*';
      }
      if (
$loggedin['usergroupid'] == and $highlightadmin) {
        
$username "<b><i>$loggedin[username]</i></b>";
      } else if ((
$mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
           
$username "<b>$loggedin[username]</b>";
      } else {
        
$username $loggedin['username'];
      }
      eval(
"\$activeusers .= ", ".gettemplate('forumhome_loggedinuser')."";");
    }
  }
  
$DB_site->free_result($loggedins);

  
$totalonline=$numberregistered+$numberguest;
  
$numberinvisible=$numberregistered-$numbervisible;

  
$maxusers=explode(" "gettemplate('maxloggedin',0,0));
  if ((int)
$maxusers[0] <= $totalonline) {
    
$time time();
    
$maxloggedin "$totalonline " $time;
    
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
    
$maxusers[0] = $totalonline;
    
$maxusers[1] = $time;
  }
  
$recordusers $maxusers[0];
  
$recorddate vbdate($dateformat,$maxusers[1]);
  
$recordtime vbdate($timeformat,$maxusers[1]);
  eval(
"\$loggedinusers = "".gettemplate('forumhome_loggedinusers')."";");
}
// -------------------------
// end vBulletin original code

// users online today by Mystics
// -------------------------
  
if ((int)$maxusers[0] <= $totalonline) {
    
$time time();
    
$maxloggedin "$totalonline " $time " " $maxusers[2] . " " $maxusers[3];
    
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
    
$maxusers[0] = $totalonline;
    
$maxusers[1] = $time;
  }

  
$todayloggedinusers "";
  
$numbertodayonline 0;
  
$numbertodayonlineinvisible 0;

  
$todayusers=$DB_site->query("SELECT userid, username, usergroupid, lastactivity, invisible FROM user
                WHERE lastactivity > " 
mktime(0,0,0,date("m"),date("d"),date("Y")) . "
                ORDER BY username"
);
  while (
$todayuser=$DB_site->fetch_array($todayusers)) {
    
$numbertodayonline++;
    if (
$todayuser['invisible']==and $bbuserinfo['usergroupid']!=6) {
      
$numbertodayonlineinvisible++;
      continue;
    }
  }

  
$DB_site->free_result($todayusers);

  if (
$bbuserinfo[usergroupid] == 6) {
    
$todayonline $numbertodayonline;
  } else {
    
$todayonline $numbertodayonline $numbertodayonlineinvisible;
  }
// -------------------------
// end users online today 
As you can see the UPDATE query for maxloggedin is duplicated so I know something's definetly wrong here. I found a thread on vBulletin.com which seems to indicate the problem is with this hack.
So should I remove some or all of the maxloggedin code? From both sections or just the "original code" part?

Thanks and once again, great hack :classic:
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 09:15 AM.


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.10410 seconds
  • Memory Usage 2,378KB
  • 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
  • (3)bbcode_php
  • (1)bbcode_quote
  • (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
  • (4)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