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
  #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
  #1072  
Old 11-09-2002, 10:46 AM
Odil Odil is offline
 
Join Date: Apr 2002
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get the following code when viewing the vbindex page as a guest:

Warning: unexpected error in date() in C:\DDVBBoard\upload\admin\functions.php on line 1613

This is installed on 2.8 version. Do you have any idea how to fix this? Thanks.

Odil
Reply With Quote
  #1073  
Old 11-09-2002, 04:00 PM
bromyaur bromyaur is offline
 
Join Date: Jan 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my first post here lol, Ok I read the whole 72 pages last night and again today lol but dont see a fix, well the one I do isnt working on a permanent basis.

great hack by the way and thank you.

I installed it on my test forum and works perfectly.

Installed it on my real forum and works great too.However when I make a new news post the content doesnt show up. So I ran the set post id, then found the update counter addition and added that. It works for the new post I made. But then if I were to go add another news item today I would have to update the post id's again for the content to show.

Which is no big deal since I will be the only one entering new items anyway. I must have missed something though.So if you can point me in the right direction it would be appreciated.I am sure I never saw this in the 72 pages but who knows i may have missed it, if so ignore me lol

Here is my real forum, the news shows now since I updated the id's after I posted.

http://www.graphicsteck.ca/vb/vbindex.php?s=



Side note I am helping another person install his and he gets it installed fine, the templates are there but no link to the vbindex in the ACP
Reply With Quote
  #1074  
Old 11-09-2002, 06:40 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bromyaur, you haven't followed the instructions, you need to make the changes to newthread.php
Reply With Quote
  #1075  
Old 11-09-2002, 06:46 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 kreftt
-have the "read more" whether the post is over the limit or not
As the Comments (x) links to the thread I saw no point in having both there.

I will test this code out kreftt, can I add it to the next release, with full credit given of course?
Reply With Quote
  #1076  
Old 11-09-2002, 08:29 PM
bromyaur bromyaur is offline
 
Join Date: Jan 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh lolololololol

Sorry about that, thats what happens when you install it twice, and during the process are posting messages back and forth in another forum trying to help someone else install theirs while being very tired lol

Note to everyone..

Make sure you have more than 3 hours sleep when installing hacks.lolololol

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

*hehe* No Problem, we've all installed hacks real late or after getting no sleep, its not the best time
Reply With Quote
  #1078  
Old 11-09-2002, 11:37 PM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by NTLDR


As the Comments (x) links to the thread I saw no point in having both there.

I will test this code out kreftt, can I add it to the next release, with full credit given of course?
oh in case this works, id be honored if you did.

there is really no point in having a read more link, but the current vbindex always displays the link, as the condition is the existence of the maxnewschar-variable. so i thought it might be better to chage the condition, but in fact you are right: its useless.
Reply With Quote
  #1079  
Old 11-10-2002, 02:28 PM
Buddha Buddha is offline
 
Join Date: Jan 2002
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey bromyaur, i like the colors you've used on your site.

fyi, you need to change the color of the font in your polls template.

"votes: 2 100%" is white, on a white background, so you can't read it without highlighting it.

just in case you weren't already aware.

*edit*
also checked, and your shoutbox title is white on a white background. you may want to change that too, bud.

take care.
Reply With Quote
  #1080  
Old 11-10-2002, 03:09 PM
jmd jmd is offline
 
Join Date: Mar 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love the hack but for some reason I have a url location problem. I hope you can help with this.

Please keep the instructions simple and detailed LOL I?m not the best at doing this kind of stuff.

Thanks in advance

Joe





I recently installed vbindex 2.1 on my forum. Everything?s working fine except that the portal is located at http://www.myurl.com/vb/ instead of www.myurl.com

My forum is at http://www.myurl.com/vb/index.php How do I get my portal to view at www.myurl.com

and my forum to view at http://www.myurl.com/vb/index.php

I followed the instructions and put the vbindex.php in the vb directory but I can?t get it to view at the proper url




((I saw this on the instructions do I do something with this and if so what would I do .)))


If you intend to run vbindex from a directory other than the one your forums are in uncomment & set:

chdir('./path to forums');

to the path to your forums directory relitive to the directory vBindex is run from.





{{{Or do I need a redirect script and if so can you tell me what to put in it and were to}}} upload it. (im using cpanel if it helps to know)

Thank you for your help
Reply With Quote
  #1081  
Old 11-10-2002, 05:57 PM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you would move your vbindex.php to myurl.com

you rename it to index.php

then you change the line that you posted to:

chdir('./vb');

then you should be set...
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 07:16 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.11250 seconds
  • Memory Usage 2,436KB
  • 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
  • (4)bbcode_code
  • (1)bbcode_php
  • (3)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
  • (3)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