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-17-2002 04:48 PM

I hope to release vBindex v2.1 RC2 later tonight. This will include the automated installer.

I have further optimised the code since RC1 and I expect some more optimisations for v2.1 Final :D

The templates are done, so its just some finishing touches and a little optimising to go ;)

NTLDR 10-17-2002 05:43 PM

At last its here :D RC2 of vBindex, the templates have been re-worked the installer has been significantly updated and now includes an uninstall option and an upgrade from v2.0.1 :D

Notes for the install:

Upload vbi_install.php and select the required option for you install.

If you choose an upgrade or templates install then all your home templates will be deleted and replaced. Backup your database first, quite a few changes are made in the install procedure.

In newthread.php find:

PHP Code:

$postid=$DB_site->insert_id(); 

After it add:

PHP Code:

      if ($forumid=$newsforum) {
         
$DB_site->query("UPDATE thread SET tpostid=$postid WHERE threadid=$threadid");
      } 

This will allow the news text to be displayed on new threads posted in your selected news forum. If you news posts don't appear, upload setpostid.php from the zip into forums/admin and run, this should correct the problem.

Note: you must have TWT's shoutbox installed if the shoutbox option is set to on in the ACP.

Full instructions of other template and file edits for this hack that are optional will be included in the final release.

Templates Changed From v2.0.1:

home_buddy1;
home_poll (fixed);
home_left;
home_right;
home_newsbit;
home_pollresult;
home_threads;

These are mostly minor changes to cope with the new ACP system.

I strongly recomend turning Avatars OFF for news posts, this will reduce queries by a large number :D

As allways, support is provided IN THIS THREAD ONLY.

Buddha 10-17-2002 07:02 PM

damn, i am so looking forward to the final release of this. i'll need to go through the manual upgrade though, seeing as i've made quite a few changes to the templates and copied and renamed vbindex.php quite a few times for the extra pages.

NTLDR 10-17-2002 07:07 PM

I hope the final to be out next week, I made this RC2 just incase there are any bugs and so I can release the changes sooner rather than later.

I'll probably try and make a list of changes in the templates from vBindex v2.0.1 to make it eaiser for you and other users with template changes to upgrade. None of the edits are manditory though :D

Kohhal 10-17-2002 07:40 PM

Hi,

I'm running v2.1 RC1 and it's working perfectly apart from no thread no. on the comments link in the poll.

Is there much differences in this new version? Is the fix for the poll included? (couldn't find it in the mass of pages)

Thanks and again, top hack!!!

G

NTLDR 10-17-2002 07:49 PM

I'd suggest uploading the new vbindex.php file I'll take a look into the missing threadid on the link now :)

NTLDR 10-17-2002 08:01 PM

Quote:

Originally posted by TheMasterG
Is the fix for the poll included? (couldn't find it in the mass of pages)
I have fixed the error, just updating the zip now, thanks for pointing it out TheMasterG :D

groovesalad 10-17-2002 08:22 PM

Quote:

Originally posted by GamerForums
groovesalad, I had that problem and had to delete the problematic thread. I'm not saying that's what you should do - though. ;)
Is there a way to search by thread number? I have no idea where thread #97 would be. Thanks.

groovesalad 10-17-2002 08:25 PM

Quote:

Originally posted by NTLDR


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.

Weird. I moved the thread and it must have left a remnant of the thread.

NTLDR 10-17-2002 08:25 PM

I posted the link to thread 97 above ;)

LightBringer 10-17-2002 08:26 PM

*sigh* I should have left things the way they were, but alas, I was tempted. So, in light of this:

I removed all of the old vbindex code.
Reinstalled fresh.
Had to make some changes like not showing certain forums on latest threads, recopying all of my original templates over, etc.

However, NOW the news doesn't show up right and I tried to use the fix with "setpostid.php", this is the error I got:

Quote:

Database error in vBulletin Control Panel 2.2.8:

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

mysql error number: 1064

Date: Thursday 17th of October 2002 03:22:33 PM
Script: http://www.brainphreeze.com/forums/f...setpostid.php?
Referer:

groovesalad 10-17-2002 08:27 PM

Quote:

Originally posted by NTLDR
I posted the link to thread 97 above ;)
I asked before I saw your post. :) Thank you :)

groovesalad 10-17-2002 08:28 PM

Weird, I moved about 4 posts from one Forum to another and left it so it said Moved:Thread Name in the old thread. That's where I'm getting that error. If I post a link to the problematic thread, delete it, then it runs fine. Hmmm.

NTLDR 10-17-2002 08:29 PM

Quote:

Originally posted by LightBringer
However, NOW the news doesn't show up right and I tried to use the fix with "setpostid.php", this is the error I got:
I've changed setpostid.php very slightly, try it now and see if it works or gives you the same error :)

