View Full Version : vBindex v2.1
NTLDR
08-04-2002, 10:00 PM
vBindex v2.1
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.
Latest Stable Version: 2.1
Latest Avalible Version: 2.1 Final
Using vB3?
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).
Features
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;
*NEW* Fully integrated into the Admin CP, change all options there!
*NEW* Fully integrated Shoutbox (this hack (https://vborg.vbsupport.ru/showthread.php?threadid=38698&highlight=shoutbox) is a prerequsit);
*NEW* Limit the length of news posts;
*NEW* Reduced queries and cleaner code;
*NEW* Switch vBindex on and off via the CP.
Demo Site
A standard demo of vBindex can be found here:
Currently Offline.
A customised demo of vBindex can also be found here:
Currently Offline.
Screenshots From v2.1
vBindex Home Page (https://vborg.vbsupport.ru/attachment.php?postid=313944)
vBindex ACP Options (https://vborg.vbsupport.ru/attachment.php?postid=313952)
vBindex Usergroup Options (https://vborg.vbsupport.ru/attachment.php?postid=313954)
vBindex Update Counters (https://vborg.vbsupport.ru/attachment.php?postid=313955)
vBindex v2.1 Information
Installation/Upgrade
Upload vbi_install.php and select the relevent options.
If you wish to use the shoutbox then this hack (https://vborg.vbsupport.ru/showthread.php?threadid=38698&highlight=shoutbox) 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.
Latest Bug Fixes
None.
Download
See the attachment on this post.
Credits
vBindex 1.x (https://vborg.vbsupport.ru/showthread.php?s=&threadid=37021) by el3m3nt
Shoutbox by TWTCommish
Welcome Panel by trilOByte
News Code based on code by TECK
Poll PHP from vBPortal by wajones
Feature Requests
If you have any requests for new features please post them in this thread and I will consider integrating them / creating an addon.
Addons
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.
Support/Feekback
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 install (https://vborg.vbsupport.ru/misc.php?s=&action=install&threadid=41916) 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 (https://vborg.vbsupport.ru/showthread.php?postid=286090#post286090) for details.
NTLDR
08-04-2002, 11:35 PM
Admin-CP Screenshot...
NTLDR
08-04-2002, 11:36 PM
Top Screenshot...
NTLDR
08-04-2002, 11:37 PM
Bottom Screenshot...
Chris M
08-04-2002, 11:55 PM
Wow!
*Installs*
Satan
zachb
08-05-2002, 12:18 AM
How many queries does this add? Just wondering, because v1 added tons.
NTLDR
08-05-2002, 12:24 AM
The number of queries depends on a number of things, there were 35 queries for the screenshot's that were posted, but disabling parts that you don't use significatly reduceds the number of queries performed.
Each Latest Thread adds 2 queries, as does each news item, users who have voted on a poll will also have an extra query.
I have tried to keep the number of queries to a minium and have at least halfed the number of that of the standard v1.3 avaible.
WHy not just update it in the current first thread?
NTLDR
08-05-2002, 12:31 AM
Originally posted by Neo
WHy not just update it in the current first thread?
Because putting it on the 29 page will mean many users won't even know that its been updated and as the page count goes up less and less people realise theres a newer version than what it says in the first post ;)
[D]Vincent
08-05-2002, 01:04 AM
Nice. I might install it.
DestyNova
08-05-2002, 01:54 AM
NTDR
Excellent, it will do for my index for while until I m done coding my CMS. Great job :thumb up:
DrkFusion
08-05-2002, 02:34 AM
Great job man, will download right now ;) and test it on my localhost(ie 127.0.0.1) :-D
Drk
Anyways I looked over the code. Good job man :)
Itworx4me
08-05-2002, 03:49 AM
Can't get the news or the poll to show on vbindex. I know I have the right forums set. Still can't figure out why it won't post the news or polls. Sleepless in Salem :)
el3m3nt
08-05-2002, 06:44 AM
jap, i agree.. great job, NTLDR :).
countryboy713
08-05-2002, 07:23 AM
great job. is there any certain method to follow to upgrade from vBIndex v1?
NTLDR
08-05-2002, 09:23 AM
Originally posted by countryboy713
great job. is there any certain method to follow to upgrade from vBIndex v1?
This dedpends on how customised your vBindex v1 is. If you haven't added any new features to the php file then you can just overwrite that one with this new one. If you have added new features you need to add the code to the v2 PHP file.
Almost all the templates have been modified to allow 100% compatibility for running this outside of your forums directory, so if you haven't made many changes to the templates just run the installer to update to the v2 ones.
If you have made major changes let me know and I'll post all the templates as txt files so you can manually update them.
And thanks for the comments countryboy713, el3m3nt, Neo, DrkFusion and DestyNova.
Dean C
08-05-2002, 09:39 AM
fantastic ! ive been waiting for this for agesssss :D
aidler
08-05-2002, 09:49 AM
What's the differenz of this Hack to vBPortal? The screenshots look very similar.
NTLDR
08-05-2002, 09:57 AM
Originally posted by aidler
What's the differenz of this Hack to vBPortal? The screenshots look very similar.
This hack doesn't include all the features that vBPortal does than many users never use, installation is far easier and quicker than that of vBPortal and doesn't require you to overwrite you default style.
Tim Wheatley
08-05-2002, 12:06 PM
Originally posted by Itworx4me
Can't get the news or the poll to show on vbindex. I know I have the right forums set. Still can't figure out why it won't post the news or polls. Sleepless in Salem :)
Same here. Definately set forums correctly. 2.2.6.
http://forum.racesimcentral.com/vbindex.php
NTLDR
08-05-2002, 12:13 PM
Originally posted by Tim Wheatley
Same here. Definately set forums correctly. 2.2.6.
http://forum.racesimcentral.com/vbindex.php
My appologies to those of you who haven't got the news and threads working, there was a bug in the installer.
Please re-download the zip in the first post and run vbitemplates_install.php
NOTE: This will remove all templates starting home and will add all the correct templates for v2.
Chris M
08-05-2002, 12:25 PM
So do we run vbitemplate_install.php instead of vbi_install.php, or as well as?
Plus : I get this when I run it...
Parse error: parse error, unexpected '>' in /home/virtual/site26/fst/var/www/html/forums/admin/vbitemplate_install.php on line 37
Satan
NTLDR
08-05-2002, 01:49 PM
Originally posted by hellsatan
So do we run vbitemplate_install.php instead of vbi_install.php, or as well as?
Plus : I get this when I run it...
If you have run vbi_install.php before you run it instead, otherwise you don't need to run it at all.
If you download the latest zip you should find that the parse error is no longer there.
Chris M
08-05-2002, 02:19 PM
Ah good:)
Satan
DemiNeo0101
08-05-2002, 03:35 PM
wow this is nice. you realy did make this alot faster,
floleb7
08-05-2002, 05:41 PM
you need to look your table width
in 1600*1200 the poll take more than 50% of the center table
NTLDR
08-05-2002, 05:57 PM
Originally posted by floleb7
you need to look your table width
in 1600*1200 the poll take more than 50% of the center table
Can you expand on that, I'm not sure what your trying to say. the poll by default is the left table which has a width of 140, as does the right with the center taking up the rest of the contentable width.
If you are having the problem that Mist mentioned to me about a poll thats not been voted on being very wide then I think its a problem with the style in use.
[t4e]Kicks
08-05-2002, 06:00 PM
Kicks]this makes everything so much easier than the previous version. Awesome job :)
muadist
08-05-2002, 07:21 PM
This is great! Thanks alot.
One question... I dont see the welcome panel. I assume I have to install this on my own right?
NTLDR
08-05-2002, 07:24 PM
Originally posted by muadist
This is great! Thanks alot.
One question... I dont see the welcome panel. I assume I have to install this on my own right?
The welcome panel should be there when you have installed this hack, check to see if you have <!-- welcome panel --> in your home template, if not you don't have the v2 templates.
jbear6
08-05-2002, 07:53 PM
Thanks for all the time you spent on this, I think you did a fantastic job. I do have one question: "Is there a simple way to make every link on the vbindex.php page open a new window when clicked on, without adding "target="_blank" to every link"? If this can be done easily, would it be possible to have the new window open at a set size, perhaps 700 x 600?
Thanks,
Jbear6
NTLDR
08-05-2002, 08:25 PM
Originally posted by jbear6
I do have one question: "Is there a simple way to make every link on the vbindex.php page open a new window when clicked on, without adding "target="_blank" to every link"?
Just add:
<base target="_blank">
at the end of your home_headinclude template, then all links will open in a new window unless a specific target is specified in the href.
You need to use some sort of javacript for setting the size of the browser, although i would advise against this and let users decide the size of there browser.
countryboy713
08-05-2002, 08:50 PM
i think i will need those templates if you can. i upgraded but it didnt upgrade my templates i already had.
thanks
jbear6
08-05-2002, 08:51 PM
That worked just fine :)
Thanks,
Jbear6
NTLDR
08-05-2002, 09:01 PM
Originally posted by countryboy713
i think i will need those templates if you can. i upgraded but it didnt upgrade my templates i already had.
If you don't have any home templates you wish to delete you can run the vbiv1upgrade_install.php if you haven't made the DB change, if you have then you can run vbitemplates_install.php.
If you wish to do it manually then I have attached the zip here, note you need to change vbidemo to home in the names of them.
iAlex
08-05-2002, 09:26 PM
Question... I use vbindex just to include the poll on my mainpage, I don't need the rest of the features. And I would like to make the poll question a link to the thread it was posted in but I can't seem to figure out how. Any ideas?
NTLDR
08-05-2002, 09:44 PM
Originally posted by iAlex
Question... I use vbindex just to include the poll on my mainpage, I don't need the rest of the features. And I would like to make the poll question a link to the thread it was posted in but I can't seem to figure out how. Any ideas?
Firstly this is a very bad idea as it will add 15-20 queries to you page that are compleatly useless.
In answer to you question you need to your question you need to change:
$pollinfo[question]
To:
<a href="$bburl/showthread.php?s=$session[sessionhash]&threadid=$pollinfo[threadid]">$pollinfo[question]</a>
Tim Wheatley
08-05-2002, 09:47 PM
Thanks for the fix to my problem! :up:
https://vborg.vbsupport.ru/showthread.php?postid=281249#post281249
FleaBag
08-05-2002, 10:59 PM
One word - sweet! :D
floleb7
08-06-2002, 09:30 AM
<a href="http://ghost.flf.free.fr/cyrus/vbindex_bug.jpg" target="_blank">vbindex in 1600*1200</a>
NTLDR
08-06-2002, 09:46 AM
Originally posted by floleb7
vbindex in 1600*1200 (http://ghost.flf.free.fr/cyrus/vbindex_bug.jpg)
What browser were you viewing the site with?
iAlex
08-06-2002, 11:18 AM
Originally posted by NTLDR
Firstly this is a very bad idea as it will add 15-20 queries to you page that are compleatly useless.
In answer to you question you need to your question you need to change:
$pollinfo[question]
To:
<a href="$bburl/showthread.php?s=$session[sessionhash]&threadid=$pollinfo[threadid]">$pollinfo[question]</a>
I realized that myself and that's why I removed all code except for the poll, from what I can tell there are only 2 queries left.
And thanks a lot for your answer, it works the way I wanted it to now. :)
Chris M
08-06-2002, 11:42 AM
I get that with your Demo Site too...
I am viewing in 1024x768, and using IE6...:)
Satan
NTLDR
08-06-2002, 02:31 PM
Originally posted by iAlex
I realized that myself and that's why I removed all code except for the poll, from what I can tell there are only 2 queries left.
That sounds about right, glad I could help.
NTLDR
08-06-2002, 02:40 PM
Originally posted by hellsatan
I get that with your Demo Site too...
I am viewing in 1024x768, and using IE6...:)
Satan
If you have this problem with a poll when users haven't voted then overwrite your home_poll template with the one attached here.
floleb7
08-06-2002, 02:42 PM
Originally posted by NTLDR
What browser were you viewing the site with?
IE6
NTLDR
08-06-2002, 02:54 PM
Originally posted by floleb7
IE6
I've fixed this issue, see this post (https://vborg.vbsupport.ru/showthread.php?postid=281735#post281735) or the updated zip.
floleb7
08-06-2002, 07:39 PM
Originally posted by NTLDR
I've fixed this issue, see this post (https://vborg.vbsupport.ru/showthread.php?postid=281735#post281735) or the updated zip.
i don't use the hack it was just for info :)
NTLDR
08-06-2002, 07:57 PM
Originally posted by floleb7
i don't use the hack it was just for info :)
np, thanks for pointing it out to me :)
DrkFusion
08-06-2002, 11:45 PM
How would you go about having multiple pages? and adding new templates? so those new pages can be integrated within vbindex home
NTLDR
08-06-2002, 11:50 PM
Originally posted by DrkFusion
How would you go about having multiple pages? and adding new templates? so those new pages can be integrated within vbindex home
If you use the home template as the basis for a new page, and change the content of the center colum and remove any of the other stuff you don't want and add your content.
Save the template as a home_pagename (the template must start with home_)
You can then access it using the following URL:
vbindex.php?page=pagename
Everything that is avalible on the vBindex page can be used within any new pages you create, eg you could swap the left and right colums on a new page.
DrkFusion
08-07-2002, 12:12 AM
Ah, this is very useful. Thanks again NTDLR
DrkFusion
08-07-2002, 12:17 AM
It doesn't work for me :( it is home_about, I also renamed vbindex.php to index.php
DrkFusion
08-07-2002, 12:21 AM
I got it working
Thanks, now I understand.
NTLDR
08-07-2002, 12:30 AM
Originally posted by DrkFusion
I got it working
Thanks, now I understand.
No problem, glad you got it working :)
DrkFusion
08-07-2002, 12:35 AM
Great work on vbindex its working like a damn lucky charm
ummm lucky charms
hehe
amity
08-07-2002, 04:16 AM
i did everything i was supposed to do and double checked. am i supposed to change vbindex to index? or what does vbitemplate_install.php do and belong?
thanks. i upgraded to 2.2.6 tonight, and i am trying to do all of my hacks over again. not a fun task for us code-challenged. i would like to use this instead of the welcome panel and a few other hacks i had going.
i appreciate your help and i am really looking forward to getting this up and running.
:)
amity
amity
08-07-2002, 04:19 AM
i added the poll and news forums, should they be private? or it doesn't matter? i have them private currently....
thank ya.
am
amity
08-07-2002, 05:05 AM
http://www.amitymama.com/vb/vbindex.php
this won't load at all. the regular index page still loads:
http://www.amitymama.com/vb/index.php?s=
help would really be appreciated at this point. someone must be up working on their forums at 2am just like i am, huh?
if not, could you pm me or just post here and gimme some thought. nice thought preferably!
;)
am
NTLDR
08-07-2002, 11:58 AM
Originally posted by amity
http://www.amitymama.com/vb/vbindex.php
this won't load at all. the regular index page still loads:
I get an Error 404 for that URL.
Did you run the vbi_install.php and did it compleate?
Do you have the home and home_xxx templates in the Admin CP?
Lastly have you copied the code from the vBulletin index.php to the vbindex.php?
amity
08-07-2002, 02:56 PM
i have all the vBindex Templates in my admin. i am pretty sure the installer ran all the way- i do know i can't run it again because i am getting a duplicate table error if i do.
i did copy that code from my index.php also.
i just went in and dropped canviewvbindex table from usergroup in the database and ran the installer again. the installer completed, but still nothing. i am looking at the table (canview...) and it says:
smallint 6(length/values) null
is that correct?
i will keep nosing around. thank you for your input and help! i appreciate it...
:)
am
NTLDR
08-07-2002, 03:23 PM
Originally posted by amity
i just went in and dropped canviewvbindex table from usergroup in the database and ran the installer again. the installer completed, but still nothing. i am looking at the table (canview...) and it says:
smallint 6(length/values) null
is that correct?
The canviewvbindex field is only used to specify which usergroups are allowed to view the vBindex page.
I'll take a look when vB can connect to your MySQL Server again:
Warning: Too many connections in /home/amitymes/amitymama-www/vb/admin/db_mysql.php on line 42
Warning: MySQL Connection Failed: Too many connections in /home/amitymes/amitymama-www/vb/admin/db_mysql.php on line 42
when it asked me to do the template.php changes i could not find them in my template ?????????
am i missing something
anyway hack is installed minus the above and in admin cp only way i know is it shows up under permissons so i must be missing something as how do i edit the first page of vbhack
Also a few posts show on the front page but one is weird it only shows half of it its as if halg the page has been cut off ??
NTLDR
08-07-2002, 04:24 PM
Originally posted by Mr_P
when it asked me to do the template.php changes i could not find them in my template ?????????
am i missing something
Which code couldn't you find?
as how do i edit the first page of vbhack
You need to edit the home template.
Also a few posts show on the front page but one is weird it only shows half of it its as if halg the page has been cut off ??
Have you got a screenshot/url so I can take a look? Was the post just plain text?
sorry NTLDR
and thanks for replying was my fault by not reading the first post proper and rushing as usual.
NTLDR
08-07-2002, 09:19 PM
Originally posted by Mr_P
sorry NTLDR
and thanks for replying was my fault by not reading the first post proper and rushing as usual.
No problem, we all make silly mistakes ;)
First off, may I say great hack :D
but I have a few little problems I hope you can work out how to fix :)
This is where I have installed it: http://www.consoleradar.com/index.php
Now, my forum is located at http://www.consoleradar.com/forums/ , so I put in the vbindex.php file (renamed to index.php) where vB is installed, and it's working fine.
But yeah, as I said a few things, if you look at the left hand side, down to the online users bit, it lists the online users, but their profile is all linked to go to http://www.consoleradar.com/member.php , not http://www.consoleradar.com/forums/member.php is there anyway to fix this?
Next small problem, the poll, I can't get it to work. I put in the right forum ID in the file, and made a new thread with a poll in it, but it wont come up on the vbindex page?
Last thing, when you login, it takes you to the forum home page, is it possible for it to take you back to the news page (i.e. vbindex?)
That's about it, thanks :)
Online Now:
Online Today: 1
Members | Guests
Is it not meant to List who is Online
also my buttons along top now seem to go off the page even though i have checked them in Styles and they look right.
scrap last post i forgot to get details from orginal index.php
One little question
the first post that showed on the vbindex page has a box around it and looks ok as has comments in it etc (Comments (0) )
now when it adds another post to vbindex page which is now called index.php the rest have no boxes round them
Example :
Its me
- by Mr_P
besides that it runs well - i have sorted polls out and even got members online to show on main page so chuffed but can u say if the above about the box is correct or what?
LOL scrap last 2 posts :)
it all works reason i asked last question was
They all show on same line
Latest threads does not show to the right of the boxes and it threw me a bit
Latest threads is at top of page and the boxes appear underneath them - can u tell me how to fix this prob please.
hope this shows what i mean
I thought latest threads went down the right hand side and the box ones went in middle as on mine they dont.
mods can u delete my last 3 posts
i forgot to update templates
excellant hack and something i did`nt even know it had to just now is the welcome panel
jbear6
08-09-2002, 01:27 PM
Can someone recommend a good web site to learn how to use tables? This is an excellent hack, but I have problems making new boxes (tables), and even just making a small table above the News that says: "Latest News". Any decent table tutorials greatly appreciated.
Thanks
Jbear6
clangrounds.com
08-09-2002, 03:52 PM
I personally think vbportal is a lot easier to install considering the directions are a lot more detailed and easier to follow. Just my 2 cents..
proxyMX
08-09-2002, 08:33 PM
I found that if your forum is hacked, that there is some probelmatic code, so it took me a LONG time to install this :|
proxyMX
08-09-2002, 08:37 PM
having this error
"Warning: ChDir: No such file or directory (errno 2) in /locationofmywebsite/forums.proxymx.com/index.php on line 25"
okay gonna stick me head out here and go for it
not knocking the vbindex at all but is it possible to keep the side menu but in middle have the actual board and not the replies etc .
As i would prefer it this way as i can easy edit the sidebar to display links to specific forums.
I know some say its easy to do - but its only easy if you know how! and personaly i only know from what ive been picking up on here.
NTLDR
08-09-2002, 08:43 PM
First off, may I say great hack :D
Thank you DWZ, much aprichiated, now lets sort out those problems ;)
But yeah, as I said a few things, if you look at the left hand side, down to the online users bit, it lists the online users, but their profile is all linked....[/quote]
To fix this change your forumhome_loggedinuser to:
<a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$userid">$username</a>$invisibleuser
I.E, add $bburl/ before member.php
This will be fixed in v2.0.2 when I will add a home_loggedinuser template.
Next small problem, the poll, I can't get it to work. I put in the right forum ID in the file, and made a new thread with a poll in it, but it wont come up on the vbindex page?
Make sure that you have the following template:
home_poll:
<form action="$bburl/poll.php" method="get">
<input type="hidden" name="s" value="$session[dbsessionhash]">
<input type="hidden" name="action" value="pollvote">
<input type="hidden" name="pollid" value="$pollinfo[pollid]">
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" {tableouterextra} width="140" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td bgcolor="{tableheadbgcolor}" align="center" colspan="4"><smallfont><b>$pollinfo[question]</b></smallfont></td>
</tr>
$pollbits
</table>
</td></tr></table>
<table cellpadding="2" cellspacing="0" border="0" width="140" {tableinvisibleextra} align="center">
<tr>
<td style="font-size: 8pt" align=center><smallfont><br><input type="submit" class="bginput" value="Vote!" style="font-size: 8pt"><br><br>
<a href="$bburl/poll.php?s=$session[sessionhash]&action=showresults&pollid=$pollinfo[pollid]">Result</a>
</smallfont></td></tr>
</table>
</form>
Does the poll appear when you have voted on it? Amity also has this problem, if this doesn't fix it perhaps you could give me some info about your setup PHP, MySQL and vB version so I can look into this.
Last thing, when you login, it takes you to the forum home page, is it possible for it to take you back to the news page (i.e. vbindex?)
Check your PM for the login.php file (I can't post it as it is basicly a large chunk of unmodified source code.)
Firstly edit the URL to your vbindex.php in the last line of code )where it says: PATH TO VBINDEX) and upload to your forums directory.
Edit the home_welcomelogin template:
<table border="0" cellpadding="0" cellspacing="0">
<form action="$bburl/login.php" method="post">
<tr>
<td nowrap><smallfont><b>Not cookied?</b><br>Login with username and password:</smallfont></td>
</tr><tr>
<td nowrap><input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="login">
<input type="text" class="bginput" name="username" size="7">
<input type="password" class="bginput" name="password" size="7">
<input type="submit" class="bginput" value="Login!"></td>
</tr>
</form>
</table>
</center>
The forum action has changed to login.php not member.php
Let me know if it all works :)
NTLDR
08-09-2002, 08:50 PM
Originally posted by Mr_P
mods can u delete my last 3 posts
i forgot to update templates
excellant hack and something i did`nt even know it had to just now is the welcome panel
So is everything sorted and working fine now?
NTLDR
08-09-2002, 08:53 PM
Originally posted by clangrounds.com
I personally think vbportal is a lot easier to install considering the directions are a lot more detailed and easier to follow. Just my 2 cents..
vbPortal also adds many features which alot of people don't require and don't want as well as doing things like overwriting your default style.
IMO this is far easier, run and automated installer, run a vbhacker .hack.php and code and past one chunk of code.
NTLDR
08-09-2002, 08:57 PM
Originally posted by proxyMX
I found that if your forum is hacked, that there is some probelmatic code, so it took me a LONG time to install this :|
What exactly were you having problems with? It wasn't the poll by any chance?
This should take no more then 10 mins to install.
having this error
"Warning: ChDir: No such file or directory (errno 2) in /locationofmywebsite/forums.proxymx.com/index.php on line 25"
The directory specified by the following line cannot be found:
chdir('./directory-here');
NTLDR
08-09-2002, 09:01 PM
Originally posted by Mr_P
not knocking the vbindex at all but is it possible to keep the side menu but in middle have the actual board and not the replies etc .
As i would prefer it this way as i can easy edit the sidebar to display links to specific forums.
This would be posible and I will look into this as a posible future option for this hack.
cheers NTLDR thought i was gonna get flamed or something as been after this for ages.
Thanks again and look forward to it.
NTLDR
08-09-2002, 09:09 PM
Originally posted by Mr_P
cheers NTLDR thought i was gonna get flamed or something as been after this for ages.
Thanks again and look forward to it.
No problem, I asked for feedback and what extra features people wanted and this seems like a usefull and realistic one :)
proxyMX
08-09-2002, 09:49 PM
its definatwely nto that the error only appears at the top of my index page, and its in my vb root directory :(
NTLDR
08-09-2002, 10:08 PM
You need to make sure that the chdir statement is commented out, this is only required if vBindex is run outside of the forums directory.
//chdir('./path');
That all worked great NTLDR :D
When I was editing home_poll, I found this in there:<form action="http://www.consoleradar.com/forums/poll.php" method="get">
<input type="hidden" name="s" value="3861cb90476ef3f4b008396967d28584">
<input type="hidden" name="action" value="pollvote">
<input type="hidden" name="pollid" value="">
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" {tableouterextra} width="140" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td bgcolor="{tableheadbgcolor}" align="center" colspan="4" background="{imagesfolder}/back.gif"><smallfont><b></b></smallfont></td>
</tr>
</table>
</td></tr></table>
<table cellpadding="2" cellspacing="0" border="0" width="140" {tableinvisibleextra} align="center">
<tr>
<td style="font-size: 8pt" align=center><smallfont><br><input type="submit" class="bginput" value="Vote!" style="font-size: 8pt"><br><br>
<a href="http://www.consoleradar.com/forums/poll.php?action=showresults&pollid=">Result</a>
</smallfont></td></tr>
</table>
</form>And that was set as the default, i.e. it hadn't been changed, which makes me think there is something wrong with the installer? But yeah, anyway, when i changed it to what you had in your post it works fine :)
Thanks for the login and poll code, both work great :) I hope this isn't too much to ask, but would it be possible to do the same thing with logout? So if they hit the logout link on the vbindex page, it takes then back there. If it's too much trouble, don't worry about it :)
Next thing, just a general comment, with the installer, it would be nice if you got a warning message before you install it. i.e "You are about to install vBindex, please click here to continue" or "You are about to upgrade your current version of vBindex, please click here to continue". Just so you don't run it twice by hitting "refresh" or whatever by mistake.
The last thing I can think off, when a person is logged out or not registered, it shows the poll with the options, and when the select one it gives the "no permission" error. It would be cool if you could make it so if they were logged out or not registered, it would just display the results of the poll as if they had already voted in it, you know what I mean?
OK, thanks for all your help :D
hankster
08-10-2002, 01:38 AM
I am playing with vBindex. I ran the installer and then looked for the templates. I see I have a vBindex Templates within each of my other Templates. Is this the way it is suppose to be? If so, which one do I change to actually get the vBindex page to change?
Also, it is taking a loooong time to display the vbindex.php page, something like 15 seconds. The server is not over loaded as the load is less then one. Not sure why it is taking so long. Once it displays everything looks fine.
CarlosC
08-10-2002, 02:29 PM
The Hack is running perfectly in my web site...
But I really want to make the board look in the same way in all the sections... For example the forumdisplay, search, shothread, everything... with the same exactly look (menu in the left and right and the welcome message in the top) the only thing that changes is the information in the middle. Instead of showing the news, I want to place the threads or the FAQ or the search template, etc...
Thanks..
yeah have to agree with you Carlos if someone can tinker with code and keep menu to left with same options etc and sort board out then they onto a winner
NTLDR
08-10-2002, 05:04 PM
Originally posted by DWZ
And that was set as the default, i.e. it hadn't been changed, which makes me think there is something wrong with the installer?
Thanks for letting me know DWZ, I'll update the installer.
Thanks for the login and poll code, both work great :) I hope this isn't too much to ask, but would it be possible to do the same thing with logout? So if they hit the logout link on the vbindex page, it takes then back there. If it's too much trouble, don't worry about it :)
What happens when users logout currently? Are they automaticly redircted or do they have to click to get to the forums index?
Next thing, just a general comment, with the installer, it would be nice if you got a warning message before you install it.
For the next release I will try and make an all-in-one installer that will perform fresh installs and upgrades and give warning prior to making changes.
The last thing I can think off, when a person is logged out or not registered, it shows the poll with the options, and when the select one it gives the "no permission" error. It would be cool if you could make it so if they were logged out or not registered, it would just display the results of the poll as if they had already voted in it, you know what I mean?
See PM with updated attachment ;)
This will redirect all users who vote on the poll on the home page that have $bbuserinfo['userid'] set to 0, ie guests and users not logged in will be redirected to the results of the poll when they vote. Just overwrite your existing vbipoll.php with this one and replace" VBINDEX FILE NAME" with the name of the file before the .php :)
NTLDR
08-10-2002, 05:06 PM
Originally posted by CarlosC
The Hack is running perfectly in my web site...
But I really want to make the board look in the same way in all the sections... For example the forumdisplay, search, shothread, everything... with the same exactly look (menu in the left and right and the welcome message in the top) the only thing that changes is the information in the middle. Instead of showing the news, I want to place the threads or the FAQ or the search template, etc...
As requested by Mr_P I will be looking into doing this in a future version ;)
Its just a case of of adding the statment to eval the template in the relevent php files and editing the templates.
NTLDR
08-10-2002, 05:08 PM
Originally posted by hankster
I am playing with vBindex. I ran the installer and then looked for the templates. I see I have a vBindex Templates within each of my other Templates. Is this the way it is suppose to be? If so, which one do I change to actually get the vBindex page to change?
If you have complated the installation you should have a set of templates called vBindex Templates which have a number of home and home_ templates within it, these are the templates that need to be edited.
Also, it is taking a loooong time to display the vbindex.php page, something like 15 seconds. The server is not over loaded as the load is less then one. Not sure why it is taking so long. Once it displays everything looks fine.
I guess the server can't handle the number of queries for the page or that you have a slow connection.
ipscone
08-10-2002, 06:40 PM
Before I try this (vBIndex), I'd like to know if it is possible to uninstall, with ease.
What is changed, in my original, vBulletin forums, by running the vbi_install.php script?
Thanks,
NTLDR
08-10-2002, 07:06 PM
Originally posted by ipscone
Before I try this (vBIndex), I'd like to know if it is possible to uninstall, with ease.
What is changed, in my original, vBulletin forums, by running the vbi_install.php script?
Only two things are changed, a field is added to the usergroup table for usergroup permissions and the templates are also automatically installed into your templates table.
In order to uninstall it requires you to run two sql statements to undo the changeds made by vbi_install.php
ipscone
08-10-2002, 07:10 PM
I probably won't have to uninstall it :D but just in case I do, where do I find those two SQL statements?
Thanks,
NTLDR
08-10-2002, 07:24 PM
Originally posted by ipscone
I probably won't have to uninstall it :D but just in case I do, where do I find those two SQL statements?
The first one is:
DELETE from template WHERE title like 'home%'
This will delete *all* templates starting home, the second is:
ALTER TABLE usergroup DROP canviewvbindex
This will remove the permissions field from the usergroup table.
An uninstaller will be included in the next version to do this ;)
ipscone
08-10-2002, 07:41 PM
Ok, it seemed to install ok. It can be seen at: vBIndex on my forums (http://www.msdsite.com/forums/vbindex.php)
Now a question. When a person goes to a forum, what is the proper way to get back to this index? Should the HOME button get you back to the index?
I guess I can make it whatever I like but I was looking for the proper way.
Also, I notice that when I LOG IN or LOG OUT, I'm taken to my forums rather than the index.
Have I missed something?
Or, should I be renaming vbindex.php to index.php?
NTLDR
08-10-2002, 08:01 PM
Originally posted by ipscone
[quote]Now a question. When a person goes to a forum, what is the proper way to get back to this index? Should the HOME button get you back to the index?
I personally have two buttons at the top, home (vBindex) and forums
Also, I notice that when I LOG IN or LOG OUT, I'm taken to my forums rather than the index.
This is where vBulletin logs you into by default, check the last page with the details I gave DWZ on how to correct this and I will PM you the file you need as I can't post it here.
FlyingDutchman
08-10-2002, 08:18 PM
:bunny:
ipscone
08-10-2002, 08:26 PM
Ok, I'll look at the file and check out other posts for these small issues.
I guess the only last thing is that I assume that one can integrate news feeders and other portal type features into this as well, correct?
Thanks,
Gotta run...
NTLDR
08-10-2002, 08:38 PM
You can theoretically add any feature that is avalible to vBulletin into the vBindex page... just edit the source code and templates.
hankster
08-10-2002, 09:25 PM
Originally posted by NTLDR
If you have complated the installation you should have a set of templates called vBindex Templates which have a number of home and home_ templates within it, these are the templates that need to be edited.
I have a set of vBindex Templates that are within all of my other templates. There is no seperate set of templates. It looks like if I edit the vBindex Templates that are within the Default template set, it changes the vbindex page.
I guess the server can't handle the number of queries for the page or that you have a slow connection.
The site runs well (loads of less then 1) with over 175+ plus people connected along with a seperate area that is busy running PostNuke. The slow respose is the same even if vB is only showing 65 people connected. The slowness is only when trying to connect to the vBindex page, the other vB pages come up instantly.
NTLDR
08-10-2002, 09:36 PM
Originally posted by hankster
I have a set of vBindex Templates that are within all of my other templates. There is no seperate set of templates. It looks like if I edit the vBindex Templates that are within the Default template set, it changes the vbindex page.
Thats correct and how it should be ;)
The site runs well (loads of less then 1) with over 175+ plus people connected along with a seperate area that is busy running PostNuke. The slow respose is the same even if vB is only showing 65 people connected. The slowness is only when trying to connect to the vBindex page, the other vB pages come up instantly. [/B]
The only thing I can think of from what you have said and what I have seen elsewhere is that its taking a long time to retrive format and display the currently online users as the only other report of this problem is a board with many users currently online.
Originally posted by NTLDR
What happens when users logout currently? Are they automaticly redircted or do they have to click to get to the forums index?At the moment, if they hit the logout button on vBindex, it takes them to the forum home page, not back to the vBindex page, so It would be cool if it could take them back to where they came from, i.e. vBindex, so err... yeah :)Originally posted by NTLDR See PM with updated attachment ;)
This will redirect all users who vote on the poll on the home page that have $bbuserinfo['userid'] set to 0, ie guests and users not logged in will be redirected to the results of the poll when they vote. Just overwrite your existing vbipoll.php with this one and replace" VBINDEX FILE NAME" with the name of the file before the .php :) Thanks for that, but I think I explained what I wanted a bit badly (note that you don't have to help me if it's too much trouble :)). If you look at this attachment, you see what a person sees when they have voted. That's what I wanted a un-registered person too see (properly without the bit that says "You have already voted on this poll). So they can't vote at all. You get what I mean? OK, thanks :)
Alan (DWZ)
hankster
08-11-2002, 02:56 AM
Thanks for the info... guess I'll just wait until vB releases their front end and see what happens.
atease
08-11-2002, 03:40 PM
Originally posted by amity
i added the poll and news forums, should they be private? or it doesn't matter? i have them private currently....
thank ya.
am
same here. should they be private?
bommelchen
08-11-2002, 03:50 PM
Hi i love this hack !!!
but i have a question, is there a way to include the vBcalendar in a centerbox ?
Greeting bommelchen
NTLDR
08-11-2002, 04:42 PM
Originally posted by DWZ
If you look at this attachment, you see what a person sees when they have voted. That's what I wanted a un-registered person too see (properly without the bit that says "You have already voted on this poll). So they can't vote at all. You get what I mean?(DWZ) [/B]
After I did this I thought that may be what you wanted, heres the change to vbindex.php which will show the results of the poll for users with the userid 0:
Change This:
if (!$pollinfo[active] or !$pollinfo[open] or ($pollinfo[dateline]+($pollinfo[timeout]*86400)<time() and $pollinfo[timeout]!=0)) {
To This:
if (!$pollinfo[active] or !$pollinfo[open] or ($pollinfo[dateline]+($pollinfo[timeout]*86400)<time() and $pollinfo[timeout]!=0) or $bbuserinfo['userid']==0) {
I'll have a look at the logout issue and post here/PM you when its done ;)
NTLDR
08-11-2002, 04:47 PM
Originally posted by atease
same here. should they be private?
They can be private or public, note that if they are private users can't won't be able to post comments or view the thread ;)
NTLDR
08-11-2002, 04:48 PM
Originally posted by bommelchen
but i have a question, is there a way to include the vBcalendar in a centerbox ?
You can include any vB function into this, just add the PHP code after the vBindex Start comment or use the include statement and add the HTML to the templates.
Hi there,
great feature but I too find it takes a long time to load the page! All other forum pages load instantaneously but the vbindex takes ages. Other users experience the same problem. As both the forum and vbindex use the same queries what could be the problem?
TY
NTLDR
08-11-2002, 04:56 PM
How many users do you have online on average and what is the server load, I'm trying to figure out what is taking so long for the page to load, as you can see from my demo site that it opens as fast as any of my forum pages.
Hi there,
About 80 users on the forums at any one time, with a server load of about 1.2. Ive tried loading vbindex from the forums directory, as well as from its own but it still takes ages to load, whilst all other pages are instantaneous.
Maybe I should disable the vbindex queries one at a time to se if it speeds up?
TY for the quick response!
NTLDR
08-11-2002, 05:16 PM
Try removing the origional vBulletin code and the today online hack, and see if this speeds things up, from the reports I have it seems to be something to do with a large amout of users online.
Hi there,
OK tried to remove those sections but made no difference. Then I deleted the polls section and that fixed it...
So I think the polls section was slowing everything down...
Incidently, how do you make the members name point to forums/member.php rather than the directory the vbindex is in /member.php?
TY
what is code for adding calendar in a small box as stated above
so i can have it under polls.
NTLDR
08-11-2002, 07:21 PM
Originally posted by KimG
[B]So I think the polls section was slowing everything down...
Thanks for letting me know, I'll look into this and try and speed it up.
Incidently, how do you make the members name point to forums/member.php rather than the directory the vbindex is in /member.php?
Which link was it that didn't point to the forums directory? It should just be a case of putting $bburl before it.
NTLDR
08-11-2002, 07:22 PM
Originally posted by Mr_P
what is code for adding calendar in a small box as stated above
so i can have it under polls.
I would guess the mini-calendar hack, but as no link was left I don't know if thats what the user was reffering to.
sorry m8 yes was referring to the mini calendar hack.
I can see it if i call it in on a page on its own but cant get it to integrate with vbindex.
NTLDR
08-11-2002, 10:33 PM
You need to put:
include('./filename.php');
after the require golbal.php statement.
Add the template for the calendar and then make sure that the calendar php file doesn't output the template but evals it to a variable, eg:
eval("\$calendar = \"".gettemplate(small_calendar)."\";");
ie $calendar instead of dooutput then you just place your variable in this case $calendar in the required template.
Originally posted by NTLDR
After I did this I thought that may be what you wanted, heres the change to vbindex.php which will show the results of the poll for users with the userid 0:w00t, worked perfectly :D Originally posted by NTLDR
I'll have a look at the logout issue and post here/PM you when its done ;) great, thanks a million!
atease
08-12-2002, 06:20 AM
Originally posted by NTLDR
They can be private or public, note that if they are private users can't won't be able to post comments or view the thread ;)
thanks. another question:
like some else said. it takes about ages to load. and i have a lot users (100?) online at the same time.
i'm guessing it's the 'online users' script that might cause, which i don't really need. can i ditch that left column? or maybe ditch everything except for the display of the actual news stories? (i don't need the welcome box either)
i'd like to use it a php include on my news page.
any help would be appreciated.
(excellent hack btw, just needed to say that)
NTLDR
08-12-2002, 09:00 AM
Originally posted by atease
like some else said. it takes about ages to load. and i have a lot users (100?) online at the same time.
I belive its the poll code that is causing the high load time, try removing that section.
i'd like to use it a php include on my news page.
All you need to do is make sure that you have the section with the news code and that in your news page or the vBindex file that you require golbal.php
atease
08-12-2002, 11:51 AM
that worked. thank you very much.
but i can't get rid of that 'welcome' table
NTLDR
08-12-2002, 02:52 PM
Originally posted by atease
but i can't get rid of that 'welcome' table
You need to remove the HTML in the home template.
atease
08-12-2002, 02:58 PM
doesn't this remove the welcome message + stats from vbulletin?
NTLDR
08-12-2002, 03:12 PM
The home and home_ templates have nothing to do with vBulletin, there all for vBindex so removing that HTML won't effect your forums home page.
atease
08-12-2002, 07:01 PM
thanks again.
one more thing (i know: again!):
the news forum is now private. i underdstand that it has to be public to let people post replies, but can i keep people from posting new threads? cause that's not what i want:)
NTLDR
08-12-2002, 07:17 PM
Just change the forum permissions in the Admin CP for the usergroups that you don't want to post new threads.
Thanks for the hack! I recently switched from vbhome_lite becuase it's not supported anymore. :(
This seems to be working great. However, I have a few questions.
1.) I'd like for the members to return to the index.php after a)logging in/logging out and b)voting (instead of returning to the poll). I think this is possible with a login.php code you mentioned a page or two back? Could I get this?
2.) In the last posts column - is there a way to hide private forums?
I'm sure I'll have more, but this is all for now. I'm having fun with it all. :D
Edited to say:
Also, I don't really need the who's online bit on the index page. I suppose I can remove this - is it in a template or the index.php?
pretty hard this really as aint sure which thread to put it in as it involves 2 hacks.
Is it possible to get the shoutbox from the main Indexpage to show on the VBindex page and in a column ?????
Like most portals have.
Also, if a person isn't logged in - they see two login boxes (one in the welcome panel and one in the left-column). Is there a way to remove the log in box in the left-column, basically either showing the stats or showing nothing and skipping to the online now users?
NTLDR
08-12-2002, 10:14 PM
Originally posted by Rose
1.) I'd like for the members to return to the index.php after a)logging in/logging out and b)voting (instead of returning to the poll). I think this is possible with a login.php code you mentioned a page or two back? Could I get this?
I will PM you the two files needed for this, you just need to upload them and change the URL in the home_poll and home_welcomelogin
2.) In the last posts column - is there a way to hide private forums?
This is already implimented, but vBulletin doesn't seem to add the permissions for forums that inherit permissions, if the information in the database has canview=0 for the usergroups that can't view it then it excludes it from the list, otherwise it is included.
Also, I don't really need the who's online bit on the index page. I suppose I can remove this - is it in a template or the index.php?
Remove the origional vBulletin code and the today online hack, also you need to remove the HTML from the home_left template:
<tr>
<td bgcolor="{firstaltcolor}"><smallfont><a href="$bburl/online.php?s=$session[sessionhash]">Online Now</a>: <b>$totalonline</b><br>
Online Today</a>: <b>$todayonline</b><br>
<b>$numberregistered</b> Members | <b>$numberguest</b> Guests<br>
$activeusers<br></smallfont>
</td>
</tr>
NTLDR
08-12-2002, 10:15 PM
Originally posted by Rose
Also, if a person isn't logged in - they see two login boxes (one in the welcome panel and one in the left-column). Is there a way to remove the log in box in the left-column, basically either showing the stats or showing nothing and skipping to the online now users?
Just remove $logincode from the home_left template
NTLDR
08-12-2002, 10:19 PM
Originally posted by Mr_P
pretty hard this really as aint sure which thread to put it in as it involves 2 hacks.
Is it possible to get the shoutbox from the main Indexpage to show on the VBindex page and in a column ?????
Like most portals have.
As I've said many times before anything that is avaible to vB is avalible to the vBindex page. Just include the PHP in the vbindex.php and make sure that the template is eval'd as a varible and include it in one of the home templates.
Originally posted by NTLDR
This is already implimented, but vBulletin doesn't seem to add the permissions for forums that inherit permissions, if the information in the database has canview=0 for the usergroups that can't view it then it excludes it from the list, otherwise it is included.
Edited to say
I get it. A member won't see the private forums last posts, only those allowed will. (y) Thanks!
And thank you for the rest. I have made the changes, with the exception of the files via pm, which I will do soon. I've taken care of the who'sonline (I just wanted the actual members removed, not the statistics) and have done that.
Now I'm off to reincorporate Kura's quote hack and the microstats! Thanks!
NTLDR
08-12-2002, 10:31 PM
Originally posted by Rose
Edited to say
I get it. A member won't see the private forums last posts, only those allowed will. (y) Thanks!
This is not strictly true I'm afraid, vB doesn't allways add the information that is needed to do this in the database.
I think if you have manually set the permissions manually so that users can't view them then they shouldn't show. If the forum is just using the permissions of the parent forum then it seems like they will show up.
I hope this is clear ;)
Originally posted by NTLDR
This is not strictly true I'm afraid, vB doesn't allways add the information that is needed to do this in the database.
I think if you have manually set the permissions manually so that users can't view them then they shouldn't show. If the forum is just using the permissions of the parent forum then it seems like they will show up.
I hope this is clear ;)
Clear as mud. :nervous: I logged out and couldn't see the forums, so I'm assuming all is okay, of course I need to test as a regular member still. *hehe* Thanks again!!
NTLDR
08-12-2002, 10:56 PM
Originally posted by Rose
Clear as mud. :nervous: I logged out and couldn't see the forums, so I'm assuming all is okay, of course I need to test as a regular member still. *hehe* Thanks again!!
LOL, Sorry, I tried to explain the best I could!
If you can't see them as a guest, you shouldn't be able to see them as a regular user or anyone else who can't view the forum.
NTLDR
08-13-2002, 08:12 PM
Originally posted by Mr_P
yeah have to agree with you Carlos if someone can tinker with code and keep menu to left with same options etc and sort board out then they onto a winner
Here is the addon for the Forums menu, as requested by Mr_P.
Firstly edit forum/golbal.php and find:
// parse css, header & footer ##################
And add after:
include('./vbimenu.php');
eval("\$menu .= \"".gettemplate('home_menu')."\";");
Upload the attached vbimenu.php to your forums directory and remove the functions that you don't want to include in the menu on other pages. I HIGHLY SUGGEST that you DON'T have all the functions displayed, ie Poll, Buddies Login Code etc... this will almost DOUBLE the queries for forum/index.php. Just leave in the functions that you require.
Add the home_menu template that can be found in the zip file.
Don't forget to remove the stuff you won't be using, then lastly edit your header template, in between the following comments:
<!-- /logo and buttons -->
<!-- content table -->
Add:
$menu
Thats it :)
Please let me know what functions you would like to see in the forums menu so I can impliment this properly with the next version.
Cheers NTLDR for feedback.
I have done the global in root
done the home template and added the code in the header
The forum is to the right so that bit works but to the left only the search box is showing and online users is showing with it but its as if no one is on.Nothing else is showing in the left hand panel.
Small gif to show u how i mean
Just an idea which would be cool. As you may know, I run a console gaming website. Now, it would be good if we could replace the avatar on the posts with a custom picture on each news story. So, say if I was doing a story on Xbox, I could put a picture of a xbox there. If I was doing a story on PS2, I could put a picture of one there too. If I was doing a story of a mod chip, I could put a picture of it there... etc etc...
I guess you could maybe put it as an attachment to the post, which automatically is shown on the news page where the avatar currently is.
A good example to what I was thinking would be this: http://www.neowin.net/
It would also be nice if I could select previous images I had used as news stories, so I don't need to upload the same xbox image for like 20 stories which just uses up the database.
Anyway, just something to think about :)
good idea.
I gather the template for the way the posts are shown on there can be altered in some way to make it look like that sort of post.
All in all good hack and one that can be built upon.
sorry i called it in wrong way i was still on the old VBindex php file
switched to this one now and i get this error
Fatal error: Call to a member function on a non-object in /vbb/vbimenu.php on line 40
Line 40 is this : $buddys=$DB_site->query($sql);
NTLDR
08-14-2002, 10:12 AM
Originally posted by Mr_P
Fatal error: Call to a member function on a non-object in /vbb/vbimenu.php on line 40
There shoudln't be any errors, the file is working correctly for me (see screenshot). Have you edited it at all?
NTLDR
08-14-2002, 10:54 AM
Originally posted by DWZ
Now, it would be good if we could replace the avatar on the posts with a custom picture on each news story.
The simpilest and easilest way of doing this would be to newmove the avatar code from the home_newsbit template and use [img] code to insert the required image for the story at the top.
Originally posted by NTLDR
The simpilest and easilest way of doing this would be to newmove the avatar code from the home_newsbit template and use [img] code to insert the required image for the story at the top. sounds good :)
Just a quick question. I thought it would be nice if I could have "Last comment was by username" at the bottom of the news posts. Now, what I put in the home_newsbit template was:Last <a href="$bburl/showthread.php?s=$session[sessionhash]&goto=lastpost&threadid=$newsthreadid">comment</a> was by <a href="$bburl/member.php?action=getinfo&find=lastposter&threadid=$newsthreadid"><b>insert name here</b></a>Now, it will automatically skip down to the last post when you click "comment", and it will link to the person's profile. but i cant work out how to get the person's name up. as you can see, i have insert name here there, it links that text to the person's profile but yeah, i want it to have their name there... lol.
I was looking at the forumdisplay templates where they do it for each thread (i.e. where they have Thread name, Thread Starter, replies number, Views and Last Post). I found they were using $thread[lastposter] to do it, but if i put that right into the vBindex templates it does nothing. so yeah, i was guessing it had something to do with the php file and that i would need to add a line or two to the vbindex.php file or something.
Anyway, keep up the good work :)
NTLDR
08-14-2002, 03:03 PM
Nice suggestion there DWZ :)
In the vbindex.php file add after:
$comments=$news[replycount];
This:
$lastposter=$news[lastposter];
And add $lastposter in your home_newsbit template where you want the username to appear ;)
I may also add this in to the new version.
sorry m8 not calling yout hack but when i run vbimenu.php from main root that is when i get the error.
I have done the global in root - and also put #menu in the header so i have folowed it htough with no luck as yet.
NTLDR
08-14-2002, 05:06 PM
You need $menu in the header not #menu (not sure if that was a typo by you or what you have in your template).
Calling vbimenu.php directly isn't supposed to work, if you added both lines to global.php then it should be included automatically for each page and display the home_menu template wherever $menu is placed, on any page the requires global.php
yeah is $menu my mistake and will check my global now
// parse css, header & footer ##################
eval("\$headinclude = \"".gettemplate('headinclude')."\";");
eval("\$header .= \"".gettemplate('header')."\";");
eval("\$footer .= \"".gettemplate('footer')."\";");
$timediff='';
if ($bbuserinfo['timezoneoffset']!=0) {
if (abs($bbuserinfo['timezoneoffset'])==1) {
$timediff=" $bbuserinfo[timezoneoffset] hour";
} else {
$timediff=" $bbuserinfo[timezoneoffset] hours";
NTLDR
08-14-2002, 07:04 PM
This is what the section of global.php should look like for vB 2.2.6:
// parse PHP include ##################
eval(gettemplate('phpinclude',0,0));
// parse css, header & footer ##################
include('./vbimenu.php');
eval("\$menu .= \"".gettemplate('home_menu')."\";");
eval("\$headinclude = \"".gettemplate('headinclude')."\";");
eval("\$header .= \"".gettemplate('header')."\";");
eval("\$footer .= \"".gettemplate('footer')."\";");
// parse other global templates
eval("\$gobutton = \"".gettemplate('gobutton')."\";");
// End Forumlinks
// parse css, header & footer #########include('./vbimenu.php');
eval("\$menu .= \"".gettemplate('home_menu')."\";");#########
eval("\$headinclude = \"".gettemplate('headinclude')."\";");
eval("\$header .= \"".gettemplate('header')."\";");
eval("\$footer .= \"".gettemplate('footer')."\";");
include('./vbimenu.php');
eval("\$menu .= \"".gettemplate('home_menu')."\";");
NTLDR
08-14-2002, 07:10 PM
You haven't edited gobal.php correctly, see post 154 above.
yeah have m8 its jsut that i have added a hack inbetwwen so misses this bit ov
// parse PHP include ##################
eval(gettemplate('phpinclude',0,0));
and thsi bit is further down below
// parse other global templates
eval("\$gobutton = \"".gettemplate('gobutton')."\";");
NTLDR
08-14-2002, 07:17 PM
If you have the added code directly after the parse css comment as shown (https://vborg.vbsupport.ru/showthread.php?postid=284993#post284993) then it will work, you can't add it after this point like you have in your post above.
NTLDR
08-14-2002, 07:26 PM
Originally posted by Mr_P
Do u want to hit me m8 ?
If you want to talk like that then don't expect any more support on this hack. All I am trying to do is help.
works a dream - i never thought it mattered that much but obvious it does
Well done NTLDR (me bangs me head on wall only few times mind ya)
Originally posted by NTLDR
If you want to talk like that then don't expect any more support on this hack. All I am trying to do is help.
sorry m8 was taken out of context - it was meant to mean i done it and what an idiot i had been.
NTLDR
08-14-2002, 07:29 PM
Originally posted by Mr_P
sorry m8 was taken out of context - it was meant to mean i done it and what an idiot i had been.
Sorry, I miss-understood what you said ;)
It makes a great deal of diffenence that it goes there, even though it doesn't look like it. Glad its working for you :D
and thanx to you for all your help and feedback NTLDR
Originally posted by NTLDR
Nice suggestion there DWZ :)
And add $lastposter in your home_newsbit template where you want the username to appear ;)
I may also add this in to the new version. Worked great :)
But I just ran into a problem :\
I went to add a user-group to my board today, and I got this message:
Database error in vBulletin Control Panel 2.2.5:
Invalid SQL: INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,canview,canviewvbindex, showgroup,cansearch,canemail,canpostnew,canmove,ca nopenclose,candeletethread,canreplyown,canreplyoth ers,canviewothers,caneditpost,candeletepost,canuse pm,canpostpoll,canvote,canpostattachment,ismoderat or,canpublicevent,canpublicedit,canthreadrate,cant rackpm,candenypmreceipts,maxbuddypm,maxforwardpm,c anwhosonline,canwhosonlineip,cangetattachment)
VALUES (NULL,'News Reporter','',0,1,1,,,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1 ,0,0,0,0,0,0,0,5,5,1,0,1)
mysql error: You have an error in your SQL syntax near ',1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,5,5, 1,0,1)' at line 2
mysql error number: 1064:\
any idea what's wrong?
NTLDR
08-15-2002, 09:40 AM
I would guess that you made a error changing your usergroup.php file, check the change that you made to it.
Originally posted by NTLDR
I would guess that you made a error changing your usergroup.php file, check the change that you made to it. Yeah, that was my first guess. I used vBhacker to do the changes origanaly, and I just went over it again now, and it looks fine.
Audionuts
08-15-2002, 04:45 PM
hum small problem...trying to install this, and i it seams i got it semi workinfg then i went to admin to add the home template and noticed my temples are gone? everything else works in the CP but when i try to add or modify or just view the tmplates, alli see is a white page :(
NTLDR below link is not your hack but i am trying to get it to show the stats from it on VBindex but having no luck at all.
I had to revert to backup copy as totally screwed up forum.
If you get time can u check it out,i know its a bit of a long shot as its another hack by Bane and not made by you.
https://vborg.vbsupport.ru/showthread.php?postid=285536#post285536
NTLDR
08-15-2002, 07:08 PM
Originally posted by Audionuts
...noticed my temples are gone? everything else works in the CP but when i try to add or modify or just view the tmplates, alli see is a white page :(
Sounds like your using PHP 4.2.x and a lower version of vB then 2.2.6. Could you post a screenshot?
NTLDR
08-15-2002, 07:11 PM
Originally posted by Mr_P
NTLDR below link is not your hack but i am trying to get it to show the stats from it on VBindex but having no luck at all.
I had to revert to backup copy as totally screwed up forum.
If you get time can u check it out,i know its a bit of a long shot as its another hack by Bane and not made by you.
https://vborg.vbsupport.ru/showthread.php?postid=285536#post285536
This installs a treat with vBindex, however it does add quite a few queries to the page.
Check out my sites home page (http://forums.ukwnetwork.com/home.php) some of the statistics there are taken from vBstats, which ones in particular did you want? They are very easy to add.
ok if poss i would like to call these 2 boxes in under the welcome box
[Posters] [Forums/Threads]
i can put links on vbindex to them but they look better if automatically shown.
Edit Small Note
Do you have to reg on your site to see the stats as no pages are showing to me ? regardless of what link i click on
NTLDR
08-15-2002, 07:26 PM
Originally posted by Mr_P
Do you have to reg on your site to see the stats as no pages are showing to me ? regardless of what link i click on
Nope, there at the top right on the page that I gave you the link for. The server load is really high due to someone running a perl script :( which maybe why you couldn't get it.
/vbstats.php?action=topposters
/vbstats.php?action=topthreads
these 2 boxes if at all possible?
Sorry forgot to say i got on your site after a few mins
:classic:
NTLDR
08-15-2002, 07:35 PM
Originally posted by Mr_P
ok if poss i would like to call these 2 boxes in under the welcome box
[Posters] [Forums/Threads]
Add before:
// posts info
// -------------------------
The contents of vbi-stats-addon.txt and change and add and modify the HTML in forum-threads-html.txt and posters-html.txt to suit your needs.
cheers NTLDR will try it now and let u know outcome
stuck lol
sorry to say
Do i make 2 new templates and call them this ?
forum-threads-html
posters-html
and also where do i copy the contents of vbstats addon to ?
i cant find that ?
// posts info
// -------------------------
Sorry if i overlooked something staring me in eyes NTLDR ;)
NTLDR
08-15-2002, 07:48 PM
Originally posted by Mr_P
Do i make 2 new templates and call them this ?
forum-threads-html
posters-html
Add the HTML from these to files into your home template (you may need to change them as I only stripped them out of the vBstats hack.
and also where do i copy the contents of vbstats addon to ?
i cant find that ?
// posts info
// -------------------------
Its right at the top of the file, after the variables, line 50 to be exact ;)
ok got 2 boxes on main page but im stuck as i aint sure what file to look for // posts info
// -------------------------
i have done a search though all templates and it aint showing and even searched in vbindex and even stats.php with no luck
Easy hacks are not for me (joke m8)
NTLDR
08-15-2002, 07:59 PM
It should be on Line 50 of vBindex.php (I probably didn't make it clear what file you were supposed to be adding it to).
ok added the contents from vbstats addon after line 50
added the contents of the 2 texts files into the home template
Its shows the 2 boxes but no stats inside ?
this is how it is in vbindex
// -------------------------
// end variables
// posts info
// stats
// -------------------------
// top posters
// -------------------------
if ($action=="topposters") {
etc etc
NTLDR
08-15-2002, 08:13 PM
My fault, I didn't look at the code properly, try this instead of the code you inserted into vBindex.php
Parse error on line 121 which is }
NTLDR
08-15-2002, 08:41 PM
OK, third time lucky :ermm:
This should work, I think I've been spending too long looking at code and vB :classic:
u deffo must be m8
Works like a dream - i just need to sort colors as they red and green for some reason but excellant m8
Over last few days you have been patient and given me loads of help on quite a few different hacks and like to give something back in return
Do u have a paypal account ? if so pm me m8 and will send something.End of day i know you do this cause you like helping others but you have gone out of your way a few times and that i appreciate a lot.
NTLDR
08-15-2002, 08:58 PM
Originally posted by Mr_P
u deffo must be m8
Works like a dream - i just need to sort colors as they red and green for some reason but excellant m8
Do a quick find and replace in the code I uploaded and change {firstcolor} to { firstaltcolor} (minus the space after {) and {secondcolor} to { secondaltcolor} (minus the space again) this will use your boards default colors instead of red and green :D
Do u have a paypal account ? if so pm me m8 and will send something.End of day i know you do this cause you like helping others but you have gone out of your way a few times and that i appreciate a lot.
Thank you, its comments like that which makes it worth while being part of this community and reasing hacks and providing help and support to others. I'll send you a PM ;)
expect something 2morrow at 2pm when i get back from work
and all in all excellant work.
I may ask the daft questions but i wonder how many more are reading this and installing the addons
LOL just thought this has got quite a few addons on now aint it.
NTLDR
08-15-2002, 09:21 PM
Originally posted by Mr_P
[B]expect something 2morrow at 2pm when i get back from work
and all in all excellant work.
Many thanks :banana:
I may ask the daft questions but i wonder how many more are reading this and installing the addons
I remember when I first got vB and started adding hacks, I didn't even know what a template was, let alone where to find it and add/edit etc, lol
LOL just thought this has got quite a few addons on now aint it.
Thats the beauty of this hack, anything that was made for vB can be inegrated with it. I may do a addon pack in the near future :)
nice one goes to show does`nt it what is possible from a vbb board.
half the hacks on here have nothing to do with a board really and yet make the board every bit as unique to that person with the hacks installed.
Originally posted by DWZ
Yeah, that was my first guess. I used vBhacker to do the changes origanaly, and I just went over it again now, and it looks fine. *bump* :(
NTLDR
08-15-2002, 11:06 PM
Sorry DWZ, I thought that you meant that you looked over it and its fine.
Have you added any other hacks that require changes to usergroup.php as that may be what the problem is. The code you should have is:
// ###################### Start insert #######################
if ($HTTP_POST_VARS['action']=="insert") {
//vbindex addon
$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,canview,canviewvbindex, showgroup,cansearch,canemail,canpostnew,canmove,ca nopenclose,candeletethread,canreplyown,canreplyoth ers,canviewothers,caneditpost,candeletepost,canuse pm,canpostpoll,canvote,canpostattachment,ismoderat or,canpublicevent,canpublicedit,canthreadrate,cant rackpm,candenypmreceipts,maxbuddypm,maxforwardpm,c anwhosonline,canwhosonlineip,cangetattachment)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$canmodifyprofile,$canviewmembe rs,$canview,$canviewvbindex,$showgroup,$cansearch, $canemail,$canpostnew,$canmove,$canopenclose,$cand eletethread,$canreplyown,$canreplyothers,$canviewo thers,$caneditpost,$candeletepost,$canusepm,$canpo stpoll,$canvote,$canpostattachment,$ismoderator,$c anpublicevent,$canpublicedit,$canthreadrate,$cantr ackpm,$candenypmreceipts,$maxbuddypm,$maxforwardpm ,$canwhosonline,$canwhosonlineip,$cangetattachment )");
$action="modify";
echo "<p>Record added</p>";
}
Under the // ###################### Start insert #######################
Section, if thats for an unhacked 2.2.6, if you have that and it doesn't work you must have hacked usergroup.php before:
If so I hope you have a backup, restore that and the changes for the $DB_site->query bits make sure you add canviewvbindex after canview on all of them and $canviewvbindex after $canview in the second part.
NeRilkA
08-16-2002, 08:33 PM
Hi everyone
i translate vbIndex 2 in French so i post my modifications :)
Enjoy :bunny: :cool:
ExAvIoUr
08-16-2002, 10:27 PM
hey... i need to know.. will this work if i dont have the default Style as the one vbb comes with.. cuz like i have changed around the default style and stuf..?
NTLDR
08-16-2002, 10:46 PM
Originally posted by ExAvIoUr
hey... i need to know.. will this work if i dont have the default Style as the one vbb comes with.. cuz like i have changed around the default style and stuf..?
Yes, this will work if you have changed the style. Check out the demo site (http://forums.ukwnetwork.com/vbidemo.php?referrerid=2) which shows how easy you can make it look like your forums.
drives fast
08-17-2002, 06:28 AM
has anyone thought of changing the news to have a $maxchars option and it inserts a "read more" link at the bottom?
if someone makes a lenghtly post and someone makes another long one after that the center colum becomes quite long if set to show 5 and makes the left and right colums look out of place because they are now super short in comparrison.
also maybe a way to make a stickey thread stay on top on the vbindex and have the news post return to the top if it is replied to (on vbindex)
I noticed that if a post is made in the news forum it shows on top on vbindex and if someone makes another new thread it then shows on top but if the previous one is replied to it remains second in order on vbindex never to return to the top as it does in the forum itself.
same thing when you make a post stickey....in the forum it goes to the top of the list but on vbindex it moves down as other threads are posted.
just some thinking I was doing during testing
wadayallthink?
NTLDR
08-17-2002, 05:14 PM
Originally posted by drives fast
has anyone thought of changing the news to have a $maxchars option and it inserts a "read more" link at the bottom?
I plan to properly integrate this in a later version of the hack ;)
also maybe a way to make a stickey thread stay on top
It would probably be easier to set vBindex to display a certain thread(s) in a block you specify.
I noticed that if a post is made in the news forum it shows on top on vbindex and if someone makes another new thread it then shows on top but if the previous one is replied to it remains second in order on vbindex never to return to the top as it does in the forum itself.
It seems to me at least very illogical to have the latest news in any other order then it was posted in.
same thing when you make a post stickey....in the forum it goes to the top of the list but on vbindex it moves down as other threads are posted.
Thats the point, to show the lastest threads posted. Although you could specify a block to have sticky threads from specific forum ids.
Donkeyballz
08-17-2002, 06:19 PM
Hey, I have a problem with installing this hack, I get the next error:
start vBulletin original code
Warning: Cannot add header information - headers already sent by (output started at /home/endoria/frontwor/public_html/community/vbindex.php:1) in /home/endoria/frontwor/public_html/community/admin/functions.php on line 1604
I'm not very in coding with vB, so can you help me please :)
Thx
NTLDR
08-17-2002, 06:35 PM
Does this line:
start vBulletin original code
Have 2 // in front of it in the PHP file? and can you post a few lines before and after that line for me to see?
drives fast
08-17-2002, 08:31 PM
NTLDR,
you are correct in all your answers about the logical way it works.
however on my forum in the news forum there are news that we want to stay on top for certain periods of time and with the present situation the only way to get it back on top is to delete it and re-post it.
thank you for your reply...I will be looking forward to the $maxchars addition. I tried to do it myself but wasn't able to get it to work.
thanks again.
NTLDR
08-17-2002, 10:03 PM
Originally posted by drives fast
NTLDR,
you are correct in all your answers about the logical way it works.
however on my forum in the news forum there are news that we want to stay on top for certain periods of time and with the present situation the only way to get it back on top is to delete it and re-post it.
If I get a chance in the next few days I'll take a look and see what I can do ;)
NTLDR
08-17-2002, 10:14 PM
Originally posted by drives fast
I noticed that if a post is made in the news forum it shows on top on vbindex and if someone makes another new thread it then shows on top but if the previous one is replied to it remains second in order on vbindex never to return to the top as it does in the forum itself.
I remembered this one would be easy ;)
Change:
$newsquery=$DB_site->query("SELECT * FROM thread WHERE forumid='$newsforum' ORDER BY dateline DESC LIMIT $newsposts");
To:
$newsquery=$DB_site->query("SELECT * FROM thread WHERE forumid='$newsforum' ORDER BY lastpost DESC LIMIT $newsposts");
As for the sticky threads was did you mean keep them at the top of the news block, or the top of the latest threads block? I'll take a look into that when I get the chance :)
drives fast
08-18-2002, 12:28 AM
yes....on top of the news block
the latest threads is not a concern....I like that the way it is
and thank you for your considerations in modifactions......the order by change worked perfect
Donkeyballz
08-18-2002, 04:36 AM
Here you get a few lines before and after:
} else {
//eval("\$welcome = \"".gettemplate('home_unregwelcome')."\";");
eval("\$logincode = \"".gettemplate('home_login')."\";");
eval("\$welcomelogincode = \"".gettemplate('home_welcomelogin')."\";");
eval("\$unregwelcomemessage = \"".gettemplate('home_unregmessage')."\";");
$buddy = "";
}
// start vBulletin original code
// -------------------------
$activeusers = "";
$loggedinusers = "";
if ($displayloggedin) {
$datecut=time()-$cookietimeout;
$loggedins=$DB_site->query_first("SELECT COUNT(*) AS sessions FROM session WHERE userid=0 AND lastactivity>$datecut");
$numberguest=$loggedins['sessions'];
$numbervisible=0;
$numberregistered=0;
LightBringer
08-18-2002, 06:37 AM
I've read through this thread and I am still unable to exclude my private forums from the "Latest Threads" column.
I've verified that my installation is correct.
I've double and triple checked my forum permissions.
I've double and triple checked my usergroup permissions.
As a regular user or unregistered user,etc I am not able to view the private forums, but I CAN see the latest threads from the private forums. It'd be great if I could just excluse forms from populating this field OR it did follow the vbulletin default method of permission parsing for particular forums. Unfortunately this isn't the case. :/
Any advice?
I have gone through the database and checked that the canviewvbindex=0 is available and it is, my concern with this however is that I want ALL users to be able to see vbindex, just NOT the private forums within the latest threads.
Any advice?
aLuCaRD
08-18-2002, 12:12 PM
Didnt see anyone else with the same welcome panel problem as me, wondering if you could help me please mate..?
(Probably something simple.) :)
aLuCaRD
08-18-2002, 12:26 PM
No worries, I tried an upgrade on the board then tried it from scratch on a fresh board and realised what I'd done wrong. :)
NTLDR
08-18-2002, 04:29 PM
Originally posted by Donkeyballz
Here you get a few lines before and after:
I can't see anything wrong with it, does the page show, but with that error at the top?
Whats on your line 1604 of functions.php, in the deafult 2.2.6 its cookie stuff and this could(?) have something to do with it, heres the comment:
// It's been reported that there's a bug in PHP 4.2.0/4.2.1 with Apache 2 causing setcookie() to not work correctly.
// This is the workaround. If you need to use this code, please add:
// define('USE_COOKIE_WORKAROUND', 1);
// to your config.php.
NTLDR
08-18-2002, 04:35 PM
Originally posted by LightBringer
Any advice?
This seems to be a bug with vB as oposed to vBindex as you can see the title of your last post in a private forum from your profile for example.
This should work, it will exlude the news forum, polls forum, forums with visible set to 1 (non-private (still has vB bug)) and any forumids you specify:
Change:
$threadsquery = $DB_site->query("SELECT threadid,forumid,title,postusername,lastposter,rep lycount,iconid FROM thread WHERE forumid!=$newsforum AND forumid!=$pollsforum ".$threadsql." AND visible=1 order by lastpost desc limit $numthreads");
To:
$threadsquery = $DB_site->query("SELECT threadid,forumid,title,postusername,lastposter,rep lycount,iconid FROM thread WHERE forumid!=$newsforum AND forumid!=$pollsforum AND forumid!=x ".$threadsql." AND visible=1 order by lastpost desc limit $numthreads");
Change x to the forum id, if you wish to add more forum ids add:
AND forumid!=x
Changing x again, do this for each forum id you wish to be exculded.
clangrounds.com
08-18-2002, 06:29 PM
Originally posted by NTLDR
If you use the home template as the basis for a new page, and change the content of the center colum and remove any of the other stuff you don't want and add your content.
Save the template as a home_pagename
You can then access it using the following URL:
vbindex.php?page=home_pagename
Everything that is avalible on the vBindex page can be used within any new pages you create, eg you could swap the left and right colums on a new page.
I renamed vbindex.php to index.php so I can run it off my main domain name. I added the "home" template contents into a new template I made called "home_images" for my image gallery. But when I went index.php?page=home_images off my domain it came up as a blank page. Then I replaced "images" with a bunch of odd characters to see if it would display blank again, and it did. So I am not entering the right url to go see my "home_images" template page?
NTLDR
08-18-2002, 06:38 PM
My applogies, I have updated the hack since then to provide a little extra security/privacy.
The URL you need is index.php?page=images the template must still be called home_images though.
clangrounds.com
08-18-2002, 07:13 PM
That worked, thanks a million! This hack seriously rocks! :)
aLuCaRD
08-18-2002, 09:03 PM
Woohoo..! Got it installed and working great..! Thanks mate :D
NTLDR
08-18-2002, 09:59 PM
Originally posted by aLuCaRD
Woohoo..! Got it installed and working great..! Thanks mate :D
Hehe, glad to hear it :D
clangrounds.com
08-19-2002, 04:47 PM
I noticed some small bugs that I just cannot figure out. <need sleep>
I changed my vbindex.php to index.php so the page is off my main domain name. However, I notice that when I try to click a user to see their profile off the main page it gives me an error, and I notice /forums is not in the url. The same thing when I have a PM pop-up message, and I try to go to my inbox from the main page.
I hope you can help NTLDR :)
NTLDR
08-19-2002, 05:02 PM
Originally posted by clangrounds.com
However, I notice that when I try to click a user to see their profile off the main page it gives me an error, and I notice /forums is not in the url.
Which link(s) does this happen for? they should all be prefixed with $bburl I may have missed one though.
The same thing when I have a PM pop-up message, and I try to go to my inbox from the main page.
Change your head_newpm template to:
<script language="JavaScript">
<!--
function confirm_newpm() {
input_box=confirm("You have a new private message. Click OK to view it, or cancel to hide this prompt.");
if (input_box==true) { // Output when OK is clicked
second_box=confirm("Open in new window?\n\n(Press cancel to open your $inboxname in the current window.)");
if (second_box==true) {
window.open('$bburl/private.php?s=$session[sessionhash]','pmnew','width=600,height=500,menubar=yes,scroll bars=yes,toolbar=yes,location=yes,directories=yes, resizable=yes,top=50,left=50');
} else {
window.location="$bburl/private.php?s=$session[sessionhash]";
}
} else {
// Output when Cancel is clicked
}
}
// -->
</script>
Again, just $bburl was added before the links ;)
clangrounds.com
08-19-2002, 05:47 PM
On the index.php page where it lists the names of who is online, you should be able to click their name to get their profile but it's missing a $bburl, and I can't find where to edit it... :(
I got the private message thing to work though from your above post, thanks! :)
NTLDR
08-19-2002, 06:06 PM
Originally posted by clangrounds.com
On the index.php page where it lists the names of who is online
Its the forumhome_loggedinuser template you need to add the $bburl in the hyperlink :)
clangrounds.com
08-19-2002, 08:37 PM
Thanks, that did the trick! :)
NTLDR
08-19-2002, 08:46 PM
Glad to hear it :D
ExAvIoUr
08-20-2002, 05:25 PM
my index.php is hacked. so how do i know what is what?
NTLDR
08-20-2002, 05:27 PM
Originally posted by ExAvIoUr
my index.php is hacked. so how do i know what is what?
No sure I follow, could you expand a bit more?
ExAvIoUr
08-20-2002, 05:34 PM
ok my index.php file is hacked. so the line numbers stated in the install.txt doesn't match. which i know.
i copied the lines that was stated in the install file. i wanna know if that is the right one.
should i attach the part of code or paste it here?
do u get waht i am saying?
NTLDR
08-20-2002, 05:40 PM
If you have everything between:
$activeusers = "";
And:
eval("\$loggedinusers = \"".gettemplate('forumhome_loggedinusers')."\";");
}
Then its correct.
ExAvIoUr
08-20-2002, 05:43 PM
ok good. i have that. if i have ne other troubles i will post it
thanx
ExAvIoUr
08-20-2002, 06:16 PM
ok it works but not the poll. i dunno why. i made a poll in the poll forum. only a vote button came up in the poll part of vbindex.
can u help me?
ExAvIoUr
08-20-2002, 06:55 PM
nevermindmind i fixed it
exTracT
08-20-2002, 08:47 PM
I have been reading through the posts and am still confused about 2 things.
1. The polls, I have added one poll to the Forum-poll. and it will only show up on the vbindex page after the user has voted.
it originally has a vote box and a results link, and they both say a poll must be selected or something.
2. I cannot get the online users part to work for some reason, online today users show up the rest dosen't. I don't see
online now ,members or guests
thanks in advance I love this hack , I have been looking for something like this for a while now.
NTLDR
08-20-2002, 09:15 PM
Have you got a link or a screenshot? So that I can take a look and get more of an idea what the problem is.
mbaskett
08-21-2002, 01:33 AM
NTLDR:
First off I'd like to say that I admine you for picking up where el3m3nt left off and posting v2 of this hack. I must say that I started with an older version of 1.x and have been through some of the 'growing pains' of bug fixes. part of it has been my learning curve of PHP and templates, but I feel that I am getting the hang of it finally.
One question, though.... If you check out my current homepage under development (http://www.torquecentral.com/home.php?styleid=6) with a 1.3 version of vbindex, you'll see that the news segments don't parse all the vb code (look at the LIST tags)... is there a fix for this? It picked up the IMG tags alright, but not some of the others...
NTLDR
08-21-2002, 11:38 AM
Originally posted by mbaskett
you'll see that the news segments don't parse all the vb code (look at the LIST tags)... is there a fix for this? It picked up the IMG tags alright, but not some of the others...
This isn't a bug that I am aware of, if you look at this (https://vborg.vbsupport.ru/attachment.php?s=&postid=281019) screenshot that I posted at the start it shows all the vBcode being parsed correctly. Perhaps you should try uploading v2 and just testing that to see if the code parses correctly or not.
On a side note I'd like to say that you have done a great job with the page ;)
Erwin
08-21-2002, 11:43 AM
I only installed the "Poll" part of the vbindex.php file so that I can post the latest polls in my forumhome. :) Works well. I even managed to reinstall the poll results bars. Looks nicer with the image bars. Thanks.
RenzukenX
08-21-2002, 05:43 PM
This is killing me, I've been working to try and fix this hack for 3 days on my test board and yet no luck and it is probably a simple little mistake.
Well my test forum is based at www.f-fantasy.com/forums and the vbindex is at www.f-fantasy.com and no matter how much I edit, I keep running back into this problem.
Help!
(I apologise if this topic has been covered before but I really am in "ugh" mode)
NTLDR
08-21-2002, 05:45 PM
Have you set the path and uncommented the chdir() statement?
It should look like:
chdir('./forums');
RenzukenX
08-21-2002, 06:01 PM
It currently looks like this:
//chdir('./forums');
require('./forums/global.php');
And I get the :
Warning: Unable to access ./admin/config.php in /home/virtual/site57/fst/var/www/html/forums/global.php on line 118
When I edit it as so:
//chdir('./forums/global.php');
require('./global.php');
I get the:
Warning: Unable to access ./global.php in /home/virtual/site57/fst/var/www/html/index.php on line 26
It is killing me, almost literally!
NTLDR
08-21-2002, 06:05 PM
It **MUST** be:
chdir('./forums');
require('./global.php');
Not:
//chdir('./forums');
require('./forums/global.php');
Note the removed //, the other error was on my part in my last post. My applogies.
RenzukenX
08-21-2002, 06:11 PM
Thank you, that seems to have solved that but as my luck dictates, yet another error:
Parse error: parse error in /home/virtual/site57/fst/var/www/html/index.php on line 26
NTLDR
08-21-2002, 06:13 PM
Line 26 should be:
require('./global.php');
If not what have you got?
RenzukenX
08-21-2002, 06:21 PM
That is exactly what is there, and yet that error still rears its ugly head.
NTLDR
08-21-2002, 06:26 PM
Grrr, I missed a vital ' in the above code.
Make sure its:
chdir('./forums');
Sorry, its been a long day ;)
RenzukenX
08-21-2002, 06:30 PM
Hehe, I know how you feel.
Great that has brought up the page but all of the links (including pictures) are pointing to the main directory www.f-fantasy.com rather than www.f-fantasy.com/forums.
I assume (and hope) it is a minor edit?
NTLDR
08-21-2002, 06:33 PM
In the style, the path to the images folder must be a full url, not just images, so change it to http://www.f-fantasy.com/forum/images
As for the links, make sure in the main options you have the URL for the forum set to http://www.f-fantasy.com/forums
RenzukenX
08-21-2002, 06:41 PM
Thank you so much, that has seemed to fix everything!
I appriciate it fully, now to impliment it complete into my fully running boards, thank you again
NTLDR
08-21-2002, 06:43 PM
No problem, Glad I could get it working for you :D
RenzukenX
08-21-2002, 07:05 PM
Sorry to be a complete and utter dumbass, but I've had a little template problem.
If you go to www.coalitionforums.com you will see it, how will I be able to edit the background colour?
NTLDR
08-21-2002, 07:11 PM
All the colours for vBindex are taken from the colours of the Style that you are using, so you need to edit the colours that you are using for the default style in the Admin CP.
RenzukenX
08-21-2002, 07:18 PM
Hmm, yes I figured that and I've edited the colours and yet I have still to find out why white surrounding is showing up instead of the normal forum background colour.
NTLDR
08-21-2002, 07:23 PM
The white surounding is the page background colour in the Admin CP.
RenzukenX
08-21-2002, 07:30 PM
That is what is perplexing me, White isn't the page background colour in the AdminCP it is a totally different colour.
For the actual forum it shows it, but on the vbindex page it doesn't
NTLDR
08-21-2002, 07:33 PM
They are both showing up as white to me :confused:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.