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
  #1062  
Old 11-07-2002, 08:41 PM
jazza's Avatar
jazza jazza is offline
 
Join Date: Jan 2002
Location: Manchester, UK
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol, im so dumb, anyway, i couldnt find all the files, altho its roly just me bein thik, so im givin up, cheers for the help anyway
Reply With Quote
  #1063  
Old 11-07-2002, 10:07 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Every file thats required is in the Zip along with step by step instructions. All anyone has to do is read them to be able to install this hack.
Reply With Quote
  #1064  
Old 11-07-2002, 10:07 PM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the installer did something really weird:

i had it update my 2.01 installation.
it added the new database field fine, but when it came to the templates, it did the following:

it added my modified templates again. every template doubled, with even the same templatesetid.

i had to do a
delete from template where title like 'home_%'
and reinstall the default templates with your installer...

just fyi

kreftt

edit: and btw, its the best portal solution ive seen so far, and as firefly doesnt answer emails on how to pay for his vportal, it will most likely stay the best

edit2: is there any chance you could attach the 2.01 templates again to have araxis merge tell me the changes? i have heavily modified my templates (and translated) and wouldnt really like to do everything again.

tia

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

Strange, it should delete all your templates first.

Thanks for the comments, its nice to know that the work thats gone in has been apriciated.

I've attached a copy of the only set of v2.0.1 templates that I have in a zip (Note, they all start vbidemo_ but they are the same as the home_ ones were )
Reply With Quote
  #1066  
Old 11-07-2002, 10:18 PM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it cant delete the old ones:

your file says:

PHP Code:
if ($step==install or $step==upgrade201) {

[
unneccessary for the explanation]

$step=templates;


while its should say

PHP Code:
if ($step==install) {

[
unneccessary for the explanation]

$step=templates;


AND

PHP Code:
if ($step==upgrade201) {

[
unneccessary for the explanation]

$step=cleantemplates;


at least as i understand it...

thanks for the templates
Reply With Quote
  #1067  
Old 11-08-2002, 02:17 PM
lemarsu's Avatar
lemarsu lemarsu is offline
 
Join Date: Aug 2002
Location: .eu
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NTLDR

I would like to say thank you for all you help and sorry for all the stupid questions I have posted up in the last few months as I was learning about php and Vbulletin.
The users of the forum love your vbindex and the integration of the shoutbox. (why don’t you do a similar addition with the weather?)
I would really like to thank you for the addition of being able control vbindex via the Admin CP.

I would like to add this is a great hack!.

Got to go and pretend I am working while I trying to add one more piece of functionality.

Thanks

LeMarsu
Reply With Quote
  #1068  
Old 11-08-2002, 02:31 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 lemarsu
NTLDR
(why don?t you do a similar addition with the weather?)
I may post up some tutorials on how to add some other popular things to vBindex. The problem with adding them in by default is that I don't want to bundle up a set of hacks and then make it look like they are mine.

Thanks for the comments and feedback
Reply With Quote
  #1069  
Old 11-08-2002, 03:05 PM
Buddha Buddha is offline
 
Join Date: Jan 2002
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fyi ntldr, the same thing happened with me when i tried to upgrade from 2.01 wherein it just doubled all the home_ templates. i just deleted them all with your installer and reinstalled them and it was fine.
i just thought that was a step in the instructions that must have been missing.

btw, the new theme's going great. you designed vbindex in such a way that moving things around is a breeze.
thanks bud.
Reply With Quote
  #1070  
Old 11-08-2002, 03:06 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I shall look into that for v2.2 if I ever do it

I'm looking forward to seeing your site Buddha, it sounds impressive
Reply With Quote
  #1071  
Old 11-09-2002, 04:03 AM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for those who have the problem with their bbcodes breaking in pieces when characterlimit is reached:

i think i found a solution, which allows the following things:

-have admins post html
-have the "read more" whether the post is over the limit or not
-have the post cut itself in front of a bbcode that would be cut in half by the character limit
-have the post cut itself in front of a html tag that would be cut in half by the character limit
-have the news post follow the "use smilies" option that you set when you post the news

YOU MUST NOT

- use [ tags in your news posts except in bbcode

- use slashes inside html arguments. means you can do
Code:
<a href="http://ww.vbulletin.org/forum">vb.org</a>
but you cannot use
Code:
<a href="http://ww.vbulletin.org/forum">http://ww.vbulletin.org/forum</a>
you can use slashes in the rest of the post

what you need to do is to is to

1) backup your vbindex.php

2) replace the whole news section
(starting with:
Code:
// news (based on code by TECK)
and ending with
Code:
// end news
)

with the code below
from how i understand it there are no additional queries, and from how i understand it it was the first time i used all these functions so there might be errors. it works for me though.

PHP Code:
// news (based on code by TECK)
// has pieces of entourage's admin html allow hack
// -------------------------
if ($newsonoff!=0) {
// $newsquery=$newsquery=$DB_site->query("SELECT thread.*,threadpost.pagetext AS pagetext FROM thread LEFT JOIN post AS threadpost ON (thread.firstpostid = threadpost.postid) WHERE forumid = '$newsforum' ORDER BY thread.dateline DESC LIMIT $newsposts");
$newsquery=$newsquery=$DB_site->query("SELECT thread.*, user.usergroupid AS usergroupid, threadpost.pagetext AS pagetext, threadpost.allowsmilie AS allowsmilie FROM thread LEFT JOIN post AS threadpost ON (thread.firstpostid = threadpost.postid) LEFT JOIN user ON (thread.postuserid = user.userid) WHERE forumid = '$newsforum' ORDER BY thread.dateline DESC LIMIT $newsposts");
while (
$news=$DB_site->fetch_array($newsquery)) {
  
$newsthreadid=$news[threadid];
  
$newstitle=$news[title];
  
$newstime=vbdate($timeformat,$news[dateline]);
  
$newsdate=vbdate($dateformat,$news[dateline]);
  
$newsusername=$news[postusername];
  
$newsusergroupid=$news[usergroupid];
  
$newsallowsmilie=$news[allowsmilie];
  
$newsuserid=$news[postuserid];
  
$comments=$news[replycount];
  
$icon=$news[iconid];
  
// uncomment out next line to remove line breaks in the news
  //$newstext=str_replace("<br />","",$newstext);

$pagetext=$news['pagetext'];

// max news chars
if (strlen($pagetext) >= $maxnewschars) { 
                
$pagetext=substr($pagetext,0,$maxnewschars); 
    
$pagetext=substr($pagetext,0,strrpos($pagetext," ")); 
    
// does this post have bbcode?
    
$pos=strrpos($pagetext,"[");
        if (
$pos === false) {
            
// if no, then do nothing
        
} else {
            
// check the distance between the last / and the last [ of the post.
            // if its +1 we are outside bbcode and safe
            
$needle1="/";
            
$pos1=strlen($pagetext) - (strpos(strrev($pagetext), strrev($needle1)) + strlen($needle1));
            
$needle2="[";
            
$pos2=strlen($pagetext) - (strpos(strrev($pagetext), strrev($needle2)) + strlen($needle2));
            
$pos3 $pos1 $pos2;
                if (
$pos3 >= 1) {
                    
// we are outside bbcode
                
} else {
                    
// we are in bbcode, so we have cut it away
                    
$pagetext=substr($pagetext,0,strrpos($pagetext,"[")); 
                }
        }
    
//does this post have html ?
    
$posh=strrpos($pagetext,"<");
        if (
$posh === false) {
            
// if no, then do nothing
        
} else {
            
// check the distance between the last / and the last < of the post.
            // if its +1 we are outside html and safe
            
$needleh1="/";
            
$posh1=strlen($pagetext) - (strpos(strrev($pagetext), strrev($needleh1)) + strlen($needleh1));
            
$needleh2="<";
            
$posh2=strlen($pagetext) - (strpos(strrev($pagetext), strrev($needleh2)) + strlen($needleh2));
            
$needleh3=">";
            
$posh3=strlen($pagetext) - (strpos(strrev($pagetext), strrev($needleh3)) + strlen($needleh3));
            
$posh4 $posh1 $posh2;
            
$posh5 $posh1 $posh3;
                if (
$posh4 == 1) {
                    
// we are outside html
                
} elseif ($posh4 1) {
                    
// we are inside a html-tag, so we cut it away
                    
$pagetext=substr($pagetext,0,strrpos($pagetext,"<")); 
                } elseif (
$posh4 1) {
                        
// we could be everywhere if there are slashes in the post
                        
if ($posh5 $posh4) {
                            
// we are inside a tag as the way from the last / to the last <
                            // is shorter than the way to the last >, so we cut
                            
$pagetext=substr($pagetext,0,strrpos($pagetext,"<")); 
                        } else { 
                            
// we are right after a html tag as someone uses slashes in posts
                            // < is farer than > away, no need to do sth
                        
}
                }
        }

    
$pagetext=$pagetext." ..."
    
$readmore="<a href="$bburl/showthread.php?threadid=$newsthreadid">Read full post</a> - ";
} else {
    
$readmore="";
}
// end max newschars

if ($newsusergroupid == 6) {
$newstext=bbcodeparse2($pagetext,1,1,$newsallowsmilie,1);
} else {
$newstext=bbcodeparse($pagetext,$newsforum,$newsallowsmilie,1);
}


// get users avatar to display with news
if ($shownewsavatar!=0) {
$newsavatarurl2=getavatarurl($newsuserid);
  if (
$newsavatarurl2=='') {
    
$newsavatarurl="$bburl/https://vborg.vbsupport.ru/images/clear.gif";
  } else {
  
$newsavatarurl=''.$bburl.'/'.$newsavatarurl2.'';
  }
  eval(
"\$newsavatar = "".gettemplate('home_avatar')."";");
}
// end avatar
  
eval("\$newsbits .= "".gettemplate('home_newsbit')."";");
}
eval(
"\$news = "".gettemplate('home_news')."";");
}
// -------------------------
// end news 
and as this board here parses bbcode even in php-tags, you will need to replace the link $newsavatarurl with your own clear.gif, as it now leads to vbulletin.orgs clear.gif

feedback appreciated

kreftt
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:21 PM.


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.05731 seconds
  • Memory Usage 2,396KB
  • 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
  • (4)bbcode_code
  • (4)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
  • (5)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