PDA

View Full Version : vBindex v2.1


Pages : 1 [2] 3 4 5 6 7

RenzukenX
08-21-2002, 07:38 PM
Hmm, something must be amiss.

Also the poll I just made up seems, well, not to be working.

mbaskett
08-21-2002, 08:30 PM
Originally posted by NTLDR


This isn't a bug that I am aware of, if you look at this (https://vborg.vbsupport.ru/attachment.php?s=&postid=281019) screenshot that I posted at the start it shows all the vBcode being parsed correctly. Perhaps you should try uploading v2 and just testing that to see if the code parses correctly or not.

What are the major differences between v2 and v1.3? Is it so great that I would not be able to adapt my current version code to meet v2 standards without having to recreate all my customizations? Murpyh's Law has hit me again... just as we are nearing completion of QA on the website, you go and release a newer, better version which will require us to start the QA process over ;)

Don't worry, it's cool, just going to set us back on official release of the new website...

On a side note I'd like to say that you have done a great job with the page ;)

Thanks! We're still working on a few things, but it's getting there. It always feels good to get some positive feedback!

NTLDR
08-21-2002, 09:00 PM
Originally posted by mbaskett
[B]What are the major differences between v2 and v1.3?

Major Differences:

Code cleaned up;
Number of queries seriously reduced;
All known bugs from 1.x fixed;
Installer added;
Layout and templates modified;
Some new features added, some updated (see Post 1).


Is it so great that I would not be able to adapt my current version code to meet v2 standards without having to recreate all my customizations?

If you have installed all the bug fixes from v1.x and the new features arn't any good to you then you may not want to upgrade and stick with your current version. However if you do want the new features then a majority of your templates can stay "as is".

Thanks! We're still working on a few things, but it's getting there. It always feels good to get some positive feedback!

Its good to see that you have changed the default templates to make it look different and added stuff to the page, it makes it stand out from the default.

mbaskett
08-21-2002, 09:03 PM
actually, I think I've found the problem.... and it's not related to this hack, but more of a problem with the bbcodeparse() function...

if a given string doesn't have the terminating command "[/termstring]" in it, then the bbcodeparse doesn't know to invoke the initiating command "[beginstring]"

This is happening to my page becuse I have a $maxchars set to limit the length of the news article posted on the main page... and it happended to cut it off in between the [.list] and [/.list] code

I'll see what I can find out for a fix and post it up...

NTLDR
08-21-2002, 09:11 PM
Originally posted by mbaskett
actually, I think I've found the problem.... and it's not related to this hack, but more of a problem with the bbcodeparse() function...

Thanks for pointing that out, I didn't notice that when I visted your site and was sure it wasn't a bug in the code ;)

RenzukenX
08-22-2002, 02:33 PM
I'm having some trouble with the Poll option. When I post a poll in the Poll forum all that shows up on the vBindex page is the Vote button

NTLDR
08-22-2002, 02:37 PM
You need to make sure that the Poll is in the forum that is specified in the vBindex file (so if the id is 2 then its in forum id 2) and that the poll is the last post in the forum.

Also check that the home_poll template hasn't been changed so it doesn't display properly.

Sean123
08-22-2002, 02:39 PM
Hey NTLDR,

I saw on your site that it looks like your running vBindex v2 for it .. how did you get the links on the side? Like where it says UKW Gaming and then when you click it ,.. it list News, Reviews, etc .. Can you tell me how to do that .. because I would like to be able to do that .. Thanks

Sean

NTLDR
08-22-2002, 02:52 PM
Originally posted by Sean123
how did you get the links on the side?

If you want the links to show for all users edit the home_left template, if you want links to appear for just logged in/out users edit home_loggin for logged out users and home_logout for logged in users.

RenzukenX
08-22-2002, 02:53 PM
Thanks it was the home_poll template that was causing the problem.

Sean123
08-22-2002, 02:57 PM
Yes . .I would like it to show for anyone .. even guest .. but how did you put them there .. when I downloaded and added this hack alll it has on the left menu is UserCP, Buddies, PM,etc .. I would like to replace or make another menu with links so I can put links to pages just like yours .. so I can put stuff like a features page, interviews page,etc . .

NTLDR
08-22-2002, 03:01 PM
Just edit your home_left template in the Admin CP, here you can add links to the side menu.

Sean123
08-22-2002, 03:03 PM
ok .. ill try that ..

Sean123
08-22-2002, 03:06 PM
ok . .before I do that .. how do I center the banner for the vBindex. I did the center banner and buttons hack for the forum but it wont center for the vbindex .. do you know how I could achieve this . .thanks

edit// I figured it out . .thanks anyways

Kohhal
08-22-2002, 05:27 PM
I'm having a problem with template.php. I get the following error in my control panel when I click on Templates/Modify :

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/canoepol/public_html/forum/admin/template.php on line 359

Parse error: parse error, unexpected T_STRING, expecting ']' in /home/canoepol/public_html/forum/admin/template.php on line 365

Help would be greatly appreciated as when I try to revert to the original template.php I don't get any errors but the cpanel doesn't show me any templates :( (Note: I restrore to the original 2.2.2 vb template.php, not the one that I should have backed up before starting this hack :mad: although it was unhacked?)

Please help, my forums still work fine but I have no access to any of my templates anymore :confused:

NTLDR
08-22-2002, 05:36 PM
Originally posted by TheMasterG
(Note: I restrore to the original 2.2.2 vb template.php, not the one that I should have backed up before starting this hack :mad: although it was unhacked?)

I expect that you have PHP 4.2.x installed on your server, which means that you need the template.php from 2.2.6, as previous versions don't work correctly with PHP 4.2.x

drives fast
08-23-2002, 02:11 AM
I know you said you would be adding this in the next version but it is the only thing holding me up on launching it.....

I would like to add in a $maxchars to the display of the news posts but still can't figure it out myself

I have looked at vbportal code but it is a bit complex so I decided to look in search.php since it will display only a set amount of characters and the code looks like....oops.....I think it is not cool to post original vb code huh

anyway....there is a section that starts: "// get first 100 chars of page text"

does anyone know how to integrate that feature into the news portion of vbindex?

any help would be appreciated

Kohhal
08-23-2002, 07:48 AM
Originally posted by NTLDR


I expect that you have PHP 4.2.x installed on your server, which means that you need the template.php from 2.2.6, as previous versions don't work correctly with PHP 4.2.x
Thanks, I remember doing that before actually, phew :) I've got my templates back but adding "$only[\'home\'] = \'vBindex\';" still causes the above errors. What does this line do and do I really need it? It doesn't seem to like the "///s" in the code for some reason. Also, is the line " $only['showgroup'] = 'Show Groups';" supposed to be deleted and why?

TIA, G :D

Edit: Ok, I see why \'home\' is needed but it still gives me those above errors? Should the 'showgroup' line be deleted?

NTLDR
08-23-2002, 10:26 AM
Originally posted by TheMasterG
Edit: Ok, I see why \'home\' is needed but it still gives me those above errors? Should the 'showgroup' line be deleted?

The showgroup line should stay, its part of the origional vB code. All those lines do is group the templates based on the first part of there name, home is not needed, it just makes it easier and tidier if they are grouped.

NTLDR
08-23-2002, 10:27 AM
Originally posted by drives fast
anyway....there is a section that starts: "// get first 100 chars of page text"

I'll try and take a look at that as soon as I get a proper chance.

Kohhal
08-23-2002, 10:43 AM
Originally posted by NTLDR


The showgroup line should stay, its part of the origional vB code. All those lines do is group the templates based on the first part of there name, home is not needed, it just makes it easier and tidier if they are grouped.
Yep, it seems optional. The only thing not working for me now is the poll, it doesn't display the questions or options, only the vote button?

Aaow AnD wHiTe
08-23-2002, 04:25 PM
Thanx NTLDR for this amazing hack :)

Q: Is there any way to make it so it gets the lastest poll posted in a forum without it having to be the the last post in that forum?

I don't want to have a "Poll Only" forum, so i would like to just get the lastest poll posted in my -for examplo- general forum.

Thanx in advance!

NTLDR
08-23-2002, 04:47 PM
Originally posted by TheMasterG

Yep, it seems optional. The only thing not working for me now is the poll, it doesn't display the questions or options, only the vote button?

Yep, the edit to template.php is 100% optional. Check the home_poll template if the poll isn't displaying properly.

NTLDR
08-23-2002, 04:48 PM
Originally posted by Aaow AnD wHiTe
Q: Is there any way to make it so it gets the lastest poll posted in a forum without it having to be the the last post in that forum?

I'll take a look at modifying the query to do this.

camikazi2k
08-24-2002, 03:01 PM
help
http://216.147.92.68/vbindex.php
i cant see the news template

camikazi2k
08-24-2002, 03:14 PM
Originally posted by TheMasterG

Thanks, I remember doing that before actually, phew :) I've got my templates back but adding "$only[\'home\'] = \'vBindex\';" still causes the above errors. What does this line do and do I really need it? It doesn't seem to like the "///s" in the code for some reason. Also, is the line " $only['showgroup'] = 'Show Groups';" supposed to be deleted and why?

TIA, G :D

Edit: Ok, I see why \'home\' is needed but it still gives me those above errors? Should the 'showgroup' line be deleted?

how did you get it back
i am having the same error
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/hagasny/hagasny-www/admin/template.php on line 362

Parse error: parse error, unexpected T_STRING, expecting ']' in /home/hagasny/hagasny-www/admin/template.php on line 368

NTLDR
08-24-2002, 07:07 PM
Originally posted by camikazi2k
help
http://216.147.92.68/vbindex.php
i cant see the news template

You *need* to follow the hack instructions, you either haven't installed the home_new and/or home_newsbit template or you haven't set the correct forum id in the vbindex.php file.

CarlosC
08-24-2002, 08:13 PM
Thanks again for the hack.. Good Job!!

I was looking to see all the pages of my web site to look as the index (vbindex) with the menus to the left and right and stuff in the center.. I saw a reply from you were you suggest to create templates for the pages that we wanted to look as the Vbindex. I did that and work great!! But.. (There is always a BUT), if you go to my forum (Spanish forum):
www.tecnibyte.com/forum/ you will see at the right side a menu width games online (juegos online), with Tetris, flashman and others. Ok what I want is that only registered user can access those games. I am not sure about what to do width this. Is it possible to block the access to unregistered users?

