vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBindex v2.1 (https://vborg.vbsupport.ru/showthread.php?t=41916)

NTLDR 08-09-2002 08:53 PM

Quote:

Originally posted by clangrounds.com
I personally think vbportal is a lot easier to install considering the directions are a lot more detailed and easier to follow. Just my 2 cents..
vbPortal also adds many features which alot of people don't require and don't want as well as doing things like overwriting your default style.

IMO this is far easier, run and automated installer, run a vbhacker .hack.php and code and past one chunk of code.

NTLDR 08-09-2002 08:57 PM

Quote:

Originally posted by proxyMX
I found that if your forum is hacked, that there is some probelmatic code, so it took me a LONG time to install this :|
What exactly were you having problems with? It wasn't the poll by any chance?

This should take no more then 10 mins to install.

Quote:

having this error
"Warning: ChDir: No such file or directory (errno 2) in /locationofmywebsite/forums.proxymx.com/index.php on line 25"
The directory specified by the following line cannot be found:

Code:

chdir('./directory-here');

NTLDR 08-09-2002 09:01 PM

Quote:

Originally posted by Mr_P
not knocking the vbindex at all but is it possible to keep the side menu but in middle have the actual board and not the replies etc .
As i would prefer it this way as i can easy edit the sidebar to display links to specific forums.

This would be posible and I will look into this as a posible future option for this hack.

Mr_P 08-09-2002 09:03 PM

cheers NTLDR thought i was gonna get flamed or something as been after this for ages.

Thanks again and look forward to it.

NTLDR 08-09-2002 09:09 PM

Quote:

Originally posted by Mr_P
cheers NTLDR thought i was gonna get flamed or something as been after this for ages.

Thanks again and look forward to it.

No problem, I asked for feedback and what extra features people wanted and this seems like a usefull and realistic one :)

proxyMX 08-09-2002 09:49 PM

its definatwely nto that the error only appears at the top of my index page, and its in my vb root directory :(

NTLDR 08-09-2002 10:08 PM

You need to make sure that the chdir statement is commented out, this is only required if vBindex is run outside of the forums directory.

PHP Code:

//chdir('./path'); 


DWZ 08-09-2002 11:59 PM

That all worked great NTLDR :D

When I was editing home_poll, I found this in there:
Code:

<form action="http://www.consoleradar.com/forums/poll.php" method="get">
<input type="hidden" name="s" value="3861cb90476ef3f4b008396967d28584">       
        <input type="hidden" name="action" value="pollvote">
        <input type="hidden" name="pollid" value="">
        <table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" {tableouterextra} width="140" align="center"><tr><td>
        <table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
        <tr>
        <td bgcolor="{tableheadbgcolor}" align="center" colspan="4" background="{imagesfolder}/back.gif"><smallfont><b></b></smallfont></td>
        </tr>
       
        </table>
        </td></tr></table>
        <table cellpadding="2" cellspacing="0" border="0" width="140" {tableinvisibleextra} align="center">
        <tr>
        <td style="font-size: 8pt" align=center><smallfont><br><input type="submit" class="bginput" value="Vote!" style="font-size: 8pt"><br><br>
    <a href="http://www.consoleradar.com/forums/poll.php?action=showresults&pollid=">Result</a>
        </smallfont></td></tr>
        </table>
        </form>

And that was set as the default, i.e. it hadn't been changed, which makes me think there is something wrong with the installer? But yeah, anyway, when i changed it to what you had in your post it works fine :)

Thanks for the login and poll code, both work great :) I hope this isn't too much to ask, but would it be possible to do the same thing with logout? So if they hit the logout link on the vbindex page, it takes then back there. If it's too much trouble, don't worry about it :)

Next thing, just a general comment, with the installer, it would be nice if you got a warning message before you install it. i.e "You are about to install vBindex, please click here to continue" or "You are about to upgrade your current version of vBindex, please click here to continue". Just so you don't run it twice by hitting "refresh" or whatever by mistake.

The last thing I can think off, when a person is logged out or not registered, it shows the poll with the options, and when the select one it gives the "no permission" error. It would be cool if you could make it so if they were logged out or not registered, it would just display the results of the poll as if they had already voted in it, you know what I mean?

OK, thanks for all your help :D

hankster 08-10-2002 01:38 AM