LightBringer 10-17-2002 08:29 PM

Also NTLDR, I noticed that in the newest RC that you've got up there, you have original vbulletin code in the section that says "copy and paste from lines 142-202" or whatever. :)

NTLDR 10-17-2002 08:31 PM

Quote:

Originally posted by groovesalad
Weird, I moved about 4 posts from one Forum to another and left it so it said Moved:Thread Name in the old thread. That's where I'm getting that error. If I post a link to the problematic thread, delete it, then it runs fine. Hmmm.
Thanks for that groovesalad, thats exactly what the problem is :) I'm on to this now :D

LightBringer 10-17-2002 08:33 PM

hehe that setpostid worked, I added in the forums I DIDNT want to show up Latest Threads by placing a forumid!=forumid# (IE: forumid!=43) in the vbindex threadsquery string and now everything looks dandy! :)

NTLDR 10-17-2002 08:37 PM

Quote:

Originally posted by LightBringer
Also NTLDR, I noticed that in the newest RC that you've got up there, you have original vbulletin code in the section that says "copy and paste from lines 142-202" or whatever. :)
Fixed, setpostid.php fixed and all resolved to, heres the latest version which ignores thread redirects compleatly :D

LightBringer 10-17-2002 08:41 PM

Cosmetic Change advice:

In your home_shoutboxbit, ya may want to change it from this:
Quote:

<td bgcolor=$color valign="middle"><a href="$bburl/member.php?s=$sessionhash[sessionid]&action=getinfo&userid=$userid"><normalfont><b>$us ername</b></a><br />$shout_text</normalfont></td>
to this:

Quote:

<td bgcolor=$color valign="middle"><a href="$bburl/member.php?s=$sessionhash[sessionid]&action=getinfo&userid=$userid"><smallfont><b>$use rname</b></a><br />$shout_text</smallfont></td>
Just changed the font from normal to small to match the rest of the front page. :)

LightBringer 10-17-2002 08:43 PM

It looks great NTLDR...
Have you been able to fix it so that unregistered and registered users NOT in a particluar usergroup don't see specific threads from forums they shouldn't have access to in the "Latest Threads" section? I like the ability for users that have access to the private forums, to be able to see them in the Latest Threads, whereas, those that shouldn't can't. :)

I'm sure it's just a matter of adding "bbusergroup!=whatever" somewhere...

NTLDR 10-17-2002 08:44 PM

Small but good change there LightBringer :)

Very nice vBindex implimentation too on your site :D

LightBringer 10-17-2002 08:45 PM

Quote:

Originally posted by NTLDR
Small but good change there LightBringer :)

Very nice vBindex implimentation too on your site :D


