PDA

View Full Version : vBindex v2.1


Pages : 1 2 3 4 5 [6] 7

colicab-d
12-18-2002, 10:13 PM
can i say that theres is know way im goin to hunt through 84 pages :p and i DID read the first page.

Also no one said that you had to answer them all personally NTLDR

so plz dont be so rude, a lot of folk can barely install hacks :p I have folk ask me to install phpbb ones all the time :p

But anyway this is getting away from the point at hand.


Everyone chill :)

NTLDR
12-18-2002, 10:16 PM
Originally posted by colicab-d
can i say that theres is know way im goin to hunt through 84 pages

Then I DON'T want your questions in this thread, its quite simple, the terms for support are clear on the first post.

The above post wasn't directed at any user in particular.

garoboldy
12-18-2002, 10:34 PM
wow, people get so pissed for no reason..I guess you are having a bad day or something but get over whatever it is...and on that note...I could care less about someone +++++ing about not reading 84 posts...screw a bunch of that.

anyway, the instructions should be more detailed and explain how to set the news to get it to actually show the post and not just a blank space...yes I installed it 2 times now the exact way it should be...but oh well...
so back to the point at hand, the hack is really awesome but my problem still persists...no news content on main page...just shows the post title and all that but no preview of content...

if anyone knows, let me know.
thanks

Chris M
12-18-2002, 10:59 PM
The instructions say to goto the "Update Counters" link, and select the "postids" one...

Satan

KeneticKangaroo
12-18-2002, 11:51 PM
Everyone will be glad to hear....I installed it,

YAY!!!!

Version 2.2.9

Chris M
12-19-2002, 12:06 AM
Yey!:)

Satan

PcGamer
12-19-2002, 01:40 AM
This is my first post in this thread. Been running vBindex now for months. I installed it myself using this thread as a reference. Yes, I've had all the problems/questions, Blank Pages, How to edit templates, where to put new templates and how to name and recall them, etc. And not once have I ever had to post a question... All I did was search this thread and was smart enough to keep checking the first post and I found all my answers. This thread wouldn't be 84 pages if everyone would just read/search the thread to make sure that your problem/question is NOT a duplicate.

NTLDR has done a great job... if you don't like it, don't use it, it wasn't meant for you then.

So, my first post is not a problem or a question but rather a big Thank You to NTLDR.

Now for my plug :) PC-GAMERS.NET (http://www.pc-gamers.net)

NTLDR
12-19-2002, 06:27 AM
Originally posted by garoboldy
so back to the point at hand, the hack is really awesome but my problem still persists...no news content on main page...just shows the post title and all that but no preview of content...

What a pitty. Like I said I don't want you to post in thread thread, go find support else where, if you can't be bothered to follow my terms for support then your not welcome to use this hack nor welcome to get support on it.

NTLDR
12-19-2002, 06:29 AM
Originally posted by PcGamer
This is my first post in this thread. Been running vBindex now for months. I installed it myself using this thread as a reference. Yes, I've had all the problems/questions, Blank Pages, How to edit templates, where to put new templates and how to name and recall them, etc. And not once have I ever had to post a question... All I did was search this thread and was smart enough to keep checking the first post and I found all my answers. This thread wouldn't be 84 pages if everyone would just read/search the thread to make sure that your problem/question is NOT a duplicate.

Thank you PcGamer, good to see some users who have the ability to read and follow simple instructions ;)

Great job on the site to btw :D

KeneticKangaroo
12-19-2002, 03:57 PM
Is there a a add on for this or just main vb for a file data base, so people can view files available for download?

Also what other addons are availavle for this?

todd.o.callen
12-19-2002, 05:06 PM
Another tiny question:

What is the default criterion for a thread to show up on in the threads view?

I have noticed that threads that are in the news forum do not show in the threads view unless they are move/redirects. I think I want all approved threads to show, even though this will cause redundancy. I also just posted a new thread into a non-news forum, and it didn't show in threads, even though many others are popping up.

How should I tweak the query?

NTLDR
12-19-2002, 05:21 PM
If you mean the latest threads block then threads in the news, poll and redirects shouldn't show up. You just need to edit them out of the WHERE clause in the threads query.

todd.o.callen
12-19-2002, 05:31 PM
Thanks! Sounds pretty easy.

Is it hard to add and apply a new template? I want to add a links section below the news but above the footer, and it will have a lot of form/dropdown code, so I wanted to keep it separate if possible? Am I too lame at this point to attempt it?

colicab-d
12-19-2002, 05:43 PM
i think its sad that u got that pissed over something so trivual in the first place.. also i think that no one ever said u had to provide full support theres other folk who have installed this hack and had problems who are more than happy to help folk.

NTLDR
12-19-2002, 05:58 PM
Originally posted by colicab-d
i think its sad that u got that pissed over something so trivual in the first place.. also i think that no one ever said u had to provide full support theres other folk who have installed this hack and had problems who are more than happy to help folk.

Who knows this hack better? Me or the other users? I think me. I ask that users read the thread as it cuts down on the amount of crap, usless, spam, duplicate questions etc in this thread. I esitimate that 80 odd percent of the thread is near useless now, due to the new version and the repeat questions. If people want help, here in this thread then I ask users follow my instructions, otherwise the thread will be closed, its as simple as that.

I ask that you don't waste any more space within this thread with pointless posts with no relevence to anything other than the fact you don't agree with the way I do support for this hack, which many, many users have been happy with.

NTLDR
12-19-2002, 06:00 PM
Originally posted by todd.o.callen
Is it hard to add and apply a new template? I want to add a links section below the news but above the footer, and it will have a lot of form/dropdown code, so I wanted to keep it separate if possible? Am I too lame at this point to attempt it?

If you want extra templates look at the bottom of the file where the left and right templates are done, just copy one of those lines and change the variable, either $left, $right and the name of the template. Make sure to add it to the $templatesused list at the top too :)

todd.o.callen
12-19-2002, 06:22 PM
Originally posted by NTLDR

...look at the bottom of the file where the left and right templates are done, just copy one of those lines and change the variable, either $left, $right and the name of the template. Make sure to add it to the $templatesused list at the top too :)

Which files are where $left and $right are done? I know the templates and the templates that use them. Also where is the $templatesused list?

Sorry I am such a noob :dead: !

NTLDR
12-19-2002, 07:10 PM
Its all done within vBindex.php search for $left to see how to declare the variable to use in the home template and how to say what template it relates to.

Make sure you add the template name to $templatesused right at the top of the file.

garoboldy
12-19-2002, 08:26 PM
LOL, colicab-d has the right idea. calm down its over with. either you are just some goofy kid or your an adult with issues...Its called getting over things. so try it. It may help you in the long run.

and besides, I never asked NTLDR for assistance just in general...

thanks

colicab-d
12-19-2002, 09:59 PM
:p ah horse feathers :p

Elly
12-19-2002, 10:51 PM
Originally posted by NTLDR


Clearly you haven't bothered to read the instructions or the thread :rolleyes:

Thank you so very much for all your help and for the wonderful hack :bunny:

GoTTi
12-21-2002, 08:40 PM
n/m im a idiot lol

GoTTi
12-21-2002, 08:51 PM
it says in instructions:

Find:

doformfooter("Update");

Add after:

// vBindex - add postid to thread table
doformheader("misc","updatepostids");
maketableheader("Update postid's For Threads</b> - adds the postid of the first post in a thread in the thread table<b>","",0);
makeinputcode("Number of threads to do per cycle: ","perpage","2000");
doformfooter("Update");

I have 4 lines of those in vb2.2.9

Do i add it after each line?

omegauk
12-21-2002, 09:57 PM
I dont get this instructions here:

Step Three: |
+-------------------------------------------------------------------------------------------------+

Still in vbindex.php find the section that has:

// start vBulletin original code
// -------------------------
// add here the vBulletin code of the original index.php
// lines 142 - 202(in an unhacked 2.2.8 index.php)
// -------------------------
// end vBulletin original code

and replace:

// add here the vBulletin code of the original index.php
// lines 142 - 202(in an unhacked 2.2.8 index.php)

those lines with lines 142-202 (thats the numbers in an unhacked 2.2.8 index.php)

line 142 starts:

$activeusers = "";
$loggedinusers = "";
if ($displayloggedin) {

and 202 ends:

$totalonline=$numberregistered+$numberguest;
$numberinvisible=$numberregistered-$numbervisible;

+
+++
+

GoTTi
12-21-2002, 11:40 PM
omeq -

go into your /forum/index.php

and find

$activeusers = "";

then

about 15 lines down i think, ther is

$numberinvisible=$numberregistered-$numbervisible;

highlight

$activeusers = "";

to

$numberinvisible=$numberregistered-$numbervisible;

COPY/PASTE that data in vbindex.php over

// add here the vBulletin code of the original index.php
// lines 142 - 202(in an unhacked 2.2.8 index.php)

then save.

todd.o.callen
12-23-2002, 11:58 AM
Originally posted by Da_GoTTi
it says in instructions:

Find:

doformfooter("Update");

Add after:

// vBindex - add postid to thread table
doformheader("misc","updatepostids");
maketableheader("Update postid's For Threads</b> - adds the postid of the first post in a thread in the thread table<b>","",0);
makeinputcode("Number of threads to do per cycle: ","perpage","2000");
doformfooter("Update");

I have 4 lines of those in vb2.2.9

Do i add it after each line?

Read back a few pages. NTLDR answered this for me.

Dan
12-31-2002, 01:52 AM
Is there a way to use this outside the main vB directory if so how?

I'd like it better if you emailed the answer to ori@wideopenwest.com because I can never weed through all these posts

NTLDR
12-31-2002, 11:18 AM
Please read the first post and the instructions.

Chris M
12-31-2002, 12:28 PM
@Oricon - Search for "dir";)

Satan

Huron
01-01-2003, 08:41 AM
Thanks for the wonderful hack NTLDR-it's running flawlessly here and is exactly what I was looking for...

Limpkinw
01-04-2003, 05:36 AM
I uninstalled vbindex today and now I get this error when making new posts. Would it be related? please help!

Database error in vBulletin 2.2.6:

Invalid SQL: UPDATE thread SET tpostid='24040' WHERE threadid='1097'
mysql error: Unknown column 'tpostid' in 'field list'

mysql error number: 1054

Date: Saturday 04th of January 2003 01:30:26 AM
Script: http://www.limpkinw.com/forums/forums/newthread.php
Referer: http://www.limpkinw.com/forums/newthread.php?action=newthread&forumid=1

colicab-d
01-04-2003, 02:14 PM
Hi is it possible to include these variables in the index?

i tried just inserting them as i have here but nothing is displayed apart from the time variable.

thnx for any help :D

$numbermembers

$newusername

$totalthreads

$totalposts

$timenow (this one is working)

NTLDR
01-04-2003, 06:55 PM
Originally posted by Limpkinw
I uninstalled vbindex today and now I get this error when making new posts. Would it be related? please help![/url]

You haven't uninstalled it properly, you need to do the reverse of all the changes you made whilst installing, the uninstaller can't do the changes you made.

NTLDR
01-04-2003, 06:57 PM
Originally posted by colicab-d
Hi is it possible to include these variables in the index?

i tried just inserting them as i have here but nothing is displayed apart from the time variable.

Yes, you just need to include the code that generates the contents for them, they look like they all come from index.php, just add the code at the top around // posts info

Katana Myronson
01-04-2003, 07:33 PM
I cannot get the text of the news post to display... i tried updating the counters but it did not work..

colicab-d
01-04-2003, 08:35 PM
// get total posts
$countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post');
$totalposts=number_format($countposts['posts']);

$countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread');
$totalthreads=number_format($countthreads['threads']);

// get newest member
$getnewestusers=$DB_site->query_first("SELECT userid,username FROM user WHERE userid=$numbersmembers[max]");
$newusername=$getnewestusers['username'];
$newuserid=$getnewestusers['userid'];

im guessing thats the code for a few of them, but where would i insert this?

NTLDR
01-04-2003, 08:44 PM
Originally posted by NTLDR
just add the code at the top around // posts info

Buddha
01-06-2003, 12:08 PM
hey ntldr... me again.
:nervous:

listen, new quirk.
as you no doubt remember, you've helped me change the news bit quite a bit for my pages, so i'm going to quote all of it (cause it's nowhere near the default anymore).
the problem is that if anyone other than me posts and uses bbcode (like color), it doesn't display the color (just the text bbcode... like [ color=blue ]this[ /color ] ... without the obvious spaces).
part of this is no doubt cause we set it up so i could post html without anyone else having that ability, but in so doing, they can't post bbcode now.
i think it's the 'else' tag, but i don't know what it should be.
any help, as always, is greatly appreciated.

// news (based on code by TECK)
// -------------------------
if ($newsonoff!=0) {
$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");
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];
$newsuserid=$news[postuserid];
$comments=$news[replycount];
if ($news[postuserid]==1) {

$newstext=bbcodeparse2($news[pagetext],1,1,1,1);

} else {

$newstext=bbcodeparse($news[pagetext],0,1);

}
$newstext=str_replace("Quote:", "", $newstext);
$icon=$news[iconid];
// uncomment out next line to remove line breaks in the news
//$newstext=str_replace("<br />","",$newstext);
// max news chars
if ($maxnewschars!=0) {
if (strlen($newstext) > $maxnewschars) {
$newstext = substr($newstext,0,$maxnewschars);
$newstext .= "...";
}
$readmore="<a href=\"$bburl/showthread.php?threadid=$newsthreadid\">Read Full Post</a> - ";
}
// end max newschars
eval("\$newsbits .= \"".gettemplate('home_newsbit')."\";");
}
eval("\$news = \"".gettemplate('home_news')."\";");
}
// -------------------------
// end news

