View Full Version : vBindex v2.1
lemarsu
11-02-2002, 01:00 PM
Originally posted by lemarsu
but now the Avatar is showing.. I have disabled it in vBulletin Options.
I Can alway change the Template (quick fix) but is there an other way ?
Hey don't worry about that fixed it!
sHORTYWZ
11-02-2002, 03:11 PM
They cannot see them at all (except for forumhome - which is required for vbindex to allow them to get to my homepage) - check out http://hweeboard.xwarzone.com to see what I mean.. http://www.xwarzone.com is my vbindex.
NTLDR
11-02-2002, 05:59 PM
Originally posted by Buddha
hey ntldr, i've installed the "allow admins to use HTML always" hack, but it still shows up as text html in vbindex unless html is allowed via admin cp.
is there a way to code it so that if the post is made by admin usergroup, it will allow html regardless of whether it's allowed in the admin cp.
Should be a minor mod, can you point me in the direction of the hack/mods you have installed? Its probably just a small change to the bbcodeparse line in the news section.
NTLDR
11-02-2002, 06:01 PM
Originally posted by haste
I'm having a problem: only the newest news item shows a message icon, even though all of them have icons assigned. Any ideas?
Are the icons assigned to just the post/thread or both? If the icon is only set for the post (I think) then it will not display.
NTLDR
11-02-2002, 06:03 PM
Originally posted by sHORTYWZ
ntldr - still having problems with posts showing up in the "latest threads" that the user doesn't have access to.. everything on my board is set to require login except for viewing of forum home yet you can see posts from all of my boards in the box..
You need to explicity set the permissions for each forum, any private forums that use inherited permissions will appear. I will try and make it so these work in v2.2. Check back in the thread, there are details on how to manually exclude private/certain forums.
Buddha
11-02-2002, 08:24 PM
Originally posted by NTLDR
Should be a minor mod, can you point me in the direction of the hack/mods you have installed? Its probably just a small change to the bbcodeparse line in the news section.
sorry buddy... i was going to post that info but then forgot..
Always allow HTML for Super Mods, Admins and other usergroups of choice. [mini-hack vB 2.0.3]
In admin/functions.php
Find:
====================
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);
//highlight words for search engine
====================
Replace with
if ($post[usergroupid]==6 OR $post[usergroupid]==5) {
$post[message]=bbcodeparse2($post[pagetext],1,1,1,1);
} else {
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);
}
//highlight words for search engine
===================
Just add more OR $post[usergroupid]==X to the IF statement for whatever usergroups you want to allow.
5 is Super Mod and 6 is Admin.
NTLDR
11-02-2002, 08:53 PM
Find in vbindex.php:
$newstext=censortext(bbcodeparse($news[pagetext],0,1));
Replace with:
if ($news[postuserid]==YOUR_ID) {
$newstext=bbcodeparse2($news[pagetext],1,1,1,1);
} else {
$newstext=bbcodeparse($news[pagetext],0,1);
}
Untested, but no reason it shouldn't work, replace YOUR_ID with your id, as this is no low load way of geting usergroupids for posts here, but you can use the standard OR $news[postuserid]==ID to add extra users to it. You may also want to check the queries used and alter the 1's in this line and see what happens: $newstext=bbcodeparse2($news[pagetext],1,1,1,1);
Buddha
11-02-2002, 09:36 PM
sorry.
get a parse error with that.
i don't have the code you posted.
mine is this.
$newstext=censortext(bbcodeparse($news[pagetext],$newsforum,1));
NTLDR
11-02-2002, 09:45 PM
Weird, thats not the error I would have expected. Which of the lines is causing the error?
Buddha
11-02-2002, 10:20 PM
sorry buddy.
i had obviously missed a ) in the script.
entered it and it seems to be working now. i'll test on other pages to see if in fact that is what i missed.
sorry for the trouble.
thanks again for the help.
wolfe
11-02-2002, 10:53 PM
if you want the shoutbox to work prolly run this query
CREATE TABLE `shoutbox` (
`shoutid` int(11) NOT NULL auto_increment,
`userid` int(11) NOT NULL default '0',
`shout_text` text NOT NULL,
`timestamp` int(11) NOT NULL default '0',
PRIMARY KEY (`shoutid`)
) TYPE=MyISAM;
NTLDR
11-03-2002, 04:33 PM
Originally posted by wolfe
if you want the shoutbox to work prolly run this query
No, don't run that query, Do as the instructions say and either switch it off to install the Prerequsit, vB Shoutbox v1.0 as the instructions tell you to.
wolfe
11-03-2002, 04:34 PM
well i had to do that because the instruction never added it so i added that and it worked fine :D
NTLDR
11-03-2002, 04:55 PM
No, the instructions tell you to install the hack or turn it off.
CrazyDustin
11-04-2002, 02:43 PM
does this hack allow you to add new pages to your site?
asweetdeal
11-04-2002, 04:08 PM
I installed the hack, love it!! However, I have a private forum and if a guest comes in they have to register or login, the login box pops up and when you enter your login info or click on register it gives a 404 error because it is looking for /member.php and not /forums/member.php... is there a template I need to change or what can I do to resolve this?
Thanks!
ASD
NTLDR
11-04-2002, 05:47 PM
Originally posted by CrazyDustin
does this hack allow you to add new pages to your site?
Yes you can add aditional pages with this hack.
NTLDR
11-04-2002, 05:49 PM
Originally posted by asweetdeal
it gives a 404 error because it is looking for /member.php and not /forums/member.php... is there a template I need to change or what can I do to resolve this?
You either need to place the full url in the error_nopermission template or hack functions.php or member.php.
Twin-x
11-04-2002, 06:43 PM
Hi,
I have a serious problem with this hack.
I have multiple skins.
If i wish to change the header off skin 1 on the home_header no problems occur.
Now i change the header of skin 2 on the home_header.
Boom skin 1 i changed and nothing applies to skin 2 the home_header stays green.
I am really lost. Is there a fix for this or should i install vbhome (lite) ???
Please help.
Thx in advance
Oh yeah i have the correct template set selected.
Buddha
11-04-2002, 06:45 PM
i don't understand what
Boom skin 1 i changed and nothing applies to skin 2 the home_header stays green.
means.
i have multiple skins as well, and they work fine with vbindex.
Twin-x
11-04-2002, 06:46 PM
Have you tried to edit the templates in both skins then?
Buddha
11-04-2002, 06:52 PM
i've been editing templates (for both skins) with vbindex for months now... literally.
works like a charm.
NTLDR
11-04-2002, 06:52 PM
The home_ templates will apear in each Template Set, make sure you are copying the correct header template to the correct home_header one.
Twin-x
11-04-2002, 06:56 PM
I am sure that i am doing that.
I try to reinstall the template sets and reapply vbindex
Buddha
11-04-2002, 07:15 PM
there's absolutely nothing wrong with the script. i can tell you that. i'm working on it right now, applying changes to the header templates as we speak.
hell, one of my skins has three headers that i apply to various pages using vbindex.
it works buddy.
Twin-x
11-04-2002, 08:40 PM
Originally posted by Buddha
there's absolutely nothing wrong with the script. i can tell you that. i'm working on it right now, applying changes to the header templates as we speak.
hell, one of my skins has three headers that i apply to various pages using vbindex.
it works buddy.
I reinstalled everything on another site all works well thx.
Buddha
11-04-2002, 10:49 PM
good to hear.
Buddha
11-05-2002, 06:11 PM
hey ntldr, this may be completely unrelated, but when i updated the counters, it seemed to screw up the polls.
don't ask me how that makes sense, but i swear i hadn't touched anything else.
so i updated this
Update postid's For Threads - adds the postid of the first post in a thread in the thread table
and
Update Thread Info - update thread post counts, original posters, last post date, attachment totals
and then (i swear to god here) the template for the polls was reset to its default (i had changed it some), and i can no longer post urls in the poll options, as it displays the html on vbindex.
very freakin' bizarre.
i fixed up the template... took a while to figure out what had been changed before... but i've tried several tests, and it just will not let me put html in there. i've switched the allow html in polls forum in the admin cp, and it made no difference.
i know it works, cause my first poll that i had had html links for each option.
any clue what's going on here?
thanks buddy.
NTLDR
11-05-2002, 06:43 PM
Have you installed any other hacks recently? All the vBindex part of the updates does is select all the threads and the postid of the first post in them and updates the tpostid column in the thread table.
Take a look through admin/misc.php and see if there are any queries which relate to the template table.
Buddha
11-05-2002, 08:56 PM
nothing in there that would do this.
like i said, makes no sense. only change i've made is the always allow html for admin which you posted here.
can you do the same for the polls section... i wonder if that would work.
thanks.
NTLDR
11-05-2002, 08:58 PM
Yes, if you find the bbcodeparse lines in the polls section and alter the variables from the code I posted for the news it should work fine for the polls too.
Buddha
11-05-2002, 11:03 PM
thanks. i tried, but i'm not a php coder. i don't which variables to use, and so i tried a few that seemed to make sense going by the rest of the code, but kept getting errors.
if you get a chance, i'd appreciate some help on this. if you're too busy though, i understand.
thanks.
Buddha
11-05-2002, 11:11 PM
problem solved.
i grabbed the polls portion of vbindex v2.01 and put it in the place of the polls section of vbindex v2.1
and it works again.
don't know what the hell that was all about, but hey, it works.
was there a lot different between those two, or just the admincp integration?
*edit*
tacked on a querry though.
christ... there's no winning with those damn querries, isn't there.
lol.
Twin-x
11-06-2002, 09:33 AM
How can i make the pictures show on the homepage? (vbindex)
I only see an url.
In the newsforum itself the picture is shown when i want to reply.
DeadBeat
11-06-2002, 11:09 AM
I just installed this and it works fine but it is all new to me as this is the first time i messed with VBB or php. Anyway, my prob is simple my banner shows at the top but the buttons don't show up under it they show up next to it on the right. I assume to fix this it is in the templates somewhere under vbindex, but where?
I saw this question asked once as i sorted through the 60 plus pages but he found it himself....so i made the post.
NTLDR
11-06-2002, 12:14 PM
Originally posted by Buddha
was there a lot different between those two, or just the admincp integration?
*edit*
tacked on a querry though.
christ... there's no winning with those damn querries, isn't there.
lol.
The main edits IIRC was an if statment to control the poll on/off switch in the ACP, I tided up the polls query and changed the bbcodeparse lines to remove the query thats been added on.
NTLDR
11-06-2002, 12:16 PM
Originally posted by Twin-x
How can i make the pictures show on the homepage? (vbindex)
I only see an url.
In the newsforum itself the picture is shown when i want to reply.
If the picture is placed in the post with vBcode or HTML then it should show on the homepage, if its an attachment it won't.
NTLDR
11-06-2002, 12:17 PM
Originally posted by DeadBeat
Anyway, my prob is simple my banner shows at the top but the buttons don't show up under it they show up next to it on the right.
I asume you run vBindex outside of your forums directory, in which case set the path to your Images Folder in the styles section of the ACP to the full url.
DeadBeat
11-06-2002, 12:39 PM
ok, yes it is outside the forums directory.....but all the images are there right now in the style section the image path is set to /images if i change it to the url it dissapears (theimages).
i would not think it have anything to do with that being images are there i just wanna know how to go about making my buttons centered more on the portal page. like under my banner
sorry about this as u can tell i am quite the newbie
NTLDR
11-06-2002, 03:10 PM
If you want to change the locations of the buttons then you need to edit the home_header template.
Twin-x
11-06-2002, 03:24 PM
Originally posted by NTLDR
If the picture is placed in the post with vBcode or HTML then it should show on the homepage, if its an attachment it won't.
It is done with vbcode. So no attachments?
http://synthforum.com
NTLDR
11-06-2002, 03:46 PM
vBcode Fix:
Find:
$newstext=censortext(bbcodeparse($news[pagetext],0,1));
Replace with:
$newstext=censortext(bbcodeparse($news[pagetext],$newsforum,1));
Note this will add 1 extra query.
[t4e]Kicks
11-06-2002, 04:12 PM
Kicks]I read through about 19 pages of this thread for the problem I'm experiencing and gave up :)
I have a weird issue on the vbindex.php page. It successfully pulls the title of the news post, the icon used for the news post, the number of comments/replies, who posted, and when
The only thing missing is the actual content of the news post. I first thought it was because the characters for news post under the admin cp was set to 0 so I tried changing it to 100 to no avail.
Any feedback is appreciated :)
Maybe it's on one of the pages I didn't get to, but I gave up :D
NTLDR
11-06-2002, 04:18 PM
Go into the ACP -> Update Counters -> Update postid's
This will then update your threads table and news posts made before you installed will appear on the site :D
[t4e]Kicks
11-06-2002, 06:24 PM
Kicks]That did it! Thanks :)
That's one of the few places I didn't bother checking. The thought didn't even cross my mind.
Thanks!!
Twin-x
11-06-2002, 06:24 PM
Originally posted by NTLDR
Note this will add 1 extra query.
No problem. It works now.
Second wish c.q. problem.
If i do a sticky it does not stick on the news page. Any codes for me NTLDR ;)
NTLDR
11-06-2002, 06:32 PM
Have a look towards the start of the thread I'm not sure if I did this modification before or not.
lemarsu
11-06-2002, 08:11 PM
NTLDR,
is there a way to edit online.php so that when you look at who online you don't get something like : Unknown Location: /vbindex.php?
LeMarsu
NTLDR
11-06-2002, 08:20 PM
Either install the hack by FireFly so you can add locations from the Admin CP or open online.php and see how the other PHP files are done. Theres two blocks of code for each one.
lemarsu
11-06-2002, 08:53 PM
NTLDR,
Thanks
I updated online.php
replaced
case 'gallery':
$userinfo[where] = "Viewing Picture <a href='gallery.php?s=$session[sessionhash]'>Gallery</a>";
break;
by
case 'gallery':
$userinfo[where] = "Viewing Picture <a href='gallery.php?s=$session[sessionhash]'>Gallery</a>";
break;
case 'portal':
$userinfo[where] = "Viewing <a href='vbindex.php?s=$session[sessionhash]'>The Portal</a>";
break;
and replaced
case '/robots.txt':
$userinfo[activity] = 'spider';
break;
by
case '/robots.txt':
$userinfo[activity] = 'spider';
break;
case 'vbindex.php':
$userinfo[activity] = 'portal';
break;
all seem to work.
lemarsu
11-07-2002, 05:52 AM
Have a look at the attached Pic.
As you can see the news that reads "Monster 2003 Weekend"
has "Read Full Post - Comments (0) - by LeMarsu - 06-11-2002 08:39 AM" completely out of line. It in not on the bottom right, plus there is some text from the post attched to it.
SAmi
NTLDR
11-07-2002, 10:02 AM
Does that post happen to use HTML?
lemarsu
11-07-2002, 10:10 AM
there is no html just BB code.
thread is here :
http://ducati.artscience.tv/monster/showthread.php?threadid=522
THE 1st UK MONSTER WEEKEND!
Please keep Sat 24th - Mon 26th May 2003 free in your diary's.
Location : just s/w of Stratford
Camping, limited B&B, catering on site.
Rideouts on the Sat and Sun - so if you cant come overnight - just pop in on the day!
Details in full will follow by mid dec.
keep an eye out at This Post (http://ducati.artscience.tv/monster/showthread.php?s=&threadid=512)
NTLDR
11-07-2002, 10:30 AM
Its becuase you have the character limit on and the limit happens to be in the middle of a <a href=".... thus there is no "> on the end of it, altering that should solve the problem :)
jazza
11-07-2002, 11:59 AM
ok, i got it all installed and there are no errors or anything, i just still appear on my forum home, i was looking at step 6 and thaught that would prolly sort it out, but im not sure on what to do. can someone pelase help :)
NTLDR
11-07-2002, 01:39 PM
.htaccess will only work if your using Apache, your host allows it and you have placed the file in the same directoty as vbindex.php
jazza
11-07-2002, 07:39 PM
apache version 1.3.26, ok, so, how do i do this ?
NTLDR
11-07-2002, 07:44 PM
The instructions tell you exactly what to do ;)
jazza
11-07-2002, 08:28 PM
meh . but whats a .htaccess file , sorry , im new to almost everything, baring php,... altho i still suk at that :(
NTLDR
11-07-2002, 08:31 PM
Create a file called .htacess just like the instructions say with the content they say.
jazza
11-07-2002, 08:41 PM
lol, im so dumb, anyway, i couldnt find all the files, altho its roly just me bein thik, so im givin up, cheers for the help anyway
NTLDR
11-07-2002, 10:07 PM
Every file thats required is in the Zip along with step by step instructions. All anyone has to do is read them to be able to install this hack.
kreftt
11-07-2002, 10:07 PM
the installer did something really weird:
i had it update my 2.01 installation.
it added the new database field fine, but when it came to the templates, it did the following:
it added my modified templates again. every template doubled, with even the same templatesetid.
i had to do a
delete from template where title like 'home_%'
and reinstall the default templates with your installer...
just fyi
kreftt
edit: and btw, its the best portal solution ive seen so far, and as firefly doesnt answer emails on how to pay for his vportal, it will most likely stay the best
edit2: is there any chance you could attach the 2.01 templates again to have araxis merge tell me the changes? i have heavily modified my templates (and translated) and wouldnt really like to do everything again.
tia
kreftt
NTLDR
11-07-2002, 10:14 PM
Strange, it should delete all your templates first.
Thanks for the comments, its nice to know that the work thats gone in has been apriciated.
I've attached a copy of the only set of v2.0.1 templates that I have in a zip :) (Note, they all start vbidemo_ but they are the same as the home_ ones were ;))
kreftt
11-07-2002, 10:18 PM
it cant delete the old ones:
your file says:
if ($step==install or $step==upgrade201) {
[unneccessary for the explanation]
$step=templates;
}
while its should say
if ($step==install) {
[unneccessary for the explanation]
$step=templates;
}
AND
if ($step==upgrade201) {
[unneccessary for the explanation]
$step=cleantemplates;
}
at least as i understand it...
thanks for the templates
lemarsu
11-08-2002, 02:17 PM
NTLDR
I would like to say thank you for all you help and sorry for all the stupid questions I have posted up in the last few months as I was learning about php and Vbulletin.
The users of the forum love your vbindex and the integration of the shoutbox. (why dont you do a similar addition with the weather?)
I would really like to thank you for the addition of being able control vbindex via the Admin CP.
I would like to add this is a great hack!.
Got to go and pretend I am working while I trying to add one more piece of functionality.
Thanks
LeMarsu
NTLDR
11-08-2002, 02:31 PM
Originally posted by lemarsu
NTLDR
(why don?t you do a similar addition with the weather?)
I may post up some tutorials on how to add some other popular things to vBindex. The problem with adding them in by default is that I don't want to bundle up a set of hacks and then make it look like they are mine.
Thanks for the comments and feedback :)
Buddha
11-08-2002, 03:05 PM
fyi ntldr, the same thing happened with me when i tried to upgrade from 2.01 wherein it just doubled all the home_ templates. i just deleted them all with your installer and reinstalled them and it was fine.
i just thought that was a step in the instructions that must have been missing.
btw, the new theme's going great. you designed vbindex in such a way that moving things around is a breeze.
thanks bud.
NTLDR
11-08-2002, 03:06 PM
I shall look into that for v2.2 if I ever do it ;)
I'm looking forward to seeing your site Buddha, it sounds impressive :D
kreftt
11-09-2002, 04:03 AM
for those who have the problem with their bbcodes breaking in pieces when characterlimit is reached:
i think i found a solution, which allows the following things:
-have admins post html
-have the "read more" whether the post is over the limit or not
-have the post cut itself in front of a bbcode that would be cut in half by the character limit
-have the post cut itself in front of a html tag that would be cut in half by the character limit
-have the news post follow the "use smilies" option that you set when you post the news
YOU MUST NOT
- use [ tags in your news posts except in bbcode
- use slashes inside html arguments. means you can do <a href="http://ww.vbulletin.org/forum">vb.org</a> but you cannot use <a href="http://ww.vbulletin.org/forum">http://ww.vbulletin.org/forum</a>
you can use slashes in the rest of the post
what you need to do is to is to
1) backup your vbindex.php
2) replace the whole news section
(starting with:
// news (based on code by TECK)
and ending with
// end news )
with the code below
from how i understand it there are no additional queries, and from how i understand it it was the first time i used all these functions so there might be errors. it works for me though.
// news (based on code by TECK)
// has pieces of entourage's admin html allow hack
// -------------------------
if ($newsonoff!=0) {
// $newsquery=$newsquery=$DB_site->query("SELECT thread.*,threadpost.pagetext AS pagetext FROM thread LEFT JOIN post AS threadpost ON (thread.firstpostid = threadpost.postid) WHERE forumid = '$newsforum' ORDER BY thread.dateline DESC LIMIT $newsposts");
$newsquery=$newsquery=$DB_site->query("SELECT thread.*, user.usergroupid AS usergroupid, threadpost.pagetext AS pagetext, threadpost.allowsmilie AS allowsmilie FROM thread LEFT JOIN post AS threadpost ON (thread.firstpostid = threadpost.postid) LEFT JOIN user ON (thread.postuserid = user.userid) WHERE forumid = '$newsforum' ORDER BY thread.dateline DESC LIMIT $newsposts");
while ($news=$DB_site->fetch_array($newsquery)) {
$newsthreadid=$news[threadid];
$newstitle=$news[title];
$newstime=vbdate($timeformat,$news[dateline]);
$newsdate=vbdate($dateformat,$news[dateline]);
$newsusername=$news[postusername];
$newsusergroupid=$news[usergroupid];
$newsallowsmilie=$news[allowsmilie];
$newsuserid=$news[postuserid];
$comments=$news[replycount];
$icon=$news[iconid];
// uncomment out next line to remove line breaks in the news
//$newstext=str_replace("<br />","",$newstext);
$pagetext=$news['pagetext'];
// max news chars
if (strlen($pagetext) >= $maxnewschars) {
$pagetext=substr($pagetext,0,$maxnewschars);
$pagetext=substr($pagetext,0,strrpos($pagetext," "));
// does this post have bbcode?
$pos=strrpos($pagetext,"[");
if ($pos === false) {
// if no, then do nothing
} else {
// check the distance between the last / and the last [ of the post.
// if its +1 we are outside bbcode and safe
$needle1="/";
$pos1=strlen($pagetext) - (strpos(strrev($pagetext), strrev($needle1)) + strlen($needle1));
$needle2="[";
$pos2=strlen($pagetext) - (strpos(strrev($pagetext), strrev($needle2)) + strlen($needle2));
$pos3 = $pos1 - $pos2;
if ($pos3 >= 1) {
// we are outside bbcode
} else {
// we are in bbcode, so we have cut it away
$pagetext=substr($pagetext,0,strrpos($pagetext,"["));
}
}
//does this post have html ?
$posh=strrpos($pagetext,"<");
if ($posh === false) {
// if no, then do nothing
} else {
// check the distance between the last / and the last < of the post.
// if its +1 we are outside html and safe
$needleh1="/";
$posh1=strlen($pagetext) - (strpos(strrev($pagetext), strrev($needleh1)) + strlen($needleh1));
$needleh2="<";
$posh2=strlen($pagetext) - (strpos(strrev($pagetext), strrev($needleh2)) + strlen($needleh2));
$needleh3=">";
$posh3=strlen($pagetext) - (strpos(strrev($pagetext), strrev($needleh3)) + strlen($needleh3));
$posh4 = $posh1 - $posh2;
$posh5 = $posh1 - $posh3;
if ($posh4 == 1) {
// we are outside html
} elseif ($posh4 < 1) {
// we are inside a html-tag, so we cut it away
$pagetext=substr($pagetext,0,strrpos($pagetext,"<"));
} elseif ($posh4 > 1) {
// we could be everywhere if there are slashes in the post
if ($posh5 > $posh4) {
// we are inside a tag as the way from the last / to the last <
// is shorter than the way to the last >, so we cut
$pagetext=substr($pagetext,0,strrpos($pagetext,"<"));
} else {
// we are right after a html tag as someone uses slashes in posts
// < is farer than > away, no need to do sth
}
}
}
$pagetext=$pagetext." ...";
$readmore="<a href=\"$bburl/showthread.php?threadid=$newsthreadid\">Read full post</a> - ";
} else {
$readmore="";
}
// end max newschars
if ($newsusergroupid == 6) {
$newstext=bbcodeparse2($pagetext,1,1,$newsallowsmi lie,1);
} else {
$newstext=bbcodeparse($pagetext,$newsforum,$newsal lowsmilie,1);
}
// get users avatar to display with news
if ($shownewsavatar!=0) {
$newsavatarurl2=getavatarurl($newsuserid);
if ($newsavatarurl2=='') {
$newsavatarurl="$bburl/https://vborg.vbsupport.ru/images/clear.gif";
} else {
$newsavatarurl=''.$bburl.'/'.$newsavatarurl2.'';
}
eval("\$newsavatar = \"".gettemplate('home_avatar')."\";");
}
// end avatar
eval("\$newsbits .= \"".gettemplate('home_newsbit')."\";");
}
eval("\$news = \"".gettemplate('home_news')."\";");
}
// -------------------------
// end news
and as this board here parses bbcode even in php-tags, you will need to replace the link $newsavatarurl with your own clear.gif, as it now leads to vbulletin.orgs clear.gif
feedback appreciated
kreftt
I get the following code when viewing the vbindex page as a guest:
Warning: unexpected error in date() in C:\DDVBBoard\upload\admin\functions.php on line 1613
This is installed on 2.8 version. Do you have any idea how to fix this? Thanks.
Odil
bromyaur
11-09-2002, 04:00 PM
my first post here lol, Ok I read the whole 72 pages last night and again today lol but dont see a fix, well the one I do isnt working on a permanent basis.
great hack by the way and thank you.
I installed it on my test forum and works perfectly.
Installed it on my real forum and works great too.However when I make a new news post the content doesnt show up. So I ran the set post id, then found the update counter addition and added that. It works for the new post I made. But then if I were to go add another news item today I would have to update the post id's again for the content to show.
Which is no big deal since I will be the only one entering new items anyway. I must have missed something though.So if you can point me in the right direction it would be appreciated.I am sure I never saw this in the 72 pages but who knows i may have missed it, if so ignore me lol
Here is my real forum, the news shows now since I updated the id's after I posted.
http://www.graphicsteck.ca/vb/vbindex.php?s=
Side note I am helping another person install his and he gets it installed fine, the templates are there but no link to the vbindex in the ACP
NTLDR
11-09-2002, 06:40 PM
bromyaur, you haven't followed the instructions, you need to make the changes to newthread.php ;)
NTLDR
11-09-2002, 06:46 PM
Originally posted by kreftt
-have the "read more" whether the post is over the limit or not
As the Comments (x) links to the thread I saw no point in having both there.
I will test this code out kreftt, can I add it to the next release, with full credit given of course?
bromyaur
11-09-2002, 08:29 PM
Oh lolololololol
Sorry about that, thats what happens when you install it twice, and during the process are posting messages back and forth in another forum trying to help someone else install theirs while being very tired lol
Note to everyone..
Make sure you have more than 3 hours sleep when installing hacks.lolololol
Sorry about that
NTLDR
11-09-2002, 08:31 PM
*hehe* No Problem, we've all installed hacks real late or after getting no sleep, its not the best time ;)
kreftt
11-09-2002, 11:37 PM
Originally posted by NTLDR
As the Comments (x) links to the thread I saw no point in having both there.
I will test this code out kreftt, can I add it to the next release, with full credit given of course?
oh in case this works, id be honored if you did.
there is really no point in having a read more link, but the current vbindex always displays the link, as the condition is the existence of the maxnewschar-variable. so i thought it might be better to chage the condition, but in fact you are right: its useless.
Buddha
11-10-2002, 02:28 PM
hey bromyaur, i like the colors you've used on your site.
fyi, you need to change the color of the font in your polls template.
"votes: 2 100%" is white, on a white background, so you can't read it without highlighting it.
just in case you weren't already aware.
*edit*
also checked, and your shoutbox title is white on a white background. you may want to change that too, bud.
take care.
I love the hack but for some reason I have a url location problem. I hope you can help with this.
Please keep the instructions simple and detailed LOL I?m not the best at doing this kind of stuff.
Thanks in advance
Joe
I recently installed vbindex 2.1 on my forum. Everything?s working fine except that the portal is located at http://www.myurl.com/vb/ instead of www.myurl.com
My forum is at http://www.myurl.com/vb/index.php How do I get my portal to view at www.myurl.com
and my forum to view at http://www.myurl.com/vb/index.php
I followed the instructions and put the vbindex.php in the vb directory but I can?t get it to view at the proper url
((I saw this on the instructions do I do something with this and if so what would I do .)))
If you intend to run vbindex from a directory other than the one your forums are in uncomment & set:
chdir('./path to forums');
to the path to your forums directory relitive to the directory vBindex is run from.
{{{Or do I need a redirect script and if so can you tell me what to put in it and were to}}} upload it. (im using cpanel if it helps to know)
Thank you for your help
kreftt
11-10-2002, 05:57 PM
you would move your vbindex.php to myurl.com
you rename it to index.php
then you change the line that you posted to:
chdir('./vb');
then you should be set...
NTLDR
11-10-2002, 06:26 PM
Do what kreft said above and all will work well ;)
Thanks Kreftt
But I did what you said and all I get is a blank white page.
I have tried every possibility but it still doesn?t work.
I put this in the vbindex code chdir('./vb'); renamed it to index.php
Moved the vbindex out of the vb directory and all I get is a blank page, no error just a blank white page at www.jmdsforum.com
Right now I have a redirect page set up. www.jmdsforum.com
My portal page is at http://www.jmdsforum.com/vb/
My forum is at http://www.jmdsforum.com/vb/index.php?s=
I?m totally puzzled by this and so if a friend of mine who knows his stuff.
I would love to get rid of the redirect page so any ideas would be great.
Thanks Joe
NTLDR
11-11-2002, 05:57 PM
There is no reason it shouldn't work if you have followed the instructions. You may wish to use the full path instead of just ./vb in the chdir(); statement.
I deleated this post, I think I figured the problem out
I
Ok Its all figured out and running great.
I have a request of sorts.
Im posting news stories on my portal page but would also like to be able to put forum announcements up there and sticky them so they stay at the top and all following news stories continue to post underneath them in the same fashion they do now.
I have tried to sticky a post to see if it works but the sticky feature wont work on the portal page it just gets moved down the page like all the other posts.
If there is a hack for this already could someone post it here with instructions, if not is it possible for someone to come up with this hack, I think it would be very usefull.
Thanks in advance
Joe
PS This is a great portal you designed.
:classic:
NTLDR
11-14-2002, 01:39 PM
The only easy way I can see right now is to duplicate the entire news block (and add 1 query) to get the stickys and then get the news.
Copy the news block of code and paste above the existing news code and change in the new block:
WHERE forumid = '$newsforum' ORDER BY thread.dateline DESC LIMIT $newsposts
To:
WHERE forumid = '$newsforum' AND thread.sticky='1' ORDER BY thread.dateline DESC
Untested but should work, note you will get the number of news posts defined plus the number of sticky's in that forum.
Thanks NTLDR
I did what you said but I get this error
Parse error: parse error in /home/sites/site90/web/vb/vbindex.php on line 210
NTLDR
11-14-2002, 02:15 PM
Whats on line 210?
//$newstext=str_replace("<br />","",$newstext);
NTLDR
11-14-2002, 02:19 PM
If you have copied the code correctly then the line above should be commented out with // too. Make sure you copied the whole block from // news to // end news it shouldn't give any Parse Errors.
Ok I didn't cut and past it right like you said LOL
But it shows like a sticky in the forum and the next post I make goes under the sticky in the forum, however on the portal it pushes the sticky post under the new post.
Its not that important NTLDR I just was curios if it could be done. You have done enough work on this portal already you don't need any added work LOL
Thanks anyway
Cheers
anders
11-15-2002, 09:22 PM
I cant get this to work. i have done exactly whats needed regarding to the text file, i have used the install file also but theres one error and i dont know what to put in the sql table...
Invalid SQL: SELECT u.username, u.userid, s.shoutid, s.shout_text FROM user u, shoutbox s WHERE u.userid = s.userid ORDER BY s.timestamp DESC LIMIT 10
mysql error: Table 'slask.shoutbox' doesn't exist
mysql error number: 1146
i guess i can just make it but whats to be in it ?
NTLDR
11-15-2002, 09:34 PM
You haven't followed the instructions. You need to either turn the shoutbox off in the ACP or install the shoutbox hack.
anders
11-15-2002, 10:34 PM
ok then i missed that part but i cant seem to find the info actually saying just what u said in the post install txt file...?!?
NTLDR
11-16-2002, 06:39 PM
Originally posted by NTLDR
*NEW* Fully integrated Shoutbox (this hack (https://vborg.vbsupport.ru/showthread.php?threadid=38698&highlight=shoutbox) is a prerequsit);
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.
Twice on the first post in this thread. Please read the info avalible before installing hacks.
No wonder so many people end up with broken boards :rolleyes:
Chris M
11-16-2002, 06:42 PM
Lmao:D
I think you need to ask Chen to make some sort of button for the Hack Creator, that, like the "Enter your Liscence info" thing, sends them the "Hack Instructions" that you enter;)
Satan
Tony DiMera
11-17-2002, 03:15 AM
I am having a problem. I upload the vbindex.php and for www.mysite.com/vbindex.php I just get a blank page. Also, i'm not too sure if I edited the vbindex.php correctly. Also my forums is at forums.mysite.com and my homepage is at www.mysite.com do I upload the vbindex.php and just rename it index.php for my homepage?
NTLDR
11-17-2002, 03:47 PM
Check that tne home_ templates exisit in your syle and that you have uncommented the following:
chdir('/path/tp/forums');
Making sure you either put the FULL path to your forums directory (where global.php is) or the path relitive from your vbindex.php file, it would be something like: ./forums or ./forums.mysite.com or ../../forums.mysite.com, it depends on the host.
Tony DiMera
11-17-2002, 06:39 PM
It works if i put it in my forums.site.com but if I put it in my www.site.com I get a blank page. for line 26 and 27 of the vbindex.php I have this:
//chdir('/home/virtual/site11/fst/var/www/html/forums.mysite.com/');
require('global.php');
NTLDR
11-17-2002, 06:45 PM
You need to remove the two // before the chdir statement as its being ignored at the moment.
Tony DiMera
11-17-2002, 06:53 PM
Getting rid of the 2 lines did the trick, thanks a lot. :D
NTLDR
11-17-2002, 07:00 PM
No problem, glad the hacks working for you :)
Tony DiMera
11-17-2002, 07:02 PM
I have a question sine it is on my homepage url now, how do I change the images url to go into into the board's image folder?
NTLDR
11-17-2002, 07:24 PM
Yes, the images folder you be the full URL to the images directory. Also there are a few templates listed in the post-install.txt file that need to have $bburl added in the links to make them work correctly :)
Tony DiMera
11-17-2002, 08:03 PM
Ok thankyou very much.
Tony DiMera
11-17-2002, 08:45 PM
Sorry for being a pain but I noticed something else. On my board it says 2 members, 3 guests and 5 total are online but on the homepage it says 0
NTLDR
11-17-2002, 09:29 PM
You need to make sure you have copied the correct code from forum/index.php into vbindex.php.
Tony DiMera
11-17-2002, 09:41 PM
What code do I look for in index.php and vbindex.php?
Kohhal
11-18-2002, 09:51 AM
Originally posted by Tony DiMera
What code do I look for in index.php and vbindex.php?
It's in the install instructions, it tells you the line numbers and everything.
Tony DiMera
11-18-2002, 08:35 PM
Thanks it worked. Sorry I'm not too smart when it comes to this stuff.
NTLDR
11-18-2002, 08:41 PM
Thats exactly what you need to do :)
Tony DiMera
11-18-2002, 11:33 PM
I just upgraded to2.2.9 RC and now my vbindex templates are gone, do I just upload the vbi_install.php and do a new installation?
NTLDR
11-18-2002, 11:38 PM
Use the link to re-install the templates in vbi_install.php
Tony DiMera
11-18-2002, 11:45 PM
Ok thanksyou, I know this may be too soon to aks, but willl that be all I will have to to dowhen vB3 comes out and I upgrade? Besides re editing some of the php files?
NTLDR
11-19-2002, 05:07 PM
I see no reason why vBindex wouldn't work with vB3, but without seeing the code I can't be 100% sure. I expect there will be some small changes and that I will posible release vBindex v3.0 then. However as I won't be using vB3 and the main other site that uses it may not be either I can't guarentee that I will if the changes that are needed are too big.
Buddha
11-21-2002, 09:21 PM
hey buddy... i see you're running an alpha of 2.2 on your site. not that i'm planning on upgrading again after all this work, but out of curiosity, what types of changes/additions have you made?
NTLDR
11-21-2002, 09:57 PM
There are not mant changes yet, but vBindex is being re-written 100% now. The news code has totaly changed and the templates are being re-worked too which is going top be part of a full portal system which I am writing for TS3. I may however to a cutdown version of it for vBindex.
If v2.2 is released I may/maynot used the compleate new code, but I hope to add the vBcode fix for the news posts and correct the permissions once and for all :)
Alchemyst
11-21-2002, 10:11 PM
Very cool, looking forward to it. :D
desmondw
11-22-2002, 02:15 AM
It sounds excellent, and when my board is up, I will install it :)
reifegerste
11-22-2002, 01:00 PM
Hoi
I get the following fault whenever I activate the Shoutbox:
Database error in vBulletin 2.2.7:
Invalid SQL: SELECT u.username, u.userid, s.shoutid, s.shout_text FROM user u, shoutbox s WHERE u.userid = s.userid ORDER BY s.timestamp DESC LIMIT 5 mysql error: Table 'simsforum.shoutbox' doesn't exist
mysql error number: 1146
What else can I do? Vbindex otherwise runs absolutely perfectly.
I have carried out an installation about the vbi_install script
Yours sincerely
Lars
NTLDR
11-22-2002, 01:38 PM
As the instructions on Post 1 say you must have the shoutbox installed already if you wish to use it.
Buddha
11-22-2002, 05:03 PM
sounds interesting ntldr.
look forward to checking it out.
fyi, if you're interested in seeing what i've been doing with your script, check out these screenshots.
Index - Top (http://www.fulldvdreview.com/images/post_images/1top.gif)
Index - Slide Menu Open (http://www.fulldvdreview.com/images/post_images/slidemenu.gif)
Index - Bottom (http://www.fulldvdreview.com/images/post_images/1bottom.gif)
because this style is a fixed width, i used a nice sliding menu to save space. normally i don't like slide menus but this one is slick and smooth. plus i did not set it as static so it doesn't scroll with the page (i hate that).
you can't see it, but under the polls, i have various ads controlled by karatekid's banner hack.
this is only the main vbindex... there are another twenty pages... lol.
Kars10
11-29-2002, 02:19 PM
Ive got a Problem with it.
It shows the newstitle, the newsavatar and the newsicon. But the Newstext is not showing.
Ive checked everything twice. I set the settings with the newsforumid, and i have all templates. What can it be?? :confused:
NTLDR
11-29-2002, 02:40 PM
Read though the thread, its probably been mentioned on every page for the last 3 or 4 pages.
Kars10
11-29-2002, 02:52 PM
i can?t find it NTLDR, sorry! Please have a look.
Its not my Problem that this hack rocks so much that you have build 75 pages full of Posts ;) :D
I hoped u as the hackmaker could help me out!
Kars10
11-29-2002, 02:57 PM
Forget about it. It was the update postids-thing. Thanks, works now!!
/me klicks install.
NTLDR
11-29-2002, 03:36 PM
Update counters holds the solution to your problem. ;)
Big J
12-01-2002, 06:20 AM
great hack!
bahamut0
12-03-2002, 02:33 AM
hi guys thanks for the great index i tried the vblite and just could not get the main page to show but this came up like a dream.
http://www.gamepsycosis.com/forum/vbindex.php
one thing ive been triing for ages to get my main title to be centered above the buttons and ( ok flame me time) for the life of me cannot find the right code :( i know it's easy but my brain is giving me selective amnesia.
but again thanks for the page now i just need to give it looks.
Highlander
12-03-2002, 03:31 AM
Hi, there.. how i can disable the "latest Threads (private Forum shows" it shows private boards.. did i forgot something.. its no problem burt my users www.spieleplanet.org/forum/vbindex.php[/url] shout about that and think that they got no permission to view normal open boards.. sometimes they think so and dont know that these are private (admin) boards ..
.. and how could i make this:
to get another latest threads just from a forumid of my wishes :)
Buddha
12-03-2002, 12:48 PM
Originally posted by bahamut0
hi guys thanks for the great index i tried the vblite and just could not get the main page to show but this came up like a dream.
http://www.gamepsycosis.com/forum/vbindex.php
one thing ive been triing for ages to get my main title to be centered above the buttons and ( ok flame me time) for the life of me cannot find the right code :( i know it's easy but my brain is giving me selective amnesia.
but again thanks for the page now i just need to give it looks.
you want your logo centered above your navigation buttons, you mean?
Kohhal
12-03-2002, 02:33 PM
Just updated to the latest version, works great. Only 17 queries on my homepage :D
bahamut0
12-03-2002, 06:48 PM
yes budda my brain finnaly gave me back it's thoughts and i got it , lol well i guess there is something to be said about sleep :)
btw loving this hack just wish i new more about how to add more hacks to the vbindex page.
NTLDR
12-03-2002, 06:50 PM
Originally posted by bahamut0
hi guys thanks for the great index i tried the vblite and just could not get the main page to show but this came up like a dream.
I would suggest that you copy the header template to the home_header one making sure that all the paths are set correctly for the images and hyperlinks :)
NTLDR
12-03-2002, 06:53 PM
Originally posted by Highlander
.. and how could i make this:
to get another latest threads just from a forumid of my wishes :)
For info on how the permisions work: https://vborg.vbsupport.ru/showthread.php?s=&postid=317875&highlight=private+forums#post317875
Just change the Query in the threads section to say forumid=X instead of !=$newforum and !=$pollsforum
bahamut0
12-03-2002, 06:55 PM
thanks will give that a shot was getting a little bothersome changing header code then going to home header and changing the same stuff lol
wow would of thought that would be a easy fix and something i would of thought of , more sleep i think i need. :nervous:
bahamut0
12-03-2002, 06:58 PM
one more thing this might be the wrong forum to put this in but since it's for your index hack i'll ask here. does anyone have mabye a button that i can add to both the main index and vb index to go back and forth between them. like vbhome and home buttons .
anders
12-03-2002, 08:37 PM
I would like to see a random image thing!
Ryan McBain
12-04-2002, 05:50 AM
Ok i have everything installed, but I want to have it some the user login, and the 5 most recent threads show on my main page at http://www.ryanmcbain.com what do I have to do to make this happen?
Kohhal
12-04-2002, 12:04 PM
Ok, here's a slight problem I have that maybe you can help me with. (hack works fine, this is just related to "who's online")
I've created .htaccess as described in the install instructions so vbindex loads when the url : http://www.mysite.com is entered. If I then quickly skip to the who's online page it says I'm on my Main forums index page, not my homepage(in the root above /forum where vbindex.php resides). But if I manually enter http://www.mysite.com/vbindex.php and then skip to the who's online it shows me as being on the homepage correctly.(so the who's online php code is fine)
So,(phew) is it possible to get the who's online to show my location correctly with regard to the .htaccess redirect?
NTLDR
12-04-2002, 04:23 PM
The WOL will work correctly, for one file of each name. When looking at the homepage your localtion is set as / which is determined to be the Forum Home Page.
-=dm=-
12-04-2002, 07:51 PM
Originally posted by Minifreunde
Ive got a Problem with it.
It shows the newstitle, the newsavatar and the newsicon. But the Newstext is not showing.
Ive checked everything twice. I set the settings with the newsforumid, and i have all templates. What can it be?? :confused:
*INSTALL* :D
Hi NTLDR
Just installed on a clean board:)
Im having the above problem and I cant figure out where to look for those counters.
hi NTLDR !
thanks for this wonderfull hack. It works fine. thje only problem i have, is that the news will not be shown.
The Header of each News Thread is display, and i can read the whole Post when pushing the "Read Full Post" Link.
But no text appears in the news...
whats wrong ???
___________
-=db=- posted on the same time. I must say, that i have an none hacked board !!!
Sorry, i found it !!!
must uopdate the counters for working this hack
thx
lg
Logo
-=dm=-
12-04-2002, 08:08 PM
Originally posted by Logo
Sorry, i found it !!!
must uopdate the counters for working this hack
thx
lg
Logo
LOGO
how did you update those counter?
Admin control Panel - import&maintenance- update counters
and there i think the best way is to click on ervery uodate button ;)
NTLDR
12-04-2002, 08:18 PM
As Logo said :)
You only need to run the Update threads with postid one though :D
-=dm=-
12-04-2002, 08:19 PM
Thanx LOGO
done but Im having still the same problem, I see the title icon but not the news text...
[EDIT]
Hi NTLDR
as u can see I started all over again, removed all hacks and did a clean install:)
updated all counters but still same problem thats strange..
-=dm=-
12-04-2002, 09:55 PM
in lright block how the add which forum the user have posted? (like in the old style vBindex)
Thread : Threadstarter : Forum : Replies : Last Post
I tried $postforum but it dont show up...
oh and I have still the news problem:(
NTLDR
12-04-2002, 09:59 PM
Originally posted by -=dm=-
in lright block how the add which forum the user have posted? (like in the old style vBindex)
Thread : Threadstarter : Forum : Replies : Last Post
I tried $postforum but it dont show up...
Find:
$postforum=$latestforum['title'];
Replace with:
$postforum=$latestthread['title'];
For the news, make sure you have changed newthread.php and admin/misc.php and updated the counters.
-=dm=-
12-04-2002, 10:22 PM
great worked perfect:D
what about those thread icons are they gone in this version or is there still a way to add these? (currently icons are not displayed instead a "6")
this apears 3 times in the misc.php do I have to add the code 3 times.
thanx
doformfooter("Update");
NTLDR
12-04-2002, 10:37 PM
Icons don't appear for the threads in this one, use $latestthread[iconid] which should give you the ID for the icon and change add the HTML from the old version with that variable in it.
-=dm=-
12-04-2002, 10:59 PM
in my old vBindex.php I have this line:
if ($latestthread['iconid']==0) { $icon=""; } else { $icon="<img src=\"{*imagesfolder}/icons/icon$latestthread[iconid].gif\" border=0>"; }
in threadbit template:
<td bgcolor="$threadbg" align="center">$icon</td>
but I dont know where to insert this code in the new vBindex.php
:(
[EDIT]
an another thing,
for some strange reason it shows "Last post 01-01-1970 by username"
Ryan McBain
12-05-2002, 01:15 AM
Ok i have everything installed, but I want to have it some the user login, and the 5 most recent threads show on my main page at http://www.ryanmcbain.com what do I have to do to make this happen?
Kohhal
12-05-2002, 07:16 AM
Originally posted by NTLDR
The WOL will work correctly, for one file of each name. When looking at the homepage your localtion is set as / which is determined to be the Forum Home Page.
Hmmm, so basically the way I described it working is the only way it will work ie. unless vbindex.php is in the address bar it won't show it correctly because of the "/" being regarded as forum home?
Nuts :(
Is there any way around this?
-=dm=-
12-05-2002, 11:06 AM
ok fixed :D
replaced:
while ($latestthread = $DB_site->fetch_array($threadsquery)) {
$title = unhtmlspecialchars($latestthread['title']);
$starter = $latestthread['postusername'];
$numreplies = $latestthread['replycount'];
$lastposter = $latestthread['lastposter'];
$mpostid= $latestpost['postid'];
$postdate=vbdate($dateformat,$latestpost[dateline]);
$posttime=vbdate($timeformat,$latestpost[dateline]);
$postforum=$latestthread['title'];
$postforumid=$latestthread['forumid'];
$gothreadid = $latestthread['threadid'];
if (($counter++ % 2) != 0) {
$threadbg="#F1F1F1";
} else {
$threadbg="#DFDFDF";
}
eval("\$threadbits .= \"".gettemplate('home_threadbit')."\";");
}
eval("\$threads = \"".gettemplate('home_threads')."\";");
}
with this
while ($latestthread = $DB_site->fetch_array($threadsquery)) {
$result1 = $DB_site->query("SELECT postid,dateline,pagetext FROM post WHERE threadid='$latestthread[threadid]' order by dateline desc limit 1");
$latestpost = $DB_site->fetch_array($result1);
$result2 = $DB_site->query("SELECT title FROM forum WHERE forumid='$latestthread[forumid]' limit 1");
$latestforum = $DB_site->fetch_array($result2);
$title = $latestthread['title'];
$starter = $latestthread['postusername'];
$numreplies = $latestthread['replycount'];
$lastposter = $latestthread['lastposter'];
$mpostid= $latestpost['postid'];
$postdate=vbdate($dateformat,$latestpost[dateline]);
$posttime=vbdate($timeformat,$latestpost[dateline]);
$postforum=$latestforum['title'];
$postforumid=$latestthread['forumid'];
if ($latestthread['iconid']==0) { $icon=""; } else { $icon="<img src=\"https://vborg.vbsupport.ru/vbimages/icons/icon$latestthread[iconid].gif\" border=0>"; }
$gothreadid = $latestthread['threadid'];
if (($counter++ % 2) != 0) {
$threadbg="#F1F1F1";
} else {
$threadbg="#DFDFDF";
}
eval("\$threadbits .= \"".gettemplate('home_threadbit')."\";");
}
}
eval("\$threads = \"".gettemplate('home_threads')."\";");
I added this code from the old vBindex now its working.
but I have still the news problem.
NTLDR
12-05-2002, 12:11 PM
Originally posted by TheMasterG
Is there any way around this?
My index.php is just a standard redirect that points to vbindex.php so I can see exactly where they are:
<?php
error_reporting(7);
require('./global.php');
eval("standardredirect(\"".gettemplate("redirect_vbindex")."\",\"vbindex.php?s=$session[sessionhash]\");");
?>
Create a template called redirect_vbindex and add a redirection message to it.
NTLDR
12-05-2002, 12:14 PM
Originally posted by -=dm=-
I added this code from the old vBindex now its working.
I suggest that no one uses this as it will use 2 queries for each thread, and a base query, compared to the v2.1 code which uses 1 in total. For 5 threads thats a saving of 10 queries.
-=dm=-
12-05-2002, 12:38 PM
but I couldnt get it to work with the other code:(
NTLDR
12-05-2002, 03:45 PM
Originally posted by -=dm=-
but I couldnt get it to work with the other code:(
Just add this part in the while loop:
if ($latestthread['iconid']==0) {
$icon="";
} else {
$icon="<img src=\"{*imagesfolder}/icons/icon$latestthread[iconid].gif\" border=0>";
}
Kohhal
12-05-2002, 04:22 PM
Originally posted by NTLDR
My index.php is just a standard redirect that points to vbindex.php so I can see exactly where they are:
I see what you mean, had a look at your site. I'd rather not have a redirect for my site homepage though, just don't like the idea of it.
Is it possible to get .htaccess to redirect to www.mysite.com/vbindex.php rather than just calling the .php file which I guess it does?
NTLDR
12-05-2002, 04:50 PM
The only way I know how to do a .htaccess redirect is to redirect the entire directory there, which will only work if thats the only file there. I'm not sure if subdirectories will redirect or not:
redirect / /vbindex.php
From memory I think thats the code, if not its similar.
-=dm=-
12-05-2002, 07:34 PM
Originally posted by NTLDR
Just add this part in the while loop:
[/php]
thanx NTLDR this worked for the smilie part.
any fix for the other stuff, like forum and the date/time?
also I have updated all counters the new part still not showing up, I tried to reinstall the whole script on another test board but still nothing apears...
NTLDR
12-05-2002, 07:53 PM
If you have followed the instructions theres no reason for this not to work. Make sure you have done each step and make sute you uploaded the new admin/misc.php that you changed for the update counters.
ukliam
12-05-2002, 09:14 PM
Couldn't see an answer to this:
Originally posted by lemarsu
Hi,
When looking at Who's Online, if someone is in vbindex you get something like :
Unknown Location: /monster/vbindex.php?
is there a way to fix that ?
can anyone help?
Also.. and yes I know this has been asked.
I have the mini calendar working fine at the moment, but don't know where to add the php in the vbindex.php file and where/how to call it from the templates. Can anyone help?
Thanks
Sean
NTLDR
12-05-2002, 09:24 PM
Both issues have been addressed earlier on in the thread. For the WOL you either add the two blocks of PHP to online.php or install the Admin CP hack by Chen, aka FireFly. I posted instructions on how to do the calender towards the first half of the thread.
-=dm=-
12-05-2002, 10:09 PM
Originally posted by NTLDR
Find:
$postforum=$latestforum['title'];
Replace with:
$postforum=$latestthread['title'];
hmm....this show the latest thread title not the forum?
Tony DiMera
12-05-2002, 10:42 PM
How would you set up the cookie domain if the vbindex homepage is at www.yoursite.com and your board is it forums.yoursite.com Most likely .yoursite.com correct? What if later on I put in a second board(witha second license of course) at <u>subdomain.yoursite.com/forums/</u> and a vbindex at <u>subdomain.yoursite.com</u>, how would i set up the cookie domains for both boards and what would i put in place where it has a / for both boards?
mv540
12-06-2002, 02:12 PM
I would like to know how to add more areas on the portal so that i can add more/other info manually....
for example..in the middle i have news and on either end i have the navigations...i would like to add more boxes to fill it up abit with information..
Please answer in detail for i am very new at this...let me know step by step where to go and what to do
Thanks
I~
NTLDR
12-06-2002, 03:58 PM
Originally posted by Tony DiMera
How would you set up the cookie domain if the vbindex homepage is at www.yoursite.com and your board is it forums.yoursite.com Most likely .yoursite.com correct? What if later on I put in a second board(witha second license of course) at <u>subdomain.yoursite.com/forums/</u> and a vbindex at <u>subdomain.yoursite.com</u>, how would i set up the cookie domains for both boards and what would i put in place where it has a / for both boards?
As far as I know that isn't going to work. It may, but I have no idea what settings you would need.
NTLDR
12-06-2002, 04:00 PM
Originally posted by -=dm=-
hmm....this show the latest thread title not the forum?
So it would, I don't know what I was thinking. Currently you can't get the forum title up, you'd need to do a left join on the forum table to get it I expect.
Buddha
12-06-2002, 04:01 PM
hey ntldr, i've found a little quirk, and am hoping you can help me with it.
so far, everything's going great. got both styles done and the site's running beautifully... however...
:)
i have some forums set up with moderation queues, because the content appears elswhere on the site (pages i've created using vbindex). i don't want potentially offensive or inappropriate matter appearing on those pages (very unprofessional), so i set up the moderation queue. this obviously works in the forum... posts made by regular users in these moderated forums don't appear in the forum until i pass em through... however they do appear right away on vbindex.
this is not good.
any thoughts?
NTLDR
12-06-2002, 04:03 PM
Check the news and threads queries have AND visible=1 in the WHERE clause, I may have missed it out by mistake ;)
Buddha
12-06-2002, 04:08 PM
nope, it's not there.
where do i put it?
$newsquery=$newsquery=$DB_site->query("SELECT thread.*,threadpost.pagetext AS pagetext FROM thread LEFT JOIN post AS threadpost ON (thread.tpostid = threadpost.postid) WHERE forumid = '$newsforum' ORDER BY thread.dateline DESC LIMIT $newsposts");
thanks for the quick reply.
ukliam
12-06-2002, 04:17 PM
Originally posted by NTLDR
You would need to add the PHP from that hack to the vbindex.php file and any HTML to the relevent template.
Got my other problem sorted but this is all I could see in the thread on the mini calendar hack.
I have put the code in the vbindex.php file but the calendar just gets displayed at the top of the page.
I know I am not doing it right and I just need to know where in the file I should be putting the code and how to call it from a template.
Cheers
Sean
NTLDR
12-06-2002, 04:23 PM
Originally posted by Buddha
nope, it's not there.
where do i put it?
$newsquery=$newsquery=$DB_site->query("SELECT thread.*,threadpost.pagetext AS pagetext FROM thread LEFT JOIN post AS threadpost ON (thread.tpostid = threadpost.postid) WHERE forumid = '$newsforum' AND thread.visible='1' ORDER BY thread.dateline DESC LIMIT $newsposts");
That should do it ;)
Buddha
12-06-2002, 04:29 PM
nope.
giving me a db error.
ukliam
12-06-2002, 04:29 PM
Think I have worked it out... :D
NTLDR
12-06-2002, 04:38 PM
Originally posted by Buddha
nope.
giving me a db error.
OK give it a try now, I changed the code (put thread.visible instead).
mv540
12-06-2002, 05:07 PM
aaaheeemmm excuse guys hate to break up the party for a second but about 10 posts back i had a question... :ermm:
Any ideas..???
here is the question:
(post #1169)
I would like to know how to add more areas on the portal so that i can add more/other info manually....
for example..in the middle i have news and on either end i have the navigations...i would like to add more boxes to fill it up abit with information..
Please answer in detail for i am very new at this...let me know step by step where to go and what to do
Thanks
I~
NTLDR
12-06-2002, 05:29 PM
You need to edit the home_left and home_right templates. As I've already said in the thread customising the templates and the look is the users job. I provide a default layout, thats all.
Buddha
12-06-2002, 05:34 PM
Originally posted by NTLDR
OK give it a try now, I changed the code (put thread.visible instead).
genius.
thank you very much buddy... knew i could count on you.
mv540, just add several <tr><td>info</td></tr> on both the left and right templates.
if you need more detail than that, you need to learn html before you start modifying this hack.
just a suggestion
xevious
12-07-2002, 07:17 PM
Ok, my news is havin the same problem, news title but no text is showin up. I tried the update counter in the acp and that didnt work. Im usin 2.2.8 and i have the news forum in public so anybody can post in it. Any help?
NTLDR
12-07-2002, 07:28 PM
You haven't followed the instructions properly. Please go back through and check each step, this works fine in 2.2.8.
xevious
12-07-2002, 07:44 PM
OMG, yep, i was doin two sites and i just skipped a couple things :) doh!! Thnx hehe Thanks for the awesome hack and for the quick reply.
NTLDR
12-07-2002, 07:53 PM
No problem ;) I know how easy it is to miss the odd step out :)
koggit
12-10-2002, 04:23 AM
I think this is the right thread for the version I have ^_^
http://www.erecellstudios.com/vB/vbindex.php
I just got it installed, so please ignore how nothing is customized yet. You can log-in under guest/guest if you need to test something. :)
Three things.
1) [url=http://www.erecellstudios.com/Image1.jpg]This[url] should explain everything. I just don't know where to put it.
2) If you switch skins, the header and footer stay as the default, and it looks really funky. Although it's probably because I havn't done step 11 yet. :)
3) How can I put it so that the latest thread list doesn't include the admin-section threads when being viewed by a regular user?
I haven't installed this hack yet but I am considering it for one of my sites.
koggit: 1) This (http://www.erecellstudios.com/Image1.jpg) should explain everything. I just don't know where to put it. $bburl is usually the URL to your forums WITHOUT the /index.php - you put $bburl in there just after the first " in all anchor tags, then slash, then member.php or calendar.php or whatever.
So it looks like these examples:
<a href="$bburl/memberlist.php?s=$session[sessionhash]">
and
<a href="$bburl/usercp.php?s=$session[sessionhash]">
But this is only the case if the vbindex file is not in the same directory as the forums. With your forum, you have the vbindex file in the same directory, so you shouldn't need to add $bburl anywhere
koggit
12-10-2002, 03:15 PM
Thanks, man. Instead of just giving me an answer, you explained it. Very helpful for someone like me, a noob to all scripting languages. ;] Thanks.
So, if I don't need to modify that, then what's the problem with the header/footer? =\
NTLDR
12-10-2002, 03:17 PM
Originally posted by koggit
2) If you switch skins, the header and footer stay as the default, and it looks really funky. Although it's probably because I havn't done step 11 yet. :)
3) How can I put it so that the latest thread list doesn't include the admin-section threads when being viewed by a regular user?
2. Copy the header and footer templates to the home_header and home_footer templates of all your styles, making sure you add $bburl to the links as explained above if its not in the forums directory.
3. Check back a few pages this has been covered lots and lots of times.
koggit
12-10-2002, 03:57 PM
Originally posted by NTLDR
2. Copy the header and footer templates to the home_header and home_footer templates of all your styles, making sure you add $bburl to the links as explained above if its not in the forums directory.
3. Check back a few pages this has been covered lots and lots of times.
Can you please elaborate a bit on #2?
And sorry about asking something that was answered, I'm going to read back some. :)
NTLDR
12-10-2002, 06:19 PM
Under your templates you have the "sets" for each style. Click the edit button for the footer template and copy the code in it, then edit the home_footer template and delete the code in it and paste in the copied code there, repeat this for the header.
Change any links that point to your site to add $bburl eg:
<a href="$bburl/usercp.php?s=$session[sessionhash]">User CP</a>
koggit
12-10-2002, 07:57 PM
Thanks man, I've gotten it pretty much up and ready.
If someone could help me out with my template for vbindex, I'd really appeciate it.
http://www.erecellstudios.com/vB/vbindex.php <= You can log in under guest/guest to see it in the Ekko template. See, the sites are white, but they should be that same grid-thing as the forum.
xevious
12-11-2002, 01:00 AM
I am trying to add more pages to my site, and i created a new template using the home template. So i named the new template home_generalrules and the address is www.blahblah.com/vbindex.php?page=generalrules. But when i click the link, all i get is a blank white page. Yes , i did copy the html to the new template and change it accordingly lol.
Zr0 Designs
12-11-2002, 04:46 AM
Originally posted by xevious
I am trying to add more pages to my site, and i created a new template using the home template. So i named the new template home_generalrules and the address is www.blahblah.com/vbindex.php?page=generalrules. But when i click the link, all i get is a blank white page. Yes , i did copy the html to the new template and change it accordingly lol.
I'm getting the same thing too. When I installed this there were already 80 pages in this thread. . . and after reading up to page 10. . sorta hard to follow some things. . .
http://wisdomtrip.sytes.net/site/
at the bottom will be a user agreement link in the footer. . . that is the only thing I've tried. . .and I followed ur instructions 100% from the ones on page 4. . .
>edit<
I made the template "home_agreement" and replaced $news with the content I wished to be viewed. . . so is that link right?
NTLDR
12-11-2002, 05:24 PM
Templates should be named home_extra_pagename and the URL should follow the syntax:
vbindex.php?s=$session[sessionhash]&page=pagename
Nice script!
Keep it coming
Zr0 Designs
12-11-2002, 05:47 PM
Thnx for the responce. . .it works now. . . great portal system, very easy to use if u know how to code semi-decent!!
Buddha
12-12-2002, 02:42 PM
Originally posted by xevious
I am trying to add more pages to my site, and i created a new template using the home template. So i named the new template home_generalrules and the address is www.blahblah.com/vbindex.php?page=generalrules. But when i click the link, all i get is a blank white page. Yes , i did copy the html to the new template and change it accordingly lol.
in addition to the url redirect that NTLDR suggested above, you can also make copies of vbindex.php as i have done. rename the copied file 'generalrules.php', and have it pull from a seperate forum. that way, you can populate your entire off-forum site with vbindex copies that pull from different forums. ntldr explained all of this in previous posts if you are interested. makes for an excellent, dynamic site that can easily be administered from the forum. works great on my site.
Zr0 Designs
12-12-2002, 04:22 PM
Thats a great tip man, Maybe I'll try it out. . .
todd.o.callen
12-12-2002, 04:59 PM
In installation step #9, I am instructed to find :
doformfooter("Update");
and add a large code snippet after it.
That code line is repeated several times in the misc.php file. Do I insert the new snippet after each original occurence?
NTLDR
12-12-2002, 05:02 PM
Add it after one of them, it doesn't matter which, I should have put a larger chunk of code to look for in the instructions :)
todd.o.callen
12-12-2002, 05:20 PM
Originally posted by NTLDR
Add it after one of them, it doesn't matter which, I should have put a larger chunk of code to look for in the instructions :)
WOW! I landed a not-so-dumb question on page 81!
BTW, is this what you mean in step 11?
<a href="$bburl member.php?s=$session[sessionhash]&action=getinfo&userid=$userid">$username</a>$invisibleuser
Also: There is no <A in the head_newpm template. What am I missing here?
NTLDR
12-12-2002, 05:44 PM
It should be:
<a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$userid">$username</a>$invisibleuser
And there isn't a <a href in head_newpm but there are references to private.php which need to be $bburl/private.php :)
todd.o.callen
12-12-2002, 07:20 PM
3 more observations/problems:
1) My news titles show, but no characters from the post do, regardless of how I set the options.
2) My news forum is moderated, but unvalidated posts are not filtered out of the vBindex news view.
3) Are you planning to support vB3.0 when available? (I can't imagine you won't.)
PS. You are amazingly responsive as a developer, even to "stoopid" questions. We really appreciate it!!
NTLDR
12-12-2002, 07:26 PM
1) Update the counters in the ACP (ACP -> Update Counters and the one with that says add postids)
2) Check back a page or too, you need to add AND thread.visible=1 to the WHERE clause of the news query
3) More than likley vB3 will be supported.
todd.o.callen
12-12-2002, 07:51 PM
Originally posted by NTLDR
1) Update the counters in the ACP (ACP -> Update Counters and the one with that says add postids)
2) Check back a page or too, you need to add AND thread.visible=1 to the WHERE clause of the news query
3) More than likley vB3 will be supported.
1) Done. Some of the posts showed content characters. The ones that don't show content are actually moved/redirects. Any ideas?
2) Done. Appears to resolve issue !!
3) Good !! :nervous:
New 4) I happened to notice that "My Subscriptions" only displays subscribed threads, not both threads and forums. Was this intentional?
New 5) Can I remove the option counts (not the %) from the poll results for the vBindex page only (not from the rest of the boards)?
PS. I think that your support thread needs to be a subforum. It's getting way too long, and you are having to answer too many questions over and over again. When a thread has over 1K posts, it's time to re-evaluate. Think the board-keepers might consider it??
Sorry, maybe this question is already asked, but i wont go look true 81 pages for the question.
But can any1 explain me how to make the templates.
So please Quote them and make yellow where the code is.
Thx in advance,
kreftt
12-13-2002, 05:08 PM
the installer makes the templates automagically. after you have run the installer, you have th etemplates.
kreftt
Or, aren't there any "to edit" files?
todd.o.callen
12-13-2002, 05:23 PM
Nope, you still have to edit those.
You might have some other hacks installed that would change where the edits should go.
Check my posts in this thread, because NTLDR has been helping me with my new install. The confusing parts are explained in his answers.
NTLDR
12-13-2002, 09:22 PM
Originally posted by todd.o.callen
1) Done. Some of the posts showed content characters. The ones that don't show content are actually moved/redirects. Any ideas?
Add thread.open<>10 in the WHERE Clause of the news query, that should prevent those from appearing I think.
New 4) I happened to notice that "My Subscriptions" only displays subscribed threads, not both threads and forums. Was this intentional?
Yes this was intentional, the way to view both is via the User CP link as they are both on that page.
New 5) Can I remove the option counts (not the %) from the poll results for the vBindex page only (not from the rest of the boards)?
In the home_pollresult template remove:
<td bgcolor="{tablebordercolor}" align="center"><smallfont color ="{tableheadtextcolor}" ><b>$pollinfo[numbervotes]</b></smallfont></td>
And in vbindex.php remove:
<td bgcolor=\"{secondaltcolor}\" width=\"20\" align=\"left\"><smallfont>$option[votes]</smallfont></td>
That will remove the number of votes coloumn.
PS. I think that your support thread needs to be a subforum. It's getting way too long, and you are having to answer too many questions over and over again. When a thread has over 1K posts, it's time to re-evaluate. Think the board-keepers might consider it??
Indeed this is currently I think the third largest thread in this forum, if and when I get the time I may try to put together an FAQ. However there is an option to search single threads, however may users don't use it or even read the first post or instructions ;)
KingLouis
12-14-2002, 04:15 AM
after installing on my VB version 2.2.9:
parse error in line 411 (is the last line, the "?>")
--------------
// only allow home_extra_ templates for security reasons
eval("dooutput(\"".gettemplate("home_extra_$page")."\");");
}
?>
-----------------
any idears?
Thx
tweak
12-14-2002, 05:38 AM
Is there a way to RUN 2 VBINDEX's??? What i mean is say u want a GAMING news Index and a RADIO news index can this be done?
Originally posted by todd.o.callen
Nope, you still have to edit those.
You might have some other hacks installed that would change where the edits should go.
Check my posts in this thread, because NTLDR has been helping me with my new install. The confusing parts are explained in his answers.
nevermind, I've found the hack i was looking for (Welcome Panel)
Kohhal
12-14-2002, 11:43 AM
Originally posted by NTLDR
...However there is an option to search single threads...
Tell me about it, I only discovered this last week and it would have been great to know about it when I first found this hack :eek:
KeneticKangaroo
12-14-2002, 11:34 PM
Ok,
I re-did it all and im getting this message:
Parse error: parse error in /usr/local/psa/home/vhosts/**********.co.uk/httpdocs/forums/vbindex.php on line 113
Its jumped from 112 to 113 a few times everytime i do it
Here are the files i edited, please look to see what is wrong...
From what i see i have edited it fine, could be a silly mistake, gone over it a few times, if anyone could help m that would be brilliant.
I Bet people are fed up with people like me,
Sorry :confused: :confused:
im using Vbulletin 2.2.9
NTLDR
12-15-2002, 04:40 PM
Please remove the attachment from you post as you are not allowed to post full vBulletin files.
NTLDR
12-15-2002, 04:42 PM
Originally posted by tweak
Is there a way to RUN 2 VBINDEX's??? What i mean is say u want a GAMING news Index and a RADIO news index can this be done?
If you wish to use two polls and news forums then you either need to hack the installer to use different variables for the setting or edit vbindex.php and set the variables at the top on your second instantance of it.
Zr0 Designs
12-16-2002, 12:07 AM
Originally posted by Buddha
in addition to the url redirect that NTLDR suggested above, you can also make copies of vbindex.php as i have done. rename the copied file 'generalrules.php', and have it pull from a seperate forum. that way, you can populate your entire off-forum site with vbindex copies that pull from different forums. ntldr explained all of this in previous posts if you are interested. makes for an excellent, dynamic site that can easily be administered from the forum. works great on my site.
Would you (or anyone else for that matter) care to explain this a little further? Its an option that I could really use but I'm not sure how to :bored:
todd.o.callen
12-16-2002, 01:37 PM
Originally posted by NTLDR
Add thread.open<>10 in the WHERE Clause of the news query, that should prevent those from appearing I think.
I decided that I want to include the redirects, but I wanted to strip each post in the news list down to a linked title. I was using PluhHeadlines hack for this, but I like the way yours adds the post icon (and I am still considering leaving the bi-line info as a sub-header. ) Your code (tweaked) eliminates the need for the Pluh stuff. Cool :)
What code should I replace/add in the threadbits to show who just added the latest post to the thread. Now the thread starter appears (I think).
PS. You really rock. Too bad we are on different continents.
todd.o.callen
12-16-2002, 02:11 PM
I think it would be cool if you would template up the three main columns if the home template and also add a template for the welcome box. This would make it a bit easier to really move things around. I really like how the rest is done. I am learning how to really use templates from your example, but this would just be icing on the cake.
I want to move the contents of the welcome panel into the left column where the user navigation sits in the default layout, but I am having great trouble. When I try to call the avatar image with $avatar, but it obviously isn't that easy. Hints?
Again, great hack, great support.
PS. Feel free to thin out my posts as you see fit.
NTLDR
12-16-2002, 06:36 PM
Originally posted by todd.o.callen
also add a template for the welcome box. This would make it a bit easier to really move things around.
The welcome panel part is all in the home template, I didn't see a great deal of point seperating it out. You can use $avatarimage in other templates that are evaluated after the users avatar is found. If adding $avatarimage doesn't display your avatar in the template move all the code between these two lines:
// welcome panel by trilOByte
// -------------------------
-- TILL --
// -------------------------
// end welcome panel
Above:
// check if user is logged in or not and select the correct templates
They can then be used in the menu specific templates.
NTLDR
12-16-2002, 06:39 PM
Originally posted by todd.o.callen
What code should I replace/add in the threadbits to show who just added the latest post to the thread. Now the thread starter appears (I think).
Use $lastposter in the home_threadbit template instead of $starter
todd.o.callen
12-16-2002, 06:47 PM
Originally posted by NTLDR
The welcome panel part is all in the home template, I didn't see a great deal of point seperating it out. You can use $avatarimage in other templates that are evaluated after the users avatar is found. If adding $avatarimage doesn't display your avatar in the template move all the code between these two lines:
// welcome panel by trilOByte
// -------------------------
-- TILL --
// -------------------------
// end welcome panel
Above:
// check if user is logged in or not and select the correct templates
They can then be used in the menu specific templates.
I have been trying this in the home_logout template, and I can't seem to get it working. Actually, none of the dynamic stuff seems to show up. Here is my current code:
:classic: Never mind.... I got it working.
BTW, the $lastposter thing works fine.
I have installed this about three times I followed all the directions as best as I could. I did all the aditions stated but when I try to view the page I get this series of errors
Warning: ChDir: No such file or directory (errno 2) in /usr/local/psa/home/vhosts/ultimaforce.net/httpdocs/vbindex.php on line 26
Warning: Unable to access ./global.php in /usr/local/psa/home/vhosts/ultimaforce.net/httpdocs/vbindex.php on line 27
Warning: Unable to access ./global.php in /usr/local/psa/home/vhosts/ultimaforce.net/httpdocs/vbindex.php on line 27
I am not running it on the forum directory I want it to be at http://www.ultimaforce.net/
when ever I click that link it tells me forbiden but when I enter http://www.ultimaforce.net/vbindex.php I get the series of errors shown above
Can you please help me ?
Darkmeteor
12-16-2002, 11:25 PM
I installed this great hack on my site, but the news content does not show up, only the title of threads. I've read this thread about this problem, and tried everything in ACP -> Counters things (couldn't find the one with postid), using vbb 2.2.9
thanks for helping :)
http://www.lifestone-recall.com/vbindex.php
KeneticKangaroo
12-17-2002, 12:51 AM
if anyone who has just installed VB and this hack could they pm me their edited files?
cos i cant get it 2 work :(
Imprezer
12-17-2002, 05:20 AM
Hello, great hack!
Which templates do I need to modify if I want to add more tables with diff content on the sides?
Also, what addons are available and where can I see them/
Thanks a lot,
Once again, great job,
- Alex
Darkmeteor
12-17-2002, 09:05 AM
Originally posted by Elly
I have installed this about three times I followed all the directions as best as I could. I did all the aditions stated but when I try to view the page I get this series of errors
Warning: ChDir: No such file or directory (errno 2) in /usr/local/psa/home/vhosts/ultimaforce.net/httpdocs/vbindex.php on line 26
Warning: Unable to access ./global.php in /usr/local/psa/home/vhosts/ultimaforce.net/httpdocs/vbindex.php on line 27
Warning: Unable to access ./global.php in /usr/local/psa/home/vhosts/ultimaforce.net/httpdocs/vbindex.php on line 27
I am not running it on the forum directory I want it to be at http://www.ultimaforce.net/
when ever I click that link it tells me forbiden but when I enter http://www.ultimaforce.net/vbindex.php I get the series of errors shown above
Can you please help me ?
Line 26 of vbindex.php , you have to change the chdir to the dir of your forum. It must be chdir('./forum'); (if you haven't corrected the path, it's written forums)
I have edited that line this is what I have it set too
// relitive path to forums directory
// un-comment and set the path if vBindex is not run from the forums root directory
chdir('./forum');
require('./global.php');
garoboldy
12-18-2002, 03:42 AM
I have just updated my index to 2.1 and for some reason now...my news in the middle doesnt show my text from the post..
www.evolutionaryconcepts.com
on the front page it just shows the title if the post, and then the real full post..blah blah...but there isnt any of the posts text..I have it set to 60 characters for each one.
Thanks for any replies.
Darkmeteor
12-18-2002, 09:40 AM
I have the same problem : http://www.lifestone-recall.com/vbindex.php :(
NTLDR
12-18-2002, 09:49 AM
You know if you read the thread its been answered god knows how many times :rolleyes:
NTLDR
12-18-2002, 09:51 AM
Originally posted by Elly
I have edited that line this is what I have it set too
Try using:
// relitive path to forums directory
// un-comment and set the path if vBindex is not run from the forums root directory
chdir('/usr/local/psa/home/vhosts/ultimaforce.net/httpdocs/forum');
require('./global.php');
Instead, perhaps the full path will work, I'm asuming thats your full path ;)
colicab-d
12-18-2002, 01:15 PM
erm i got a prob all i get is a blank page :S http://www.artorg.co.uk/vbindex.php and if followed the hack thru :p
Is i becuase im using vb 2,2,9? plz help
also i have the
chdir('/cupboards');
require('./cupboards/global.php');
todd.o.callen
12-18-2002, 01:26 PM
Originally posted by colicab-d
erm i got a prob all i get is a blank page :S http://www.artorg.co.uk/vbindex.php and if followed the hack thru :p
Is i becuase im using vb 2,2,9? plz help
also i have the
chdir('/cupboards');
require('./cupboards/global.php');
vBindex 2.1 work fine with 2.2.9
Probably a syntax error somewhere.
colicab-d
12-18-2002, 02:43 PM
require('./cupboards/global.php');
if i remove the cupboards from the above i just get mysql errors :S
colicab-d
12-18-2002, 03:12 PM
Database error in vBulletin 2.2.9:
Invalid SQL: SELECT u.username, u.userid, s.shoutid, s.shout_text FROM user u, shoutbox s WHERE u.userid = s.userid ORDER BY s.timestamp DESC LIMIT 1
mysql error: Table 'aov2.shoutbox' doesn't exist
mysql error number: 1146
Date: Wednesday 18th of December 2002 05:05:56 PM
Script: http://www.artorg.co.uk/cupboards/vbindex.php
Referer: https://vborg.vbsupport.ru/showthread.php?s=&postid=332165#post332165
is the error i get :p
colicab-d
12-18-2002, 03:15 PM
i fixed it cause if i turn the shoutbox off it works :p ah well no shoutbox for me lol
thanks it works now ^_^
but how do I get it to load the vbindex when the path entered is http://www.ultimaforce.net it will work with http://www.ultimaforce.net/vbindex.php
NTLDR
12-18-2002, 03:28 PM
Originally posted by Elly
thanks it works now ^_^
but how do I get it to load the vbindex when the path entered is http://www.ultimaforce.net it will work with http://www.ultimaforce.net/vbindex.php
Rename the file index.php it should be shown automaticly then :)
NTLDR
12-18-2002, 03:28 PM
Originally posted by colicab-d
i fixed it cause if i turn the shoutbox off it works :p ah well no shoutbox for me lol
Clearly you haven't bothered to read the instructions or the thread :rolleyes:
colicab-d
12-18-2002, 04:18 PM
sorry
garoboldy
12-18-2002, 04:54 PM
Originally posted by NTLDR
You know if you read the thread its been answered god knows how many times :rolleyes:
I have yet to see a post that shows how to fix it...and try not to be so rude...god :smoke:
todd.o.callen
12-18-2002, 05:01 PM
NTLDR has been kind enough to write this code and support it through over 83 pages of questions. I think that a thread search is the least any of us can do for starters. Reading the installation instructions, which were pretty specific on a number of points, I only had a few detail questions based on how to interpret a given instruction. Since then, I have gotten some timely advice on how to tweak the code, and I am no coder.
Lay off the gift horse. He has a right to get frustrated.
I do think that a sticky post with popular questions and links to the answers would save NTLDR a lot of repetition, though...
colicab-d
12-18-2002, 06:01 PM
well im sorry as i said :p though i did read but was under the nfluence that the shoutbox was installed with vbindex but ah well i dont mind :D so everyone be calm :D
Darkmeteor
12-18-2002, 07:38 PM
Originally posted by NTLDR
You know if you read the thread its been answered god knows how many times :rolleyes:
sorry, I've read the whole 84 pages, but for some strange reason I missed half of the installation procedure :D
NTLDR
12-18-2002, 07:49 PM
Originally posted by garoboldy
I have yet to see a post that shows how to fix it...and try not to be so rude...god :smoke:
What do you expect when 90% of users cannot:
Read the FIRST Post in the thread;
Take in the instructsions there that say you need to READ THE THREAD AND INSTRUCTIONS before asking questions and that repeated questions will be ignored;
Fail to install the hack properly even though there are step by step instructions on how to do it.
If you don't like the way I post, press ignore, I'll speak and give support how I like, if you want/need support then you better accept that. Its for all the reasons above that there probably won't be a newer version released here for the general public, its just not worth the time or the effort at the end of the day, which is why I've tended to keep and hacks modifications that I've made latly to myself.
Personaly I find it pretty reasonable for users to follow the instructions to install the hack and then search the thread first if they have problems. Clearly thats a stupid idea.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.