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
  #222  
Old 04-21-2002, 07:43 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 hkim
I think I got it....I should problably change the variable in forumdisplay.php?

// jump from forumjump
$goto = '';
switch($forumid) {
case 'home': $goto = 'index'; break;

to

// jump from forumjump
$goto = '';
switch($forumid) {
case 'home': $goto = 'home'; break;
I don't think that will work, I think you need to change where index points to, what file was this in?
Reply With Quote
  #223  
Old 04-21-2002, 08:02 PM
hkim hkim is offline
 
Join Date: Apr 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well it seems to work after I made the change. For me it seems to be logical to point the jump string to home, since the forum listing declared by vbulletin index is name home.php now...but here is how my files are organized:

vbulletin index.php --> vbulletin/home.php
vbindex index.php --> vbulletin/index.php

If you got time, I got another question as well:

How do I use the home-templates in for example the default template for forum display? Do I have to define $templatesused in the beginning of forumdisplay.php?
Reply With Quote
  #224  
Old 04-21-2002, 11:05 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was just a guess based on the snipit of text

To use say home_left in the forum listing you would need to make sure that the templates were defined. I'm not 100% sure what screen you wanted it on, if u wanted it on the forums home (the origional index.php) and in the Forum display (forumdisplay.php) then you need to define it in global.php

Which specific screen(s) did u want it on? Either a screenshot or the name of the .php file that appears in the browser would be best
Reply With Quote
  #225  
Old 04-22-2002, 03:10 AM
Juanito Juanito is offline
 
Join Date: Feb 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #226  
Old 04-22-2002, 05:32 PM
wintz wintz is offline
 
Join Date: Mar 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by -=dm=-
Hi el3m3nt
Im back
I have litle problem with the vBindex
its the left block, I dont understand
? New posts [ 22 ] this should be 17
? Posts today [ 17 this should be 22
this is strange I didnt change the original code.
can you please help me?
Yeah i`m having the same problem with the New posts and Posts today counts, anyone know how to fix this? thanks
Reply With Quote
  #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
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 01:32 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.05483 seconds
  • Memory Usage 2,345KB
  • 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_code
  • (2)bbcode_php
  • (5)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
  • (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