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 Details »»
vBindex
Version: 1.00, by el3m3nt el3m3nt is offline
Developer Last Online: Oct 2002 Show Printable Version Email this Page

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

Latest Version: 1.3

This hack is not very special for me. I just wanted to create a mainpage on which you can see.. (as a member) everything what u like to see. The idea of the script is similar to the vbHome of nakkid and also a little bit to the vBPortal. I tested all of them.. but i was looking for something better . so i decided to write such a script myself...

Features:
  • Active threads & newest posts
  • News & Polls (read from a newsforum and a pollforum)
  • Quick CP Links on the index-site
  • Buddies on the index-site
  • Very easy to customize. Just edit the templates!
  • Available in english and german!
Summary: On this index-site you can see everything what you as a member would like to see .

Demo-Sites:Screenshot 1: http://partylife.ch/misc/vbindex1.jpg // the original version and arrangement of the tables.
Screenshot 2: http://partylife.ch/misc/vbindex2.jpg // the nav on the right side.
Screenshot 3: http://partylife.ch/misc/vbindex3.jpg // or if u like 2 navs, left & right
Screenshot 4: http://partylife.ch/misc/vbindex4.jpg // another screen
Screenshot 5: http://partylife.ch/misc/vbindex5.jpg // buddies etc.


Installation
All instructions can you find in the readme.english/german.txt


Download
vBindex 1.3: http://partylife.ch/misc/vBindex1.3.zip
vBindex with Link-DB Script (Link-Script by The_Sisko; Integration of the Link-Script in vBindex by KarateKid): http://www.kampfkunst-board.de/sonst...tabasehack.rar


Credits
Newscode part from vBHome by nakkid.
Onlinetodaycode part from Online Today Hack by Mystics.
Pollcode part from vBPortal by wajones.


Note!
I'd really like to get every feedback you guys can give me. Also post bugreports and suggestions to improve this script. If you have installed this hack, pls click on the install button to receive updates thru email. Thank you .

Show Your Support

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

Comments
  #227  
Old 04-23-2002, 10:00 AM
el3m3nt's Avatar
el3m3nt el3m3nt is offline
 
Join Date: Jan 2002
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

jap i noticed that .

the following counts the posts (of the new posts and the posts in the last 24 hours)
Code:
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline>'$bbuserinfo[lastvisit]'");
$getdailypost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline>=".(time() - (24 * 60 *60 * $days)));
you can also count the new threads if you want..
Code:
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM thread WHERE dateline>'$bbuserinfo[lastvisit]'");
$getdailypost=$DB_site->query_first("SELECT count(*) AS posts FROM thread WHERE dateline>=".(time() - (24 * 60 *60 * $days)));
or another possibility.. count the threads ordered by last post
Code:
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM thread WHERE lastpost>'$bbuserinfo[lastvisit]'");
$getdailypost=$DB_site->query_first("SELECT count(*) AS posts FROM thread WHERE lastpost>=".(time() - (24 * 60 *60 * $days)));
Note: i didnt tested all queries.. pls ask if you get any errors .
Reply With Quote
  #228  
Old 04-25-2002, 09:22 AM
Esorcista Esorcista is offline
 
Join Date: Apr 2002
Location: Italy
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where should i go to translate this menu?
I didn't find any template..
Tnx
Reply With Quote
  #229  
Old 04-25-2002, 10:47 AM
el3m3nt's Avatar
el3m3nt el3m3nt is offline
 
Join Date: Jan 2002
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

template 'home_logout'
Reply With Quote
  #230  
Old 04-25-2002, 04:45 PM
Juanito Juanito is offline
 
Join Date: Feb 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still searching to solve this problem, any help please?

Quote:
Quote:
Originally posted by el3m3nt
1- you mean the threads display of the latest threads? in v1.3 of vbindex you can only see these threads on the index-site which you have permission to see.


2- nope, no problem . add anywhere in the index-file (but before the output of the home-template)!

PHP Code:
$forumid='forumid of the specific forum';
$limit=5;
$query $DB_site->query("SELECT threadid,title FROM thread WHERE visible=1 AND forumid='$forumid' order by lastpost desc limit $limit");