I am playing with vBindex. I ran the installer and then looked for the templates. I see I have a vBindex Templates within each of my other Templates. Is this the way it is suppose to be? If so, which one do I change to actually get the vBindex page to change?

Also, it is taking a loooong time to display the vbindex.php page, something like 15 seconds. The server is not over loaded as the load is less then one. Not sure why it is taking so long. Once it displays everything looks fine.

CarlosC 08-10-2002 02:29 PM

The Hack is running perfectly in my web site...
But I really want to make the board look in the same way in all the sections... For example the forumdisplay, search, shothread, everything... with the same exactly look (menu in the left and right and the welcome message in the top) the only thing that changes is the information in the middle. Instead of showing the news, I want to place the threads or the FAQ or the search template, etc...

Thanks..

Mr_P 08-10-2002 03:28 PM

yeah have to agree with you Carlos if someone can tinker with code and keep menu to left with same options etc and sort board out then they onto a winner

NTLDR 08-10-2002 05:04 PM

Quote:

Originally posted by DWZ
And that was set as the default, i.e. it hadn't been changed, which makes me think there is something wrong with the installer?
Thanks for letting me know DWZ, I'll update the installer.

Quote:

Thanks for the login and poll code, both work great :) I hope this isn't too much to ask, but would it be possible to do the same thing with logout? So if they hit the logout link on the vbindex page, it takes then back there. If it's too much trouble, don't worry about it :)
What happens when users logout currently? Are they automaticly redircted or do they have to click to get to the forums index?

Quote:

Next thing, just a general comment, with the installer, it would be nice if you got a warning message before you install it.
For the next release I will try and make an all-in-one installer that will perform fresh installs and upgrades and give warning prior to making changes.

Quote:

The last thing I can think off, when a person is logged out or not registered, it shows the poll with the options, and when the select one it gives the "no permission" error. It would be cool if you could make it so if they were logged out or not registered, it would just display the results of the poll as if they had already voted in it, you know what I mean?
See PM with updated attachment ;)

This will redirect all users who vote on the poll on the home page that have $bbuserinfo['userid'] set to 0, ie guests and users not logged in will be redirected to the results of the poll when they vote. Just overwrite your existing vbipoll.php with this one and replace" VBINDEX FILE NAME" with the name of the file before the .php :)

NTLDR 08-10-2002 05:06 PM

Quote:

Originally posted by CarlosC
The Hack is running perfectly in my web site...
But I really want to make the board look in the same way in all the sections... For example the forumdisplay, search, shothread, everything... with the same exactly look (menu in the left and right and the welcome message in the top) the only thing that changes is the information in the middle. Instead of showing the news, I want to place the threads or the FAQ or the search template, etc...

As requested by Mr_P I will be looking into doing this in a future version ;)

Its just a case of of adding the statment to eval the template in the relevent php files and editing the templates.

NTLDR 08-10-2002 05:08 PM

Quote:

Originally posted by hankster
I am playing with vBindex. I ran the installer and then looked for the templates. I see I have a vBindex Templates within each of my other Templates. Is this the way it is suppose to be? If so, which one do I change to actually get the vBindex page to change?
If you have complated the installation you should have a set of templates called vBindex Templates which have a number of home and home_ templates within it, these are the templates that need to be edited.

Quote:

Also, it is taking a loooong time to display the vbindex.php page, something like 15 seconds. The server is not over loaded as the load is less then one. Not sure why it is taking so long. Once it displays everything looks fine.
I guess the server can't handle the number of queries for the page or that you have a slow connection.

ipscone 08-10-2002 06:40 PM

Before I try this (vBIndex), I'd like to know if it is possible to uninstall, with ease.

What is changed, in my original, vBulletin forums, by running the vbi_install.php script?

Thanks,

NTLDR 08-10-2002 07:06 PM

Quote:

Originally posted by ipscone
Before I try this (vBIndex), I'd like to know if it is possible to uninstall, with ease.

What is changed, in my original, vBulletin forums, by running the vbi_install.php script?

Only two things are changed, a field is added to the usergroup table for usergroup permissions and the templates are also automatically installed into your templates table.

In order to uninstall it requires you to run two sql statements to undo the changeds made by vbi_install.php

ipscone 08-10-2002 07:10 PM

I probably won't have to uninstall it :D but just in case I do, where do I find those two SQL statements?

