Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
mYvBindex v3.1 Details »»
mYvBindex v3.1
Version: 1.00, by Tigga Tigga is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-16-2002 Last Update: Never Installs: 712
 
No support by the author.

mYvBindex 3.2.2 released! (5/22/03)

mYvBindex 3.2 will allow you to include different options from your vBulletin message board on your website's index page. Everything is completely template based so it is very easy to customize and change everything through your Admin CP.

Features:
  • Login box for members to log in to your site on the homepage.
  • Post News in a forum you specify and have it appear on your homepage.
  • Show the latest threads started in your forum on your homepage.
  • Show a poll and allow users to vote and see the results on your homepage.
  • Shows users avatar, new private messages, and buddy list for members who are logged in.
  • Shows a list of active users.
  • Shows statistics such as total members, threads, posts, top poster, newest member, and today's birthday's.
  • Shows a mini calendar with links to days with scheduled events, and a box with today's scheduled events.
  • Search box to allow users to quickly search your forums.
  • Current weather and updates on your homepage.
  • Set and change all options via the Admin CP.
  • Ability to easily switch on/off the polls, users avatar, buddy list, online users, search box, calendar, weather, custom templates, news icons, news comments, smilies, set the maximum number of news posts, and many other options via the Admin CP.
  • Everything is completely template based so it is very easy to customize.
  • Install file that will make all database queries and templates for you in seconds.
  • Uninstalls in seconds.
  • Tested and stable with vBulletin v2.6+
Screen Shots:
Guest Homepage
Admin Homepage
User Homepage
Admin CP


Queries:
A nice feature of mYvBindex is that it performs only 11 queries with all the options turned off, no matter how many news articles or latest threads you choose to display. Some options will cause the script to perform extra queries, but even with all the options turned on it still performs only 29 queries at max.

Here is a list of each extra function that will cause extra queries:
  • Poll - 2 queries
  • User's Avatar - 1 query
  • Private Messages - 1 query
  • Buddy List - 1 query
  • Online Users - 3 queries
  • Mini Calendar - 1 query
  • Weather - 2 queries
  • Poll and/or News Smilies - 1 query
  • Stats - 5 queries
*Mini Hacks:*
Adding More Custom Templates
To add more custom templates to your mYvBindex, please see this post.

Stylin' Buddy List - by MartynJ
This will add your the users avatar and usertitle to the buddy list (Similar to and inspired by velocd's Stylin' Buddy List hack), and adds no extra queries to your homepage.
Download (Screen shot included in zip)

Shoutbox Integration - by MartynJ
This hack integrates the ever popular Shoutbox hack with your mYvBindex.
Download (Screen shot included in zip)

TWCommish's vB Shoutbox Integration - by Brahm
This is a slightly different shout box made by TWCommish. His hack is required and can be found here. After downloading his hack, use Brahm's instructions here to integrate it with mYvBindex.

Attachments in News Posts - by Tigga
This hack allows attachments posted in news posts to be viewed in the news section on your homepage.
Download

Allow users to set homepage options - by Tigga
This mini-hack will allow your users to set which options they would like displayed on the homepage. They will be able to turn on/off avatars, weather, custom templates, and etc on a per user basis.
Download *Note* It may be necessary to open this file in a text editor (other than notepad) to get it to display properly.

Multiple News forums from different links - by Tigga
This hack allows allows you to have a link to a "different index file" which will pull news posts from a different forum.
Instructions can be found here


Credits:
mYvBindex uses modified versions of the following hacks:
Mini Calendar from vbPortal - by wajones
vB Weather Mk. 2- by JJR512


Copyright:
This hack is NOT to be re-distributed or placed on website for download without permission. All copyright notes in the script itself must remain unchanged.

Please don't forget to hit the Install Button


Updates from version 3.2.1
After the release of v3.2.1 a couple of small bugs were found. They affected the ability to edit a news post from the link on the homepage, pulling the wrong post from a thread for the news section, and updating your most users ever online if a new record is set. The changes from v3.2 to 3.2.1 were minimal, so those should be the only bugs found. Upgrading once again is very easy. Just download the new files, change the path in the myvbindex.php file, and upload it over your existing one.

Updates from version 3.2
v3.2.1 is again just a small maintenance release. The main change in this version is the way the forum permissions are done. Before, the forum permissions would cause the latest threads query to take much longer than it should (mostly on larger forums). Now with the new permissions system in place, the query to pull the latest threads should take less than 0.01 seconds. Other than the permissions section, the only other changes were a few optimizations to the code syntax. Upgrading from v3.2 is simple - Just upload the new myvbindex.php file over your existing one and you're done.