thanks.

todd.o.callen
01-07-2003, 12:28 PM
Thanks to your assistance, I have created a custom template that I call into your home template. Works great! :classic:

After reviewing my custom layout of the vbindex.php page, I decided that the new template really belongs in the left column (and therefore in your left template), but when I call it into that template, nothing from it displays.

I have a feeling that it has something to do with the order of the templates, but I am outta my depth here still.

Any suggestions?

NTLDR
01-07-2003, 12:40 PM
Originally posted by Buddha
the problem is that if anyone other than me posts and uses bbcode (like color), it doesn't display the color (just the text bbcode... like [ color=blue ]this[ /color ] ... without the obvious spaces).

It take it that vBcode is enabled for that forum that the user is posting too? The code seems to be correct, if you do have vBcode enabled then I'll take a look further into this.

NTLDR
01-07-2003, 12:41 PM
Originally posted by todd.o.callen
After reviewing my custom layout of the vbindex.php page, I decided that the new template really belongs in the left column (and therefore in your left template), but when I call it into that template, nothing from it displays.

Make sure that this template (or content) is done before the left templated is eval'ed at the end of the file :)

todd.o.callen
01-07-2003, 12:55 PM
Sorry,

Can you translate this hint for the code challenged? Assuming it isn't "done" before left is called, how do I fix it?

PS. Life is good when U R online...

NTLDR
01-07-2003, 12:56 PM
Move it above:

eval("\$left = \"".gettemplate('home_left')."\";");

todd.o.callen
01-07-2003, 01:47 PM
Dude-who-looks-like-a-lady,

You rock. Simple edit. Everything works perfectly. Thanks!

Buddha
01-07-2003, 05:09 PM
yep... vbcode is enabled, ntldr.

any thoughts?

NTLDR
01-07-2003, 05:16 PM
I've just tested it and it works fine for me, is the content of the post correct, ie when editing the post the code is [color=blue ]Text[ /color] (without the spaces)?

Buddha
01-07-2003, 05:41 PM
yep.
would it matter that the forum in question has a moderation queue?
i have to approve it in the admin cp before it goes out.

i'll test it without the mod queue and see.

edit**
mod queue removed, and it still did the same thing.

