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 10-15-2002 01:05 PM

Quote:

Originally posted by ontherun
Now Im using vBulletin 2.2.8 so do we have to find the code from 2.2.6 index.php or can we use the same lines from 2.2.8 index.php?
You can use the code from any 2.2.x version of vB, just make sure you copy between the lines indicated in the ReadMe file.

Quote:

Well the closest line of code in the admin/template.php to this is:
$only['showgroup'] = 'Show Groups';
For some reason vBhacker seems to be very buggy, you should add:

PHP Code:

$only['home'] = 'vBindex Home Page'

After the line you posted above.

Quote:

Where do I find tha vbindex CP I have a screen shot of it but can't locate it anywhere in my ACP
For 2.0.1 in the usergroup settings.

FleaBag 10-15-2002 03:27 PM

Teck: Because I've never run into a problem like this before. I currently have 60 hacks running on my board - I can handle that, but I'm not too hot with SQL.

NTLDR: It did run correctly, I checked in phpMyAdmin.

I do though have the same problem as Satan had earlier, where no news text is shown on OLD news posts, I made a new one to test and it all appears correctly. I ran the script you posted here in the admin folder, it seemed to process some posts but then I got the following SQL error.

Quote:

Invalid SQL: UPDATE thread SET tpostid= WHERE threadid=34
mysql error: You have an error in your SQL syntax near 'WHERE threadid=34' at line 1

mysql error number: 1064
Also, when I tried to post something in the Shoutbox on the vBindex page, it tries to go to a page named vbibeta.php. I resolved this by replacing vbibeta.php with $bburl/shoutbox.php in the home_postshout template. But how do I make the vBindex come back to the main page after a shout is posted? The smilies in the vBindex Shoutbox also don't use the correct URL so none of them show up.

It might also be a good idea to state in the instructions that people using vBindex outside of the forums folder shout change their' imagesfolder replacement to the full URL [this doesn't though, fix the Shoutbox smilie problem].

NTLDR 10-15-2002 05:17 PM

Quote:

Originally posted by GamerForums
NTLDR: It did run correctly, I checked in phpMyAdmin.
Just run the other queries as instructed above ;)

Quote:

I do though have the same problem as Satan had earlier, where no news text is shown on OLD news posts, I made a new one to test and it all appears correctly. I ran the script you posted here in the admin folder, it seemed to process some posts but then I got the following SQL error.
I have used this on a board with 1,741 threads without a problem, for some reason threadid 34 doesn't seem to be able to get the postid of the first post within that thread.

Quote:

Also, when I tried to post something in the Shoutbox on the vBindex page, it tries to go to a page named vbibeta.php. I resolved this by replacing vbibeta.php with $bburl/shoutbox.php in the home_postshout template. But how do I make the vBindex come back to the main page after a shout is posted? The smilies in the vBindex Shoutbox also don't use the correct URL so none of them show up.
vbibeta.php was what I had the file called on my test install, replace it with the name of your vbindex.php file to correct this problem.

Quote:

It might also be a good idea to state in the instructions that people using vBindex outside of the forums folder shout change their' imagesfolder replacement to the full URL [this doesn't though, fix the Shoutbox smilie problem].
I think this is already included if not it will be added for the Final Release along with a list of other templates that require editing if used outside the forums directory.

ontherun 10-15-2002 10:07 PM

I have whiped out everything and reinstalled. I have vbindex working GREAT with the vBulletin default style set. I add a new style set and lose parts the header background and menu bars on the vbindex page.

Parts of the Stlye ( Welcome ) on the news banner. But the background and menu items do not. The Welcome above NEWS is part of the New Style set and pulling from the right sub-directory.

I have ask this question a few times and I have received any information that would help solve this issue

Please help me fix this, DSS TV LIVE is in need of this type of front end and we need to be able to allow the user to pick between different style sets.

NTLDR 10-15-2002 10:33 PM

You header for the platinum style uses different names (not the default vB ones) for the images at the top. Copy the contents of your header template into the home_header template and then the images will load.

For the broken icon image for the news title you need to add icon0.gif into your platium style's icons folder. icon0.gif can be found in the vBulletin zip file.

Xelation 10-15-2002 11:51 PM

Quote:

Originally posted by NTLDR
You header for the platinum style uses different names (not the default vB ones) for the images at the top. Copy the contents of your header template into the home_header template and then the images will load.

For the broken icon image for the news title you need to add icon0.gif into your platium style's icons folder. icon0.gif can be found in the vBulletin zip file.


what home_header?

NTLDR 10-16-2002 11:40 AM

Quote:

Originally posted by Xelation
what home_header?
home_header is the template ontherun needs to edit for the styles that arn't displaying correctly.

ontherun 10-16-2002 01:09 PM

NTLDR,

I know you said this a couple times to me but it took a all night'r to figure out what you where tring to tell me.

Its so easy once I started Expanding everything.

THANK YOU --------------- And I say that with high respect for you and your work.

FleaBag 10-16-2002 04:36 PM

So how do I get around this? Delete the problematic thread? If so how do I find out which one it is?

NTLDR 10-16-2002 04:48 PM

Quote:

Originally posted by GamerForums
So how do I get around this? Delete the problematic thread? If so how do I find out which one it is?
This is the thread that is causing problems:
http://www.gamerforums.com/board/sho...hp?threadid=34

All I can suggest is deleting it as I can't see any reason why the script isn't geting the postid for it.

FleaBag 10-16-2002 05:02 PM

All seems to be working 100% now. Great work! :D

NTLDR 10-16-2002 05:17 PM

Quote:

Originally posted by GamerForums
All seems to be working 100% now. Great work! :D
No problem, Glad its working correctly for you :D

FleaBag 10-16-2002 05:51 PM

It seems that the index.php?page=pagename feature no longer works?

I also found that for smilies to work in the vBindex Shoutbox, you have to put their' full URL in the ACP.

NTLDR 10-16-2002 06:36 PM

Quote:

Originally posted by GamerForums
It seems that the index.php?page=pagename feature no longer works?

I also found that for smilies to work in the vBindex Shoutbox, you have to put their' full URL in the ACP.

For the smilies to work anywhere on the main page correctly if vBindex is outside your forums directory then the full path is needed, just like for the images folder.

How have you named the template in the ACP that you are trying to access via ?page=pagename

FleaBag 10-16-2002 06:42 PM

I named it home_pagename, like in the last version of vBindex?

NTLDR 10-16-2002 06:44 PM

Try renaming it home_extra_pagename

I slightly changed it in this version to improve security.

FleaBag 10-16-2002 06:49 PM

How does that imrpove security? I tried that already anyway [I had a look at your code] - it didn't work. :(

NTLDR 10-16-2002 06:57 PM

Quote:

Originally posted by GamerForums
How does that imrpove security? I tried that already anyway [I had a look at your code] - it didn't work. :(
It improves security by not allowing users to look at other templates like home_welcomemessage which are only ment for logged in users.

Just change home_extra_$page to home_$page in the vbindex.php file and it should work the old way again.

FleaBag 10-16-2002 06:59 PM

I like your security idea, I'll try to make it work!

NTLDR 10-16-2002 07:00 PM

I shall be looking into that for the final version as well.

FleaBag 10-16-2002 07:06 PM

Hmmm, sorry sir, but your home_extra system just worked. Sorry for being a pain in the arse - dunno why it didn't work before! :)

NTLDR 10-16-2002 07:08 PM

:D Less work to be done :D

FleaBag 10-16-2002 07:12 PM

And what good work it is too! I've been waiting for something like this for a while. You're the man! :D

groovesalad 10-16-2002 09:05 PM

I installed 2.0.1 correctly and had it running fine. When i installed 2.1, here is what I got

Quote:


Database error in vBulletin 2.2.6:

Invalid SQL: SELECT thread.*,threadpost.pagetext AS pagetext FROM thread LEFT JOIN post AS threadpost ON (thread.tpostid = threadpost.postid) WHERE forumid = '31' ORDER BY thread.dateline DESC LIMIT 2
mysql error: Unknown column 'thread.tpostid' in 'on clause'

mysql error number: 1054

Date: Wednesday 16th of October 2002 03:04:07 PM
Script: http://groove-salad.com/forum/forum/vbindex.php
Referer:


NTLDR 10-16-2002 09:08 PM

Quote:

Originally posted by groovesalad
I installed 2.0.1 correctly and had it running fine. When i installed 2.1, here is what I go
You haven't installed v2.1 RC1 correctly. Please read the install instructions.

groovesalad 10-16-2002 09:23 PM

Ok, not sure where I went wrong:

Quote:

You must allready have already installed vBindex v2.0 or v2.0.1 in order to use the Release Candidate. No installer is included for RC1.
Did it

Quote:

Run the SQL in vbisettings.sql, this will add the vBindex settings to the database, then go into vBulletin Options in the Admin CP and change the options to what you require.
Did it


Quote:

There are one/two edits required for the vbindex.php file itself. I. Copy the code from forum/index.php where indicated in the file. II. Change the chdir(); statement if you are running outside your forums directory.
Did it


Quote:

If you rename the vbindex.php file, you will need to change the name in the home_postshout template.
Didn't rename it, so don't need to do it

Quote:

To add the shoutbox to the left/right side add $homeshoutbox after one of the <tr>'s do not put it in its own <tr><td>. The only template edit since v2.0.1 is home_newsbit which adds $readmore incase you have $maxchars set.
Did it

Quote:

If you wish to use the shoutbox then this hack is a prerequsit, and needs to be installed first, however if you do not require the shoutbox option disable it in the ACP, otherwise you will get DB errors.
Already had it installed. So what else should I do?

NTLDR 10-16-2002 09:54 PM

Quote:

Originally posted by groovesalad
Already had it installed. So what else should I do?
You haven't followed all the instructions:

Quote:

Please also see this post for extra details on the installation.

groovesalad 10-16-2002 10:12 PM

Once again, you're awesome! Me? Not so much. lol

Thanks again.

NTLDR 10-16-2002 10:18 PM

*hehe* No problem, glad its all up and running now :D

groovesalad 10-16-2002 10:24 PM

Ok, it works great, the only thing I can't seem to get to show is the text for the News section. I have it set to 500 characters, so I think that's plenty. Any ideas?

http://www.groove-salad.com/forum/vbindex.php

NTLDR 10-16-2002 10:27 PM

Posts made prior to the changes in newthread.php won't have the ID, upload the file called setpostid.php in the zip into the admin folder and run it, they should then show up.

This will be fully integrated into the Update Counters bit in the final release.

groovesalad 10-16-2002 11:07 PM

I've downloaded 3 .zip files from this thread, but neither one of them have that setpostid.php in the zip file. Was I supposed to look somewhere else for it?

NTLDR 10-16-2002 11:21 PM

I'm sure it was in vbi21rc1.3.zip, I've attached it here anyway :D

groovesalad 10-16-2002 11:43 PM

Great, thanks for attaching it. I ran it in my admin directory, it went through several posts, then came up with this:

Quote:


Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: UPDATE thread SET tpostid= WHERE threadid=97
mysql error: You have an error in your SQL syntax near 'WHERE threadid=97' at line 1

mysql error number: 1064

Date: Wednesday 16th of October 2002 05:42:28 PM
Script: http://groove-salad.com/forum/forum/...setpostid.php?
Referer:

Any ideas?

The weird thing is, the URL is http://groove-salad.com/forum/forum/...setpostid.php?

and has two forum/forum in it. Not sure why it's trying to go to that URL.

ontherun 10-16-2002 11:47 PM

NTLDR,

What code do I need to write in the index.php to load the vbindex.php first

This was my best guess after seening it in a different loader in a hack from another site I just changed the code to point at vbindex

// vbindex Loader
$loader = split("/", getenv(REQUEST_URI));
$n = count($loader)-1;
$loader = $loader[$n];
if (trim($loader)=="index.php") {
Header("Location: vbindex.php");
}
// End vbindex Loader

User say that there still going straght to the to the forum and not the vbindex front page.

Any help?

FleaBag 10-17-2002 12:53 AM

NTLDR, it wasn't there, just so you don't think you're going mad. There's no instructions in there either.

FleaBag 10-17-2002 01:00 AM

groovesalad, I had that problem and had to delete the problematic thread. I'm not saying that's what you should do - though. ;)

Buddha 10-17-2002 01:28 AM

ontherun, change your htaccess file. mentioned several times in previous posts. easy to do bud.

NTLDR 10-17-2002 09:01 AM

Quote:

Originally posted by GamerForums
NTLDR, it wasn't there, just so you don't think you're going mad. There's no instructions in there either.
Strange, I have it in my local zip, I must have updated it :rolleyes:

I know there is a lack of instructions in the zip, I am going to try and realease RC2 this week which will have all the instructions in it and a new installer.

NTLDR 10-17-2002 09:03 AM

Quote:

Originally posted by groovesalad
and has two forum/forum in it. Not sure why it's trying to go to that URL.
You have $bburl set wrong in your ACP I expect.

Problematic thread: http://groove-salad.com/forum/showth...hp?threadid=97

Problem, there is no post to get the postid from, hence the DB error.


All times are GMT. The time now is 10:30 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.03124 seconds
  • Memory Usage 1,846KB
  • 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
  • (1)bbcode_php_printable
  • (27)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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