Updates from version 3.1
v3.2 is mostly another maintenance release, and will hopefully be the last release for vBulletin 2.X (unless any bugs are found). Here are a list of all the changes.
Fixed a bug where setting the "Show Latest Threads Icon?" option to "No" could disable the latest threads section.
Fixed a bug where signatures with vBcode were not displayed properly in the news section.
Fixed a bug where the icons in the news and latest thread parts weren't displaying the right icon for some users.
Added an option to completely disable signatures in news posts.
Added an option to select a random poll from any forum for the poll part of the hack.
Further optimized parts of the code and slightly changed part of the structure.
Now shows "No Buddies Online" in the buddy list if no buddies are online.
Changed so it will no longer show a default icon for the news and latest threads unless your options are also set to show a default icon on the forumdisplay page.
Now shows the last poster and last post time when you hold your mouse over the title of a thread in the Latest Threads part.
The install script has been re-written so you can install, upgrade, uninstall, update your news posts (useful for first time installations where a news forum already exists), or install just the templates (useful after upgrading vBulletin to a new version) all from one file.
Significantly reduced the size of the weather_install.php file (from 3.0 MB to 1.25 MB) so it will not take so long to upload to your server.
Fixed a couple of small spacing issues in the poll templates.
Fixed a problem with JJR512's weather hack not pulling the weather forcast.
Added a FAQ section to the readme file to help common problems.

Upgrading should take no longer than 2 minutes and instructions can be found at the bottom of the readme file.



Updates from version 3.0
v3.1 is mostly a maintenance release to help cut down on first time installation problems. Other than that, the biggest difference you will notice is the template "style" has changed to mesh better with vBulletin (see screenshots above). You do not have to install the new templates as you will have the option to install the new templates or to skip that step in the install file. Other than the templates, here is a list of the other changes:
A few more "error checking" features have been added to ensure you won't get a nasty sql error if you leave your News or Poll Forum ID, or any of the other fields blank.
The problem some users were experiencing with the temperature for the weather part of the hack should be fixed for good.
The "Show Poll" option in the Admin CP is removed as this can now be disabled simply by leaving the "Poll Fourm ID" filed blank.
Fixed a small typo and optimized parts of the code a little further.
Slightly changed the position of the days and numbers in the calendar part.
Fixes a bug where the Today's Birthday part wouldn't point to the correct url.

Upgrading should take no longer than 2 minutes and instructions can be found at the bottom of the readme file.



Updates from version 2.0
Removed the option from the Admin CP to allow smilies in News posts as this can now be set per post just as you would when making a regular post.
Added a stats section with info such as total members, threads, posts, newest member, top poster, and today's birthdays.
Added a "Today's Events" section under the calendar that will display any events that are scheduled for the current day, and will only be visible if there are events listed for the current day.
Added an option to show the poster's avatar with the news post.
You can now have your signature displayed with the news post. This is controlled when posting the message just as you would with a regular post.
Added an option to display the news post's rating with the news.
Added options to show small icons to allow users to show a printable version of the news post and an option to allow users to email their friends a link to the news post.
Added an option to allow/disable HTML in news posts.
Added an option to allow/disable the [img] tag in news posts.
Shows the number of times a news post has been viewed.
Shows the number of new posts since the users last visit.
Shows the number of replies to the poll if poll discussions are allowed.
Fixed a bug where the search box would take you to the search page rather than displaying the results.
Fixed a bug where setting the News Posts Maximum to 0 would disable the news rather than giving it no limit.
Optimized the code a little more to increase performance.



Help & Support
Before asking for support Please read the F.A.Q in the readme.html file! Most common problems are answered there! If you have any problems or questions that are not covered in the F.A.Q. please please post them here. I will be more than happy to help in any way I can if the request for help is made here. Anyone trying to contact me via email, private message, my website, or any other means will be ignored.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #942  
Old 03-21-2003, 06:49 PM
Snapperhaed Snapperhaed is offline
 
Join Date: Mar 2003
Location: Argentina
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Hack! Works perfect right out of the box with v2.3 #3 ... With the exception of the weather installer, which tells me it doesnt exist when it does. Oh Well. No great loss for me.

Quick question from an idiot who knows squat about most of this:

The hack contains custom1 and custom2 ... I also want to create custom3, 4, and 5.

I opened the index template, added $custom3 and so on, and created those templates ... Problem is they dont display. What a n00b!! haha.

Anyways, anyone who can help me out there would be much appreciated. Thanks!