Thanks in advance..
CarlosC

Aaow AnD wHiTe
08-24-2002, 08:35 PM
Originally posted by NTLDR


I'll take a look at modifying the query to do this.

Thanx buddy ^^

NTLDR
08-24-2002, 08:39 PM
Originally posted by CarlosC
Ok what I want is that only registered user can access those games. I am not sure about what to do width this. Is it possible to block the access to unregistered users?

Add those links in the home_logout template, that way it will only appear to logged in users.

CarlosC
08-24-2002, 08:48 PM
Add those links in the home_logout template, that way it will only appear to logged in users.

Sorry but can you gime an example.. I am lost.. Do you mean to copy those links to that template?

NTLDR
08-24-2002, 08:52 PM
Originally posted by Aaow AnD wHiTe
Thanx buddy ^^

After a *bit* of testing it seems like it will take the newest thread with a poll from any forum, even if there are new threads which *don't* contain a poll.

Should this not be the case (after more stringent tresting) let me know ;)

NTLDR
08-24-2002, 08:54 PM
Originally posted by CarlosC
Sorry but can you gime an example.. I am lost.. Do you mean to copy those links to that template?

After taking a look at the site, these are the links in the top right, that are in the home_right template? If this is the case then I will post the code you need to add here.

CarlosC
08-24-2002, 09:02 PM
After taking a look at the site, these are the links in the top right
Yeah I?ve been playing around with the hack :p

Add those links in the home_logout template, that way it will only appear to logged in users.

Now I understand.. In that way if you are not registered you don see the links to the games!!

Smart guy..! :tired:

I will post the code you need to add here

I think is better to let them (unregistered user) see the links to the games so they become more interested about it.. (See but can't touch!!) So I will be waiting for the code! ;)

Thanks..

NTLDR
08-24-2002, 09:05 PM
Originally posted by CarlosC
But will be nice to let them (unregistered user) see the links to the games so they become more interested about it.. (See bout don't touch!!) So I will be waiting for the code! ;)

If the php files for the games don't already have this code in them:

if ($bbuserinfo[userid]==0) {
show_nopermission();
}

(or smiliar code), add this after:

require('./global.php');

CarlosC
08-24-2002, 09:17 PM
Doesn't matter if i am using a custome home_tetris template?
I did that so ican have the same look as my index.

CarlosC
08-24-2002, 09:22 PM
Actually what I am doing to link those games is using the same code in the home template and changing the news for the link to the specific game.

NTLDR
08-24-2002, 09:23 PM
No, its the PHP that needs to be changed, with that modification It will stop guests from playing the game, I think that guests are disabled anyway for the game.

Note: all the links in the top right require me to loggin already if you haven't made any changes yet ;)

CarlosC
08-24-2002, 09:25 PM
ok i will do it right now.. let see!

CarlosC
08-24-2002, 09:32 PM
ok i did it. this is not working.. I am not using the flash.php3 code at all.. i just created a new template called home_tetris (for example) and copy the code from my home template and pasted in the template home_tetris. I removed the code that shows the news and put a link like this:

<td bgcolor="#000000" align="left" valign="top"><normalfont>
<br><br>
<center><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width="100%" height="$h">
<PARAM NAME=movie VALUE="http://www.tecnibyte.com/forum/game.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE="$b"> <EMBED src="http://www.tecnibyte.com/forum/game.swf" quality=high width="$w" height="$h" bgcolor="$b" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT></center><br><br>
</td>

instead..

NTLDR
08-24-2002, 09:37 PM
You have two choices here, either add some PHP code to the phpinclude template (which will add extra queries to each page) or make a copy of vbindex.php and rename it and change the permissions at the top and the fefault template.

CarlosC
08-24-2002, 09:43 PM
wich is the easier one?

CarlosC
08-24-2002, 09:45 PM
both sound complicated for me.. :(

NTLDR
08-24-2002, 09:50 PM
copy the vbindex.php to whatever name you want to call it, tetris.php for example and change home the following to the name of the template you created with the code for the tetris game:

eval("dooutput(\"".gettemplate('home')."\");");

and change:

// check is usergroup can view vBindex
$permissions=getpermissions();
if (!$permissions[canviewvbindex]) {
show_nopermission();
}

To:

// check if user is a guest
if ($bbuserinfo['usergroupid']==1) {
show_nopermission();
}

CarlosC
08-24-2002, 10:00 PM
eval("dooutput(\"".gettemplate('home')."\");");

Do you want me to change ('home') with ('tetris')?

NTLDR
08-24-2002, 10:02 PM
Yes, that will make it display the teris template not the home one by default.

CarlosC
08-24-2002, 10:04 PM
ok i did it and this is what i got:

http://www.tecnibyte.com/forum/tetris.php3

NTLDR
08-24-2002, 10:06 PM
Have you got a template called tetris with the tetris HTML code in?

CarlosC
08-24-2002, 10:08 PM
sorry i forgot to do that.. try again and see..

NTLDR
08-24-2002, 10:12 PM
That works, but you need to make the other change at the top of the file so guests can't play ;)

CarlosC
08-24-2002, 10:13 PM
i did that change also..

CarlosC
08-24-2002, 10:17 PM
i also fix the tetris link in the game menu so if you click on it you go to:

http://www.tecnibyte.com/forum/tetris.php3

You can still play..

NTLDR
08-24-2002, 10:18 PM
Make the first change this instead, this will work ;)

// check if user is a guest
if ($bbuserinfo['usergroupid']==1) {
show_nopermission();
}

CarlosC
08-24-2002, 10:20 PM
Now i have this error:

Parse error: parse error, unexpected '}' in /home/cra/public_html/forum/tetris.php3 on line 33

NTLDR
08-24-2002, 10:22 PM
You need to make sure that you have replaced all the code that you changed before.

CarlosC
08-24-2002, 10:27 PM
My fault.. there was an extra "}" :dead:
Now it is working!! :D
thank you men!! i am so #%$#ing happy!!

with this change the performence of my forum is going to be affected?

Thanks again mister hacker!

NTLDR
08-24-2002, 10:30 PM
Originally posted by CarlosC
with this change the performence of my forum is going to be affected?

This will have no different effect on your site, performance wise, then the method you used before ;)

CarlosC
08-24-2002, 10:33 PM
Ok amigo..
Thanks i have work to do.. :D

Bye

CarlosC
08-24-2002, 10:46 PM
Sorry one last problem.. even when i am connected i still have the message saying that i don't have permission to see the page.. :(

NTLDR
08-24-2002, 10:52 PM
Sorry, a typo by me there :surprised:

See this post again: https://vborg.vbsupport.ru/showthread.php?postid=289970#post289970

(just add the extra = in ;))

CarlosC
08-24-2002, 10:55 PM
You got it men.. thanks!! :) :cool:

Aaow AnD wHiTe
08-24-2002, 11:10 PM
Originally posted by NTLDR


After a *bit* of testing it seems like it will take the newest thread with a poll from any forum, even if there are new threads which *don't* contain a poll.

Should this not be the case (after more stringent tresting) let me know ;)