Thanks,

NTLDR 08-10-2002 07:24 PM

Quote:

Originally posted by ipscone
I probably won't have to uninstall it :D but just in case I do, where do I find those two SQL statements?
The first one is:

Code:

DELETE from template WHERE title like 'home%'
This will delete *all* templates starting home, the second is:

Code:

ALTER TABLE usergroup DROP canviewvbindex
This will remove the permissions field from the usergroup table.

An uninstaller will be included in the next version to do this ;)

ipscone 08-10-2002 07:41 PM

Ok, it seemed to install ok. It can be seen at: vBIndex on my forums

Now a question. When a person goes to a forum, what is the proper way to get back to this index? Should the HOME button get you back to the index?

I guess I can make it whatever I like but I was looking for the proper way.

Also, I notice that when I LOG IN or LOG OUT, I'm taken to my forums rather than the index.

Have I missed something?

Or, should I be renaming vbindex.php to index.php?

NTLDR 08-10-2002 08:01 PM

[QUOTE]Originally posted by ipscone
Quote:

Now a question. When a person goes to a forum, what is the proper way to get back to this index? Should the HOME button get you back to the index?
I personally have two buttons at the top, home (vBindex) and forums

Quote:

Also, I notice that when I LOG IN or LOG OUT, I'm taken to my forums rather than the index.
This is where vBulletin logs you into by default, check the last page with the details I gave DWZ on how to correct this and I will PM you the file you need as I can't post it here.

FlyingDutchman 08-10-2002 08:18 PM

:bunny:

ipscone 08-10-2002 08:26 PM

Ok, I'll look at the file and check out other posts for these small issues.

I guess the only last thing is that I assume that one can integrate news feeders and other portal type features into this as well, correct?

Thanks,
Gotta run...

NTLDR 08-10-2002 08:38 PM

You can theoretically add any feature that is avalible to vBulletin into the vBindex page... just edit the source code and templates.

hankster 08-10-2002 09:25 PM

Quote:

Originally posted by NTLDR


If you have complated the installation you should have a set of templates called vBindex Templates which have a number of home and home_ templates within it, these are the templates that need to be edited.

I have a set of vBindex Templates that are within all of my other templates. There is no seperate set of templates. It looks like if I edit the vBindex Templates that are within the Default template set, it changes the vbindex page.

Quote:


I guess the server can't handle the number of queries for the page or that you have a slow connection.

The site runs well (loads of less then 1) with over 175+ plus people connected along with a seperate area that is busy running PostNuke. The slow respose is the same even if vB is only showing 65 people connected. The slowness is only when trying to connect to the vBindex page, the other vB pages come up instantly.

NTLDR 08-10-2002 09:36 PM

Quote:

Originally posted by hankster
I have a set of vBindex Templates that are within all of my other templates. There is no seperate set of templates. It looks like if I edit the vBindex Templates that are within the Default template set, it changes the vbindex page.
Thats correct and how it should be ;)

Quote:

The site runs well (loads of less then 1) with over 175+ plus people connected along with a seperate area that is busy running PostNuke. The slow respose is the same even if vB is only showing 65 people connected. The slowness is only when trying to connect to the vBindex page, the other vB pages come up instantly. [/B]
The only thing I can think of from what you have said and what I have seen elsewhere is that its taking a long time to retrive format and display the currently online users as the only other report of this problem is a board with many users currently online.

DWZ 08-11-2002 12:18 AM

Quote:

Originally posted by NTLDR
What happens when users logout currently? Are they automaticly redircted or do they have to click to get to the forums index?
At the moment, if they hit the logout button on vBindex, it takes them to the forum home page, not back to the vBindex page, so It would be cool if it could take them back to where they came from, i.e. vBindex, so err... yeah :)
Quote:

Originally posted by NTLDR See PM with updated attachment ;)

This will redirect all users who vote on the poll on the home page that have $bbuserinfo['userid'] set to 0, ie guests and users not logged in will be redirected to the results of the poll when they vote. Just overwrite your existing vbipoll.php with this one and replace" VBINDEX FILE NAME" with the name of the file before the .php :)

Thanks for that, but I think I explained what I wanted a bit badly (note that you don't have to help me if it's too much trouble :)). If you look at this attachment, you see what a person sees when they have voted. That's what I wanted a un-registered person too see (properly without the bit that says "You have already voted on this poll). So they can't vote at all. You get what I mean? OK, thanks :)

