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
  #402  
Old 07-26-2002, 05: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 iblis
NTLDR: I used the code from the "welcome panel" to.. but my index.php is not in the /forum directory..

so the avatar image gets broken, pointing to www.domain.com/avatar.php ..

the correct url would be www.domain.com/forum/avatar.php ..

but I cant find the <a> to fix it
You need to change the follwoing:

PHP Code:
if ($bbuserinfo[userid]!=0) {
  
$avatarurl=getavatarurl($bbuserinfo[userid]);
  if (
$avatarurl=='') {
    
$avatarurl='images/avatars/noavatar.gif';
  }
  
$avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0">';
} else {
  
$avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/avatars/guestavatar.gif" border="0"></a>';

Change the paths for guestavatar.gif and noavatar.gif, also change the href's for member.php and register.php (you can use $bburl to point to your forums directory). You also need to change:

PHP Code:
  $avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0">'
To:

PHP Code:
  $avatarimage='<a href="$bburl/member.php?s='.$session[sessionhash].'&action=editavatar"><img src="forums-path'.$avatarurl.'" border="0">'
The last change should work but is untested.
Reply With Quote
  #403  
Old 07-26-2002, 06:06 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 Grower
Also there is an error on first few lines where templatesused string is filled (missing commas) which caused extra queries. Here is fixed code:
I would also highly recommend everybody does this for all templates that are used in there vBindex, I never got round to doing it properly and have gone through and made sure every template was added and it has saved me 12 queries on my vBindex page, thanks for reminding me to do this
Reply With Quote
  #404  
Old 07-26-2002, 10:07 PM
Sigon's Avatar
Sigon Sigon is offline
 
Join Date: Mar 2002
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i tried the avatar fix and did not get anywhere with it.
www.mediaphorums.com
Any help?
Reply With Quote
  #405  
Old 07-28-2002, 09:02 AM
mbaskett mbaskett is offline
 
Join Date: Jan 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NTLDR:

I've been having the same problems with most users ever online that has been posted about numerous times here. I've sifted through the code extensively, even commented out the Who's online today section of code. Still had the problem, Deleted the code, still had the problem.

I'm still looking into the cause, but the most ever users online works fine until somebody loads home.php, then it reverts the number to however many users are online at that time. :/

Any ideas? I *may have found the problem, or at least something that may lead us to the problem.

When examining the queries that occur just before the update of the template, in home.php I found a query:

Code:
Query: SELECT template FROM template WHERE title='maxloggedin' AND (templatesetid=-1 OR templatesetid='5') ORDER BY templatesetid DESC LIMIT 1
Then I looked at the db record for any and all entries in the template table. Found one matching title='maxloggedin' but its templatesetid is -2.

I thought this a bit odd, so I examined the queries around the same update query on the index.php (my forumshome page) and found no similar query.

Now I know that this query is being generated in the ./admin/functions.php file that is called from ./global.php, but I'm wondering why home.php is creating it in the first place, as index.php doesn't, besides the templatesetid's called for in the query don't match the actual id is shows in the db table.

I'm going to keep looking into this, but I'd appreciate any input/suggestions/help you could give, as this 'quirk' is starting to frustrate me....

Thanks,
Reply With Quote
  #406  
Old 07-28-2002, 09:35 AM
mbaskett mbaskett is offline
 
Join Date: Jan 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay,

Good news... no, GREAT news... I was going along the lines of thinking in my last post... and edited the record in the templates table to make the 'maxloggedin' record have a templatesetid of -1

I did that edit and then waited on my board for the user count to go up, increase the max users online count, and then for the current number of users online to go below that. Once that happened, I loaded my home.php page, then went back to index.php and it's HOLDING the CORRECT count!!!!!

So, for those of you out there that are having this problem, before you delete the who's onlinetoday code, try this fix and post up if it solves it... It seems to work for me, and I'm going to add the whosonlinetoday code back in to see if it works again... will post results once that's done.

Edit
Have Mystics Whos Online Today hack re-installed and the count seems to be working. Will see how it holds up throughout the week. (we had problems with the onlinetoday count resetting every 24 hours, but I think the db record change will solve that as well.)

I don't know of any adverse effects of making this change. I don't *think* there will be any, but if anyone knows differently, please post up and let me/us know. If I find any, I'll be sure to let eveyone know as well.....
Reply With Quote
  #407  
Old 07-28-2002, 10:54 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The maxloggedin template should have a templatesetid of -2. I also don't know what difference it will make, but that's how it is by default.

I think the problem you all are having is because the index.php file in this hack is missing this:
PHP Code:
$loadbirthdays=1;
$loadmaxusers=1
This needs to be near the top of index.php, just under the $templatesused bits. You'll see it's in vBulletin's own index.php. I've made a similar hack to this one, only I've never released it, and had the same problem with the maxonline record getting reset to the current number whenever someone loaded my home page. Putting those lines in fixed it. It's only the loadmaxusers line that you really need to fix this problem, but you should probably have the loadbirthdays line, too.
Reply With Quote
  #408  
Old 07-28-2002, 06:22 PM
mbaskett mbaskett is offline
 
Join Date: Jan 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Confirmed JJR512: that does work, and I like it much better.... plus it saved me a couple of queries!
Reply With Quote
  #409  
Old 07-28-2002, 07:49 PM
EA Junkie EA Junkie is offline
 
Join Date: Jul 2002
Location: Southlake, TX
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm... I think I followed the instructions correctly, but when I load the new index page it's blank. Just a white screen? Any suggestions... Please...

Thanks in advance!
Reply With Quote
  #410  
Old 07-30-2002, 11:25 PM
grooveh grooveh is offline
 
Join Date: Jul 2002
Location: Canada
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I recently installed this hack and first and foremost, kudos for this meli-melo of hacks. I think you put them together excellently. This really adds a lot to my forum.

I have a couple of questions and am wondering if someone can point me in the right direction here.

1) On the news part, I'd love to be able to only display, say the 1st paragraph of a thread on the home page, with a read full>> button going to the thread with the full article. I've seen a few of the other hacks with something like this, but for the life of me, cant seem to be able to piece them together properly. Is there a simple way to do this, that I'm just missing???

The other thing is that I'm having a devil of a time trying to get some html to post properly when posted on the front page. eg: i put an img src to point to an image. Worked on the actual forum page, but on the front page, all it shows is the code, not the picture.

I would be very grateful to anyone that can help me. I've been beating my head against my desk for a while now trying to get something to work.

Cheers!
Reply With Quote
  #411  
Old 07-31-2002, 07:46 AM
countryboy713 countryboy713 is offline
 
Join Date: Mar 2002
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i seem to be having a slight problem with this. whenever i try to post news on the front page i get this MySQL error:

Quote:
Database error in vBulletin 2.2.6:

Invalid SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible,topic) VALUES (NULL,'5','Site Open!','CoUnTrYbOy','2','1028104984','0','welcome' ,'1','0','IPADDRESS'')
mysql error: Unknown column 'topic' in 'field list'

mysql error number: 1054

Date: Wednesday 31st of July 2002 04:43:04 AM
Script: http://www.digitalkore.net/forums/forums/newthread.php
Referer: http://www.digitalkore.net/forums/ne...ead&forumid=45
i edited out the spot that had my IP and put in IPADDRESS in its place

if anyone can help i'd be extremely greatful.
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 02:10 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.05214 seconds
  • Memory Usage 2,333KB
  • 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
  • (4)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
  • (1)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