vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBindex v3.0.0 RC5 (https://vborg.vbsupport.ru/showthread.php?t=59524)

NTLDR 02-11-2004 01:16 PM

For the news posts to show regardless of permissions see this post

For the latest threads find:

PHP Code:

AND forumid NOT IN (".iif(is_numeric($vbindex[newsfid]), "$vbindex[newsfid],").implode(',', $limitfids)."

And remove it.

[high]THIS WILL SHOW ALL POSTS REGARDLESS OF PERMISSIONS/LIMITED FORUMIDS TO EVERYONE[/high]

Alternativly, the following should work and would be better find:

PHP Code:

foreach($forumcache AS $forum) { 

Add before:

PHP Code:

if ($bbuserinfo['userid']) { 

Find:

PHP Code:

unset($forum); 

Add after:

PHP Code:



This will use normal permissions for users logged in and will ignore permissions for those users who are logged out. With this method you can enter the forums you want to hide in the vBindex Options and they will be excluded from everyone.

SandsUSA 02-11-2004 01:27 PM

Are there any issues with the new-posts count being incorrect?

NTLDR 02-11-2004 01:30 PM

They will be incorrect iff the user logged in doesn't have access to the forum where the new post is. Excluding all the private forums would probably put too much load on the server however its something I'll be looking into for a new version.

dfmafia 02-11-2004 05:55 PM

Code:

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL: INSERT INTO datastore (title, data) VALUES ('vbindex_setting', 222)
mysql error: Duplicate entry 'vbindex_setting' for key 1

mysql error number: 1062

Date: Wednesday 11th of February 2004 03:32:07 PM
Script: http://filestore.dfmafia.net/site/fo...de1.php?step=3

thats the error message i get when i install at step 3

tried to delete the vbindex tables and reinstall but no help

any ideas?

dfmafia 02-11-2004 06:03 PM

i tried to drop the vbindex_shoutbox table again and reinstalled and now i get this error

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL: INSERT INTO datastore (title, data) VALUES ('vbindex_setting', 222)
mysql error: Duplicate entry 'vbindex_setting' for key 1

mysql error number: 1062

dfmafia 02-11-2004 06:08 PM

heres the MySQL version 3.23.58

heres the PHP Version 4.2.2

NTLDR 02-11-2004 07:04 PM

You CANNOT re-run the installer untill you have finished installing, it won't work, run this query:

[sql]INSERT INTO datastore (title) VALUES ('vbindex_version')[/sql]

and then move onto vbiupgrade2.php?step=4

dfmafia 02-11-2004 07:05 PM

thnx trying now

NTLDR 02-11-2004 07:07 PM

As a note, if running that query fails, just ignore it and move onto step 4.

dfmafia 02-11-2004 07:11 PM

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL: INSERT INTO datastore (title) VALUES ('vbi_eventcache')
mysql error: Duplicate entry 'vbi_eventcache' for key 1

mysql error number: 1062

on step 6 after i ran the query

should i run the query again and move to step 7?


All times are GMT. The time now is 03:08 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.02772 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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