I only see the "Vote" button, no poll :(

drives fast
08-25-2002, 03:25 AM
Here's one of those "things that makes you go hmmmm"

Okay......the installer for vbindex adds the templates to every template set (if you have more than one) which is good if you have multiple sets for your members to select. I however, have other sets used for things like files pages and the like that are non-selectable (just using the forumdisplay template) so I didn't want these new templates added to those other sets.

The reason I am looking at this is because I installed this on my test forum to get it all ready for implementing on my active forum. I decided that I wanted to update the installer to include some custom templates I made so it would just install them too initally which isn't necessary but I wanted to make it a quick install because my forum is very busy and this would be more painless.

anyway.....while attempting to pull the code from the sql dump to add to the install script (since I don't quite understand the formatting of the data being inserted) I was having trouble with finding the same templates 4 times (multiple styles) and getting the ones I edited.

so...I decide to make copies of the templates I edited then uninstall vbindex. I edited the vbi_template_install.php to make it a remover and it removed all the vbindex templates fine.......then I proceeded to download copies of the other styles (now without the vbindex templates added) then I re-installed the vbindex (after droping the canviewvbindex table)

Okay....everything is installed correctly and now once again, all my template sets contain the vbindex templates too..........I now upload the downloaded style files and overwrite the ones that are present.

Here's the wierd part (sorry this is so long) but whuh?!...the vbindex templates are back in the template sets that weren't in the style files I downloaded

I even went so far as to search the .style files for the vbindex templates and they aren't in there but even though I overwrite the current styles....the vbindex templates are still there

I even went so far as to delete one style and then upload the downloaded style file as a new style and those darn templates are in there when I am done

any idea why it is adding in the vbindex templates to the new styles and why they remain if I overwrite a style with a style that does not contain those templates?

color me stupid but this one has got me scratching the ole noodle pretty hard

camikazi2k
08-25-2002, 03:52 AM
Originally posted by NTLDR


You *need* to follow the hack instructions, you either haven't installed the home_new and/or home_newsbit template or you haven't set the correct forum id in the vbindex.php file.

I followed the instruction
but it doesnt say anything of what you talking about
the home_newbit template there is nothing i did the auto installation and the regular one

camikazi2k
08-25-2002, 04:19 AM
ok ok got most of the things to work, but now again
http://216.147.92.68/vbindex.php
the poll doesnt show anything, and how can i add a button at the top to go the FORUMS.?

drives fast
08-25-2002, 06:11 AM
you have to change everything in the home_poll template with the new home_poll template included in the zip file...it is in a dir called "updated templates" when you unzip it all.....that will fix the poll problem.

to add links in the main left link area you just add the html code to the home_logout template if you only want loggedin members to see the link and home_login template if you want logged out (guests) to see the link

inetd
08-25-2002, 08:57 AM
if i not logged in, in poll i see:"Vote!" button and Results
How fix it?

irn-bru
08-25-2002, 11:05 AM
thanx for the hack bud.

NTLDR
08-25-2002, 04:20 PM
******** If you are having problems with the poll, you need to replace the home_poll template ********

NTLDR
08-25-2002, 04:25 PM
Originally posted by drives fast
so...I decide to make copies of the templates I edited then uninstall vbindex. I edited the vbi_template_install.php to make it a remover and it removed all the vbindex templates fine.......then I proceeded to download copies of the other styles (now without the vbindex templates added) then I re-installed the vbindex (after droping the canviewvbindex table)

Templates in the default template set appear in all template sets, if you add a test template set you will see that it has all the default templates that the other sets have.

CarlosC
08-25-2002, 10:16 PM
What to do if i want to display the number of members registered in my board in the vbindex page as use to be with the original index from vbulletin?
also is there any way to show the number of new PM (private message) if you get one?

Thanks..

NTLDR
08-25-2002, 10:22 PM
Add in the stats section:

$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);
$newpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND dateline>$bbuserinfo[lastvisit] AND folderid=0 $ignoreusers");

And place $newpm and $numbermembers in your templates where you want the numbers to appear.

CarlosC
08-25-2002, 10:29 PM
thanks NTLDR...

I am also having a little problem with the windows that show the Latest Threads. They are not being actualized when there is a new thread..

NTLDR
08-25-2002, 10:37 PM
Originally posted by CarlosC
They are not being actualized when there is a new thread..

You mean they are not appearing? Note the polls and news forums are automatically excluded from this block.

CarlosC
08-25-2002, 10:43 PM
I can see the poll and the latest threads windows.. The thing is that when there is a new thread the windows whith the latest threads don't show it.. it keeps the same threads that were alrady there. It is not like with the news were the oldest news disappear when there is a new one so you always see the new ones.. i hope you understand me..

i don't see the stats section in the vbindex file.. :(

NTLDR
08-25-2002, 10:52 PM
Originally posted by CarlosC
It is not like with the news were the oldest news disappear when there is a new one so you always see the new ones.. i hope you understand me..

Provided you havent changed the origional code in the latest threads section, they are forums which are visible for users and the home_threadsbit template is the origional it should work fine.

i don't see the stats section in the vbindex file.. :(

Sorry I changed the comment in v2, put it just before:

// posts info
// -------------------------

CarlosC
08-25-2002, 11:01 PM
This is what i have in my latest thread section:

inetd
08-26-2002, 10:18 AM
In my forum of news all users can write, but I want, that in news threads created by admins, by super-moderators and moderators were displayed only. How it to make?

NTLDR
08-26-2002, 05:22 PM
Originally posted by inetd
In my forum of news all users can write, but I want, that in news threads created by admins, by super-moderators and moderators were displayed only. How it to make?

Set the forum permissions so that only certain usergroups can post new threads.

inetd
08-26-2002, 05:38 PM
NTLDR, no! I speak: im my forum of news all users can write. And i don't change permession.

drives fast
08-26-2002, 09:43 PM
close the thread after your mods and admin post it then nobody can reply to it

inetd
08-26-2002, 10:18 PM
drives fast. I speak about threads, not reply post...

MalaK_3araby
08-27-2002, 12:16 AM
Oh god .. 17 pages already?

i really do not feel like reading all 17 pages :/

NTLDR .. thanks for this awsome hack.

i am using v1.3 and had followed up that thread closely to maintain a fixed version because bits and pieces were all over the place .. is this the case here? or is the 1st post updated always?

thanks again.

drives fast
08-27-2002, 01:45 AM
then if you are speaking of threads then the other post was correct.

you want only admins and moderators to be the only ones able to post in your news forum

if that is so then you go to your forum permissions and set them so only admin and mods have permissions to post in that forum

actually....this line of questioning and answering belongs in the regular discussions area at vbulletin support forums and not in the hacks forum since this is not a feature of this hack...it is a regular feature in vbulletin

drives fast
08-27-2002, 01:48 AM
MalaK_3araby,
The first post contains the good file but there is some good stuff throughout this vast thread you might want to read anyway.

dmwhynot
08-27-2002, 01:58 PM
Greetings,

I recently installed vbindex but can't seem to figure something out. I have my forums one level below root called "forums" (original huh?). I made the following change to the index.php:

// relitive path to forums directory
// un-comment and set the path if vBindex is not run from the forums root directory
chdir('./forums');

Yet when I go to my home page, the links will not go into the /forums directory.

i.e. The path to new posts links to: http://www.cadchat.com/search.php?action=getnew when it should link to http://www.cadchat.com/forums/search.php?action=getnew

What am I missing?

Cheers!
David

NTLDR
08-27-2002, 02:04 PM
Originally posted by MalaK_3araby
.. is this the case here? or is the 1st post updated always?

The zip in the first post contains the latest official version with all the bug fixes currently avalible, there are however like drives fast said some mods in this thread that specific users have requested that arn't part of the official distribution.

NTLDR
08-27-2002, 02:06 PM
Originally posted by dmwhynot
What am I missing?

As none of the links are correct it means that you have $bburl set incorrectly, make sure you have the forums URL set in the vB Options correctly.

dmwhynot
08-27-2002, 02:16 PM
NTLDR,

Amazing...I stare at the thing so long and I can't even see that the full path isn't correct in the basic vb setup (forgot to add the /forums). Duh....

Thanks for the heads up. Now onto the 2.2.7 patch.

Cheers!
David

inetd
08-27-2002, 09:57 PM
Originally posted by drives fast
then if you are speaking of threads then the other post was correct.

you want only admins and moderators to be the only ones able to post in your news forum

if that is so then you go to your forum permissions and set them so only admin and mods have permissions to post in that forum

actually....this line of questioning and answering belongs in the regular discussions area at vbulletin support forums and not in the hacks forum since this is not a feature of this hack...it is a regular feature in vbulletin FCK :(
I want, that in a forum ALL users could write, but in news on vbIndex threads from admins, Mods, SMs were displayed only.
Do not answer, if not you understand about what speech!

Gohan
08-27-2002, 09:59 PM
Super great hack, NTLDR!

Well possible rights table? (like as left table)

=============================================

I found little bug in vbindex.php


// multi-paged vBindex page selector
if (!$page)
// no page specified
{
eval("dooutput(\"".gettemplate('home')."\");");
} else
eval("dooutput(\"".gettemplate("home_$page")."\");");



change to


// multi-paged vBindex page selector
if (!$page)
// no page specified
{
eval("dooutput(\"".gettemplate('home')."\");");
} else {
eval("dooutput(\"".gettemplate("home_$page")."\");");
}

NTLDR
08-27-2002, 10:00 PM
@inetd: I'll try and take a look at this after my exam tomorrow, all I think it is will be a simple query change now I know exactly what you want :)

Right now time for sleep ;)

NTLDR
08-27-2002, 10:02 PM
Originally posted by Gohan
[B]Well possible rights table? (like as left table)

Not sure what you mean by this.

I found little bug in vbindex.php

Both look the same to me. [edit] Now I see the difference *lol* thanks for pointing it out to me :)

Gohan
08-27-2002, 10:16 PM
Originally posted by NTLDR
Not sure what you mean by this.

nevermind cuz i'm blind from template list (home_right) :dead:

dmw
08-27-2002, 10:39 PM
I just patched my vb to 2.2.7 and now vbindex draws a blank (nothing shows on the page). Any tricks available to get it to work again?

Cheers!
David

Gohan
08-27-2002, 10:45 PM
You was before vbindex & 2.2.6 ?

if so.. i can helped cuz i was also problem and self solve.

step 1

ALTER TABLE 'usergroup' DROP 'canviewvbindex';

step 2

delete template home_header (from admincp)

step 3

again install vbindex (vbi_install.php)

step 4

you are done :speechless:

drives fast
08-27-2002, 11:50 PM
inetd,

that wasn't very nice....your english is so broken that it took you 3 posts to convey what you meant and you tell me not to reply if I don't understand?

that wan't very nice.

people can be so rude

dmw
08-28-2002, 12:09 AM
Gohan,

Thank you for the info. I tried this and all is well again.

Cheers!
David

Gohan
08-28-2002, 09:30 AM
Originally posted by dmw
Gohan,

Thank you for the info. I tried this and all is well again.

Cheers!
David

no problem, i'm glad i can helped :D

LightBringer
08-28-2002, 10:39 AM
NTLDR, how would one go about making each left and right sections (poll, login, search, etc) setup so that they are in their own tables?

Giving them each a header image or graphic and their own "box" per se, similar to that of a typical vbportal setup?

clangrounds.com has a good example of this.

He has his site polls, site search, etc all in separate boxes. :)

Just a small example would be nice.

Gohan
08-28-2002, 12:07 PM
You could modify a template home_left and or home_rigth :)

NTLDR
08-28-2002, 04:07 PM
@ LightBringer: You need to modify a number of templates, for the left side: home_left, home_login, home_logout, home_poll and home_poll result, for the right side home_right, home_threads and home_threadbits

NTLDR
08-28-2002, 04:09 PM
Originally posted by dmw
I just patched my vb to 2.2.7 and now vbindex draws a blank (nothing shows on the page). Any tricks available to get it to work again?

I know you have done this now, but the quickest way is to run vbi_templates.php, this will re-add all the vBindex templates.

If there are any issues with 2.2.7 let me know, I have yet to test 2.2.7

Gohan
08-28-2002, 04:15 PM
Originally posted by NTLDR
If there are any issues with 2.2.7 let me know, I have yet to test 2.2.7

I use your vBindex with 2.2.7 without problem :banana:

check my test site server: Click here (http://saxxon.squadcenter.de)

NTLDR
08-28-2002, 05:57 PM
Thanks Gohan, didn't think there would be any mayjor reason why it wouldn't work.

Nice customisation of the page too ;)

Gohan
08-28-2002, 06:33 PM
Thank you :) i like colour as mitilary of WW2
Those site mean for Mohaa and Battlefield 1942 Clan

=============================================

I like modify:

"Latest Threads Table" under "Welcome Table"

That possible?

Gohan
08-28-2002, 07:18 PM
vbimenu addon make trouble about profile and buddy.

See other topic from vbulletin.com
http://www.vbulletin.com/forum/showthread.php?s=&threadid=53628

cause:

// parse css, header & footer ##################
include('./vbimenu.php');
eval("\$menu .= \"".gettemplate('home_menu')."\";");


Can you make solve?