Alan (DWZ)

hankster 08-11-2002 02:56 AM

Thanks for the info... guess I'll just wait until vB releases their front end and see what happens.

atease 08-11-2002 03:40 PM

Quote:

Originally posted by amity
i added the poll and news forums, should they be private? or it doesn't matter? i have them private currently....

thank ya.
am

same here. should they be private?

bommelchen 08-11-2002 03:50 PM

Hi i love this hack !!!

but i have a question, is there a way to include the vBcalendar in a centerbox ?

Greeting bommelchen

NTLDR 08-11-2002 04:42 PM

Quote:

Originally posted by DWZ
If you look at this attachment, you see what a person sees when they have voted. That's what I wanted a un-registered person too see (properly without the bit that says "You have already voted on this poll). So they can't vote at all. You get what I mean?(DWZ) [/B]
After I did this I thought that may be what you wanted, heres the change to vbindex.php which will show the results of the poll for users with the userid 0:

Change This:
PHP Code:

if (!$pollinfo[active] or !$pollinfo[open] or ($pollinfo[dateline]+($pollinfo[timeout]*86400)<time() and $pollinfo[timeout]!=0)) { 

To This:
PHP Code:

if (!$pollinfo[active] or !$pollinfo[open] or ($pollinfo[dateline]+($pollinfo[timeout]*86400)<time() and $pollinfo[timeout]!=0) or $bbuserinfo['userid']==0) { 

I'll have a look at the logout issue and post here/PM you when its done ;)

NTLDR 08-11-2002 04:47 PM

Quote:

Originally posted by atease


same here. should they be private?

They can be private or public, note that if they are private users can't won't be able to post comments or view the thread ;)

NTLDR 08-11-2002 04:48 PM

Quote:

Originally posted by bommelchen
but i have a question, is there a way to include the vBcalendar in a centerbox ?
You can include any vB function into this, just add the PHP code after the vBindex Start comment or use the include statement and add the HTML to the templates.

KimG 08-11-2002 04:53 PM

Hi there,

great feature but I too find it takes a long time to load the page! All other forum pages load instantaneously but the vbindex takes ages. Other users experience the same problem. As both the forum and vbindex use the same queries what could be the problem?

TY

NTLDR 08-11-2002 04:56 PM

How many users do you have online on average and what is the server load, I'm trying to figure out what is taking so long for the page to load, as you can see from my demo site that it opens as fast as any of my forum pages.

KimG 08-11-2002 04:59 PM

Hi there,

About 80 users on the forums at any one time, with a server load of about 1.2. Ive tried loading vbindex from the forums directory, as well as from its own but it still takes ages to load, whilst all other pages are instantaneous.

Maybe I should disable the vbindex queries one at a time to se if it speeds up?

TY for the quick response!

NTLDR 08-11-2002 05:16 PM

Try removing the origional vBulletin code and the today online hack, and see if this speeds things up, from the reports I have it seems to be something to do with a large amout of users online.

KimG 08-11-2002 06:14 PM

Hi there,

OK tried to remove those sections but made no difference. Then I deleted the polls section and that fixed it...

So I think the polls section was slowing everything down...

Incidently, how do you make the members name point to forums/member.php rather than the directory the vbindex is in /member.php?

TY

Mr_P 08-11-2002 06:30 PM

what is code for adding calendar in a small box as stated above
so i can have it under polls.

NTLDR 08-11-2002 07:21 PM

Quote:

Originally posted by KimG
[B]So I think the polls section was slowing everything down...
Thanks for letting me know, I'll look into this and try and speed it up.

Quote:

Incidently, how do you make the members name point to forums/member.php rather than the directory the vbindex is in /member.php?
Which link was it that didn't point to the forums directory? It should just be a case of putting $bburl before it.

NTLDR 08-11-2002 07:22 PM

Quote:

Originally posted by Mr_P
what is code for adding calendar in a small box as stated above
so i can have it under polls.

I would guess the mini-calendar hack, but as no link was left I don't know if thats what the user was reffering to.


All times are GMT. The time now is 12:23 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01991 seconds
  • Memory Usage 1,867KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_php_printable
  • (29)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete