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)

Natch 02-17-2004 03:13 PM

Damn right - I have it working no probs at all on RC4 ... links below to a working website ...

ImportPassion 02-17-2004 03:19 PM

yup

leitel 02-17-2004 04:07 PM

Looks good. Must be 'hacker' error. :( Thanks! :)

NTLDR 02-17-2004 08:50 PM

Make sure you have setup the vBindex Options correctly in the ACP.

JoeBiscuit 02-18-2004 03:43 AM

I've looked through a good bit of the posts, but maybe I missed it. Is there a way to pass a parameter along with the ?page=xxxx in the url to turn off the right column and top welcome box? This would make viewing the other pages much easier due to giving them more width. I don't want to go through ACP and turn off the right column because I use it on the main index page. I was just wondering if I could turn them off when going to other pages. Any help or redirect to another post would be much appreciated. Thanks!

NTLDR 02-18-2004 01:04 PM

You can edit the VBINDEX_SHELL template and remove the welcome box from there if you don't want it on extra pages.

To turn the right side off on extra pages add:

PHP Code:

if (EXTRA_PAGE == true && ($vbindex['options'] & VBI_BOTH_COLS) || ($vbindex['options'] & VBI_RIGHT_COL)) {
    if (
$vbindex['options'] & VBI_RIGHT_COL) {
        
$vbindex['options'] -= VBI_RIGHT_COL;
    } elseif (
$vbindex['options'] & VBI_BOTH_COLS) {
        
$vbindex['options'] -= VBI_BOTH_COLS;
        
$vbindex['options'] += VBI_LEFT_COL// if you have both columns switched on and don't want the left to show either remove this line
    
}


After:

PHP Code:

unset($option$bitfield); 

In vbindex.php

kneesparx 02-18-2004 07:44 PM

does this hack work with rc4?

MPDev 02-18-2004 08:32 PM

Thanks.

http://www.photopostdev.com/vbindex.php

Now I can look into making some PhotoPost custom boxes. ;)

JoeBiscuit 02-18-2004 09:03 PM

Quote:

Originally Posted by NTLDR
You can edit the VBINDEX_SHELL template and remove the welcome box from there if you don't want it on extra pages.

To turn the right side off on extra pages add:

PHP Code:

if (EXTRA_PAGE == true && ($vbindex['options'] & VBI_BOTH_COLS) || $vbindex['options'] & VBI_RIGHT_COL)) {
    if (
$vbindex['options'] & VBI_RIGHT_COL) {
        
$vbindex['options'] -= VBI_RIGHT_COL;
    } elseif (
$vbindex['options'] & VBI_BOTH_COLS) {
        
$vbindex['options'] -= VBI_BOTH_COLS;
        
$vbindex['options'] += VBI_LEFT_COL// if you have both columns switched on and don't want the left to show either remove this line
    
}


After:

PHP Code:

unset($option$bitfield); 

In vbindex.php


Taking of the welcome box worked like a charm; however, the taking off the right column on extra pages didn't work. I got a parse error on line 155 and what is on line 155 is the first if statement:
PHP Code:

if (EXTRA_PAGE == true && ($vbindex['options'] & VBI_BOTH_COLS) || $vbindex['options'] & VBI_RIGHT_COL)) { 

any idea on why? Thanks again.

NTLDR 02-18-2004 09:18 PM

Sorry, I missed a bracket, I've updated the code in the above post.


All times are GMT. The time now is 04:33 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.02398 seconds
  • Memory Usage 1,753KB
  • 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
  • (5)bbcode_php_printable
  • (1)bbcode_quote_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