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
  #202  
Old 04-19-2002, 08:54 AM
indiamike's Avatar
indiamike indiamike is offline
 
Join Date: Oct 2001
Location: New Jersey, India
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by NTLDR
What is on, or around line 371 in newindex.php? And did you copy the code from an unhacked origional vBulletin index.php that is the same version as you use on your board?
Hmmm...I will check this over the weekend. Since I used a version that is on my forum, but the index is slightly hacked up. I will check there first and compare an old and new version and see if there is anything different.

Mike
Reply With Quote
  #203  
Old 04-19-2002, 09:00 AM
indiamike's Avatar
indiamike indiamike is offline
 
Join Date: Oct 2001
Location: New Jersey, India
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by hkim
This is probably totally newbie kind of question, but:

After installing vBindex 1.3 as instructed, I find myself with the fact that news and polls are not showing. I have created a forum calles newsforum and a forum called pollforum with normal permissions. Although the threads are viewing all right, I cannot view news or polls.

Any help will be appreciated.

Best regards,

Though I haven't sucessfully installed this hack yet, I would probably check the index.php that you uploaded from this hack. Did you change the variables in the first few lines to match up with the forum id numbers?

Quote:
// news forum
$newsforum=3;

// polls forum
$pollsforum=4;
These two numbers are generic numbers and should be changed to the value of that forum id.
I would check that first.

Mike
Reply With Quote
  #204  
Old 04-19-2002, 09:31 AM
hkim hkim is offline
 
Join Date: Apr 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aha...Thanks, Mike! I think that should do the trick!

Best regards,
H.Kim
Reply With Quote
  #205  
Old 04-19-2002, 10:03 AM
indiamike's Avatar
indiamike indiamike is offline
 
Join Date: Oct 2001
Location: New Jersey, India
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by NTLDR
What is on, or around line 371 in newindex.php? And did you copy the code from an unhacked origional vBulletin index.php that is the same version as you use on your board?

Aha....I figured it out finally. My cookies were messing with it because I used differant styles and didn't add all the new templates to the style that I was using. I just added them to the default template, not the templates for the style that I had chosen to view my board in.

Okay.....works now....time to hack it up and add my own stuff.

Mike
Reply With Quote
  #206  
Old 04-19-2002, 11:56 AM
hkim hkim is offline
 
Join Date: Apr 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear NTLDR/Lee,

Thanks for the info. With risk of sounding somewhat lame, could you please give me some more specific information on how to implement this? E.g.

1. Do I have to rename the index.php to vbindex.php?
2. The new pages, do I create them within the vbulletin control panel?
3. How can a new template page look like? What do I have to include? Specific example would be great.

Best regards,


Quote:
Originally posted by NTLDR


This is why I've chosen not to use a portal system, because it looks the same as everyone elses site and is mean't for a lot of things I don't need or want to do, this way I can fully integrate with my forums and have a common design thoughout my site.

Here is the code you need to find and change for a muli-paged vBindex:

In the vbindex php file change (its right at the end):

PHP Code:
eval("dooutput(\"".gettemplate('home')."\");"); 
To:
PHP Code:
if (!$page)
// no page specified
{
eval(
"dooutput(\"".gettemplate('home')."\");");
}
else
eval(
"dooutput(\"".gettemplate("$page")."\");");
//eval("dooutput(\"".gettemplate('home')."\");"); 
to get the homepage use http://mysiteurl/forumsdir/vbindex.php to get any other page use http://mysiteurl/forumsdir/vbindex.p...=template_name

Where:

vbindex.php is what you have called the index.php file included with vBindex

and

template_name is the name of the template that contains the page.

Let me know if you have any problems,

Regards,
Lee (NTLDR)
Reply With Quote
  #207  
Old 04-19-2002, 12:09 PM
hkim hkim is offline
 
Join Date: Apr 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, it was a stupid request when you gave so clear information at the first place. I found it out by myself after a few minutes.

Thanks anyway!
Reply With Quote
  #208  
Old 04-19-2002, 01:44 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
Well, it was a stupid request when you gave so clear information at the first place. I found it out by myself after a few minutes.

Thanks anyway!
lol!

No problem hkim, if you run into problems let me know, I wouldn't say your question was lame, everyone has different abilities here and I'm quite happy to help anyone who has any problems with anything I've produced.

I hope everything works fine when you impliment the changes.
Reply With Quote
  #209  
Old 04-19-2002, 02:56 PM
Juanito Juanito is offline
 
Join Date: Feb 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work here, this is what I was looking for and it work really great! I'Ve first setup vbhome light but this one fits my needs a lot more as I'm not a programmer and vbhome is almost impossible for me to custumize the way I want.

Got 2 more things I need to ask:

1- Is there a way to use the usergroups permissions of the forum for the threads display?

2- Is is complicated to add a block with the latest 5 thread titles of a specific forum ? (with links to the thread)

Hope those 2 requests will not be too complicated to do...

Thanks a lot!
Reply With Quote
  #210  
Old 04-19-2002, 05:25 PM
el3m3nt's Avatar
el3m3nt el3m3nt is offline
 
Join Date: Jan 2002
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #211  
Old 04-19-2002, 05:52 PM
Juanito Juanito is offline
 
Join Date: Feb 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot, I think something must be messed up then because threads of private forums are seen by everyone in the latest threads column. Not the threads themselves but the titles and it can reveal some sensitive content so...

Where should I look to try finxing this out?

BTW thanks a lot for your fast response, very kind from you

For the code above, I've tried it without success. I forget something maybe?

Code:
$forumid=6;
$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>';
}
I put this in my index file right bellow the variables settings then I've put $last5. I have the link displayed as it it in the code, showing me this: $threadtitle with the code in the link! ("showthread.php?s=$session[sessionhash]&threadid=$threadid\")

Grrr, I'm not a coder sorry! lol
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:44 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.05262 seconds
  • Memory Usage 2,326KB
  • 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
  • (3)bbcode_php
  • (6)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