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

 
 
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
  #1152  
Old 12-04-2002, 10:22 PM
-=dm=- -=dm=- is offline
 
Join Date: Nov 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great worked perfect

what about those thread icons are they gone in this version or is there still a way to add these? (currently icons are not displayed instead a "6")

this apears 3 times in the misc.php do I have to add the code 3 times.

thanx

doformfooter("Update");
Reply With Quote
  #1153  
Old 12-04-2002, 10:37 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Icons don't appear for the threads in this one, use $latestthread[iconid] which should give you the ID for the icon and change add the HTML from the old version with that variable in it.
Reply With Quote
  #1154  
Old 12-04-2002, 10:59 PM
-=dm=- -=dm=- is offline
 
Join Date: Nov 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in my old vBindex.php I have this line:

PHP Code:
if ($latestthread['iconid']==0) { $icon=""; } else { $icon="<img src="{*imagesfolder}/icons/icon$latestthread[iconid].gif" border=0>"; } 
in threadbit template:
Code:
<td bgcolor="$threadbg" align="center">$icon</td>
but I dont know where to insert this code in the new vBindex.php


[EDIT]
an another thing,
for some strange reason it shows "Last post 01-01-1970 by username"
Reply With Quote
  #1155  
Old 12-05-2002, 01:15 AM
Ryan McBain's Avatar
Ryan McBain Ryan McBain is offline
 
Join Date: Feb 2002
Location: Earth
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok i have everything installed, but I want to have it some the user login, and the 5 most recent threads show on my main page at http://www.ryanmcbain.com what do I have to do to make this happen?
Reply With Quote
  #1156  
Old 12-05-2002, 07:16 AM
Kohhal's Avatar
Kohhal Kohhal is offline
 
Join Date: Feb 2002
Location: Dublin, Ireland
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by NTLDR
The WOL will work correctly, for one file of each name. When looking at the homepage your localtion is set as / which is determined to be the Forum Home Page.
Hmmm, so basically the way I described it working is the only way it will work ie. unless vbindex.php is in the address bar it won't show it correctly because of the "/" being regarded as forum home?

Nuts

Is there any way around this?
Reply With Quote
  #1157  
Old 12-05-2002, 11:06 AM
-=dm=- -=dm=- is offline
 
Join Date: Nov 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok fixed
replaced:
PHP Code:
while ($latestthread $DB_site->fetch_array($threadsquery)) {

        
$title unhtmlspecialchars($latestthread['title']);
        
$starter $latestthread['postusername'];
        
$numreplies $latestthread['replycount'];
        
$lastposter $latestthread['lastposter'];
        
$mpostid$latestpost['postid'];
        
$postdate=vbdate($dateformat,$latestpost[dateline]);
        
$posttime=vbdate($timeformat,$latestpost[dateline]);
        
$postforum=$latestthread['title'];
        
$postforumid=$latestthread['forumid'];

        
$gothreadid $latestthread['threadid'];
        if ((
$counter++ % 2) != 0) {
        
$threadbg="#F1F1F1";
        } else {
        
$threadbg="#DFDFDF";
        }
        eval(
"\$threadbits .= "".gettemplate('home_threadbit')."";");
    }
eval(
"\$threads = "".gettemplate('home_threads')."";");

with this
PHP Code:
            while ($latestthread $DB_site->fetch_array($threadsquery)) {
            
$result1 $DB_site->query("SELECT postid,dateline,pagetext FROM post WHERE threadid='$latestthread[threadid]' order by dateline desc limit 1");
            
$latestpost $DB_site->fetch_array($result1);
            
$result2 $DB_site->query("SELECT title FROM forum WHERE forumid='$latestthread[forumid]' limit 1");
            
$latestforum $DB_site->fetch_array($result2);

            
$title $latestthread['title'];
            
$starter $latestthread['postusername'];
            
$numreplies $latestthread['replycount'];
            
$lastposter $latestthread['lastposter'];
            
$mpostid$latestpost['postid'];
            
$postdate=vbdate($dateformat,$latestpost[dateline]);
            
$posttime=vbdate($timeformat,$latestpost[dateline]);
            
$postforum=$latestforum['title'];
            
$postforumid=$latestthread['forumid'];

            if (
$latestthread['iconid']==0) { $icon=""; } else { $icon="<img src="https://vborg.vbsupport.ru/vbimages/icons/icon$latestthread[iconid].gif" border=0>"; }

            
$gothreadid $latestthread['threadid'];
            if ((
$counter++ % 2) != 0) {
                
$threadbg="#F1F1F1";
            } else {
                
$threadbg="#DFDFDF";
            }

            eval(
"\$threadbits .= "".gettemplate('home_threadbit')."";");
        }
}

eval(
"\$threads = "".gettemplate('home_threads')."";"); 
I added this code from the old vBindex now its working.

but I have still the news problem.
Reply With Quote
  #1158  
Old 12-05-2002, 12:11 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 TheMasterG
Is there any way around this?
My index.php is just a standard redirect that points to vbindex.php so I can see exactly where they are:

PHP Code:
<?php
error_reporting
(7);

require(
'./global.php');

eval(
"standardredirect("".gettemplate("redirect_vbindex")."","vbindex.php?s=$session[sessionhash]");");

?>
Create a template called redirect_vbindex and add a redirection message to it.
Reply With Quote
  #1159  
Old 12-05-2002, 12:14 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 -=dm=-
I added this code from the old vBindex now its working.
I suggest that no one uses this as it will use 2 queries for each thread, and a base query, compared to the v2.1 code which uses 1 in total. For 5 threads thats a saving of 10 queries.
Reply With Quote
  #1160  
Old 12-05-2002, 12:38 PM
-=dm=- -=dm=- is offline
 
Join Date: Nov 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but I couldnt get it to work with the other code
Reply With Quote
  #1161  
Old 12-05-2002, 03:45 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 -=dm=-
but I couldnt get it to work with the other code
Just add this part in the while loop:

PHP Code:
if ($latestthread['iconid']==0) { 
    
$icon="";
} else { 
    
$icon="<img src="{*imagesfolder}/icons/icon$latestthread[iconid].gif" border=0>"

Reply With Quote
 


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 03:12 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.05757 seconds
  • Memory Usage 2,357KB
  • 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
  • (5)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
  • (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