todd.o.callen
01-08-2003, 04:41 PM
How do I modify the post query so that posts in Private forums (and any other forums the user can't see) will not show up?

Thanks. God I love this hack.

todd.o.callen
01-08-2003, 06:03 PM
Originally posted by todd.o.callen
How do I modify the post query so that posts in Private forums (and any other forums the user can't see) will not show up?

Thanks. God I love this hack.


I tried to apply your advice from a response a few pages ago regarding the news query, by it didn't seem to help:


$threadsquery=$DB_site->query("SELECT * FROM thread WHERE thread.open<>10 ".$threadsql." AND thread.visible=1
AND forumid!=$newsforum AND forumid!=$pollsforum AND visible=1 ORDER BY lastpost DESC LIMIT $maxvbithreads");


My guess is tha thread.visible=1 and visible=1 are the redundant, but I am not a very good guesser.

NTLDR
01-08-2003, 07:07 PM
Yes, you can remove visible=1 ;)

Rodney
01-09-2003, 06:32 PM
Hi I`m getting this error

Warning: date() [function.date]: Unexpected error in D:\cancan\forum\admin\functions.php on line 1599

I tried with vb 2.2.9 and now with 2.2.7 still the same error..

I?m running vbindex on my test board and i made a clean install ( no other hacks ) of vb when I got this error :(

I got the vbindex.php in the same dir as index.php so I skipped step 4 and 11

( i looked to page 30 before I posted this question )

todd.o.callen
01-09-2003, 06:37 PM
I would like to use the usercp_forums template on the vBindex.php layout. I tried just adding it to the declarations:


...

$templatesused.=',home_shoutbox,home_postshout, home_xxxlinks';
$templatesused=',usercp_forums, usercp_forumbit';

...



Then added the evaluate lines:


eval("\$xxxlinks = \"".gettemplate('home_xxxlinks')."\";");
eval("\$myforums = \"".gettemplate('usercp_forums')."\";");

eval("\$left = \"".gettemplate('home_left')."\";");
eval("\$right = \"".gettemplate('home_right')."\";");


Then added it to the home template:



<center><strong><font face="Arial" color="990000">My Forum Subscriptions</font></strong></center>
$myforums
<br><br>




But this wasn't enough. I get the usercp_forums layout, but no usercp_forumbit (s).

I assume that I have some pathing issues with the "external-to-vBindex" template, but that may not be all.

Hints? :cheeky:

NTLDR
01-09-2003, 07:41 PM
You'll need to copy the code from usercp.php that creates the content that usercp_forumbit displays, plus you would need to eval usercp_forumbit too.

todd.o.callen
01-09-2003, 07:44 PM
Originally posted by NTLDR
You'll need to copy the code from usercp.php that creates the content that usercp_forumbit displays, plus you would need to eval usercp_forumbit too.

OK, I knew the 2nd evaluate was coming, but where does the usercp_forumbit code go? :confused:


My new evals are:

eval("\$myforumbit = \"".gettemplate('usercp_forumbit')."\";");
eval("\$myforums = \"".gettemplate('usercp_forums')."\";");

NTLDR
01-09-2003, 07:50 PM
Put it near the top, again around //posts info, thats the safe place to put added code ;)

todd.o.callen
01-09-2003, 07:59 PM
Your are a beautiful man with trashy avatar.

Thanks once again! :rambo:

Rodney
01-09-2003, 08:02 PM
NTLDR , any ideas about : Warning:_date()_[function.date]:_Unexpected_error_in_D:cancanforumadminfunctions. php_on_line_1599 ?

http://217.215.68.215/cancan/forum/vbindex.php

NTLDR
01-09-2003, 08:06 PM
Whats on and arround your line 1599 in admin/functions.php ?

Rodney
01-09-2003, 08:10 PM
/ ###################### Start show_nopermission #######################
function vbdate($format,$timestamp) {
global $bbuserinfo,$timeoffset;

return date($format,$timestamp+($bbuserinfo['timezoneoffset']-$timeoffset)*3600);

}

// ##################### Save birthdays into template ###################


1595 to 1603

vbindex is installed on a clean board ... no other hacks and shoutbox is turned off in acp

NTLDR
01-09-2003, 08:19 PM
I don't see why thats not working, it works fine with that code for me. Try replacing (in vbindex.php) vbdate( with either date( or gmdate( and see if that removes the error.

Rodney
01-09-2003, 08:22 PM
Nice.... it worked..

i changed to " date "

Buddha
01-10-2003, 12:40 PM
Originally posted by NTLDR
I've just tested it and it works fine for me, is the content of the post correct, ie when editing the post the code is [color=blue ]Text[ /color] (without the spaces)?

you tested it with the exact same code as i posted? that's bizarre, cause it still isn't working, and i've tried several other things, and nothing seems to work. no vbcode works (including smilies) for users other than myself (user 1). i assumed it was because of this chunk of change here...

if ($news[postuserid]==1) {

$newstext=bbcodeparse2($news[pagetext],1,1,1,1);

} else {

$newstext=bbcodeparse($news[pagetext],0,1);

}

any help (as always) is greatly appreciated.

thanks.

NTLDR
01-10-2003, 01:34 PM
Yep, exactly the same, try using bbcodeparse2 for the other members too:

$newstext=bbcodeparse2($news[pagetext],0,1,1,1);

That assumes that you wish to parse vBcode, [IMG] code and smilies. (Change the first 1 to 0 if you want to disable [IMG] code).

Buddha
01-10-2003, 01:54 PM
once again, you've come through for me. thank you very much.

i had tried changing the bbcodeparse in the else tag and adding the 2, but it had given me an error, probably cause i hadn't changed the 0s and 1s like you did.

thanks buddy.

Danny
01-11-2003, 06:53 PM
I'm getting some missing pictures on my homepage can you have a look please ?

the url of the test site is http://www.4size.co.uk

pictures on the forum are fine pictures on the home page of vbindex aren't :(

Rodney
01-12-2003, 12:22 AM
Hi again...

how can you get Private messages to show right under your buddy list ? ( or under the poll )

I tryed to put pminfo under buddy but it didn?t work ( in home_left template )

also missing a href in head_newpm ( my vbindex is not in the same dir as my forum )

<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('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="private.php?s=$session[sessionhash]";
}
} else {
// Output when Cancel is clicked
}
}
// -->
</script>

Rodney
01-12-2003, 12:27 AM
Originally posted by Danny
I'm getting some missing pictures on my homepage can you have a look please ?

the url of the test site is http://www.4size.co.uk

pictures on the forum are fine pictures on the home page of vbindex aren't :(

I changed my images path to
http://xxx.xxx.xxx.xxx/cancan/forum/images
http://xxx.xxx.xxx.xxx/cancan/forum/images/test.gif
and so on........

Rose
01-12-2003, 12:53 AM
That's because your images folder is within your forums folder (where it should be). In the admin CP go to styles - modify - fonts/colors/etc. Make sure the "image folder path" points to "/forum/images" and that should fix your problems.

If not you might try changing the image locations (in the templates or via replacements) to "$bburl/images/picture.jpg" etc. But make sure your $bburl points to the forums (Admin CP > vBulletin Options > General Settings > URL).

Good luck!

xevious
01-12-2003, 02:49 PM
Ok, I dont know if this was covered earlier or not, too many pages :). But I am building a gaming site and im using vbindex to do it. Is it possible to run mulitple copies of vbindex but use the same forum? Lets say i am gonna cover 4 games, I want one main index then an index for each game and seperate news for each game, but they all use the same forum. Is this possible? If so, how?

xevious
01-12-2003, 03:20 PM
Nm, i figured out how to do it. Thnx anyways...:)

Rodney
01-13-2003, 09:15 PM
Hi.... any ideas about how can you get Private messages to show right under your buddy list ?

NTLDR
01-13-2003, 09:30 PM
You need to add the nessersary query/queries to vbindex.php and adjust your templates accrodingly.

Rodney
01-13-2003, 09:35 PM
Originally posted by NTLDR
You need to add the nessersary query/queries to vbindex.php and adjust your templates accrodingly.

Sorry I dont know how to do this.... I?m a newbie :)
can you plz explain step by step ( if you have the time )

btw www.swespy.firstnet.se - looks nice now

NTLDR
01-13-2003, 09:38 PM
Take a look through the thread for how to add extra features, its been covered step by step before. The code you need to add is in forums/index.php to get the PM info:

//check usergroup of user to see if they can use PMs
.... some code .....

Rodney
01-13-2003, 09:55 PM
okay... tnx... I?ll give it a try... not sure how thou :)

( have been readning this thread in 3 days now, not sure my brain can take more info right now, also just moving server for my forum)

Deviant_Mind
01-14-2003, 03:48 PM
everythign installed alright.

but i get this error when i go to the index.php (formerly mYvBindex.php)

Warning: ChDir: No such file or directory (errno 2) in /vol/drive2/sites/site39/web/index.php on line 13

mYvBindex.php is in the root dir and the forums are in /forums

server has one of those /web dirs that everything goes into. but if i put that in the path it doesn't work either. (i'v never had to put /web in and path to make anythign work before)

if you go to www.nbdclan.com/forums the board works fine.

if you go to www.nbdclan.com you get that error posted above. Any help would be appreciated. I know the path is wrong. But nothing i have tried has worked.

Thanks in advance

NTLDR
01-14-2003, 05:00 PM
mYvBindex is a rip off of this hack and others, I have nothing to do with it, i sugest that you ask in the hack authors thread.

Deviant_Mind
01-14-2003, 05:02 PM
well....then if you could point me to a portal system that isn't a rip off i'll use that one. Dosen't matter to me. I just want one that works. And this is the url to the support thread in the hack description.

NTLDR
01-14-2003, 05:04 PM
As you can see from the thread title this isn't mYvBindex non are there any files in the zip called mYvBindex.php.

As for alternatives, do a search you'll find many.

Rodney
01-14-2003, 11:02 PM
Originally posted by NTLDR
Take a look through the thread for how to add extra features, its been covered step by step before. The code you need to add is in forums/index.php to get the PM info:

//check usergroup of user to see if they can use PMs
.... some code .....

tnx... figured it out.... it?s pretty nice now...

I got new pm?s under $poll and I added "last reply by" in home_right template..... tnx for all the help NTLDR

www.swespy.com

Natch
01-14-2003, 11:59 PM
Originally posted by Deviant_Mind
well....then if you could point me to a portal system that isn't a rip off i'll use that one. Dosen't matter to me. I just want one that works. And this is the url to the support thread in the hack description. Better plan would be to use the original hack - not the ripoff that doesn't work ...

(just a suggestion LOL)

Great work NTLDR :D

drives fast
01-16-2003, 12:58 AM
I have this installed and have read through tons of pages but cannot find if this problem is solved or not.

I have private forums on my forum and an admin/mod room which is only for admin and mods of course and the other private forums is for a specific usergroup and admins and mods. On the latest threads......everyone can see the titles of the threads in the private forums.....big problem

I found a post that had some stuff but it didn't change anything

is there a fix for this?

please please....I need it bad

thanks in advance

drives fast
01-16-2003, 01:21 AM
well....I bet you are tired of seeing questions that are already answered huh...lol

I finally found a post that explained about the permissions being set rather than being inherited and that definately fixed my problem....

disregard my last post and thank you.

Rodney
01-17-2003, 06:07 PM
Hi again.... I think there is a problem with my vbindex, my users log in on vbindex and when they come in to the forum they arent loged in.. any suggestions ?

NTLDR
01-17-2003, 07:03 PM
You need to set your cookie domain and path correctly, normally:

cookie domain = .mydomain
cookie path = /

In the vBulletin Options in the ACP.

Rodney
01-17-2003, 07:30 PM
like .swespy.com ?

NTLDR
01-17-2003, 08:25 PM
Thats it :)

Rodney
01-17-2003, 08:57 PM
tnx it works now....

sabret00the
01-19-2003, 07:36 PM
i was wondering basically i want this hack but;

I want to be able to define different forums for it to present threads from, each forum having it's own page

so if i had a forum called news, that would be the index, then if i clicked on music i would get lets say the 5 newest threads from the forum called 'music' on a page of it's own and if i clicked sports i would get the 5 newest threads from the 'sports' forum.

**5 being an admin definable number

SatMan2028
01-26-2003, 04:58 PM
Parse error: parse error in /home/satceter/public_html/vbindex.php on line 111

Please help me get back online!

SatMan2028
01-26-2003, 07:20 PM
I don't want the shout feature on my vbindex! The code already had this included, so I deleted it and now its fine!

Huron
01-26-2003, 08:17 PM
Hey NTLDR-
This is the best hack I have installed and I want to thank you for your hard work and time you put forth not only in putting everything together (coding, instructions, revisions, etc.) but also providing such great support (90 pages of it even) for your hack for those who have problems.

I had no issues whatsoever during installation and it is running great and loads just as fast as any of the other pages on my site. Out of all the hacks on my board my members like this one the best...Thanks again!

/me installs

NTLDR
01-26-2003, 08:57 PM
Thanks Huron, its good to know people are still installing the hack :)

Rufus69
01-28-2003, 12:33 AM
hmmm I don't real like reading ALL of these posts...

so here is my question...

I'm trying to make it so that I can have a news forum AND a "Article" forum and have the article thing just like the news thing but on the main page too? is that possible?

(if you don't get what I mean... I just want 2 news things at the main page but one pointing to a different forum)

todd.o.callen
01-30-2003, 05:30 PM
I have been really playing around with your layout to make it work for me, and, well, I torched the left column. I had what I wanted until I logged out and saw that I had moved some of the "logged in" content into templates that are displayed to both users and guests.

OOOPS. I really don't want to revert back to your original for the left family of templates, so maybe you can help me muddle through?

Left column:

<table cellpadding="0" cellspacing="0" border="0" width="100%" bordercolor="990000" align="center">
<tr>
<td>
$login
$logout
</td>
</tr>
<tr>
<td>$xxxlinks</td>
</tr>
</table>



$login has the stuff you should see if you need to login.
$logout has the stuff you should see if you are logged in.
$xxxlinks (not porn, just easy to spot) is a custom template that has some jump menus that should be displayed to all users.

Am I calling the in/out templates incorrectly? The xxxlinks is all that displays right now. I can even make that disappear if I mess with the order of the evaluate statements in the vbindex.php file.




... from vbindex.php...

// left & right templates
// -------------------------
eval("\$xxxlinks = \"".gettemplate('home_xxxlinks')."\";");
eval("\$myforumbit = \"".gettemplate('usercp_forumbit')."\";");
eval("\$myforums = \"".gettemplate('usercp_forums')."\";");
eval("\$left = \"".gettemplate('home_left')."\";");
eval("\$right = \"".gettemplate('home_right')."\";");





Also, I tried to call in the avatar template to the login and logout templates, but nothing would ever display. Again, it is just my simple ignorance I'm afraid.

HEEEELLLLLLPPPPPPP!

NTLDR
01-30-2003, 07:21 PM
Look at how $logincode is assigned and that will show you how to do $login and $logout correctly.

todd.o.callen
01-30-2003, 07:40 PM
I added "$logincode" into the left template and almost everything is displaying again. Why is that?

All that still doesn't work is the following code that I put into the logout template:



$avatarimage


I tried calling the $avatar, but that didn't help.


Here's what is in the avatar template:


<table border=1 width=100% bordercolor="990000" cellpadding=0 cellspacing=0>
<tr>
<td>
<a href="$bburl/member.php?s=&action=editavatar" img src="$bburl/$newsavatarurl" border="0"></a>
</td>
</tr>
</table>

NTLDR
01-30-2003, 09:04 PM
Originally posted by NTLDR
Look at how $logincode is assigned and that will show you how to do $login and $logout correctly.

You need to look and see how its done and duplicate it, not add it again in the template.

todd.o.callen
01-31-2003, 01:14 PM
Man, I am trying to understand... but I don't.

Some strange stuff is going on now.
I inserted some garbage "tracers" into the home_left to get to the bottom of it, and the following stuff:


aaa
$logincode
bbb
$login
ccc
$logout
ddd


yielded the following to a logged int user:


aaa
==============
(content of home_logout)
==============
bbb ccc ddd


Is this normal? I expected the bbb and ccc to be above the home_logout content. Even more surprising to me was that I still got content when I removed the $login and $logout. Apparently, the $logincode actually displays either $login OR $logout. Right?
So, all I should have to do is get the dynamic avatar for the user and insert it into home_logout. I've scrounged around, but can't seem to get that part right. I did get the avatar to show up in the home_left template again, but for formatting reasons, I really need it inside the table that's in home_logout. What's the secret?


Sorry for the hassle. Officially above and beyond the call of duty.

NTLDR
01-31-2003, 09:00 PM
$login and $logout IIRC don't even exist, hence they don't display anything.

I'm a little confused here, do you just want to include the avatar in the home_logout (and/or home_login) template?

For reference, home_logout shows the code for users who are logged in and home_login shows the code for users who are logged out.

Barbarik
02-01-2003, 05:06 AM
I get this when i try to go to the index.php after installation.

Parse error: parse error in /home/virtual/site187/fst/var/www/html/index.php on line 114

Sinister112
02-02-2003, 12:19 PM
i wanted to know
is there anyway u can add ur vbb skin to the portal b/c i dont like purple lol and i want my own skin on it

Sinister112
02-02-2003, 07:24 PM
another thing
if its not possible then where can i get some skins?

drives fast
02-02-2003, 07:38 PM
you have to edit the templates to make it match your site but it should have matched it already

Sinister112
02-02-2003, 08:18 PM
ehmz
ok this is totally strange to me
after installing the board modifying the .php files like it said in the read me
i get this error

Warning: Unable to access ./admin/config.php in /home/virtual/site1/fst/var/www/html/forum/global.php on line 129
can someone help me out this is realy working on my nerves now

Decoder
02-02-2003, 08:42 PM
can i install this on a subdomain and use it on the primary one?
cause i have my forums in a different domain

Sinister112
02-02-2003, 08:59 PM
never mind i figured it out lol
anywayz
how can i add more menus like ehmz
lets say
Members and stuff
on the left when ur logged in
(in the navi bar)
how can i add stuff
cause i wanto add "Members" to it
and some other stuff

i also managed to copy the header template from my vbb skin to the portal lol :D

Sinister112
02-02-2003, 09:51 PM
another question
how can i add top 10 posters and stats like that?

Decoder
02-02-2003, 11:14 PM
i did all the steps and i get this when i go to the vbindex page
"Parse error: parse error, unexpected T_STRING in /home/sites/site138/web/forums/vbindex.php on line 112"

Decoder
02-02-2003, 11:53 PM
ok you know what
i dont understand these instructions at all
i'm trying to read step3 and have no idea wtf to do

Decoder
02-02-2003, 11:57 PM
where am i supposed to get a index file for 2.2.8?

Decoder
02-03-2003, 12:17 AM
ok well i took the code from my 2.2.9

but i am getting
"Warning: main(./admin/config.php) [function.main]: failed to create stream: No such file or directory in /home/sites/site138/web/forums/global.php on line 129
"

Decoder
02-03-2003, 12:24 AM
Warning: main(.forums/admin/config.php) [function.main]: failed to create stream: No such file or directory in /home/sites/site138/web/forums/global.php on line 129

and line 129 in global reads
"require('.forums/admin/config.php');"

Barbarik
02-03-2003, 02:48 AM
Need more help. I think i thought i fixed it because i was reading through the thread here but i tried to fix it one way but now im getting this.

Parse error: parse error, expecting `')'' in /home/virtual/site187/fst/var/www/html/index.php on line 26

NEED HELP PLEASE HELP ME :) lol

todd.o.callen
02-03-2003, 12:27 PM
Originally posted by NTLDR
I'm a little confused here, do you just want to include the avatar in the home_logout (and/or home_login) template?


Yes. That's it. My avatar when I am logged in (linked to my change avatar action), and the Guest avatar when no one is logged in (linked to the register page).

I need this code to live in the home_login/logout template(s) in order to make the table borders work correctly.

Thanks.

PS. I actually saw Charmed on last night for a few minutes while I was visiting my Grandmother in an Alzeimer's unit. Thought it was a Brit thing, but apparently it on here, too. :classic:

Decoder
02-03-2003, 01:59 PM
can someone help me please?

Barbarik
02-03-2003, 08:15 PM
I think NT is inactive for the moment cause i have been waiting 3 or 4 days lol.

NTLDR
02-03-2003, 09:28 PM
Originally posted by todd.o.callen
I need this code to live in the home_login/logout template(s) in order to make the table borders work correctly.

Move:

// welcome panel by trilOByte
// -------------------------
if ($bbuserinfo[userid]!=0) {
$avatarurl=getavatarurl($bbuserinfo[userid]);
if ($avatarurl=='') {
$avatarurl='{imagesfolder}/avatars/noavatar.gif';
}
$avatarimage='<a href="'.$bburl.'/member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$bburl.'/'.$avatarurl.'" border="0">';
} else {
$avatarimage='<a href="'.$bburl.'/register.php?s='.$session[sessionhash].'&action=signup"><img src="{imagesfolder}/avatars/guestavatar.gif" border="0"></a>';
}
// -------------------------
// end welcome panel

Above:

// check if user is logged in or not and select the correct templates
// for the welcome panel, buddies and left menu

It should then work in the home_login/out templates.

PS. I actually saw Charmed on last night for a few minutes while I was visiting my Grandmother in an Alzeimer's unit. Thought it was a Brit thing, but apparently it on here, too. :classic:

Its by far a US thing ;) I only started watching it recently myself :D

Decoder
02-03-2003, 11:00 PM
so does anyone have any idea's to my problem?

todd.o.callen
02-04-2003, 01:24 PM
Originally posted by NTLDR


Move:

// welcome panel by trilOByte
// -------------------------
if ($bbuserinfo[userid]!=0) {
$avatarurl=getavatarurl($bbuserinfo[userid]);
if ($avatarurl=='') {
$avatarurl='https://vborg.vbsupport.ru/vbimages/avatars/noavatar.gif';
}
$avatarimage='<a href="'.$bburl.'/member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$bburl.'/'.$avatarurl.'" border="0">';
} else {
$avatarimage='<a href="'.$bburl.'/register.php?s='.$session[sessionhash].'&action=signup"><img src="https://vborg.vbsupport.ru/vbimages/avatars/guestavatar.gif" border="0"></a>';
}
// -------------------------
// end welcome panel

Above:

// check if user is logged in or not and select the correct templates
// for the welcome panel, buddies and left menu

It should then work in the home_login/out templates.




OK, I moved the welcome panel:
// welcome panel by trilOByte
// -------------------------
if ($bbuserinfo[userid]!=0) {
$avatarurl=getavatarurl($bbuserinfo[userid]);
if ($avatarurl=='') {
$avatarurl='https://vborg.vbsupport.ru/vbimages/avatars/noavatar.gif';
}
$avatarimage='<a href="'.$bburl.'/member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$bburl.'/'.$avatarurl.'" border="0">';
} else {
$avatarimage='<a href="'.$bburl.'/register.php?s='.$session[sessionhash].'&action=signup"><img src="https://vborg.vbsupport.ru/vbimages/avatars/guestavatar.gif" border="0"></a>';
}
// -------------------------
// end welcome panel

// check if user is logged in or not and select the correct templates
// for the welcome panel, buddies and left menu

Then added the $avatarimage to the home_logout:

<table border=1 width=150 bordercolor="990000" cellpadding=0 cellspacing=0>
<tr>
<td colspan="2" align=center>
$avatarimage
<br>
<font face=arial size=2 color="990000"><b>
<a href="$bburl/search.php?s=$session[sessionhash]&action=getnew">$getnewpost[posts] New Posts</a></b></font> <br>
<font face=arial size=1> since your last visit on:
<br>
$bbuserinfo[lastvisitdate]. </font> </td>
</tr>
</table>