Edited on March 23: I found the answer to my own question, regarding how to install more custom templates, for those who are interested it can be found at:

https://vborg.vbsupport.ru/showthrea...&pagenumber=14

Again, thanks for the excellent hack!
Reply With Quote
  #943  
Old 03-22-2003, 12:03 AM
Heffe2000 Heffe2000 is offline
 
Join Date: Nov 2001
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got my other problems sorted out, but now I'm having the member.php problems same as the above user, and my weather broke over the last day or so. It was working fine, then it just stopped. If you go to the weekly forcast now, it shows 0 for all data. If anyone wants to give it a guess, feel free to check out my home page, http://www.asheron-online.com/

As far as I know, nothing has changed, but with 3 admins who work on seperate hacks & stuff, you never know .
Reply With Quote
  #944  
Old 03-22-2003, 05:37 PM
kevinnguyen kevinnguyen is offline
 
Join Date: Feb 2003
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible to show the forums which the last threads are in?
Reply With Quote
  #945  
Old 03-23-2003, 08:56 PM
Intex Intex is offline
 
Join Date: Apr 2002
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tigga - First of all nice work man .


I have a problem with my installation and I've already seen some other people post about the same thing, but it doesn't seem to matter what I do, I can't get the correct path.

When running the myvbindex.php file, I get the following error:


Code:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in c:\program files\apache group\apache\htdocs\myvbindex.php on line 13

Warning: main(./global.php) [function.main]: failed to create stream: No such file or directory in c:\program files\apache group\apache\htdocs\myvbindex.php on line 17

My myvbindex.php file contains the following info, relating to my path:

Code:
// Enter The Full Path To Your Forums Here
chdir('/forum');
// No Further Editing Necessary
You'll notice I'm running this on a Windows box . What should this path be. My directory setup is quite straight forward (so I thought):

<ROOT>myvbindex.php
|
|---- forum

<ROOT> above is the default apache root, i.e. the htdocs folders root directory.

Any ideas?
Reply With Quote
  #946  
Old 03-25-2003, 03:48 AM
imageconstrux imageconstrux is offline
 
Join Date: Jan 2003
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack! Installed on 2.2.9, and looks wonderful. Members really like it a lot. But I'm having permissions problems, like the others...

I have about 8 forums that are either for supermods or admins only, and like others these threads show up in the latest topics, and like the others when a person without the right permissions tries to access it, they are denied.

All permissions have been set correctly, these people cannot see these threads or their associated forums when they are searching through categories, forums, etc.

Is there a cleaner fix than having 8 lines of code to check if it's forum X, X+1, X+2, etc?

Thanks,

Jeff
Reply With Quote
  #947  
Old 03-25-2003, 04:57 AM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I apologize to everyone for not being around this last week+. I had to go to Miami on business and only had my laptop on a dial-up connection. I barely had enough time to check my own forum let alone any others.


arracing - Sorry, but I don't know much about music files, though I'm sure you can find some sort of online tutorial if you search for one.


D|ver - Open your myvbindex.php file and look for:
PHP Code:
SELECT thread.threadid,thread.title,thread.replycount,thread.postusername,thread.postuserid,thread.dateline,thread.views,thread.iconid 
Change that to:
PHP Code:
SELECT thread.threadid,thread.title,thread.replycount,post.username,post.userid,post.dateline,thread.views,post.iconid 

Heffe2000 - To add a link to the admin/mod cp, open your myvbindex.php file and look for:
PHP Code:
  $getbgrow=getrowcolor();
  eval(
"\$welcometext = \"".gettemplate('index_welcometext')."\";"); 
Right above that Add:
PHP Code:
  $adminlink='';
  if (
$bbuserinfo['usergroupid']==6) {
    
$adminlink="<a href=\"$bburl/admin/\" target=\"_blank\">Admin CP</a>";
  }
  if (
$bbuserinfo['usergroupid']==5) {
    
$adminlink="<a href=\"$bburl/mod/\" target=\"_blank\">Mod CP</a>";
  } 
Then just add the variable $adminlink in your index_welcometext template wherever you would like the link to appear.


attroll - The reason you still appear logged in when you're not is because you did not actually log out before you closed your browser window. If you log out first you shouldn't have a problem.
As for uploading the newthread.php file, that was a mistake on my part. In the previous versions of the script it was necessary to also edit that file, but I accidentally forgot to remove that part in the instructions. Thank you for pointing that out.
As for the weather part... I'm guessing that msnbc.com changed something in their settings and that's why it's no longer working. I'll see if I can figure out what was done and post a fix when I can, or you can check the vB Weather Mk 2 thread to see if a fix has been posted there.