while (
$last5array $DB_site->fetch_array($query)) {
  
$threadid=$last5array[threadid];
  
$threadtitle=$last5array[title];

  
$last5.='<a href=\"showthread.php?s=$session[sessionhash]&threadid=$threadid\">$threadtitle</a><br>';

now just add the variable $last5 anywhere in the right or left-template.
I applyed this code as mentioned to me by el3m3nt to help me displaying the last 5 threads of a specific forum and I got this result, it seems the info is not processed or something:

$threadtitle
$threadtitle
$threadtitle
$threadtitle
$threadtitle

Is there something I do wrong or soething is missing? Any idea anyone?

Thanks!
Reply With Quote
  #231  
Old 04-25-2002, 10:35 PM
indiamike's Avatar
indiamike indiamike is offline
 
Join Date: Oct 2001
Location: New Jersey, India
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I haven't read through this whole thread so maybe my problem with this has been solved already.

But here we go. I installed this hack and am testing it out, and the problem that I run into is that it changes my database for the "most users ever online". Every time I mess with the hack it resets mysql table back to the amount that was online today only.

Is there anyway I can go back and revert, or should I just dump the table and insert a new one.

Does this hack change that table in anyway?

Mike

I hope this makes sense.
Reply With Quote
  #232  
Old 04-25-2002, 11:06 PM
Juanito Juanito is offline
 
Join Date: Feb 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Had this issue too, but I don't know how to fix it so I've removed the max users display...
Reply With Quote
  #233  
Old 04-26-2002, 08:16 AM
wintz wintz is offline
 
Join Date: Mar 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah i have the same thing with the most users every online, i would love to know how to fix/repair this. Thanks
Reply With Quote
  #234  
Old 04-26-2002, 03:25 PM
el3m3nt's Avatar
el3m3nt el3m3nt is offline
 
Join Date: Jan 2002
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ehm.. i'm not sure.. and i didnt test it..
just delete this part...

Code:
  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;
  }
Reply With Quote
  #235  
Old 04-26-2002, 06:18 PM
wintz wintz is offline
 
Join Date: Mar 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok thanks, i`ll give it a shot
Reply With Quote
  #236  
Old 04-26-2002, 08:39 PM
indiamike's Avatar
indiamike indiamike is offline
 
Join Date: Oct 2001
Location: New Jersey, India
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm...something is awry...the fix didn't work for me.

This is what happens, I have the php file loaded up for test purposes until I figure all of it out. It is named newindex.php just for ease of use (I haven't really messed with it since installing it). If I go to my forum the number "Most users ever online" works and functions like it should.

If I pull up the newindex.php it resets the "most users ever online" back to one (or however many are online at that time). I don't click anything it just changes on the load.

I followed the instructions you left above but it didn't seem to cure it.

Any other suggestions?

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

Well I've modded my file to see how it goes, I'll yet everyone know if it works, this is one thing that has really bugged me since installing vBindex
Reply With Quote
  #238  
Old 04-27-2002, 05:49 AM
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 el3m3nt
Code:
  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;
  }
Well I have removed this code and it hasn't worked for me either, has this fixed the problem for anyone else?
Reply With Quote
  #239  
Old 04-27-2002, 07:15 AM
wintz wintz is offline
 
Join Date: Mar 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also removed the code but it didn`t work for me either
Reply With Quote
  #240  
Old 04-27-2002, 09:55 AM
-=dm=- -=dm=- is offline
 
Join Date: Nov 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Juanito
Had this issue too, but I don't know how to fix it so I've removed the max users display...
Me and NTLDR did the same, we removed it too
Reply With Quote
  #241  
Old 04-27-2002, 06:24 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I have removed the folloing code from the file and at the moment it seems to be working correctly.

Either remove (or comment out each line with // ):
PHP Code:
// today online hack by Mystics - start
  
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;
  }
//today online hack by Mystics - end 
The downside to this is that you can't display the number of registered users logged in today on the vBindex page, so you also need to remove (or comment out):

Code:
<a href="online.php?s=$session[sessionhash]">Online Today</a>: <b>$todayonline</b><br>
From the template home_left

Let me know if this works for you, it seems to for me at the moment
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 05:52 AM.


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.05871 seconds
  • Memory Usage 2,385KB
  • Queries Executed 30 (?)
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
  • (6)bbcode_code
  • (2)bbcode_php
  • (4)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
  • (2)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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