P.s. i did remove above code and working fine. (not use vbimenu :()

NTLDR
08-28-2002, 07:25 PM
Originally posted by Gohan
vbimenu addon make trouble about profile and buddy.
Can you make solve?

I'll take a look at this and see if I can find out what is causing the problem.

Latest threads, change the templates to the to attached here and move $threads into the home template under the welcome table.

Gohan
08-28-2002, 08:54 PM
Thank you alot, mate! I'm very glad :D
I hope just you can found bug about those profile and buddy

RenzukenX
08-28-2002, 11:58 PM
This may sound like such a elementary question, and I'm aware I've taken up so much time but I must ask one more question.

I have a shoutbox installed on my forums and wish to incorporate it into the VBindex. So far I've created the table in home_right where I want it to be but when I place the $the_shoutbox into that table nothing at all shows up. I was wondering if anyone could help.

LightBringer
08-29-2002, 03:20 AM
RenzukenX, I believe you have to take the actual shoutbox code that you would normally insert into the forumhome template and insert it into home.
Then you have to find the code where you evaulate the template forumhome_shoutbox and change it to home_shoutbox.

That's just a guess though. I TOO would like a shout box on my front page, but have been unable to find one that resembles what VB.org has here. :)

NTLDR
08-29-2002, 10:57 AM
Originally posted by RenzukenX
but when I place the $the_shoutbox into that table nothing at all shows up. I was wondering if anyone could help.

You need to add the PHP code that displays that part of the shoutbox into vbindex.php

Gohan
08-29-2002, 11:01 AM
Originally posted by NTLDR


You need to add the PHP code that displays that part of the shoutbox into vbindex.php

Please explain, mate? I'm really confused cuz i was try it and not lucky :surprised:

NTLDR
08-29-2002, 11:12 AM
You need to create the template how you want it for the shoutbox that will be displayed on the home page. The instead of adding the PHP code from it to the forum/index.php file follow the instructions but add it to the vBindex.php file.

Gohan
08-29-2002, 02:59 PM
not lucky :(
check: http://saxxon.squadcenter.de

what did i do:

Step 1
vbindex.php

eval("dooutput(\"".gettemplate('home')."\");");


change to:


$shout = $DB_site->query_first("SELECT u.username, s.userid, s.shout_text, s.timestamp FROM user u, shoutbox s WHERE u.userid = s.userid ORDER BY s.timestamp DESC LIMIT 1");
$shout[timestamp] = vbdate('n-j-y, g:i:s a', $shout[timestamp]);
$shout[shout_text] = bbcodeparse($shout[shout_text]);
eval("\$the_shoutbox .= \"".gettemplate("home_shoutbox")."\";");
eval("dooutput(\"".gettemplate('home')."\");");


Step 2
template (home_right) p.s. i was modify home_right template

<td width=165 valign="top">
<table cellpadding="0" cellspacing="0" border="0" width=165>
<tr>
<td width=165 valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="165" align="center" bgcolor="{tablebordercolor}" >
<tr>
<td>
<table cellpadding="4" cellspacing="1" border="0" width="165">
<tr>
<td bgcolor="{tableheadbgcolor}"><center><normalfont><b>Downloads</b></normalfont></center></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}">
<smallfont>
<center><b>Custom Maps</b></center>
<p>
You will need these custom maps to be able to play on the 4th server!
<p>
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/allmaps.zip>Map-Pack</a>
<p>
<center>Or Download them Individually</center>
<p>
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/User-obj_thunder.pk3>Thunder</a><br>
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/User-zutphen.pk3><b>Zutphen</b></a><br>
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/user-courtyardv1_1.pk3>Courtyard</a><br>
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/push_cityhall.pk3>CityHall Push</a><br>
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/thefarm.pk3>The Farm</a><br>
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/user-dasboot.pk3> <b>Dasboot</b></a>
<p>
<b>Bold</b> = Upgrade or new map
<p>
<center>For Download Instructions click <a href="misc.php?action=faq&page=5">here</a></center>
</smallfont>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>


change to:


<td width=165 valign="top">
<table cellpadding="0" cellspacing="0" border="0" width=165>
<tr>
<td width=165 valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="165" align="center" bgcolor="{tablebordercolor}" >
<tr>
<td>
<table cellpadding="4" cellspacing="1" border="0" width="165">
<tr>
<td bgcolor="{tableheadbgcolor}"><center><normalfont><b>Downloads</b></normalfont></center></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}">
<smallfont>
<center><b>Custom Maps</b></center>
<p>
You will need these custom maps to be able to play on the 4th server!
<p>
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/allmaps.zip>Map-Pack</a>
<p>
<center>Or Download them Individually</center>
<p>
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/User-obj_thunder.pk3>Thunder</a><br>
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/User-zutphen.pk3><b>Zutphen</b></a><br>
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/user-courtyardv1_1.pk3>Courtyard</a><br>
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/push_cityhall.pk3>CityHall Push</a><br>
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/thefarm.pk3>The Farm</a><br>
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/user-dasboot.pk3> <b>Dasboot</b></a>
<p>
<b>Bold</b> = Upgrade or new map
<p>
<center>For Download Instructions click <a href="misc.php?action=faq&page=5">here</a></center>
</smallfont>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width=165 valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="165" align="center" bgcolor="{tablebordercolor}" >
<tr>
<td>
<table cellpadding="4" cellspacing="1" border="0" width="165">
<tr>
<td bgcolor="{tableheadbgcolor}"><center><normalfont><b>Shoutbox</b></normalfont></center></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}">
<table width="100%" cellpadding="2" cellspacing="0">
$the_shoutbox
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>


Step 3
Add new template (home_shoutbox)

<tr>
<td bgcolor="{secondaltcolor}" colspan="6"><smallfont><b>Posted by <a href="$bburl/member.php?s=$sesion[sessionhash]&action=getinfo&userid=$shout[userid]" class="small">$shout[username]</a> on $shout[timestamp]</b></smallfont><br/><smallfont>$shout[shout_text]</smallfont></td>
</tr>


I did wrong?

morrow
08-29-2002, 03:01 PM
Presently I am using 2 frames on my page. I'd like to get rid of the frames. The only thing with the frames is that other links open up in my bottom frame which I like because it keeps people on my site. If I install this hack, will I be able to do basically the same thing using this hack?

Thanks!

NTLDR
08-29-2002, 03:19 PM
Originally posted by Gohan
not lucky :(
check: http://saxxon.squadcenter.de
I did wrong?

The PHP code needs to go before the home_right template is eval'd.

NTLDR
08-29-2002, 03:23 PM
Originally posted by morrow
Presently I am using 2 frames on my page. I'd like to get rid of the frames. The only thing with the frames is that other links open up in my bottom frame which I like because it keeps people on my site. If I install this hack, will I be able to do basically the same thing using this hack?

This can be done with this hack, but not by default, it would be posible to set it up as two frames via the templates though, so that the header is in one, and the body in the other.

morrow
08-29-2002, 03:36 PM
Sorry, you're talking to a retard. How can I do this? Sorry, I don't mean to be a hassle.

Also, You mention that this software is much lighter than PHPPortals... and that many features have been eliminated because people don't use them so much. What's an example of some of these features. The reason I ask is because I donated my $$$ to phpportals already and want to know if I should scrap that project (and it has been a project) for this.

Thanks for all of your help.

NTLDR
08-29-2002, 03:44 PM
Originally posted by morrow
Sorry, you're talking to a retard. How can I do this? Sorry, I don't mean to be a hassle.

vB as you may know, is all split up into templates, so the vBindex page has five main templates, the header (with the buttons etc), the footer (with the copyright and stuff), the left side, the right side and the bit in the middle.

All these templates contain HTML code, by changing this from the default code you can make it so that the header part is one frame and the rest is displayed in another so that when someone views an exteral site the header bit is still there.

and that many features have been eliminated because people don't use them so much. What's an example of some of these features.[/B]

Its easier to say what is included, as I don't know all the fuctions that vBportal does.

Here's what it does:

Latest News Items;
Latest x threads;
Buddies on/offline;
Poll on front page;
Welcome box, with avatar and number of new posts/threads;
Supports extra pages based on forums layout.

LightBringer
08-29-2002, 05:16 PM
NTLDR, I have tried to add the shoutbox as well, but am coming up short. Is there any hope in the future for a potential addon? I'm not real keen on php, and I got so far as to be able to post ONE shout at a time hehe....but that's about it. :)

NTLDR
08-29-2002, 05:25 PM
Originally posted by LightBringer
Is there any hope in the future for a potential addon?

Possibly, it depends if I can get permission from any of the shoutbox creators, if so then it would be built in by default.

LightBringer
08-29-2002, 05:33 PM
Originally posted by NTLDR


Possibly, it depends if I can get permission from any of the shoutbox creators, if so then it would be built in by default.

That would be great..let me holler at TWTCommish and point him to this thread :)

NTLDR
08-29-2002, 05:49 PM
Originally posted by LightBringer
That would be great..let me holler at TWTCommish and point him to this thread :)
LOL, I have done a quick integration of this with vBindex, but it would be nice if I could fully integrate it for v2.1 which is comming soon.

Anyway heres what to do:

Add the attached templates, the make this change to vbindex.php:

find:

// left & right templates
// -------------------------

Directly above it add:

// start shoutbox by TWTCommish
$shout_limit = 4;
$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 $shout_limit");