mcyates - I have answered this question for you several times now. Search the thread.


Lacrosse Boy - Open your myvbindex.php file and look for:
PHP Code:
$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder'); 
Change that to:
PHP Code:
$forums=$DB_site->query("SELECT * FROM forum WHERE displayorder<>0 AND active=1 AND forumid!=$newsforum ORDER BY parentid,displayorder"); 

kevinnguyen - Yes. It should be possible with a few simple template changes.


frankenberrie - That's something to do with your index_header template. Just look to see what the difference is between that template and your normal header template (I would guess there's a <p> or <br> missing after your logo).
As for pulling the news from multiple forums, you should be able to enter something like this for your News Forum ID - XX OR forumid=YY - And you would just change XX and YY to your forum id's.


Rebel38 - You missed one of the template modifications in the readme file. Check to make sure that you edited your forumhome_loggedinuser template properly.


kevinnguyen - Open your myvbindex.php file and look for:
PHP Code:
  $iforumperms 'AND forumid=' implode(' OR forumid='$iforumperms); 
Change that to:
PHP Code:
  $iforumperms 'AND thread.forumid=' implode(' OR thread.forumid='$iforumperms); 
Then look for:
PHP Code:
$threads=$DB_site->query("SELECT threadid,title,replycount,postusername,postuserid,dateline,views".iif($showthreadicon,   ',thread.iconid','')." FROM thread WHERE open='1' AND open<>10 $iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads"); 
Change that to:
PHP Code:
$threads=$DB_site->query("SELECT threadid,thread.title,thread.replycount,postusername,postuserid,dateline,views,iconid,thread.lastposter,thread.lastpost, thread.forumid,forum.title AS forumtitle FROM thread 
LEFT JOIN forum ON (thread.forumid=forum.forumid) WHERE open<>10 
$iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads"); 

Intex - Try changing the path to c:\program files\apache group\apache\htdocs\forum


imageconstrux - As far as I know, if the forum permissions are set correctly then there should not be a problem. Would you mind taking a screen shot of the permissions page one of those forums that should be private and posting it here for me to check out?
Reply With Quote
  #948  
Old 03-25-2003, 07:24 PM
Intex Intex is offline
 
Join Date: Apr 2002
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tigga - thx for the response. I'd actually used a suggestion you posted eleswhere in the thread to determine the servers path, i.e. creating a file with the following info:

<?php phpinfo(32); ?>


That gave me the following path which was entered into that command line:

chdir('c:\\program files\\apache group\\apache\\htdocs\\forum');


Worked a treat . Today I looked through the entire thread for this hack and I noticed so many people were experiencing the same problem. I've also seen the same questions posed in other hacks that use the chdir command - therefore can I make a suggestion for you to include this in the instructions. This will definitely decrease the amount of support calls you get .

On the support note, I'd just like to say that support from yourself is quite incredible. As I mentioned above, I've read the entire thread for this hack today (which took some time ) and I have to say that not only do you retain your composure and professionality thoughout, even when clearly having to repeat yourself, but your actual support quality is no less than first class.

Keep up the superb work. Its a shame more of us don't have the same level of professionality as you do .


BTW: On post #622 you'd provided a solution to the vB 2.2.5 problem with polls. I can confirm your solution works.
Reply With Quote
  #949  
Old 03-25-2003, 11:43 PM
imageconstrux imageconstrux is offline
 
Join Date: Jan 2003
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tigga -

Here's a screenie of the permissions page for non-registered or not logged in users. This screenie is for a parent forum (red), and all the non-registered perms for each child forum under it is blue. (But I've tried it both ways, neither works)
Reply With Quote
  #950  
Old 03-25-2003, 11:45 PM
imageconstrux imageconstrux is offline
 
Join Date: Jan 2003
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And here's a screenie, with me being logged out, of part of the Latest Topics table. The 'Ask The Pro' thread is in one of the higher permission forums that a non-reg shouldn't be able to see.
Reply With Quote
  #951  
Old 03-26-2003, 06:20 PM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the compliments Intex. It's always nice to know that people appreciate the work and help.
I'm actually planning on making an FAQ for the script once I release the next version. As I'm sure you saw when you read the thread, there are many questions that are asked over and over again that could be prevented by that and save me quite a bit of time.

imageconstrux - Please check your PMs.
Reply With Quote
Reply

Thread Tools

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:55 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.09324 seconds
  • Memory Usage 2,365KB
  • 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
  • (2)bbcode_code
  • (10)bbcode_php
  • (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