but still don't see the image! Oy! :dead:

None of the avatar code is making it to the client:

<!-- BEGIN TEMPLATE: home_logout -->
<table border=1 width=150 bordercolor="990000" cellpadding=0 cellspacing=0>
<tr>
<td colspan="2" align=center>

<br>
<font face=arial size=2 color="990000"><b>
<a href="http://guidedirectdev.guidecorp.eds.com/GDCrosstalk/search.php?s=&action=getnew">0 New Posts</a></b></font> <br>
<font face=arial size=1> since your last visit on:
<br>
02-04-2003 09:56 AM. </font> </td>
</tr>
</table>

I have a feeling that I am soooo close, but I must be doing something really STOOOpid. :dead:

Barbarik
02-04-2003, 11:40 PM
Need more help. I think i thought i fixed it because i was reading through the thread here but i tried to fix it one way but now im getting this.

quote:
Parse error: parse error, expecting `')'' in /home/virtual/site187/fst/var/www/html/index.php on line 26

NEED HELP PLEASE HELP ME lol

Decoder
02-06-2003, 01:07 PM
can someone please help me

Kohhal
02-07-2003, 07:48 AM
Once again, great hack :D

I'm redesigning my site again and I'd like the left and right columns to extend to the bottom of the page, as far as the centre/news column goes. Is there a simple way of doing this? I know it's just a matter of reorganising the tables but there's so many :(

TIA,

G :bandit:

k9underdog
02-07-2003, 05:03 PM
I have a problem. Sometimes when I call vbindex.php it says it can't include global.php, some other times it works just fine. Any ideas?

mallJack
02-10-2003, 03:38 PM
Okay I am very new at this kind of stuff. I see you have to get your permission to use this hack. I was wondering if you offered a service (don't mind paying), where you actually install this for me.

I have never installed a hack, although I believe this is what I am looking for.

I want to add hot topics or new posts to other areas of my web site.

As you can tell, I am more than a rookie at this. I can design my site and maintain it in dreamweaver, but I always seek help for install and harder stuff.

Thank you in advance

Larry@IOG
02-11-2003, 02:09 AM
News is not showing up on the vbindex page.

https://vborg.vbsupport.ru/

Thanks in advance


Larry

maxxxxxx
02-12-2003, 04:38 PM
Hello...

I have a problem like many others ... :cool:

I want that this New Vbulletin Portal (http://phonecity.de)
looks like this My old wbb Portal (http://www.phonecity.de)

Can someone tell me how i can do this??
And why i dont see anything in the news???

And i dont understand this part in the instuction (i am german) :



Still in vbindex.php find the section that has:

// start vBulletin original code
// -------------------------
// add here the vBulletin code of the original index.php
// lines 142 - 202(in an unhacked 2.2.8 index.php)
// -------------------------
// end vBulletin original code

and replace:



those lines with lines 142-202 (thats the numbers in an unhacked 2.2.8 index.php)

line 142 starts:

$activeusers = "";
$loggedinusers = "";
if ($displayloggedin) {

and 202 ends:

$totalonline=$numberregistered+$numberguest;
$numberinvisible=$numberregistered-$numbervisible;





cu
maxxxxxx

PennylessZ28
02-19-2003, 06:59 PM
Excellent work, very nice job.

Only if you know how long I left //chdir {./forum} commented, lol. I finally realized, uncommented it and everything came together.

I felt so silly.

But now that it all works, its awesome. I just upgraded to your most recent version, I like the addition of the Shoutbox and what not. Very Very Nice. Excellent work man.

Thank you alot.

Michael
Virginia Beach, VA, USA

PennylessZ28
02-21-2003, 01:55 PM
Originally posted by Larry@IOG
News is not showing up on the vbindex page.

https://vborg.vbsupport.ru/

Thanks in advance


Larry

I to am having this problem, the NEWS is not being displayed, I see a $newstext, however I don't see that template.

I am curious why my news isn't being displayed, everything else works and shows up except for the NEWS TEXT itself.

Nickoli
02-23-2003, 07:13 PM
Not sure if this should be asked in this thread or the shoutbox thread, But I will try here anyways. As shoutbox works fine.

My shoutbox hack works fine, as does the vbindex hack. But for some reason smilies wont show up in the vbindex pages shotbox. The url to the image smilies in the vbindex shotbox is not adding the forum dir to the url. Its useing

http://x.com/images/smilies/x.gif
apposed to
http://x.com/forum/images/smilies/x.gif

Where would I add the $bburl to fix this? Or do I fix it in some other way?

kreftt
02-24-2003, 03:08 AM
if i remember right, you should put the full url to each smilie in your admin cp in the smilies section instead of the relative url...

PennylessZ28
02-24-2003, 01:00 PM
Here is something to ponder, when I put $username on the index page, it displays someone elses name. The names keep changing to different users, but it isn't my name.

what is the create way to call $username on the front page?

PennylessZ28
02-26-2003, 12:05 PM
IT doesn't look like we are gonna get any feed back on this, I still can't see any news being displayed, and I am sure otehr people can't either.

todd.o.callen
02-26-2003, 12:09 PM
Search back a ways. Lots of people have had the blank display issue and then were able to correct it.

NTLDR has been away for a while, but there is a LOT of useful info here. Your $username one is bizarre, though. I have never had any trouble with it.

PennylessZ28
02-26-2003, 04:27 PM
I'm still trying to get past the 500 smart ass punk remarks, that if you read the thread you'd know, I did a search, "news not showing" so far i see people asking and the same response, its already been answer, go read the instructions.

LOL

NTLDR
02-26-2003, 04:45 PM
As I have said many times before, I will not be answering questions twice, nor will I provide support for those who haven't read the thread.

Don't use $username, use $bbuserinfo[username]

Threads that are displayed on the latest threads etc, can't have permissions applied to them unless you either set each forums permission explicity or exclude them from the query, as I've provided instructions to do allready.

Evil Chris
02-26-2003, 04:59 PM
I've been trying to search out an answer to this question, and can't seem to find it in all ninety some-odd pages of this thread.

Hopefully someone can provide a quick answer...

What happens when the forums directory *is* the root directory of the website/domain?

ie.. if I rename myvbindex.php to index.php, what on earth happens to the list of forums that would otherwise be listed on index.php ?

(*edited to say: thanks in advance) :nervous:

PennylessZ28
02-26-2003, 05:09 PM
Originally posted by NTLDR
As I have said many times before, I will not be answering questions twice, nor will I provide support for those who haven't read the thread.

Don't use $username, use $bbuserinfo[username]

Threads that are displayed on the latest threads etc, can't have permissions applied to them unless you either set each forums permission explicity or exclude them from the query, as I've provided instructions to do allready.

1) I HAVBE READ THIS THREAD FOR THE PAST 2 HOUR and 4 times in the past 4 days.

2.) I FOLLOWED YOUR DIRECTIONS, I UPDATED COUNTERS

3.) I ADDED " AND visible=1 " Like I saw you tell people a dozen times.

4. ) I refollowed directions read more posts were you badger people and updated counters, checked IDs and still no NEWS

5.) $bbuserinfo[username] I solved that Monday on my own. Just recalled that I changed it when I installed new templates.

6.)USER GROUPS SMART ASS ARE SET TO FORUM DEFUALTS, COUNTERS UPDATED

7.) I WILL KEEP READING YOUR REPLIES TO PEOPLE. PERHAPPS I WILL FIGURE IT OUT ON MY OWN

DON'T SECOND GUESS ME, I've INSTALLED THIS HACK ON 3 FORUMS and UPDATED IT TWICE WITH NEVER A PROBLEM TILL NOW. Never had a problem in 2.2.7, 2.28, 2.2.9 until 2.3.0

And yes I updated counters

Evil Chris
02-26-2003, 05:15 PM
yikes...

insanctus
02-27-2003, 10:00 AM
It is late and I am on page 35.

I must say awsome hack. I am workin on it on my new site.

Incase it is not in here yet. I would like know about the random spell on your demo site what did you use or if I can get it.

kreftt
02-27-2003, 07:40 PM
Originally posted by Evil Chris
I've been trying to search out an answer to this question, and can't seem to find it in all ninety some-odd pages of this thread.

Hopefully someone can provide a quick answer...

What happens when the forums directory *is* the root directory of the website/domain?

ie.. if I rename myvbindex.php to index.php, what on earth happens to the list of forums that would otherwise be listed on index.php ?


(*edited to say: thanks in advance) :nervous:


you would have to rename this to something else, like forum.php.
you would have to edit a lot of templates then, mostly redirection templates as thos try to get you back on forums main page which was index.php before.
you might experience other problems i might not be aware of.

result: dont do that

you better keep it vbindex.php and put a .htaccess file in your root folder that tells a visitors browser that NOT index.php but vbindex.php is the file to go to first when the root url is called.
i dont have the syntax for it here but search the forums for htaccess & DirectoryIndex and you will find it.

greetz

kreftt

insanctus
02-27-2003, 07:57 PM
Ok I have looked at every post in this thread... Interesting reading.

I like the hack alot unlike most this one makes about 60% sence to me :)

I started playing with lay out already but there is one thing I must have maybe some one can help.

phpportal had a quote of day or emphirid or something.

I would love to have something like that wich works with vbindex.

The demo site has something like it on that site.. either would be perfect thanks for help in advance.

Buddha
02-27-2003, 08:51 PM
hey buddy, got a quick question... not of vital importance, but seeing as i'm a nitpicker, i have to ask.

check out this screenshot (http://www.fulldvdreview.com/images/post_images/screenshot_error.jpg). do you have any idea why mozilla would display your script like this? the symbols don't appear in the regular forum pages, but on the pages i made with your script, they often do.

any thoughts... it's not a problem in IE, but i'd still like it to work properly in Moz.

thanks.

NTLDR
02-27-2003, 10:58 PM
Buddha, is that Moz on Win32 or on Linux? Aslo what is that character supposed to be?

NTLDR
02-27-2003, 10:59 PM
Originally posted by Unholy
phpportal had a quote of day or emphirid or something.

I would love to have something like that wich works with vbindex.

The demo site has something like it on that site.. either would be perfect thanks for help in advance.

Thats KuraFires quote hack.

NTLDR
02-27-2003, 11:00 PM
Originally posted by HR3rdGen
.....

Added to ignore list.

Buddha
02-28-2003, 12:18 AM
ntldr, it's win32... sorry, should have been more specific. v1.2.1

as for the character, the upper one is a french accent on the e... "cliche".

the bottom symbol are part of a bulleted list. what's odd is that it doesn't do this on all the pages, which is why i was wondering if you might know what part of the code determines this behavior... i can then check it more closely to see if there are differences (although there really shouldn't be... it was a straight copy with only a few minor changes made for the templates and the forum id's).

thanks bud.

oh, and btw, those bottom bullets are within a replacement string that is constant in all of my pages (which use your script), so it's not that which is the problem... it's something within the php file.

thanks.

NTLDR
02-28-2003, 12:59 PM
I would imagine the error is due to the character set thats being used. Try using the HTML Entity for the letter you want and see if that works (Here's a list of them http://www.htmlhelp.com/reference/html40/entities/latin1.html).

So I would image your looking for &eacute; which is &eacute;.

Buddha
02-28-2003, 03:06 PM
thanks for the link... i found it strange that the same characters displayed properly in the forum, but not always in your script. especially the bullets... regardless, i'll just used the long code on this site.

very much appreciated, as always.
i'll be opening my site up to the general public shortly, and you are welcomed to use it as an example of what your script can do. i'm very grateful for the work you've done!

take care.

Evil Chris
02-28-2003, 07:14 PM
Originally posted by kreftt

you would have to rename this to something else, like forum.php.
you would have to edit a lot of templates then, mostly redirection templates as thos try to get you back on forums main page which was index.php before.
you might experience other problems i might not be aware of.

result: dont do that

you better keep it vbindex.php and put a .htaccess file in your root folder that tells a visitors browser that NOT index.php but vbindex.php is the file to go to first when the root url is called.
i dont have the syntax for it here but search the forums for htaccess & DirectoryIndex and you will find it.

greetz

kreftt
kreftt.... Thank you for the advice. I'm still beta testing this particular board, and I'll try that and a few other options as well.

What I'm undecided about however is to where I want the users to spend the majority of their time. Do I want them to constantly be re-directed back to myvbindex? Or do I want them to see the list of different forums I am offering?

The way I figure, once they see the news and gadgets on myvbindex once per day, they are pretty much done with it, and will want to get to the *meat* of the board.

I need to join a couple of boards using this hack and get a good feel for it.

Buddha
02-28-2003, 07:28 PM
Originally posted by Evil Chris
I need to join a couple of boards using this hack and get a good feel for it.

check this out (http://www.fulldvdreview.com/vbindex.php)

tenchiws
03-01-2003, 05:41 PM
I'm having some errors with this mod. I installed it following all the instructions but it won't work for the template we got. Here's what it's doing:

http://forums.xfernet.com/forums/vbindex.php

Buddha
03-07-2003, 01:12 PM
Originally posted by tenchiws
I'm having some errors with this mod. I installed it following all the instructions but it won't work for the template we got. Here's what it's doing:

http://forums.xfernet.com/forums/vbindex.php

are you referring to the header problem?
if so, just edit home_header and change it to suit your site.

KeneticKangaroo
03-13-2003, 07:16 PM
hey, i installed tis before and im just reinstalling it, when i go to the vbindex page it loads ok and just above the header it says

Warning: Cannot add header information - headers already sent by (output started at /usr/local/psa/home/vhosts/xxxxxxxxxxxxxx.co.uk/httpdocs/vbindex.php:2) in /usr/local/psa/home/vhosts/xxxxxxxxxxxxxx.co.uk/httpdocs/admin/functions.php on line 1573

subu1
03-15-2003, 05:51 AM
goog morning friends, ups 94 pages, i dont want read this now, because my vbindex works, but i have a little questions.

The user can see the privat heading thread but not read, he may not see it.

what can i do

drives fast
03-15-2003, 05:53 AM
that is definately answered in this thread

Evil Chris
03-17-2003, 01:13 AM
I've finally installed this on my now working new board.
Thanks.

jimmyjoe
03-17-2003, 07:38 PM
I just upgraded to 2.1 and things seem to load faster but I have 2 issues...

1) The news section doesn't include a synopsis of the news item just the title and avatar of the user...

2) I can't remember or find out how to add links to the left side for more pages.

Thanks for any help!!

http://www.smartphonesource.com

jimmyjoe
03-17-2003, 07:43 PM
.

todd.o.callen
03-17-2003, 10:29 PM
1st of all: Everything works great! :) :)

In fact, everything is working so well that I am forced to try to split the "Latest Posts" list into categories. Is there a way to point the list to a single top-level forum and all of its sub-forums?

I guess I need something like this:


Latest Corporate Posts (this actually would need to concatonate from several top-level forums)

Latest Plant 1 Posts

Latest Plant 2 Posts

Latest Plant 3 Posts


Any help would be adored.

Yuber
03-22-2003, 09:29 PM
I notice on The Sisters Three, that you have a higher version.

Yuber
03-22-2003, 09:34 PM
BTW, How do you work HTML to use images around each part like what they do with vb.org?

NTLDR
03-23-2003, 04:19 PM
I notice on The Sisters Three, that you have a higher version.

Thats correct, I've a slightly improved version there that I did a little bit of work on. However I won't be using vBindex there as I've almost finished my new portal for it.

I will however upgrade and introduce some new features in vBindex when vB3 is release for public beta.

flup
03-23-2003, 05:01 PM
NTLDR, i've got a problem.
I've installed the hack like u said in the install.txt file.

I've uploaden vBindex.php to:
/vBindex.php

And my forum is at:
/forum/index.php

In that case i put chdir to './forum'
and : require('./forum/global.php')

But the page won't display, it even doesn't give an error.
What is the problem?

The page URL would be:
http://sat-gsm.dyndns.org/
and the forum url:
http://sat-gsm.dyndns.org/forum/

TIA

Yuber
03-23-2003, 09:45 PM
How do you work HTML to use images around each part like what they do with vb.org?

todd.o.callen
04-02-2003, 08:37 PM
11-06-02 at 04:53 PM lemarsu said this in Post #1050 (https://vborg.vbsupport.ru/showthread.php?postid=319399#post319399)
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.


I want to do the same thing, but I am not sure I understand this example. I want my vbindex.php to come up as "MyCrossTalk".

Where do these values plug in?

Thanks.

lemarsu
04-03-2003, 07:04 AM
todd.o.callen

you will need to edit online.php use the following :

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]'>MyCrossTalk</a>";
break;


and replaced


case '/robots.txt':
$userinfo[activity] = 'spider';
break;



by


case '/robots.txt':
$userinfo[activity] = 'spider';
break;
case 'vbindex.php':
$userinfo[activity] = 'mycrosstalk';
break;

todd.o.callen
04-04-2003, 06:50 PM
Yesterday at 03:04 AM lemarsu said this in Post #1417 (https://vborg.vbsupport.ru/showthread.php?postid=376982#post376982)
todd.o.callen

you will need to edit online.php use the following :



case '/robots.txt':
$userinfo[activity] = 'spider';
break;



by


case '/robots.txt':
$userinfo[activity] = 'spider';
break;
case 'vbindex.php':
$userinfo[activity] = 'mycrosstalk';
break;



I completed the first replace, but I don't have the second case in my online.php. What do I do?

Buddha
04-05-2003, 12:15 AM
03-23-03 at 06:19 PM NTLDR said this in Post #1413 (https://vborg.vbsupport.ru/showthread.php?postid=371998#post371998)
Thats correct, I've a slightly improved version there that I did a little bit of work on. However I won't be using vBindex there as I've almost finished my new portal for it.

I will however upgrade and introduce some new features in vBindex when vB3 is release for public beta.

how is that portal going, ntldr... i'm very curious about it.

my site went live 1st of april, and i've gotten lots of great compliments on the off-forum pages, and each time i say it's thanks to your script!

todd.o.callen
04-07-2003, 01:16 PM
04-04-03 at 09:15 PM Buddha said this in Post #1419 (https://vborg.vbsupport.ru/showthread.php?postid=377686#post377686)
how is that portal going, ntldr... i'm very curious about it.

...

i've gotten lots of great compliments on the off-forum pages, and each time i say it's thanks to your script!

Me too, on both counts.

dbroomjr
04-09-2003, 02:57 AM
I have got a slight problem...Everything is working perfectly..But, when it pulls the news thread, it shows the Title of the thread, the users avatar, read full post, comments, etc.

But, no matter the amount of characters I set for it to show, it simply shows nothing in the body of the post.

Did I zig when I should have zagged somewhere in the setup? I am using vBulletin 3.0

Thanks,

Dave

ForKmaN
04-12-2003, 04:15 AM
Mine all works good, it even shows the news tiltes and avatars, except, it wont show the news content ...

Help please?

ForKmaN
04-12-2003, 04:16 AM
ok, same problem as dbroomjr

Rose
04-12-2003, 05:18 PM
Yep yep. I just upgraded to version 2.3.0 and I get everythign working fine also but the news won't pull.

Maybe it has to do with the file edit in which I found the line in three places in the 2.3.0 file? Wait, that won't make sense without reference. I'll be right back.

Rose
04-12-2003, 07:07 PM
Update - for 2.3.0 users

First, make sure you ran the update counters after installing. If this doesn't fix the problem (of the news not being pulled onto the main page), then try this:

In newthread.php find the line

// Add postid to thread table if vBindex news forum
if ($forumid=$newsforum) {
$DB_site->query("UPDATE thread SET tpostid='$postid' WHERE threadid='$threadid'");
}

You need to hardcode the forumid in, at least it worked for me. :) If it doesn't work for you - sorry 'bout that.

Anyway, change the above to something like below:

[php] // Add postid to thread table if vBindex news forum
if ($forumid==X) {
$DB_site->query("UPDATE thread SET tpostid='$postid' WHERE threadid='$threadid'");
}

Note - Change "X" to your forumid of the news forum. Also, notice there is now a double equal sign instead of a single sign. :)

NTLDR
04-12-2003, 07:16 PM
how is that portal going, ntldr... i'm very curious about it.

Its almost done at last (code wise at least), I've the Links Directory and Installer to finish. I'm not sure if I'll be releasing it yet, and if I do it won't be till after vB3 has come out.

my site went live 1st of april, and i've gotten lots of great compliments on the off-forum pages, and each time i say it's thanks to your script!

WOW! You've done a fantastic job there Buddha, thats one impressive site/set of foums you've got :D

Sting
04-25-2003, 01:58 AM
sorry but i am retarded or its too late for my brain to function properly.. but i installed vbindex fine... and it works greats, its awesome.. good job.. but the images are not working.... probably bc the vbindex.php is not in the forum/ dir. so where do i have to change it to fix it? i probably missed something... thnx in advance...

nvm.... i just had to change the images path.... on vbulletin cp... but the avatar image wouldnt work, bc u had to change it in vbindex.php... i am retarded

crowfield99
04-27-2003, 10:55 AM
Hello,

I have tried to install this hack as I think its a really good idea but keep getting this at the bottom of vbindex.php

// ------------------------- // end vBulletin original code } // end of vB // vBindex - start // ------------------------- // welcome panel by trilOByte // ------------------------- if ($bbuserinfo[userid]!=0) { $avatarurl=getavatarurl($bbuserinfo[userid]); if ($avatarurl=='') { $avatarurl='{imagesfolder}/avatars/noavatar.gif'; } $avatarimage=''; } else { $avatarimage=''; } // ------------------------- // end welcome panel // news (based on code by TECK) // ------------------------- if ($newsonoff!=0) { $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"); 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]; $newsuserid=$news[postuserid]; $comments=$news[replycount]; $newstext=censortext(bbcodeparse($news[pagetext],0,1)); $icon=$news[iconid]; // uncomment out next line to remove line breaks in the news //$newstext=str_replace("
","",$newstext); // max news chars if ($maxnewschars!=0) { if (strlen($newstext) > $maxnewschars) { $newstext = substr($newstext,0,$maxnewschars); $newstext .= "..."; } $readmore="Read Full Post - "; } // end max newschars // get users avatar to display with news if ($shownewsavatar!=0) { $newsavatarurl2=getavatarurl($newsuserid); if ($newsavatarurl2=='') { $newsavatarurl='{imagesfolder}/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 // latest threads // ------------------------- if ($threadsonoff!=0) { //get forum perms $forumperms=$DB_site->query("SELECT forumid FROM forumpermission WHERE canview='0' AND usergroupid='$bbuserinfo[usergroupid]'"); while ($forumperm=$DB_site->fetch_array($forumperms)) { $threadsql .= " AND forumid!=$forumperm[forumid]"; } $threadsquery=$DB_site->query("SELECT * FROM thread WHERE open=1 AND thread.open<>10 ".$threadsql." AND forumid!=$newsforum AND forumid!=$pollsforum AND visible=1 ORDER BY lastpost DESC LIMIT $maxvbithreads"); 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=$latestforum['title']; $postforumid=$latestthread['forumid']; $gothreadid = $latestthread['threadid']; if (($counter++ % 2) != 0) { $threadbg="{firstaltcolor}"; } else { $threadbg="{secondaltcolor}"; } eval("\$threadbits .= \"".gettemplate('home_threadbit')."\";"); } eval("\$threads = \"".gettemplate('home_threads')."\";"); } // ------------------------- // end latest threads // poll by wajones // ------------------------- if (($pollonoff!=0) && (!isset($section) or $section=="")) { $pollinfo=$DB_site->query_first("SELECT poll.*,thread.threadid,thread.open,thread.replycou nt FROM thread LEFT JOIN poll ON (thread.pollid=poll.pollid) WHERE thread.forumid='$pollsforum' ORDER BY poll.dateline DESC LIMIT 1"); if (!empty($pollinfo[question])){ $pollinfo[question]=bbcodeparse($pollinfo[question],0,1); $polltitle=$pollinfo[title]; $splitoptions=explode("|||", $pollinfo[options]); $splitvotes=explode("|||",$pollinfo[votes]); $pollisclosed=0; $pollisactive=$pollinfo[poll.active]; $pollid=$pollinfo[poll.pollid]; $comments=$pollinfo[replycount]; if (!$pollinfo[active] or !$pollinfo[open] or ($pollinfo[dateline]+($pollinfo[timeout]*86400)query_first("SELECT pollvoteid FROM pollvote WHERE userid='$bbuserinfo[userid]' AND pollid=$pollinfo[pollid]")) { $uservoted=1; } } $counter=0; while ($counter++<$pollinfo[numberoptions]) { $pollinfo[numbervotes]+=$splitvotes[$counter-1]; } $counter=0; $pollbits=""; while ($counter++<$pollinfo[numberoptions]) { $option[question] = bbcodeparse($splitoptions[$counter-1],0,1); $option[votes] = $splitvotes[$counter-1]; //get the vote count for the option $option[number] = $counter; //number of the option // Now we check if the user has voted or not if ($pollisclosed or $uservoted) { // user did vote or poll is closed if ($option[votes] == 0){ $option[percent]=0; } else{ $option[percent] = number_format($option[votes]/$pollinfo[numbervotes]*100,2); } $option[graphicnumber]=$option[number]%6 + 1; $option[barnumber] = round($option[percent])*2; $option[barnumber] = round($option[percent]); $option[percent] = round($option[percent]); if ($pollisclosed) { $pollstatus = "Poll Closed."; } elseif ($uservoted) { $pollstatus = "You have already voted."; } $pollbits .= "$option[question] $option[votes]$option[percent]%"; } else { // $pollbits .= "$option[question]"; if ($pollinfo['multiple']) { $pollbits .= "$option[question]"; }else{ $pollbits .= "$option[question]"; } } } if ($pollisclosed or $uservoted) { eval("\$poll = \"".gettemplate('home_pollresult')."\";"); } else { eval("\$poll = \"".gettemplate('home_poll')."\";"); } } else { $poll="No Poll Available"; } } // ------------------------- // end poll // start shoutbox by TWTCommish // ---------------------------- if (($shoutboxonoff!=0) && (!isset($section) or $section=="")) { $smilie_limit = 12; if ($type == 'shout' && $comment_submit && trim($message) != '' && $bbuserinfo[userid] > 0) { $DB_site->query("INSERT INTO shoutbox SET userid = '$bbuserinfo[userid]', shout_text = '".addslashes($message)."', timestamp = '".time()."'"); header("Location: $PHP_SELF?s=$sessionhash[sessionid]"); } $shouts = $DB_site->query("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 $shoutlimit"); if (!$DB_site->num_rows($shouts)) { eval("\$shoutbits = \"".gettemplate("home_shoutbox_error",1,0)."\";"); } else { while ($shout_info = $DB_site->fetch_array($shouts)) { extract($shout_info); $subject = stripslashes($subject); $body = stripslashes($body); $user = ($HTTP_GET_VARS["userid"] > 0) ? "&userid=$userid" : ''; $color = ($num++ % 2 == 0) ? '{firstaltcolor}' : '{secondaltcolor}'; $shout_text = bbcodeparse($shout_text); eval("\$shoutbits .= \"".gettemplate("home_shoutboxbit",1,0)."\";"); } } if ($bbuserinfo[userid]) { $submit=$PHP_SELF; eval("\$shoutbox_postshout = \"".gettemplate("home_postshout",1,0)."\";"); } eval("\$homeshoutbox .= \"".gettemplate("home_shoutbox")."\";"); } // end shoutbox by TWTCommish // --------------------------- // left & right templates // ------------------------- eval("\$left = \"".gettemplate('home_left')."\";"); eval("\$right = \"".gettemplate('home_right')."\";"); // header, footer & headinclude templates // ------------------------- eval("\$homeheadinclude = \"".gettemplate('home_headinclude')."\";"); eval("\$homeheader .= \"".gettemplate('home_header')."\";"); eval("\$homefooter .= \"".gettemplate('home_footer')."\";"); // vBindex - end // multi-paged vBindex page selector if (!$page) { // no page specified eval("dooutput(\"".gettemplate('home')."\");"); } else { // only allow home_extra_ templates for security reasons eval("dooutput(\"".gettemplate("home_extra_$page")."\");"); } ?>

I don't know what I have done wrong at all! Is there anyway maybe some one who has this hack installed with Vbulletin 2.3.0 could send me the files that needed edited because I have gone through it like a tooth comb and just don?t know what?s happen.

If you could send me the files I would be so grateful my e-mail address is crowfield99@aol.com

Many thanks.

sjau
04-30-2003, 07:06 AM
Dear NTLDR (I hope I did spell it right),

I have a little question regarding your portal software. I know this thread is huge but I haven't managed to find an answer yet. Maybe I was using the wrong keywords.

Anyway, in your hack description you mention "multiple" pages. How is that to be understood?

What I currently plan to do is creating a portal page for two different clans (Diablo 2 and Counterstrike) and I would each one to have their own news and polls forum. If possible to have their own "Newest Topics" etc listed.

Can that be done?

scottct1
05-01-2003, 06:36 PM
Can someone tell me how I add a forum jump to my page?

I tried putting in <p align=right>$forumjump</p> but got nothing.

Any ideas?

Thanks

devilish
05-06-2003, 07:48 AM
im working on installing the hack atm, but ran into a little problem

if i want to got to the URL:

http://devilish99.host.sk/vbindex.php

it says:

Database error in vBulletin 2.2.6:

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 'sieger.shoutbox' doesn't exist

mysql error number: 1146

errr now im a n00b in Mysql and stuff i know table shoutbox is missing but i dunno how to add it, can someone help me with it pls :rolleyes:


btw sieger is the name of my database

devilish
05-06-2003, 01:08 PM
nm i over red :lick:

K33nny
05-12-2003, 06:14 AM
NTDLR, you should really really release your portal before vBulletin 3.0. God knows when that thing is going to launch, seems like there is set back after set back.

ontherun
05-13-2003, 03:51 PM
Moving and Updating and want to get a clean start so how do I
Uinstall vBindex 2.0 from vB 2.2.8.

todd.o.callen
05-29-2003, 07:25 PM
I want the "New Posts" queries to exclude items that the current user does not have the authority to view. This includes unmoderated posts !!!

How/where do I change the code within the vbindex.php file?

Please help, I have almost 600 CORPORATE users screaming at me!!

Thanks!

wewe
06-28-2003, 05:29 AM
ojhhh

drives fast
06-30-2003, 04:26 AM
NTLDR,
now that vb3.0.0 has been released...are you going to be updating vbindex?

I really like this for my index page over all of the other similar things.

todd.o.callen
06-30-2003, 01:09 PM
Today at 12:26 AM drives fast said this in Post #1437 (https://vborg.vbsupport.ru/showthread.php?postid=414080#post414080)
NTLDR,
now that vb3.0.0 has been released...are you going to be updating vbindex?

I really like this for my index page over all of the other similar things.

Amen to that!!
I don't think any vb3 hacks are allowed until vb3 goes gold, though.

PS Are you alive, NTLDR? No posts in a longggggg time... :surprised:

NTLDR
07-06-2003, 08:50 PM
Yes I will be re-writing this for vB3 when I get a chance to do it properly.

Not sure if I'll add anything new or not.

todd.o.callen
07-08-2003, 01:18 PM
07-06-03 at 04:50 PM NTLDR said this in Post #1439 (https://vborg.vbsupport.ru/showthread.php?postid=415762#post415762)
Yes I will be re-writing this for vB3 when I get a chance to do it properly.

Not sure if I'll add anything new or not.

Rough ETA?
(I'm not entirely sure what the rules for vB3 hacks are, nor do I know how much work the conversion will be for you.)

NTLDR
07-08-2003, 02:15 PM
vB3 hacks arn't allowed here untill vB3 reaches RC state. Converting it will take a couple of hours at the most. Its only the templates that slow the process down.

However I can guarentee this will work with vB3 as I've already sucessfully converted by portal from vB2 to vB3 without any major problems :)

todd.o.callen
07-08-2003, 02:54 PM
Thank goodness! I know that my company can't live without it anymore, so you personally are on the critical path to our upgrade plan. No pressure.

Keep up the good work. :cool:

salnet
07-17-2003, 05:45 PM
I just installed your hack, its great!
I just edited some templates, e.g. the "home_threadbit" template
Now I've got several problems:
1. Each post has the same time: 01.01.1970 01:00
2. The threadicon isn't displayed
3. The forum where the thread is, is not displayed

By the way I should say, that I took some code from vbindex 1.3 to make the "home_threadbit" template. That's my "home_threadbit" template:
<tr>
<td bgcolor="$threadbg" align="center">$icon</td>
<td bgcolor="$threadbg" align="left">
<p><smallfont><b><a href="$bburl/showthread.php?s=$session[sessionhash]&goto=newpost&threadid=$gothreadid"> $title</a></b></smallfont></p>
</td>
<td bgcolor="$threadbg" align="center">
<p><smallfont><a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&username=$starter">$starter</a></smallfont></p>
</td>
<td bgcolor="$threadbg" align="center">
<p><smallfont><a href="$bburl/forumdisplay.php?s=$session[sessionhash]&forumid=$postforumid">$postforum</a></smallfont></p>
</td>
<td bgcolor="$threadbg" align="center">
<p><smallfont>$numreplies</smallfont></p>
</td>
<td bgcolor="$threadbg" align="left">
<smallfont>
<table cellpadding="0" cellspacing="0" border="0" width="100%" id="ltlink"><tr align="right">
<td nowrap><smallfont>$postdate <font color="{timecolor}">$posttime</font><br>von <a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&username=$lastposter">$lastposter</a></smallfont></td>
<td nowrap>&nbsp;<a href="$bburl/showthread.php?s=$session[sessionhash]&goto=newpost&threadid=$gothreadid"><img src="{imageshome}/lastpost.gif" border="0" alt="Gehe zum letzten Beitrag"></a></td>
</tr></table>
</td>
</tr>

Here you can see it: http://www.thw-interaktiv.de

NTLDR
07-17-2003, 07:08 PM
Change:

$postdate=vbdate($dateformat,$latestpost[dateline]);
$posttime=vbdate($timeformat,$latestpost[dateline]);
$postforum=$latestforum['title'];

To:

$postdate=vbdate($dateformat,$latestthread[dateline]);
$posttime=vbdate($timeformat,$latestthread[dateline]);
$postforum=$latestthread['title'];

salnet
07-18-2003, 03:32 AM
Thanks for your code.
It doesn't work so good.
In the Boardnames it displays the threadnames, and the posttimes are totaly wrong.
And it don't help me with the icons, there is still a zero instead of the icon :disappointed:

Could you look a second time for?

www.thw-interaktiv.de

NTLDR
07-18-2003, 09:42 AM
You'll need to write the code for the icons yourself.

Leo Wyatt
07-21-2003, 02:13 PM
Hey NTLDR, I just installed vbindex on my test forums to check it out - looks great...Im just looking into customizing it, and I want to change the links on the left - how would I do that? Couldn't find it in the templates.

Also, I want to add a new page, "banners" and want it to include the same table in all schemes [in a specific page]. For example, [when you show me how to add new pages, cuz I reead the post you made here, but am still confused on how to do it] I have three schemes, and want the same page on all schemes and have to update it ONE so that it changes on all schemes...[but of course, with each scheme's colours]

Am I getting confusing? Anyway, any help would be appreciated :)

NTLDR
07-21-2003, 02:24 PM
Create a new template called home_extra_banners with the content you want in it then use http://yoururl/vbindex.php?page=banners to view the page.

All pages automatically support all styles avalible to users.

The links on the left are in home_welcomelogout IIRC.

Leo Wyatt
07-21-2003, 02:34 PM
OK Thanks, Ill try it! Also - what I meant was, I will have the basic page for 'banners' in vbindex, but then [so i don't have to change all schemes to add for instance one banner] ... I want to pull it from another file...can I? How?

ETA: All I see in home_welcomelogout is

< smallfont>< a href="$bburl/member.php?s=$session[sessionhash]&action=logout">Log Out</a><br><a href="$bburl/showgroups.php?s=$session[sessionhash]">Forum Leaders< /a>< /smallfont>

ETA2: ohhhhhhh I see the links, sorry :)

NTLDR
07-21-2003, 02:53 PM
The easiest way IMO would be to add in config.php:

$debug = 1;

Add the template home_extra_banner to the Global template list you will then see, this will add the template to all styles.

Then remove the line from config.php (This is important). When you want to edit it, follow these steps but edit the template instead of adding it.

Leo Wyatt
07-21-2003, 04:24 PM
I'm a little confused, so I add that code so I can add it to the global template - but how do I add it to the global template?

I know Im getting a bit annoying, sorry - but can you explain it in simplest terms ...im not exactly a professional :p

NTLDR
07-21-2003, 05:45 PM
I can't really make it much more simpler then in the above post.

NTLDR
07-21-2003, 10:03 PM
Just an update to let you know that I've pretty much done a beta of vBindex 3.0.0 for vBulletin 3.0.0 :D

I'm beta testing it on a site right now, there are still a few issues with it, but its a big improvement over v2.1 and should be ready for releasing as soon as vB.org allows vB3 hacks.

If anyone has any sugestions for the vB3 version then let me know, there may be time to fit them in ;)

Leo Wyatt
07-21-2003, 10:13 PM
Cool looking forward to it.

OK, one question then - how do I add to the global template?

dark_gear
07-23-2003, 07:09 AM
Wow. This looks great. I'm having some troubles though. I installed it and everything is working. I go to the vbindex.php page in my browser and the page loads fine. One problem is that every link links to http://localhost... How do I remove this localhost and have it link directly to my IP?

NTLDR
07-23-2003, 12:18 PM
You need to make sure that you have set the forums URL to your IP address in the Admin CP.

Jensie180
07-25-2003, 10:28 PM
I really like this hack, good work :)

However...

Sorry if this has been asked already but I don't want to search trough all these posts for my answer. Is there any possibility to have a ?page= system added to it? I want the news to show on the index but when they click on a link the news will be replaced by that page.

Thanks for anyone that will try this :)

NTLDR
07-26-2003, 05:06 PM
Create a new template called home_extra_NAME-HERE replacing NAME-HERE with what you want to use after ?page= in the URL.

Jensie180
07-26-2003, 10:20 PM
Isn't there an easier way to do it? I want to edit those pages with dreamweaver and I have all the pages in .php ready.

NTLDR
07-27-2003, 04:53 PM
Thats the only supported way so far and I'm not planning to impliment a new method yet.

If you have a set of .php files then I sugest you copy the code you require from vbindex.php into each of your PHP files, or into its own file and and require it from each of them.

mccollin
07-28-2003, 06:26 AM
I am in the process of converting a site that was based on phpBB to vB. The forums are moved, but I need to redo my portal pages. This script looks like a possibility, but I need to verify if it can do the things I need.

* multiple portal pages for a single vB installation (example, a car website might have a main portal page for its home, but then have a Ford page, a Chevy page, etc... )
* selecting more than one news forum for news on one page (this merges the news from the forums selected into one date sorted stream for the news on that page - example, the Ford page might have taurus, mustang, and explorer news forums included in Ford news.
* list of most popular threads in a forum
* list of most recently added threads in a forum
* list of most recently update threads in a forum
* ability to do multiple lists of news headlines per page.

What I need to do is currently in action at http://pdaphonehome.com/phpBB2/i700faq.php and http://pdaphonehome.com

Would this hack be a good base for me to recreate these pages? I don't mind making changes to it to get what I need, I just need a solid foundation.

NTLDR
07-28-2003, 12:45 PM
* multiple portal pages for a single vB installation (example, a car website might have a main portal page for its home, but then have a Ford page, a Chevy page, etc... )

There are two methods to do this depending on if you want each page to have different new etc for the page.

* selecting more than one news forum for news on one page (this merges the news from the forums selected into one date sorted stream for the news on that page - example, the Ford page might have taurus, mustang, and explorer news forums included in Ford news.

This requires one minor query edit to use multiple forums.

* list of most popular threads in a forum

Not part of the default package, but would be very simple to add.

* list of most recently added threads in a forum
* list of most recently update threads in a forum

By default this gets the most recent threads from all forums, however can easily be changed to get them from one forum.

* ability to do multiple lists of news headlines per page.

No sure what you mean by this one.

Would this hack be a good base for me to recreate these pages? I don't mind making changes to it to get what I need, I just need a solid foundation.

Overall I don't think you would need to make many changes to this hack to get it to do what you want.

mccollin
07-28-2003, 01:21 PM
Thanks for the quick reply. I was originally looking to use vbPortal for the site, but they don't support multiple portal pages and the system is pretty complex... not easy for me to go in and tweak. The script I used to do the current site was a pretty basic portal script, and so it was very easy for me to go in and make it do what I wanted. I ended up tweaking the queries to do half of what's on my pages.

The part where you didn't understand what I was asking is on the first url that I posted. At the top of the page, I show 2 news items with full text... then there is an xml stream ... then I show the popular, new, and recent lists, then I get to the part that needs explanation.

I added a table with categories. The table has a thread id, a sort number, and the category id. Another table holds the category ids and descriptions. This is for organizing a forum loaded with FAQs. When I display this on the portal page, I loop the news code about 8 times, each time indexing to the next category. I have hard coded the number of loops, and the template variables for each loop. The result is what you see at the bottom half of that url. A list of FAQ titles... then when you select a particular FAQ, it takes you to the thread in phpBB. I've actually altered this a bit as well to go to an article style template on a different page.

Do you think I could figure out how to hack this from the code of vBindex 2.1? I am not that experienced with php and mysql, but I've can usually figure out things if I have a starting point and code that isn't to difficult to understand.

Another question... assuming I do this, how big of a port do you think it would be going to vB V3?

NTLDR
07-28-2003, 01:40 PM
Version 3 of vBindex for vB3 is a complete rewrite, so you maybe better of waiting till vB3 hacks are allowed here if you are planning on upgrading to vB3.

The FAQ listing I think should be pretty easy I think, going by what you have said and what I can see from the page. I don't think it would be too dificult to create some code to efficently create those lists.

mccollin
07-28-2003, 03:45 PM
I can't really weight, as I am straddling phpBB and vBulletin at the moment. I bought a second site and merged it with mine. Mine was phpBB, the other was vB. I was going to have to do a rewrite of my current site anyway, to upgrade to the latest phpBB, so I decided to go to vB... very impressed so far. I am in a bad spot until I get those pages redone.

I'm looking at this script, vbHomeLite, myvbindex, webtemplates, and vbportal.

Just trying to figure out which will let me do what I want to do the quickest. I would like to create a nearly identical look.. style wise. I could split the pages up though if it would be easier. I don't have to have so much on a single page. I could break up the news from the FAQ, and do those by category. I'd like to create the script this time so that its totally dynamic, because I currently have a separate custom page for each portal. I'd rather pass the device (category) in the url.

Thanks so much for your thoughts on this.

mknott
07-29-2003, 09:41 PM
will this work with the latest ver of vbulletin (2.3.0 i think it is)

NTLDR
07-29-2003, 10:16 PM
Yes this will work with all the 2.2.x and 2.3.x versions and 3.x when RC is out :)

mccollin
07-30-2003, 03:43 AM
OK, Thanks for the quick and friendly help. I have a test page up and running and it is looking pretty promising. I may need some help on some of those queries for the FAQ page. I've done them in phpBB, so I know what needs to be done... just may need you to point me to a few things.

I've played with vbHomeLite and vbPortal. I might be inclined to go with vbHL, but they are shutting down their support site and I don't like that. vbPortal is more complex than I need to get my pages moved over. I really want to just replicate my pages on vB as fast as humanly possible. The simplicity of vBindex is appealing. And, the feature of adding other pages via a new template and url variable is cool. I am going to fool around and see how close I can get the home page here...

Thanks. :banana:

mccollin
07-30-2003, 06:01 AM
OK, there are a lot of posts in this thread. I have made it about 1/3 of the way through them in several hours, and I've made great progress on replicating my home page... concentrating on that for now.

One thing I've searched and scanned for to no avail is how do I get multiple forums feeding one news stream? I believe you mentioned that it would take a query edit... a tip there would be appreciated.

I also saw mention of renaming vbindex.php, having many of them, and having them point to custom templates. I will most likely eventually get to that... so if that makes it easier to do the multiple forums, then I'd be cool with that... in other words, if I could hard code the forum list at the head of the vbindex-newone.php, that would be OK. And, I assume that I can also hard code the home template that it will use, no?

If someone can help me on this, I might be able to put my main home page up with this tomorrow. I can't stand having my home page driven by phpBB! :lick:

NTLDR
07-30-2003, 09:17 AM
For the news edit find:

WHERE forumid = '$newsforum'

and replace with:

WHERE forumid IN($newsforum)

And in settings in the ACP for the news forum enter the IDs seperated by commas, for example:

1, 2, 4, 5

That will then pull the news from forumid 1, 2, 4 and 5.

Depending on how you want you pages to look you maybe able to re-use the same templates for all pages and but have the forum values hard-coded in the file, or if all the templates are the same throughout then just have it set the IDs based on the URL.

mknott
07-30-2003, 03:06 PM
is there anyway i could get the forum to load in the middle section by clicking a link for the forum?

NTLDR
07-30-2003, 03:25 PM
Yes this is posible, I would say it would be easier to get the side bars to appear on the forum pages then the other way around. I posted a addon-earlier in the thread for a menu for the forums, however it proved to be a bit buggy.

mknott
07-30-2003, 04:11 PM
thats a shame :(

i know i need to edit a template to add somthing to the menu on the left...

basicly what im wanting to add is a link to my forums that opens in a new window.

mccollin
07-30-2003, 04:35 PM
For the news edit find:

...

OK, I'm probably the first person to get burned FOR reading the thread. I spent the last hour reading back through the thread... got through all but about 25 pages and decided that version was too old, pulled out the code and hacked through it, figured it out, came back here excited to post the solution, and OOOPS... you beat me to it!

Thank you for getting back with the answer, just the same. I will post the solution to multiple forums on multiple pages shortly. :rolleyes:

mccollin
07-30-2003, 06:30 PM
OK, combining a couple of things here, let me see if this is correct.

Let's use my car example again. I have a main site that deals with all cars. I have various forums for the different types of cars. I want to combine all car news on my home page. I want individual portal pages for the car types that only show news for them... chevy, ford, dodge, etc.

In this example, chevy has one news forum, ford has two, and dodge has one.

I first add the multiple forum hack that was just posted about 5 or 6 posts back. That replaces


... WHERE forumid = '$newsforum' ...


with


... WHERE forumid in ($newsforum) ...


You can then put multiple forums in the field in the control panel and it will work, but you would get all the forums on all the pages. I want to segregate forums on pages. So.....

I add the following just below the opening comments where it says support is only provided in this forum.


// Set variables for this page

if ($mode=='') {
$newsforum = '3, 5, 8, 9';
} elseif ($mode=='chevy') {
$newsforum = '3';
} elseif ($mode=='ford') {
$newsforum = '5, 8';
} elseif ($mode=='dodge') {
$newsforum = '9';
} else {
$newsforum = "$newsforum"; // default to what is in cp
}



Then you would call the home page using


www.myurl.com/vbindex.php


or chevy with


www.myurl.com/vbindex.php?mode=chevy


etc, etc.

OK, that solves the multiple forums problem. But, I want to have different page layout as well... in particular I want to have targeted adds, and a panel of different info at the top of each page that talks about that car type. If I modify the code to this...



// Set variables for this page

if ($mode=='') {
$newsforum = '3, 5, 8, 9';
$page = '';
} elseif ($mode=='chevy') {
$newsforum = '3';
$page = 'chevypage';
} elseif ($mode=='ford') {
$newsforum = '5, 8';
$page = 'fordpage';
} elseif ($mode=='dodge') {
$newsforum = '9';
$page = 'dodgepage';
} else {
$newsforum = "$newsforum";
$page = '';
}




I can now have a different template page for each one. These need to be added in the control panel as "home_extra_chevypage", "home_extra_fordpage", and home_extra_dodgepage". No problem, now I have some more control.... but I ran into a problem here... my lack of knowledge on vBulletin.

I want to have other custom templates for the other bits... "home_newsbits", home_header", etc. I tried adding "home_custom_news" and added it to one of the "extra" pages, but I ended up with nothing showing up, telling me that it couldn't find my template. I tried adding the templates in the list at the head of vbindex.php, but that also didn't work. This is probably a basic vB question, but how do I add and call custom templates within the vB template system.

Thanks. (almost done ) ;)

NTLDR
07-30-2003, 07:05 PM
The $templatesused list at the top contains all the templates that could be used by vBindex, this removes 1 query for each template, so any you add I strongly recomend that you place them in this list.

For the $mode if clause, make sure this goes after the require global.php line otherwise it will not work.

For the custom templates I assume these are based on $mode? If so then I would rename them in the eval lines to variables, for example:

eval("\$threadbits .= \"".gettemplate('home_threadbit')."\";");

to:

eval("\$threadbits .= \"".gettemplate($home_threads)."\";");

and set $home_threads equal to the template you wish to use in the $mode if statement, this seems the easiest way to me.

I may consider making some of these changes standard in v3 as it seems like many people would find it usefull :)

mccollin
07-30-2003, 08:10 PM
Actually, no. I took a left turn on you there. Remember that I'm a phpBB guy and have just been using templates for a few weeks... totally new to me. Assume I'm an idiot with this stuff and may be missing something simple.

In the $mode statement, I've got a new page template for each. Rather than pass two variables in the url, I've just piggy backed on the one you already put there for "page" (it's the last code in vbindex.php at the bottom). So, I'm not passing page... I'm sticking it in there from the $mode conditionals. So, the $page=chevypage is for the template named "home_extra_chevypage" as you've defined in your code.

That works fine. But, it's not enough for me to replace just that home template. I want to let home_extra_chevypage call a different home_news, home_newsbits, home_right, and home_header (than the one that the home page calls).

I created new templates of those names as home_custom_news, etc., then I referenced them in home_extra_chevypage... but they didn't do anything.

The evaluate part of this is probably where I'm missing something. Again, assume I'm an idiot on this. I will keep trying and let you know if I figure it out before you respond. Thanks a ton for your quick responses.

mccollin
07-30-2003, 08:22 PM
// Set variables for this page

if ($mode=='') {
$newsforum = '3, 5, 8, 9';
$page = '';
} elseif ($mode=='chevy') {
$newsforum = '3';
$page = 'chevypage';
eval("\$home_custom_mews = \"".gettemplate('home_custom_news')."\";");
eval("\$home_custom_mewsbits = \"".gettemplate('home_custom_newsbits')."\";");

} elseif ($mode=='ford') {
$newsforum = '5, 8';
$page = 'fordpage';
} elseif ($mode=='dodge') {
$newsforum = '9';
$page = 'dodgepage';
} else {
$newsforum = "$newsforum";
$page = '';
}



I tried doing this and it still doesn't work. When I call mode=chevy, it does use the home_extra_chevypage template, but the news part is blank.

mccollin
07-31-2003, 05:33 AM
OK,

I still need to get an answer on the template question before I can complete my next phase, but I now have my home page moved from phpBB2/Smartor EZPortal/Heavy Hacking, to vBulletin/vBindex/Heavy Templating. You can see it at pdaPhoneHome New Home Page (http://pdaphonehome.com) . The old page that is temporarily still online is at pdaPhoneHome Old Home Page (http://pdaphonehome.com/phpBB2/portal.php) .

So, can you recognize that this started two days ago as a standard vBindex page? ;)

I love this thing... very clean and easy to work with.

By the way, is the users online supposed to only show 12 people? If so, what 12 does it show? I usually have a lot more users online than this.

NTLDR
07-31-2003, 11:44 AM
Both links go to the same place for me.

Here is how I would suggest doing the templates:

// Set variables for this page

if ($mode=='') {
$newsforum = '3, 5, 8, 9';
$page = '';
} elseif ($mode=='chevy') {
$newsforum = '3';
$page = 'chevypage';
$news_template = "home_custom_news";
$newsbits_template = "home_custom_newsbits";

} elseif ($mode=='ford') {
$newsforum = '5, 8';
$page = 'fordpage';
} elseif ($mode=='dodge') {
$newsforum = '9';
$page = 'dodgepage';
} else {
$newsforum = "$newsforum";
$page = '';
$news_template = "home_news";
$newsbits_template = "home_newsbits";
}

Then change the following lines:

eval("\$news = \"".gettemplate('home_news')."\";");
eval("\$newsbits .= \"".gettemplate('home_newsbits')."\";");

To:


eval("\$news = \"".gettemplate($news_template)."\";");
eval("\$newsbits .= \"".gettemplate($newsbits_template)."\";");

Hope that makes sense ;)

mccollin
07-31-2003, 01:45 PM
Both links go to the same place for me.

Oh, but they don't. Check the url... one goes to /forums/portal.php (vB and vBi), the other goes to /phpBB/portal.php (phpBB). I have accomplished my goal if you thought they were the same! :smoke:

I'm amazed that I could take your script and exactly replicate (well, not exactly because I now have a registered and unregistered welcome block) my home page in about 2 days.

Back to the

Thanks for your explanation... it makes perfect since. I had been playing with the templates and finally figured it out. I had accidentally typed "m" instead of "n" in the names (i.e. mewsbits). My editor font made it hard to see. Your approach is cleaner, though because it keeps my edits up at the top of the page, and not down in the code. I'm going to add a setting for number of news posts to include, and I'll be all set.

Thanks a ton.

Now I've got to tackle some custom queries to do the FAQ section. I have to make 7 passes through the article forum, and do a join on an index which drives the order, and which of the threads, to include. :classic:

NTLDR
07-31-2003, 02:09 PM
*heh* Indeed it is different *hehe*

You've done a great job converting it, it looks totally different and matches your old page perfectly :)

mccollin
07-31-2003, 02:40 PM
OK, that works great. In case anyone else is following this discussion, I'll summarize and add in a few details to your last suggestion. This example may not even make sense to do, but it covers all the things you need in order to have multiple forums, multiple templates working together, and called from a single vbindex.php file.

The scenario is this...

You have a vBulletin that is focused on cars. You want to create a home page that shows all the news for all the cars. You also want "portal" pages where each car owner can see just news about their brand of car... chevy owners see chevy news, ford owners see ford news, etc. You can use the concepts here to expand this into covering the whole range of things that you might want to tailor on a portal page. My motivation was to figure out news first.

This documents what I found out. Many thanks to the great and mighty NTLDR, for creating a script that is easy to understand and work with, and for being willing to help someone that dares to alter their work! :banana:

Make the following changes in vbindex.php

FIND:


$templatesused.=',home_shoutbox,home_postshout';


ADD AFTER:

$templatesused.=',home_extra_chevy,home_chevy_news ,home_chevy_newsbits';
$templatesused.=',home_extra_ford,home_ford_news,h ome_ford_newsbits';
$templatesused.=',home_extra_dodge,home_dodge_news ,home_dodge_newsbits';


FIND:


require('./global.php');


ADD AFTER:


// Set variables for this page

if ($mode=='') {
$newsforum = '3, 5, 8, 9';
$page = '';
} elseif ($mode=='chevy') {
$newsforum = '3';
$newsposts = '10';
$page = 'chevy';
$news_template = "home_chevy_news";
$newsbits_template = "home_chevy_newsbits";

} elseif ($mode=='ford') {
$newsforum = '5, 8';
$newsposts = '10';
$page = 'ford';
$news_template = "home_ford_news";
$newsbits_template = "home_ford_newsbits";
} elseif ($mode=='dodge') {
$newsforum = '9';
$newsposts = '10';
$page = 'dodge';
$news_template = "home_dodge_news";
$newsbits_template = "home_dodge_newsbits";
} else {
$newsforum = $newsforum;
$newsposts = $newspost;
$page = '';
$news_template = "home_news";
$newsbits_template = "home_newsbits";
}


FIND:


WHERE forumid = '$newsforum'


REPLACE WITH:


WHERE forumid in ($newsforum)


Then go into the admin control panel and setup a default configuration. You can put in multiple forums for default news like this:


3, 5, 8, 9


Then create the following templates...

home_extra_chevy (copy of home)
home_chevy_news (copy of home_news)
home_chevy_newsbits (copy of home_newsbits)
home_extra_ford (copy of home)
home_ford_news (copy of home_news)
home_ford_newsbits (copy of home_newsbits)
home_extra_dodge (copy of home)
home_dodge_news (copy of home_news)
home_dodge_newsbits (copy of home_newsbits)

This assumes that there were already the following news forums:
Chevy News - forum number 3
Ford New Car News - forum number 5
Ford Antique News - forum number 8
Dodge News - forum number 9

Edit the custom templates to your liking.

Then upload the new vbindex.php... you could call it something like cars.php.

Then, if you called cars.php with no parameters, you'd get all the news and use the standard templates.

If you called cars.php?mode=chevy, you'd get the chevy news and use the appropriate news templates.

etc, etc,

Like I said, this is a fictional example to show how to do multiple forums and multiple templates from one vbindex.php. If you wanted separate *.php files, like chevy.php, ford.php, etc., then you would do the same changes and drop the conditional logic. If you want to alter more template, then you would make the same template changes shown...
1. create the new template and copy the orginal
2. add it in the list of templates at the top of the page
3. add it to the conditional logic

This could be used to run targeted banners for each car type, or to include colors and images to match a particular theme.

If anyone finds any mistakes with this, let me know and I'll edit it.

mccollin
08-01-2003, 02:53 PM
OK, another night of work and I almost have my more complicated portal page built with vBindex. I am really learning the power of vB, templates, and this great script.

I have FAQ content on my site that I stored in forums by category. With phpBB, I had written separate scripts for each device and the maintenance was getting to be difficult with simple changes requiring me to replicate it across all the scripts.

Using vBi and some custom tables, queries, and templates... I have managed to make this all run from one script... my home page news, my faqs, everything. You just pass "device=" in the url and you are in business. Because NTLDR has made this such a clean single file script, it was very easy to get it to work.

Here is a current example of these techniques in action. This page shows a subset of the news from the home page, and then organizes FAQs that are stored in multiple forum by category. I two tables... one for the index of what FAQ threads go to what category, and another that stores all the device info... specs, newsforums, faqforums, image location, etc, etc. I look for device= at the beginning of the script.... if it doesn't find it it runs the vbindex as designed. If it does find it, it loads variables for news and a custom block of code (based on news) to organize and display the device specs and faqs.

I still have some more work to do to add the blocks for new, updates, and popular FAQs... but that should be a piece of cake to add add using these techniques. I have a lot of data to migrate from the phpBB tables to the vB tables, so I need to do that before putting this in production for all devices. I've got a production page of for an older device... the Audiovox Thera to show how it looks...

vBindex version of Thera Portal page (http://pdaphonehome.com/forums/portal.php?device=thera)

Old phpBB version of Thera Portal Page (http://pdaphonehome.com/phpBB2/therafaq.php)

By the way, is it necessary to include the HASH info in the url when callling a vbindex.php?

NTLDR
08-01-2003, 03:36 PM
Looking good Mike! :) You have done an superb job of converting you pages and to get them all running from the one script. Its good to see someone else use this hack to its full potential.

As for the hash, I recomend including it in all your links (demo.php?s=$session[sessionhash]&amp;device=test) as this is what tracks non-cookie users on your board.

mccollin
08-02-2003, 02:55 PM
OK, I have my whole site converted using this script... took about 4 days total... I don't know whether to be impressed or bummed. It took me about 3 months to develop it to start with! I did reuse most of my template code, so that saved a lot time and trial and error. Here are some comments/suggestions/questions for you your new version.

- keep it this clean and simple - I looked at a lot of other portal scripts and they were powerful, but too complicated to use for a custom look and site. I didn't want the standard nuke look. Having one well written, well documented script is a good thing.

- static version possibly - you might want to create a skinnied down version of this that someone can use to create custom content pages. I am using it for that as well... basically a page that has the header, footer, left and right margins, and the user identity stuff... then a variable for a template so that someone can create "static" pages and use the vb control panel to maintain the html code. I did this, but have a slight problem because if I use the welcome header, its showing a different user than me! This is very odd, because all I did was remove the news, poll,shout, etc sections, and left all the info up top that handles users in there. I just removed the username until i can figure that out.

- I noticed you have a downloads and links section on your site. Can you say which hack you used for that, or did you write it yourself. I'm particularly interested in the downloads, because I haven't seen one for vB anywhere.

- At some point if you want vB V3 beta testers for your new script, let me know. I'll be throwing up a vB V3 test site soon.

Thanks for the good work.

NTLDR
08-02-2003, 05:42 PM
Thanks for the suggestions, they will be considered while finishing off the vB3 version, I'll let you know when I've a beta ready and your site is a good one for the new version to be tested on :)

Everything you see on my site is part of vBsite, my portal that I wrote for my dissertation. I won't be releasing it though.

vBFreak
08-02-2003, 09:10 PM
Can you make an addon that allows to exclode some forums form the latest thread list?

NTLDR
08-02-2003, 09:12 PM
Read the thread, this as already been covered.

Elly
08-07-2003, 10:19 PM
I hope this hasnt been answered and if so please just point me to the right page x.x

I had to re-install vbindex due to some problems with my forum, I am currently running 2.3.0 and am getting this error on the main page wich would be www.ultimaforce.net

Warning: main(): stream does not support seeking in /home/asuka/public_html/index.php on line 27
Fatal error: Call to undefined function: getpermissions() in /home/asuka/public_html/index.php on line 30


The main page does not seem to recognize log in or display the vbindex features at all, the vbindex is enabled the forums are not at the moment, can someone please tell me were I went wrong or if I forgot to edit something.

Thank you in advance.

EDIT: I dont know if this will help in aiding me I checked the file in question which would be the vbindex.php file renamed to index.php so it is the main page and there is nothing on line 27 or line 30


----- Start on line 27, End Line 30 which is blank-----
// un-comment and set the path if vBindex is not run from the forums root directory
chdir('./forum');
require('./global.php');

NTLDR
08-08-2003, 12:30 AM
Have you tried entering the full path to the forums directory?

JGM007
08-11-2003, 11:49 AM
Hi NTLDR,

I am having a strange issue after upgrading to 2.3.2, everything is working fine but the news.

The title of the news piece shows up, but none of the text within the post does. I checked and I do have it set to show 500 chars of the thread.

It is always possible I dinged something too, i am good like that :D Breaking stuff that is.... heh heh

Anyhow, any thoughts where I could start looking?

Thanks!

JGM007
08-11-2003, 12:01 PM
Ok I did just find out more info..

When I go to the counters update and run the: Update postid's For Threads" The text will appear!! But until I do that only the headder shows up.

Very strange indeed!

:)

mccollin
08-11-2003, 01:08 PM
Today at 02:01 PM JGM007 said this in Post #1493 (https://vborg.vbsupport.ru/showthread.php?postid=425145#post425145)
Ok I did just find out more info..

When I go to the counters update and run the: Update postid's For Threads" The text will appear!! But until I do that only the headder shows up.

Very strange indeed!

:)

Doing this is part of the installation instructions.

NTLDR
08-11-2003, 06:52 PM
I can't see that anything in 2.3.x would cause any problems with the news, however I've not tested this on any of the 2.3.x series. There shouldn't be any reason why the update counters option doesn't work, can you update post counts or anything else OK?

Xxman
08-11-2003, 08:07 PM
@ NTLDR a little question..

I succesfully installed Vbidex on my board .
My bord mount four user selectable style through forum home template ( using Grog6's change style hack ) .

How can I make allow users to change style of vbindex too ?
Does a module exist already?

NTLDR
08-11-2003, 09:56 PM
You should find that the home_* templates are in each template set, by default vBindex will use the users selected style, just like the forum would. For example, users could add &styleid=X to the url to view the page with styleid X, or if they have choosen a different style in the User CP then that will appear instead of the default style.

JGM007
08-12-2003, 01:50 AM
Today at 10:08 AM mccollin said this in Post #1494 (https://vborg.vbsupport.ru/showthread.php?postid=425167#post425167)
Doing this is part of the installation instructions.


Part of the physical instructions as you install it? That is something I would overlook :(
I did not see it in the .txt file.

mccollin
08-12-2003, 02:39 PM
I think its in the instructions during the install script... it tells you to update your counters. Don' feel bad... I did the same thing when I installed it and then found a bunch of posts in this thread that mention it.

mccollin
08-12-2003, 02:44 PM
NTLDR,

Got a question for you. I'm trying to modify the code a bit ... as you have seen... and one thing that's giving me trouble is queries that don't return anything. For example, I'm going to use the news script to display formatted articles with my left and right panels in place. So, I modified the script to send a threadid, then I limit the forum to the articles forum, and limit the returned posts to 1. The only problem is that if you type in he threadid incorrectly and it doesn't find it, I get a database error page. I'd like to throw up a template that says the article wasn't found. I've been fussing with the script and seem to be missing something because I can't get it to respond with anything but the error page....

I'm in this code....

.....

if ($newsonoff!=0) {
$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 IN ($newsforum)
AND thread.threadid = $articleid
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];
$newsuserid=$news[postuserid];

....


I'm assuming I need to do something with the while statement, but I haven't pinned it down.