if (!$DB_site->num_rows($shouts)) {
eval("\$shoutbits = \"".gettemplate("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) ? '#13486D' : '#1C5780';
$shout_text = bbcodeparse($shout_text);


eval("\$shoutbits .= \"".gettemplate("shoutboxbit",1,0)."\";");
}
}

$metarefresh = "<meta http-equiv=\"refresh\" content=\"180; url=shoutbox.php?s=$session[sessionhash]\"> ";
if ($bbuserinfo[userid]) {
eval("\$shoutbox_postshout = \"".gettemplate("home_postshout",1,0)."\";");
}
eval("\$homeshoutbox .= \"".gettemplate("home_shoutbox")."\";");
// end shoutbox by TWTCommish

Change $shout_limit to reflect the number of shouts to be displayed.

And make sure you add $homeshoutbox in the home_right template (the format is for that of a side bar).

I take no credit for this hack, I have just modified TWTCommish's shoutbox code to fit in with this hack. The origional shoutbox must be installed for this to work.

LightBringer
08-29-2002, 05:54 PM
w00t! CLICK ME! (http://www.hampsterdance2.com/stagedance.html)

Sheer joys of happiness and gratitude! Thanks NTLDR, I shall attempt this right away.

RenzukenX
08-29-2002, 06:19 PM
Godly!
It seems to be working fine, it appears on the VBindex fine and it looks great!

I was just wondering if it could be modified a little to show the last, say 5, shouts rather than just displaying the user's shouts only?
Plus the colours seem a little out of sort. (example: www.coalitionforums.com)

Awesome job nonetheless.

NTLDR
08-29-2002, 07:28 PM
Originally posted by RenzukenX
I was just wondering if it could be modified a little to show the last, say 5, shouts rather than just displaying the user's shouts only?

Try changing the PHP code again, I've updated the post with it in, I've not had time to test this properly, but it should work now.

LightBringer
08-29-2002, 07:36 PM
Hey RenzukenX, it appears as though you are getting the same oddities that I am.

An admin can post a shout no problem.
If a user tries and posts a shout, only those not logged in can see it.

I'm looking at your site now and I see "Sorry, no matching Shoutbox Items found"...

At this point, this is NOT something for NTLDR to worry about. I believe it needs to go back to TWTCommish for review :)

Gohan
08-29-2002, 07:39 PM
Open vbindex.php and find:
$color = ($num++ % 2 == 0) ? '#13486D' : '#1C5780';

Change to:

$color = ($num++ % 2 == 0) ? '{ firstaltcolor }' : '{ secondaltcolor }';

Or:

$color = ($num++ % 2 == 0) ? '{ secondaltcolor }' : '{ firstaltcolor }';

Doesnt matter it but check to your prefer colour first or second

P.s. { firstaltcolor } and { secondaltcolor } must be without space!

=============================================

@NTLDR, Thank ya alot, mate! about shoutbox on vbindex page :up:

LightBringer
08-29-2002, 07:47 PM
BTW NTLDR, thank you VERY much for doing this :)

That new code you updated worked like a champ.
I changed the submit form link in one of the zipped templates to point to $bburl/vbindex.php instead of $bburl/shoutbox.php, this way when a user would post, it would send them back to the main page.

Have a looksie
http://www.brainphreeze.com

NTLDR
08-29-2002, 07:50 PM
Originally posted by LightBringer
BTW NTLDR, thank you VERY much for doing this :)
I changed one the submit form link to point to $bburl/vbindex.php

No problem, hopefully TWT will let me integrate this fully into the next vBindex version. I thought the link to vbindex.php would your, but I wasn't 100% ;)

Mystic Gohan
08-29-2002, 09:37 PM
ok I want to use this and replace my site is there like options for certain members to post news and add all my pages of content from my site to this thing?

NTLDR
08-29-2002, 09:44 PM
Originally posted by Mystic Gohan
ok I want to use this and replace my site is there like options for certain members to post news
This is done via the standard vB forum permissions.
add all my pages of content from my site to this thing?
You can power your entire site of this one file and the vB template system.

Mystic Gohan
08-29-2002, 10:38 PM
whoa whoa I confused. I have a site up already but I can transfer all the things and how can I make it for certain people to post news if I do this I mean kinda like a Newspro type thing

TWTCommish
08-29-2002, 10:43 PM
Someone ask for me? :D

Yeah, sure, integrate away. I don't mind.

RenzukenX
08-30-2002, 12:45 AM
Great intergration NTLDR, I very much appriciate it. It will be a great asset to the next release of vBindex.

Thank you once again.

PennylessZ28
08-30-2002, 01:14 AM
fixed it after an hour, awesome hack! love it!

NTLDR
08-30-2002, 09:09 AM
Originally posted by TWTCommish
Someone ask for me? :D
Yeah, sure, integrate away. I don't mind.

Thanks TWTCommish, much appriciated.

NTLDR
08-30-2002, 09:11 AM
Originally posted by Mystic Gohan
[B]I have a site up already but I can transfer all the things

Yes, you need to transfer the contents into vB templates. If you read through the thread it explains how.

and how can I make it for certain people to post news if I do this I mean kinda like a Newspro type thing

I've never used Newspro, but all you do is select which users can post new threads in the news forum.

NTLDR
08-30-2002, 02:15 PM
Well I thought I'd post a screen shot to show you how vBindex 2.1 is comming along, if anyone has suggestions of what they would like in this version please let me know ;)

LightBringer
08-30-2002, 02:53 PM
Looking good NTLDR!

I'd like to see the ability to pick and choose which forums parse in the active threads and news sections from within the admin cp.

Maybe toss in a mini-calendar feature too.

Any eta on arrival with v2.1? :)

NTLDR
08-30-2002, 02:55 PM
Originally posted by LightBringer
Any eta on arrival with v2.1? :)

Hopefully by the end of next week it will be done :)

LightBringer
08-30-2002, 02:57 PM
can't wait!

Buddha
09-01-2002, 03:02 PM
hey. installed vbindex on 2.2.7... figured i'd be the guinea pig. thought everything was going great until i noticed the poll didn't work properly. was going to change the template as per the instructions several posts back, but when i tried to access the Modify Templates in the admin cp, i get this error.

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/fulldvdr/public_html/admin/template.php on line 362

Parse error: parse error, unexpected T_STRING, expecting ']' in /home/fulldvdr/public_html/admin/template.php on line 368

and the section in question, starting at line 362, is this...

attached.

any thoughts?

(btw, if this sucker works as well as i think it will, you'll have saved me several months, i figure. and for that, i thank you bud!)

*editing, as the forward slashes don't want to appear in this post properly. attached the chunk of code in question instead.*

NTLDR
09-01-2002, 03:47 PM
You have edited the templates.php template incorrectly, the line needs to be:

$only['home'] = 'vBindex';

ie, no \ 's in it ;)

Buddha
09-01-2002, 05:22 PM
actually, isn't that file edited by the install file... cause i didn't edit that part.
??

regardless, i took those slashes out and she works like a charm now. changed the poll template as well and she's beautiful.

thank you very much for the hack and for the speedy help. much appreciated buddy!

herby
09-01-2002, 05:25 PM
Hello,

When installing this hack on 2.2.7 with vbhacker.php, the string

$only[\'showgroup\'] = \'Show Groups\';

is not found in template.php

Any ETA for a new vbindex.hack.php?

Cheers,

Herby

PS I did edit it manually, but would like to avoid any manual tweaking on several installations.

NTLDR
09-01-2002, 05:29 PM
Originally posted by herby
When installing this hack on 2.2.7 with vbhacker.php, the string
$only[\'showgroup\'] = \'Show Groups\';

Any ETA for a new vbindex.hack.php?


It should be in there, i've not looked or tested this with vB 2.2.7 though, make sure your looking for the string without the \ 's ;)

vBindex 2.1 should be out in the next week.

Gohan
09-01-2002, 05:38 PM
My forum version is 2.2.7 and fine working with vbindex

example: http://saxxon.sqaudcenter.de

but i found already one bug about usergroup permission for show to vbindex and i fix it already :D

Buddha
09-01-2002, 06:16 PM
what's the fix gohan?
i'll need to do the same.

Gohan
09-01-2002, 06:24 PM
no into vbindex.php but other files..

i'll post soon

NTLDR
09-01-2002, 06:26 PM
I would guess that its a change in the usergroup.php file.

Hopefully I will be able to test v2.1 on 2.2.7 before I release it.

Gohan
09-01-2002, 06:34 PM
Addon usergroup permission for vBindex

usergroup.php and find:

makeyesnocode("Can view board","canview",1);



Change to:

makeyesnocode("Can view home","canviewvbindex",1);
makeyesnocode("Can view forums","canview",1);



Find:

$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,canview,showgroup,canse arch,canemail,canpostnew,canmove,canopenclose,cand eletethread,canreplyown,canreplyothers,canviewothe rs,caneditpost,candeletepost,canusepm,canpostpoll, canvote,canpostattachment,ismoderator,canpubliceve nt,canpublicedit,canthreadrate,cantrackpm,candenyp mreceipts,maxbuddypm,maxforwardpm,canwhosonline,ca nwhosonlineip,cangetattachment)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$canmodifyprofile,$canviewmembe rs,$canview,$showgroup,$cansearch,$canemail,$canpo stnew,$canmove,$canopenclose,$candeletethread,$can replyown,$canreplyothers,$canviewothers,$caneditpo st,$candeletepost,$canusepm,$canpostpoll,$canvote, $canpostattachment,$ismoderator,$canpublicevent,$c anpublicedit,$canthreadrate,$cantrackpm,$candenypm receipts,$maxbuddypm,$maxforwardpm,$canwhosonline, $canwhosonlineip,$cangetattachment)");



Chaneg to:

$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,canview,showgroup,canse arch,canemail,canpostnew,canmove,canopenclose,cand eletethread,canreplyown,canreplyothers,canviewothe rs,caneditpost,candeletepost,canusepm,canpostpoll, canvote,canpostattachment,ismoderator,canpubliceve nt,canpublicedit,canthreadrate,cantrackpm,candenyp mreceipts,maxbuddypm,maxforwardpm,canwhosonline,ca nwhosonlineip,cangetattachment,canviewvbindex)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$canmodifyprofile,$canviewmembe rs,$canview,$showgroup,$cansearch,$canemail,$canpo stnew,$canmove,$canopenclose,$candeletethread,$can replyown,$canreplyothers,$canviewothers,$caneditpo st,$candeletepost,$canusepm,$canpostpoll,$canvote, $canpostattachment,$ismoderator,$canpublicevent,$c anpublicedit,$canthreadrate,$cantrackpm,$candenypm receipts,$maxbuddypm,$maxforwardpm,$canwhosonline, $canwhosonlineip,$cangetattachment,$canviewvbindex )");



Find:

makeyesnocode("Can view board","canview",$usergroup[canview]);



Change to:

makeyesnocode("Can view home","canviewvbindex",$usergroup[canviewvbindex]);
makeyesnocode("Can view forums","canview",$usergroup[canview]);



Find:

$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrolpanel=$cancontrolpanel,canmodifyprofil e=$canmodifyprofile,canviewmembers=$canviewmembers ,canview=$canview,showgroup=".intval($showgroup).",cansearch=$cansearch,canemail=$canemail,canpostne w=$canpostnew,canmove=$canmove,canopenclose=$canop enclose,candeletethread=$candeletethread,canreplyo wn=$canreplyown,canreplyothers=$canreplyothers,can viewothers=$canviewothers,caneditpost=$caneditpost ,candeletepost=$candeletepost,canusepm=$canusepm,c anpostpoll=$canpostpoll,canvote=$canvote,canpostat tachment=$canpostattachment,ismoderator=$ismoderat or,canpublicedit=$canpublicedit,canpublicevent=$ca npublicevent,canthreadrate=$canthreadrate,cantrack pm=$cantrackpm,candenypmreceipts=$candenypmreceipt s,maxbuddypm=$maxbuddypm,maxforwardpm=$maxforwardp m,canwhosonline=$canwhosonline,canwhosonlineip=$ca nwhosonlineip,cangetattachment=$cangetattachment WHERE usergroupid=$usergroupid");



Change to:

$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrolpanel=$cancontrolpanel,canmodifyprofil e=$canmodifyprofile,canviewmembers=$canviewmembers ,canview=$canview,showgroup=".intval($showgroup).",cansearch=$cansearch,canemail=$canemail,canpostne w=$canpostnew,canmove=$canmove,canopenclose=$canop enclose,candeletethread=$candeletethread,canreplyo wn=$canreplyown,canreplyothers=$canreplyothers,can viewothers=$canviewothers,caneditpost=$caneditpost ,candeletepost=$candeletepost,canusepm=$canusepm,c anpostpoll=$canpostpoll,canvote=$canvote,canpostat tachment=$canpostattachment,ismoderator=$ismoderat or,canpublicedit=$canpublicedit,canpublicevent=$ca npublicevent,canthreadrate=$canthreadrate,cantrack pm=$cantrackpm,candenypmreceipts=$candenypmreceipt s,maxbuddypm=$maxbuddypm,maxforwardpm=$maxforwardp m,canwhosonline=$canwhosonline,canwhosonlineip=$ca nwhosonlineip,cangetattachment=$cangetattachment,c anviewvbindex=$canviewvbindex WHERE usergroupid=$usergroupid");


Good luck :)

Gohan
09-01-2002, 06:39 PM
Originally posted by NTLDR
I would guess that its a change in the usergroup.php file.

lolz.. you are rigth, m8.. btw i post already see above :)

standard a usergroup work fine but not for addon new usergroup than they get error message about permission..

I was said to my members what strange, i check awhole and fine working and few days later found i from MySQL server..

canviewvbindex = NULL therefor change i into usergroup.php :)

Buddha
09-01-2002, 06:55 PM
thanks gohan.
changing my usergroup file now.
appreciate the help!

Gohan
09-01-2002, 07:03 PM
Originally posted by Buddha
thanks gohan.
changing my usergroup file now.
appreciate the help! NP mate, i'm glad i could helped :D

SuB_ZeR0
09-01-2002, 07:38 PM
I notice that the templates that vbindex created are in the database only, and there is no access to them from the admin cp ... is there away to make them appear in the admin cp so that I can modify them more easily .... instead of going to the database every single time? Thanks.

NTLDR
09-01-2002, 07:55 PM
They are all in the admin cp allready, if you have installed the entire hack correctly they appear under vBindex Templates in the Admin CP.

SuB_ZeR0
09-02-2002, 12:01 AM
oh yeah ... I didn't notice it before ... ;)

I have another question I want to ask ...about the poll option ... I created a poll forum and enter some test questions in a new thread ... but nothing show up in the vbindex page ...all it shows is the Vote button, and nothing else do I need to modify the forum in some way to make it work? Thanks

Also, can the forums (the news and the poll) be made invisible so that noone can post to it but the moderators? I check out the test forum and can't see those forums anywhere ..so I assume this could be done... :) ..

Gohan
09-02-2002, 02:10 AM
I have another question I want to ask ...about the poll option ... I created a poll forum and enter some test questions in a new thread ... but nothing show up in the vbindex page ...all it shows is the Vote button, and nothing else do I need to modify the forum in some way to make it work? Thanks
You did change $pollforum from your poll forum id?

example my poll forum id is 5

// polls forumid
$pollsforum=5;


Also, can the forums (the news and the poll) be made invisible so that noone can post to it but the moderators? I check out the test forum and can't see those forums anywhere ..so I assume this could be done... :) ..

make forum permission for admins and mods only (new thread)
that mean ya?

SuB_ZeR0
09-02-2002, 03:31 AM
yup ... I did both ... I changed the forumid to match my poll forum and it is set to private ...so only mods and admins can see it .. :) .. but I still have this problem

NTLDR
09-02-2002, 10:33 AM
Originally posted by SuB_ZeR0
...all it shows is the Vote button, and nothing else do I need to modify the forum in some way to make it work?

You need to update the home_poll template as has been said many many times now.

I check out the test forum and can't see those forums anywhere ..so I assume this could be done... :)

Both forums are there, neither of them are private or invisible.

Cinderous
09-02-2002, 07:30 PM
WooT w00t!
Nice hack! <install>
Is there a way I can stick the get newest member, total posts, total threads, ect in it?
Any support would be nice

SuB_ZeR0
09-02-2002, 08:13 PM
Thanks .... it working now ... ;)

I think that the direction to replace the home_poll is missing from the instruction, that's why I ran into the problem ... Thanks again!

BluSmurf
09-02-2002, 08:25 PM
I cant seem to go into my Modify templates page in my admin control panel

I got the following errors
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/virtual/site5/fst/var/www/html/forums/admin/template.php on line 362

Parse error: parse error, unexpected T_STRING, expecting ']' in /home/virtual/site5/fst/var/www/html/forums/admin/template.php on line 368

NTLDR
09-02-2002, 08:35 PM
Please READ the thread before posting problems which have been covered many, many times.

Problems with the poll?

Update the home_poll template with that in the zip

Problems with template.php?

You have edited template.php incorrectly, you need to remove the \ 's in the line you add.

NTLDR
09-03-2002, 04:10 PM
Originally posted by Cinderous
Is there a way I can stick the get newest member, total posts, total threads, ect in it?

Add the following in under posts info in the vbindex.php file:

$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);

// 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'];

This will add 3 queries, also add $totalposts, $totalthreads, $numbermembers and $newusername into the templates as required.

Buddha
09-03-2002, 09:57 PM
hey cool. thanks for that info!
wanted the total members feature.

SuB_ZeR0
09-03-2002, 10:43 PM
I was just wondering ... is there away to make a new poll question without making a new thread ... it seems that whenever a new poll is needed ... a new thread has to be created first ... it seems unessary because the whole forums is for polls only ... Thanks.

NTLDR
09-04-2002, 09:52 AM
The only way to create a poll in vB is to create a new thread with a poll.

FleaBag
09-04-2002, 10:41 AM
Working like a dream with 2.2.7! :D Thanks again for the GREAT hack!

evilholli
09-05-2002, 01:13 AM
Hi! This is by far my favorite portal type of hack! Thanks so much.

I solved my problem... I feel like an idiot now... great hack! :P

NTLDR
09-05-2002, 08:55 PM
LOL, I'm glad you like it :D

SuB_ZeR0
09-09-2002, 04:36 AM
Hi, I'm not sure if this question been asked before ... but I want to add calendar block on the right side of the screen, under the latest threads. This block would list the private events for each users. I believe that this has been done for other portal-type hacks ... and I was just wondering what do I need to do to add this feature to vbindex. Thanks.

NTLDR
09-09-2002, 11:52 AM
Instructions on how to do this have already been posted in this thread ;)

lemarsu
09-09-2002, 04:05 PM
Hi,

When looking at Who's Online, if someone is in vbindex you get something like :

Unknown Location: /monster/vbindex.php?

is there a way to fix that ?

Gohan
09-09-2002, 04:10 PM
NTLDR, Congrats.. now over 100 users use your vBindex hack :D

1stTrade
09-09-2002, 04:54 PM
First, thanx NTLDR for this great hack, but can someone help me ?

I need to exclude some forums from the last 10 posts on the home page. Is that possible to modify ?

Gohan
09-09-2002, 06:02 PM
Yeah, find vbindex.php:

// number of news posts
$newsposts=xx;

// number of active threads
$maxthreads=xx;

there could you modify to your wish limit :)

example my:

// number of news posts
$newsposts=10;

// number of active threads
$maxthreads=10;

1stTrade
09-09-2002, 06:10 PM
no Gohan, you didn´t understand me:

I don´t want to limit the number of posts, I want to exclude some specific forums not to show up in the last Posts.

clangrounds.com
09-09-2002, 07:53 PM
I don't know if this has been addressed yet, and I can't spend 1/2 a hour to a hour reading through 30 pages of posts to see if it has been.

I have custom user groups in my forums for VIP, Donator, etc etc. They can login ok to the forum itself, but get a permission error messages when they go to the main site which is a vbindex (renamed index.php) page.

Please help kind sir, this is an awesome hack for vbulletin indeed! I have not upgraded to 2.2.7 because I'm afraid I'll lose all the customizations I made to the board. :(

NTLDR
09-09-2002, 09:32 PM
Originally posted by clangrounds.com
I have custom user groups in my forums for VIP, Donator, etc etc. They can login ok to the forum itself, but get a permission error messages when they go to the main site which is a vbindex (renamed index.php) page.

Check that the usergroup can access vBindex, access is done on a per usergroup basis.

NTLDR
09-09-2002, 09:34 PM
Originally posted by 1stTrade
I don't want to limit the number of posts, I want to exclude some specific forums not to show up in the last Posts.

It should exclude the posts for people who cannot view them, however due to the way vB works it doesn't allways do this.

clangrounds.com
09-09-2002, 09:54 PM
Originally posted by NTLDR


Check that the usergroup can access vBindex, access is done on a per usergroup basis.

And where is that located in the admin cp?

Gohan
09-09-2002, 10:36 PM
If you added new usergroup.. that just problem.. (no bug!)
you need small modify..

see other topic: https://vborg.vbsupport.ru/showthread.php?postid=294065#post294065

NTLDR
09-09-2002, 10:47 PM
To change the usergroup settings in the Admin CP go to Usergroups -> Modify and click edit next to the ones you want to change :)

SuB_ZeR0
09-09-2002, 11:21 PM
Originally posted by NTLDR
Instructions on how to do this have already been posted in this thread ;)

actually I don't think this has been done ... at least, in this thread anyway ...

