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)

floleb7 08-06-2002 09:30 AM

<a href="http://ghost.flf.free.fr/cyrus/vbindex_bug.jpg" target="_blank">vbindex in 1600*1200</a>

NTLDR 08-06-2002 09:46 AM

Quote:

Originally posted by floleb7
vbindex in 1600*1200
What browser were you viewing the site with?

iAlex 08-06-2002 11:18 AM

Quote:

Originally posted by NTLDR
Firstly this is a very bad idea as it will add 15-20 queries to you page that are compleatly useless.

In answer to you question you need to your question you need to change:
PHP Code:

$pollinfo[question

To:
PHP Code:

<a href="$bburl/showthread.php?s=$session[sessionhash]&threadid=$pollinfo[threadid]">$pollinfo[question]</a


I realized that myself and that's why I removed all code except for the poll, from what I can tell there are only 2 queries left.

And thanks a lot for your answer, it works the way I wanted it to now. :)

Chris M 08-06-2002 11:42 AM

I get that with your Demo Site too...

I am viewing in 1024x768, and using IE6...:)

Satan

NTLDR 08-06-2002 02:31 PM

Quote:

Originally posted by iAlex
I realized that myself and that's why I removed all code except for the poll, from what I can tell there are only 2 queries left.
That sounds about right, glad I could help.

NTLDR 08-06-2002 02:40 PM

Quote:

Originally posted by hellsatan
I get that with your Demo Site too...

I am viewing in 1024x768, and using IE6...:)

Satan

If you have this problem with a poll when users haven't voted then overwrite your home_poll template with the one attached here.

floleb7 08-06-2002 02:42 PM

Quote:

Originally posted by NTLDR


What browser were you viewing the site with?

IE6

NTLDR 08-06-2002 02:54 PM

Quote:

Originally posted by floleb7
IE6
I've fixed this issue, see this post or the updated zip.

floleb7 08-06-2002 07:39 PM

Quote:

Originally posted by NTLDR


I've fixed this issue, see this post or the updated zip.

i don't use the hack it was just for info :)

NTLDR 08-06-2002 07:57 PM

Quote:

Originally posted by floleb7


i don't use the hack it was just for info :)

np, thanks for pointing it out to me :)

DrkFusion 08-06-2002 11:45 PM

How would you go about having multiple pages? and adding new templates? so those new pages can be integrated within vbindex home

NTLDR 08-06-2002 11:50 PM

Quote:

Originally posted by DrkFusion
How would you go about having multiple pages? and adding new templates? so those new pages can be integrated within vbindex home
If you use the home template as the basis for a new page, and change the content of the center colum and remove any of the other stuff you don't want and add your content.

Save the template as a home_pagename (the template must start with home_)

You can then access it using the following URL:

Code:

vbindex.php?page=pagename
Everything that is avalible on the vBindex page can be used within any new pages you create, eg you could swap the left and right colums on a new page.

DrkFusion 08-07-2002 12:12 AM

Ah, this is very useful. Thanks again NTDLR

DrkFusion 08-07-2002 12:17 AM

It doesn't work for me :( it is home_about, I also renamed vbindex.php to index.php

DrkFusion 08-07-2002 12:21 AM

I got it working

Thanks, now I understand.

NTLDR 08-07-2002 12:30 AM

Quote:

Originally posted by DrkFusion
I got it working

Thanks, now I understand.

No problem, glad you got it working :)

DrkFusion 08-07-2002 12:35 AM

Great work on vbindex its working like a damn lucky charm
ummm lucky charms

hehe

amity 08-07-2002 04:16 AM

i did everything i was supposed to do and double checked. am i supposed to change vbindex to index? or what does vbitemplate_install.php do and belong?

thanks. i upgraded to 2.2.6 tonight, and i am trying to do all of my hacks over again. not a fun task for us code-challenged. i would like to use this instead of the welcome panel and a few other hacks i had going.

i appreciate your help and i am really looking forward to getting this up and running.

:)
amity

amity 08-07-2002 04:19 AM

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

thank ya.
am

amity 08-07-2002 05:05 AM

http://www.amitymama.com/vb/vbindex.php

this won't load at all. the regular index page still loads:

http://www.amitymama.com/vb/index.php?s=

help would really be appreciated at this point. someone must be up working on their forums at 2am just like i am, huh?

if not, could you pm me or just post here and gimme some thought. nice thought preferably!

;)
am

NTLDR 08-07-2002 11:58 AM

Quote:

Originally posted by amity
http://www.amitymama.com/vb/vbindex.php

this won't load at all. the regular index page still loads:

I get an Error 404 for that URL.

Did you run the vbi_install.php and did it compleate?

Do you have the home and home_xxx templates in the Admin CP?

Lastly have you copied the code from the vBulletin index.php to the vbindex.php?

amity 08-07-2002 02:56 PM

i have all the vBindex Templates in my admin. i am pretty sure the installer ran all the way- i do know i can't run it again because i am getting a duplicate table error if i do.

i did copy that code from my index.php also.

i just went in and dropped canviewvbindex table from usergroup in the database and ran the installer again. the installer completed, but still nothing. i am looking at the table (canview...) and it says:

smallint 6(length/values) null

is that correct?

i will keep nosing around. thank you for your input and help! i appreciate it...

:)
am

NTLDR 08-07-2002 03:23 PM

Quote:

Originally posted by amity
i just went in and dropped canviewvbindex table from usergroup in the database and ran the installer again. the installer completed, but still nothing. i am looking at the table (canview...) and it says:

smallint 6(length/values) null

is that correct?

The canviewvbindex field is only used to specify which usergroups are allowed to view the vBindex page.

I'll take a look when vB can connect to your MySQL Server again:

Quote:

Warning: Too many connections in /home/amitymes/amitymama-www/vb/admin/db_mysql.php on line 42

Warning: MySQL Connection Failed: Too many connections in /home/amitymes/amitymama-www/vb/admin/db_mysql.php on line 42

Mr_P 08-07-2002 04:16 PM

when it asked me to do the template.php changes i could not find them in my template ?????????

am i missing something

anyway hack is installed minus the above and in admin cp only way i know is it shows up under permissons so i must be missing something as how do i edit the first page of vbhack

Also a few posts show on the front page but one is weird it only shows half of it its as if halg the page has been cut off ??

NTLDR 08-07-2002 04:24 PM

Quote:

Originally posted by Mr_P
when it asked me to do the template.php changes i could not find them in my template ?????????

am i missing something
Which code couldn't you find?

Quote:

as how do i edit the first page of vbhack
You need to edit the home template.

Quote:

Also a few posts show on the front page but one is weird it only shows half of it its as if halg the page has been cut off ??
Have you got a screenshot/url so I can take a look? Was the post just plain text?

Mr_P 08-07-2002 09:15 PM

sorry NTLDR

and thanks for replying was my fault by not reading the first post proper and rushing as usual.

NTLDR 08-07-2002 09:19 PM

Quote:

Originally posted by Mr_P
sorry NTLDR

and thanks for replying was my fault by not reading the first post proper and rushing as usual.

No problem, we all make silly mistakes ;)

DWZ 08-09-2002 08:38 AM

First off, may I say great hack :D

but I have a few little problems I hope you can work out how to fix :)

This is where I have installed it: http://www.consoleradar.com/index.php

Now, my forum is located at http://www.consoleradar.com/forums/ , so I put in the vbindex.php file (renamed to index.php) where vB is installed, and it's working fine.

But yeah, as I said a few things, if you look at the left hand side, down to the online users bit, it lists the online users, but their profile is all linked to go to http://www.consoleradar.com/member.php , not http://www.consoleradar.com/forums/member.php is there anyway to fix this?

Next small problem, the poll, I can't get it to work. I put in the right forum ID in the file, and made a new thread with a poll in it, but it wont come up on the vbindex page?

Last thing, when you login, it takes you to the forum home page, is it possible for it to take you back to the news page (i.e. vbindex?)

That's about it, thanks :)

Mr_P 08-09-2002 09:11 AM

Online Now:
Online Today: 1
Members | Guests

Is it not meant to List who is Online

also my buttons along top now seem to go off the page even though i have checked them in Styles and they look right.

Mr_P 08-09-2002 09:40 AM

scrap last post i forgot to get details from orginal index.php

One little question

the first post that showed on the vbindex page has a box around it and looks ok as has comments in it etc (Comments (0) )
now when it adds another post to vbindex page which is now called index.php the rest have no boxes round them

Example :

Its me
- by Mr_P

besides that it runs well - i have sorted polls out and even got members online to show on main page so chuffed but can u say if the above about the box is correct or what?

Mr_P 08-09-2002 09:51 AM

LOL scrap last 2 posts :)

it all works reason i asked last question was

They all show on same line

Latest threads does not show to the right of the boxes and it threw me a bit

Latest threads is at top of page and the boxes appear underneath them - can u tell me how to fix this prob please.

Mr_P 08-09-2002 11:02 AM

hope this shows what i mean

I thought latest threads went down the right hand side and the box ones went in middle as on mine they dont.

Mr_P 08-09-2002 11:37 AM

mods can u delete my last 3 posts

i forgot to update templates

excellant hack and something i did`nt even know it had to just now is the welcome panel

jbear6 08-09-2002 01:27 PM

Can someone recommend a good web site to learn how to use tables? This is an excellent hack, but I have problems making new boxes (tables), and even just making a small table above the News that says: "Latest News". Any decent table tutorials greatly appreciated.

Thanks
Jbear6

clangrounds.com 08-09-2002 03:52 PM

I personally think vbportal is a lot easier to install considering the directions are a lot more detailed and easier to follow. Just my 2 cents..

proxyMX 08-09-2002 08:33 PM

I found that if your forum is hacked, that there is some probelmatic code, so it took me a LONG time to install this :|

proxyMX 08-09-2002 08:37 PM

having this error
"Warning: ChDir: No such file or directory (errno 2) in /locationofmywebsite/forums.proxymx.com/index.php on line 25"

Mr_P 08-09-2002 08:41 PM

okay gonna stick me head out here and go for it

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

I know some say its easy to do - but its only easy if you know how! and personaly i only know from what ive been picking up on here.

NTLDR 08-09-2002 08:43 PM

Quote:

First off, may I say great hack :D
Thank you DWZ, much aprichiated, now lets sort out those problems ;)

But yeah, as I said a few things, if you look at the left hand side, down to the online users bit, it lists the online users, but their profile is all linked....[/quote]

To fix this change your forumhome_loggedinuser to:

Code:

<a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$userid">$username</a>$invisibleuser
I.E, add $bburl/ before member.php

This will be fixed in v2.0.2 when I will add a home_loggedinuser template.

Quote:

Next small problem, the poll, I can't get it to work. I put in the right forum ID in the file, and made a new thread with a poll in it, but it wont come up on the vbindex page?
Make sure that you have the following template:

home_poll:

Code:

<form action="$bburl/poll.php" method="get">
<input type="hidden" name="s" value="$session[dbsessionhash]">       
        <input type="hidden" name="action" value="pollvote">
        <input type="hidden" name="pollid" value="$pollinfo[pollid]">
        <table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" {tableouterextra} width="140" align="center"><tr><td>
        <table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
        <tr>
        <td bgcolor="{tableheadbgcolor}" align="center" colspan="4"><smallfont><b>$pollinfo[question]</b></smallfont></td>
        </tr>
        $pollbits
        </table>
        </td></tr></table>
        <table cellpadding="2" cellspacing="0" border="0" width="140" {tableinvisibleextra} align="center">
        <tr>
        <td style="font-size: 8pt" align=center><smallfont><br><input type="submit" class="bginput" value="Vote!" style="font-size: 8pt"><br><br>
    <a href="$bburl/poll.php?s=$session[sessionhash]&action=showresults&pollid=$pollinfo[pollid]">Result</a>
        </smallfont></td></tr>
        </table>
        </form>

Does the poll appear when you have voted on it? Amity also has this problem, if this doesn't fix it perhaps you could give me some info about your setup PHP, MySQL and vB version so I can look into this.

Quote:

Last thing, when you login, it takes you to the forum home page, is it possible for it to take you back to the news page (i.e. vbindex?)
Check your PM for the login.php file (I can't post it as it is basicly a large chunk of unmodified source code.)

Firstly edit the URL to your vbindex.php in the last line of code )where it says: PATH TO VBINDEX) and upload to your forums directory.

Edit the home_welcomelogin template:

Code:

<table border="0" cellpadding="0" cellspacing="0">
<form action="$bburl/login.php" method="post">
<tr>
        <td nowrap><smallfont><b>Not cookied?</b><br>Login with username and password:</smallfont></td>
</tr><tr>
        <td nowrap><input type="hidden" name="s" value="$session[sessionhash]">
        <input type="hidden" name="action" value="login">
        <input type="text" class="bginput" name="username" size="7">
        <input type="password" class="bginput" name="password" size="7">
        <input type="submit" class="bginput" value="Login!"></td>
</tr>
</form>
</table>
</center>

The forum action has changed to login.php not member.php

Let me know if it all works :)

NTLDR 08-09-2002 08:50 PM

Quote:

Originally posted by Mr_P
mods can u delete my last 3 posts

i forgot to update templates

excellant hack and something i did`nt even know it had to just now is the welcome panel

So is everything sorted and working fine now?


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.02304 seconds
  • Memory Usage 1,850KB
  • 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
  • (2)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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