Thank you very much and as cliche` as it may sound NTLDR, I couldn't have done it without you! :) (or your hacks for that matter hehe)

NTLDR 10-17-2002 08:47 PM

Quote:

Originally posted by LightBringer
It looks great NTLDR...
Have you been able to fix it so that unregistered and registered users NOT in a particluar usergroup don't see specific threads from forums they shouldn't have access to in the "Latest Threads" section? I like the ability for users that have access to the private forums, to be able to see them in the Latest Threads, whereas, those that shouldn't can't. :)

I'm sure it's just a matter of adding "bbusergroup!=whatever" somewhere...

They way it works is it selects all the forumid's from the forumpermission table where canview=0 (ie the user group can't view them) and then in the query it blocks out all the forumids there.

The problem I have just thought of with it is that it may still get threads from child forums if they inherit the permissions of its parent. I'll look into this some more :)

LightBringer 10-17-2002 08:51 PM

Thanks NTLDR. :) I'll wait patiently for your return! heh

TECK 10-17-2002 08:59 PM

Quote:

Originally posted by LightBringer
I'm sure it's just a matter of adding "bbusergroup!=whatever" somewhere...
is not as simple as you think.

groovesalad 10-17-2002 09:06 PM

NTLDR, first off, many thanks for your hacks and especially for your willingness to help all of us. :)

One quick question (someone asked this, but not sure if it was answered), I installed 2.1 RC1. Is there any difference between that and 2.1 RC2? If so, I'll be installing that right away.

NTLDR 10-17-2002 09:16 PM

Quote:

Originally posted by groovesalad
NTLDR, first off, many thanks for your hacks and especially for your willingness to help all of us. :)

One quick question (someone asked this, but not sure if it was answered), I installed 2.1 RC1. Is there any difference between that and 2.1 RC2? If so, I'll be installing that right away.

The templates have been properly done in RC2, now you can switch off say the latest threads and it doesn't leave a blank <tr>

Also I have changed a fair bit of code in RC2, so it would be at least worth using the new vbindex.php file :)

NTLDR 10-17-2002 09:18 PM

Quote:

Originally posted by TECK
is not as simple as you think.
Indeed it isn't. Currently it hides all threads for forums that have explicitly been set so that users can't view them and that don't just inherit the parents permission. This is the one major thing to work on now :D

groovesalad 10-17-2002 09:22 PM

Excellent, thank you.

groovesalad 10-17-2002 09:27 PM

So, I'm assuming I'd just upload the vbindex.php file and not run the vbi_install.php file because I already have 2.1 RC1 running. Is this correct? Or should I uninstall 2.1RC1 and reinstall with vbi_install.php for 2.1 RC2?

TECK 10-17-2002 09:35 PM

Quote:

Originally posted by NTLDR
Indeed it isn't. Currently it hides all threads for forums that have explicitly been set so that users can't view them and that don't just inherit the parents permission. This is the one major thing to work on now :D
i have it done in my script. :)
basically, if you dont have perms the latest thread will not show.

NTLDR 10-17-2002 09:39 PM

Quote:

Originally posted by TECK
i have it done in my script. :)
basically, if you dont have perms the latest thread will not show.

You skills are alot better than mine though :D

I'll be attempting to do the same, I have a big vB project to do for uni and I'll need to be able to do it for that :)

groovesalad 10-17-2002 10:51 PM

NTLDR- I was hoping you could help me out with something. When I set one forum as the news forum, I get this HTML error:

The Latest Threads don't seem to be lined up correctly

http://www.groove-salad.com/vbindex01.jpg

And on the bottom of the page, this is what I get:

http://www.groove-salad.com/vbindex02.jpg

However, when I use a different forum as the news forum, everything is perfect:

http://www.groove-salad.com/vbindex03.jpg




Any ideas? I'm thinking either the Quote Hack I did. Not sure though.

zertox 10-18-2002 06:51 AM

I get this
Warning: unexpected error in date() in C:\webhost4life aspnet\zertox\forums\admin\functions.php on line 1599

Warning: unexpected error in date() in C:\webhost4life aspnet\zertox\forums\admin\functions.php on line 1599

as error on the vbindex page ... no other pages have this error
anyone know where to look? :s

NTLDR 10-18-2002 04:27 PM

Quote:

Originally posted by groovesalad
Any ideas? I'm thinking either the Quote Hack I did. Not sure though.
Do you have any HTML posts in the forum that was causing the errors? Or any posts that go way beond the screenwidth, like when you use [php] and create a long line?

NTLDR 10-18-2002 04:30 PM

Quote:

Originally posted by zertox
as error on the vbindex page ... no other pages have this error
anyone know where to look? :s

Looks fine to me, not sure if you have fixed it now as thats no appearing :D

It would be line 1599 of admin/functions.php that contains the key to the error ;)

groovesalad 10-18-2002 08:56 PM

Quote:

Originally posted by NTLDR


Do you have any HTML posts in the forum that was causing the errors? Or any posts that go way beond the screenwidth, like when you use [php] and create a long line?

Not that I can think of. I don't allow HTML posts. And the threads were somewhat small in size. No PHP posts.

NTLDR 10-18-2002 09:00 PM

If you can turn the template comments on in the vBulletin options and save the source of that page and send it to me I'll take a look and see if I can find out whats causing it :)

groovesalad 10-18-2002 09:03 PM

Thanks :) Check your PM

Jalrock 10-19-2002 01:59 AM

Everything works fine but when I try to add a usergroup I get this error. Any ideas?

Database error in vBulletin Control Panel 2.2.8:

PHP Code:

Invalid SQLINSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmodifyprofile,canviewmembers,canview,canviewvbindex,showgroup,cansearch,canemail,canpostnew,canmove,canopenclose,candeletethread,canreplyown,canreplyothers,canviewothers,caneditpost,candeletepost,canusepm,canpostpoll,canvote,canpostattachment,ismoderator,canpublicevent,canpublicedit,canthreadrate,cantrackpm,candenypmreceipts,maxbuddypm,maxforwardpm,canwhosonline,canwhosonlineip,cangetattachment)
VALUES (NULL,'Starter','',0,1,1,,,1,1,0,0,0,0,0,0,0,1,0,0,1,1,1,1,0,0,0,1,0,0,0,0,1,0,1)
mysql errorYou have an error in your SQL syntax near ',1,1,0,0,0,0,0,0,0,1,0,0,1,1,1,1,0,0,0,1,0,0,0,0,1,0,1)' at line 2
mysql error number
1064 



All times are GMT. The time now is 08:12 AM.

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.02435 seconds
  • Memory Usage 1,854KB
  • 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
  • (3)bbcode_php_printable
  • (20)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