I read other posts in this thread but they seems to be talking about the mini-calendar hack that add a mimimized version of the calendar ... it's not really what I wanted ...

What I wanted is not a calendar ... but more like a to-do list /datebook ... that list (personal) upcoming event that you added into the forum calendar ... so when you logged into the vbindex ... it will list the events that are personal to you ... you know what I'm talking about? :p ...

1stTrade
09-10-2002, 07:48 AM
I´m sorry, but my problem is a bit more complicated. I cannot define Usergroups, who shall not see a specific forum (they should still have access to these forums).

I just want to exclude the posts of 3 forums out of the vbindex. All members should have access to these 3 forums, you can access them as always, but the posts should not show up in the last 10 posts on vbindex.

NTLDR
09-10-2002, 01:33 PM
Originally posted by SuB_ZeR0
but more like a to-do list /datebook ... that list (personal) upcoming event that you added into the forum calendar ... so when you logged into the vbindex ... it will list the events that are personal to you ... you know what I'm talking about? :p ...

You would need to add the PHP from that hack to the vbindex.php file and any HTML to the relevent template.

NTLDR
09-10-2002, 01:36 PM
Originally posted by 1stTrade
I just want to exclude the posts of 3 forums out of the vbindex.

I thought you meant private forums ;)

Change this line:

$threadsquery = $DB_site->query("SELECT threadid,forumid,title,postusername,lastposter,rep lycount,iconid FROM thread WHERE forumid!=$newsforum AND forumid!=$pollsforum ".$threadsql." AND visible=1 order by lastpost desc limit $numthreads");

To: (replacing X with the forum ids to exclude)

$threadsquery = $DB_site->query("SELECT threadid,forumid,title,postusername,lastposter,rep lycount,iconid FROM thread WHERE forumid!=X AND forumid!=X AND forumid!=X AND forumid!=$newsforum AND forumid!=$pollsforum ".$threadsql." AND visible=1 order by lastpost desc limit $numthreads");

SuB_ZeR0
09-11-2002, 03:50 AM
I don't know if you notice this already ...but when a guest come to the site ... he will be presented with two login areas ... 1 at the top-left side and the other is at the top-middle ... this might be a little confusing for newcomers since they have no idea where to login ... ofcourse both are the same....
my suggestion is to take 1 of them out ... and put something there instead ... :)

TECK
09-11-2002, 08:20 AM
Originally posted by NTLDR
The number of queries depends on a number of things, there were 35 queries for the screenshot's that were posted, but disabling parts that you don't use significatly reduceds the number of queries performed.

Each Latest Thread adds 2 queries, as does each news item, users who have voted on a poll will also have an extra query.

I have tried to keep the number of queries to a minium and have at least halfed the number of that of the standard v1.3 avaible. there is a way to get out of the loop... :)
if you set the right set of perms you can have 285 threds listed and still use only 3queries... and 35-40queries is huge on a busy server it will bring it almost to it's knees...
my microstats are:
Page generated in 0.09391904 seconds (81.15% PHP - 18.85% MySQL) with 14 queries.

and that's a real loading time, no errors.

NTLDR
09-11-2002, 05:39 PM
Originally posted by SuB_ZeR0
I don't know if you notice this already ...but when a guest come to the site ... he will be presented with two login areas ... 1 at the top-left side and the other is at the top-middle ... this might be a little confusing for newcomers since they have no idea where to login ... ofcourse both are the same....
my suggestion is to take 1 of them out ... and put something there instead ... :)

I know ;) theres supposed to be to. Its up to the person installing where they want the things to go. I just provide a basic set of templates for users to manipulate :)

NTLDR
09-11-2002, 05:43 PM
Originally posted by TECK
[B]there is a way to get out of the loop... :)
if you set the right set of perms you can have 285 threds listed and still use only 3queries...

Thanks for the tip TECK ;) I'll look into this. I still have alot of PHP/MySQL to learn :)


and 35-40queries is huge on a busy server it will bring it almost to it's knees...

Indeed it is which is why I don't recomend people have all the features enabled. My proper page (on a not particularly busy server) is 33, and thats with stuff I don't really need but have the as it doesn't matter as much for me.

FleaBag
09-12-2002, 12:07 PM
Thanks for the Shoutbox integration. :)

Gohan
09-13-2002, 08:30 AM
Addon a weather on left or right page:
https://vborg.vbsupport.ru/showthread.php?s=&postid=298538#post298538

:)

TECK
09-13-2002, 08:52 AM
Originally posted by Gohan
Addon a weather on left or right page:
https://vborg.vbsupport.ru/showthread.php?s=&postid=298538#post298538

:) Gohan, read this (https://vborg.vbsupport.ru/showthread.php?postid=298544#post298544).

garoboldy
09-14-2002, 03:02 AM
NTLDR: I got your reply about vbhome problems. I am working on installing your index2.0 right now. you also said that it had all the features that I was wanting available....did you mean that it comes setup with the page having the login, threads latest, news latest, shouts, users etc...if not, I misunderstood excuse the error. Thank you for the information. Greatly Appreciated.

SuB_ZeR0
09-14-2002, 04:54 AM
just a quick question .... where do I insert the <br> to separate one news post from another?

NTLDR
09-14-2002, 05:07 PM
Originally posted by garoboldy
did you mean that it comes setup with the page having the login, threads latest, news latest, shouts, users etc...

The only thing that doesn't come as default with the setup is the shoutbox, where you need to follow a few simple instructions I posted here on how to integrate TWTCommish's shoutbox: https://vborg.vbsupport.ru/showthread.php?postid=292439#post292439

NTLDR
09-14-2002, 05:08 PM
Originally posted by SuB_ZeR0
just a quick question .... where do I insert the <br> to separate one news post from another?

The home_news template.

garoboldy
09-14-2002, 05:53 PM
ok, I got the index working fine on local and did some neat things with it....great hack...

but now I just installed it on my site....it didnt work for some reason...here is the link...

www.evolutionaryconcepts.com/vbindex.php

thanks for any info that you may have.

later

NTLDR
09-14-2002, 06:02 PM
Have you set all the variables at the top of the files correctly? Are the home_ templates part of the template set the hack is using (should be) and have you unommented the chdir bit?

ie:

chdir('./forum');

garoboldy
09-14-2002, 06:03 PM
let me check it out real quick...hold on a sec

garoboldy
09-14-2002, 06:22 PM
I have the chdir uncommented
chdir is ./forum
the require global.php is ./global.php

here is the bulletin code I put in...maybe something is wrong with that part...

// start vBulletin original code
// -------------------------
// add here the vBulletin code of the original index.php
// lines 139 - 213(in an unhacked 2.2.6 index.php)
$activeusers = "";
$loggedinusers = "";
if ($displayloggedin) {
$datecut=time()-$cookietimeout;

$loggedins=$DB_site->query_first("SELECT COUNT(*) AS sessions FROM session WHERE userid=0 AND lastactivity>$datecut");
$numberguest=$loggedins['sessions'];

$numbervisible=0;
$numberregistered=0;

$loggedins=$DB_site->query("SELECT DISTINCT session.userid,username,invisible,usergroupid
FROM session
LEFT JOIN user ON (user.userid=session.userid)
WHERE session.userid>0 AND session.lastactivity>$datecut
ORDER BY invisible ASC, username ASC");
if ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
if ($loggedin['invisible']==0 or $bbuserinfo['usergroupid']==6) {
$numbervisible++;
$userid = $loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
} else {
$invisibleuser = '';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
}
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";");
}

while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
$invisibleuser = '';
if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
continue;
}
$numbervisible++;
$userid=$loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
}
eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";");
}
}
$DB_site->free_result($loggedins);

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

$maxusers=explode(" ", gettemplate('maxloggedin',0,0));
if ((int)$maxusers[0] <= $totalonline) {
$time = time();
$maxloggedin = "$totalonline " . $time;
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[0] = $totalonline;
$maxusers[1] = $time;
}
$recordusers = $maxusers[0];
$recorddate = vbdate($dateformat,$maxusers[1]);
$recordtime = vbdate($timeformat,$maxusers[1]);
eval("\$loggedinusers = \"".gettemplate('forumhome_loggedinusers')."\";");
}
// -------------------------
// end vBulletin original code

SuB_ZeR0
09-15-2002, 01:20 AM
Originally posted by NTLDR


The home_news template.


where exactly in the home_news template do I insert the break? sorry for being such a newbie .. ;)

also .. is it possible to allow only about 200 characters to show up in the news bit ... and if people want to read the rest of the post they can click on the "read more" or "see whole post" which will bring them to the actually post in the News forum ...
some of my news posts are quite lengthy and I don't want them to take too much space on the front page. .... by default ... it will only show 5 most recent news post in the frontpage right? ... where do I go to edit this number? .... that's all the questions for the day ... :) ... Thanks again.

Sigon
09-15-2002, 02:50 AM
Ok. Here is my problem
http://forums.lotronline.com/rpgcenter

I would like the hack to use my RPG Center Style set not my default one. How and what do I edit to accomplish this? Thanks!

CelticEnd
09-15-2002, 01:05 PM
I'm having some trouble with VBindex.php

I've set up a test at http://news.thehuddleboard.com/vbindex.php but the page never loads despite the fact it is definetly there...

NTLDR
09-15-2002, 06:05 PM
Originally posted by Sigon
I would like the hack to use my RPG Center Style set not my default one. How and what do I edit to accomplish this? Thanks!

Untested, but it should work, after:

require('./global.php');

Add:

// figure out the chosen style settings
unset($styleid);
$styleid=X

Where X is the style id number.

NTLDR
09-15-2002, 06:06 PM
Originally posted by CelticEnd
I'm having some trouble with VBindex.php

I've set up a test at http://news.thehuddleboard.com/vbindex.php but the page never loads despite the fact it is definetly there...

Try removing the Poll code from the PHP file and see if it works then.

Sigon
09-15-2002, 06:07 PM
And one more question. I would like to use this on my page at lotronline.com but it is a different domain? How would I do this?

Sigon
09-15-2002, 06:11 PM
<a href="http://forums.lotronline.com/rpgcenter/" target="_blank">http://forums.lotronline.com/rpgcenter/</a>

Got a parse error.

Sigon
09-15-2002, 06:17 PM
ok. I added a ; at the end of the code and it works now but with the style I wanted. :(

Sigon
09-15-2002, 06:46 PM
Swoit. I got it working. It need to go above the templates used section

NTLDR
09-15-2002, 08:08 PM
Originally posted by Sigon
And one more question. I would like to use this on my page at lotronline.com but it is a different domain? How would I do this?

This should be fine, you have to change the chdir() statement that commented out to point to your forums directory, so if you have the following structure:

/ root
/lotronline.com
/forums.lotronline.com

you would set the path to ../forums.lotronline.com and place the vBindex.php file in the lotronline.com root folder.

Sigon
09-15-2002, 08:10 PM
Ok now I have a problem. How would I make it so the style we create is only used in the forums it should be used in and the vbindex? This is essential and it seems as if I cannot figure it out for the life of me. I just want the index to use one style and not change when someone changes styles.

NTLDR
09-15-2002, 08:40 PM
Originally posted by Sigon
Ok now I have a problem. How would I make it so the style we create is only used in the forums it should be used in and the vbindex? This is essential and it seems as if I cannot figure it out for the life of me. I just want the index to use one style and not change when someone changes styles.

Issue sorted via ICQ :)

garoboldy
09-15-2002, 09:22 PM
well, I have yet to figure out whats goin on with this thing.
on 2.2.7 I have it working fine when I am logged in and its working. but when I am not logged in I look at the main page as if a guest would and its all crazy and nothing is really there....sorry to bother but looking for some insight.

www.evolutionaryconcepts.com/vbindex.php
this is the sites page I am talking about.

NTLDR
09-15-2002, 09:31 PM
Have you got a screenshot from when you are logged in? The display the images and not broken links you need to put the full path in for the images folder in the admin cp, not just images/ :)

garoboldy
09-15-2002, 09:58 PM
here is the one that is logged in
Logged in Pic (http://www.evolutionaryconcepts.com/loggedin.gif)

and logged out
Logged in Pic (http://www.evolutionaryconcepts.com/loggedout.gif)


and on the full path...

would that relative to the index...meaning forum/images/

garoboldy
09-15-2002, 09:59 PM
also, I tried getting a shout box to show up on the index as well...and I have yet to do that.... I put the $shoutbox right below the $threads and it didnt show up...maybe I did something wrong...

garoboldy
09-16-2002, 03:19 AM
ok, I had to redo all my templates....deleted wrong set....(YEAH i KNOW...STUPID ME...) ANYWAY

I got an error when reinstalling my vbindex.
Database error in vBulletin Control Panel 2.2.7:

Invalid SQL: ALTER TABLE usergroup ADD canviewvbindex SMALLINT (6)
mysql error: Duplicate column name 'canviewvbindex'

mysql error number: 1060

Date: Sunday 15th of September 2002 10:17:49 PM
Script:

anyone know whats going on here???
sorry to bother...still too new to the php and sql stuff.

garoboldy
09-16-2002, 03:34 AM
ok, sorry to post that...I figured it out.
Its all working pretty much now....
I can finally say GREAT HACK!

one thing I think somewhat should work on for this...(I will try too) is 1. when you are not logged in and you do login on the index page. it redirects you back to the index page instead of the forum homepage. 2.when your logged in already on the vbindex page and you logout, it redirects you back to the vbindex page...this may be really simple but I am too new to this stuff to be sure of the complexity.

kuska
09-16-2002, 09:37 AM
THIS HACK KICKS ARSE !!! me installs :banana:
Here is my vbindex in polish :) http://www.NaKazdyTemat.com

I have 2 problems tho ...
Once i installed im getting white pages from time to time ...
And my second problem is a request ...
How do i add a small shoutout box on the right side?? Which one do i use?? Plz help
THANKS !!! :lick:

NTLDR
09-16-2002, 05:17 PM
Originally posted by garoboldy
one thing I think somewhat should work on for this...(I will try too) is 1. when you are not logged in and you do login on the index page. it redirects you back to the index page instead of the forum homepage.

This has been done already, but as it is basicly a chunk of copied vB code it can't be posted here. Read through the thread for details and I can PM the file if required.

NTLDR
09-16-2002, 05:20 PM
Originally posted by kuska
How do i add a small shoutout box on the right side?? Which one do i use?? Plz help
THANKS !!! :lick:

The shoutbox posted in this thread will work correctly with this hack, just add it to the home_right template as oposed to the home_left one.

garoboldy
09-16-2002, 05:34 PM
go ahead and pm the chunk to me...thanks a ton.

I am on messenger if you need that as well

garoboldy@hotmail.com
carbondale_guy@yahoo.com messenger


thanks again
later

garoboldy
09-16-2002, 05:38 PM
btw, I noticed on the news on vbindex...it shows the latest news but there isnt a link like on the title of the news....do I just make it a link and if so would you happen to know what that link would be...I dont...but will try to figure it out....this stuff is confusing...lol

NTLDR
09-16-2002, 05:46 PM
Originally posted by garoboldy
btw, I noticed on the news on vbindex...it shows the latest news but there isnt a link like on the title of the news....do I just make it a link and if so would you happen to know what that link would be...I dont...but will try to figure it out....this stuff is confusing...lol

Sending PM right after this. Is there not a link there already?

If not here's the href:

$bburl/showthread.php?s=$session[sessionhash]&threadid=$newsthreadid

garoboldy
09-16-2002, 05:52 PM
hey the link worked great.
checking pms at this very moment.

also if you take a look at www.evolutionaryconcepts.com/vbindex.php
for just a sec. on the right my threads box is acting weird....

here is the code for it also. let me know if you see anything odd.
<td width=140 valign="top">
<table cellpadding="0" cellspacing="0" border="0" bgcolor="{tablebordercolor}" width="140" align="center">
<tr>
<td>
<table cellpadding="0" cellspacing="1"border="0" width="140" align="center">
<tr>
<td bgcolor="{firstaltcolor}"><smallfont>$threads</smallfont></td></tr>

</tr>
</table>
</td></tr>

<tr>
<td>
<table cellpadding="1" cellspacing="1" border="0" width="140">
<tr>
<td bgcolor="{firstaltcolor}">$homeshoutbox</td></tr>

</tr>
</table>
</td></tr>

</table>

</td>

NTLDR
09-16-2002, 06:19 PM
Its because you have the shoutbox in a table within a table. You should have it in a <td> if I remember correctly.

kuska
09-16-2002, 09:04 PM
Any ideas why im getting blank pages??? It happened after i installed vbindex. I installed on 2.2.7 , has anyone had similar problems ??? I changed my vbindex to index.php and my old index into index2.php .....
My forum is at http://www.NaKazdyTemat.com

Any guide lines greatly appreciated

NTLDR
09-16-2002, 09:07 PM
Blank pages where exactly? Looks fine to me.

kuska
09-16-2002, 09:09 PM
Since im a total n00b can someone tell me how to space the left n right tables ??? :(

kuska
09-16-2002, 10:21 PM
The blank pages appear at random thats why i cant pin point the problem ... It happens on my vbindex and index page ... Whierd huh ???

kuska
09-17-2002, 07:13 AM
Nevermind, its fixed ... One question, how many queries does a shout box add if i intergrate it with vbindex ?? :chinese:

NTLDR
09-18-2002, 12:36 PM
Originally posted by kuska
Nevermind, its fixed ... One question, how many queries does a shout box add if i intergrate it with vbindex ?? :chinese:

One if I remember correctly, to get the shouts.

lemarsu
09-18-2002, 12:57 PM
Re : post #456) (https://vborg.vbsupport.ru/showthread.php?postid=299178#post299178)

also .. is it possible to allow only about 200 characters to show up in the news bit ... and if people want to read the rest of the post they can click on the "read more" or "see whole post" which will bring them to the actually post in the News forum ...
That is what I am most interested in doing ? did anyone manage to do this ?


where exactly in the home_news template do I insert the break? sorry for being such a newbie ..

Looking at this i think the answer is to add :
<td bgcolor="{ pagebgcolor }"><br></td> takeing out the spaces before and after pagebgcolor
to the first line of home_newsbit template.
There must be a better way to do this but can't find out how for now.

NTLDR
09-18-2002, 01:26 PM
Originally posted by lemarsu
Re : post #456) (https://vborg.vbsupport.ru/showthread.php?postid=299178#post299178)
That is what I am most interested in doing ? did anyone manage to do this ?

This has been compleated and will be a standard feature in v2.1.

lemarsu
09-18-2002, 05:27 PM
I have my poll under a forum acting as a title and is private (only admins can see)
but at the portal all the users can see the poll, but can't vote. only admins can vote !

Can you please help ? how can I fix that !


This has been compleated and will be a standard feature in v2.1. do you have a date for that ?

NTLDR
09-18-2002, 05:39 PM
Originally posted by lemarsu
I have my poll under a forum acting as a title and is private (only admins can see)
but at the portal all the users can see the poll, but can't vote. only admins can vote !

Can you please help ? how can I fix that !


Thats standard vB permissions, you will need to make it so that the forum isn't private for users to vote. There are a few ways to hide the forum, set the is active option to no, so you don't see the forum by default, make it a sub forum, or install a hack by FireFly so it doesn't appear on the forumhome.

v2.1 should be out in the next few weeks. I still have some more to add to it and developing my own site has set development back a bit.

lemarsu
09-18-2002, 06:03 PM
NTLDR

Thanks that worked a treat !

LeMarsu

camikazi2k
09-19-2002, 11:14 AM
ok here is a question dunna if its possible, that News forum is it possible to make the latest 10topic to be shown in the main page, in place of the news.

NTLDR
09-19-2002, 12:31 PM
Yes this is posible you just need to modify the templates and where the variables for the news and thread go within the template.

camikazi2k
09-19-2002, 04:14 PM
sorry i am just stupid in template can u do it for me please

NTLDR
09-19-2002, 04:43 PM
I provide a default set of templates for users to use, if you wish to change the layout then its up to you to modify the templates ;)

camikazi2k
09-20-2002, 04:13 AM
i dont know how
i will figure it out
thanks though for the best hack ever

glo
09-20-2002, 12:58 PM
will this work on 2.2.7

NTLDR
09-20-2002, 04:25 PM
Yes, this shoudl work will all of 2.2.x.

joeboo
09-20-2002, 11:36 PM
is there ANY way to get this working if your board and site are on different servers?