vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - Nexia's Forum Categories Seperator (https://vborg.vbsupport.ru/showthread.php?t=213485)

05-11-2009 10:00 PM

Nexia's Forum Categories Seperator
 
Seperate Main forums (categories) with style. Replace the default vB to fit a better width.

You can see the result on this site, on the forumhome page, and in each categories where you see sub-forums.

First, it seperate the categories on home page.

Second, it replace the DEFAULT thead of the forumbit listing on FORUMHOME and FORUMDISPLAY templates so you can choose the width of the "lastpostby" block.

This is one of the most requested feature for the admins who use the default vBulletin templates for forum listing.

in AdminCP >> vBulletin Options >> Forum Listings Display Options, you now have this part:


no template or file edit, as usual...


Original Source: http://vbenhancer.com/free-visual-el...eperator/3232/

mikey1991 05-12-2009 10:25 PM

Thanks, Installed

ftanightwizard 05-13-2009 12:22 PM

Installed...
Works great.
Thank You

madotds 05-13-2009 01:03 PM

Hi Thanks for this product its just what I wanted :)

But can someone help with something please? Is there a way to have this mod not effect a particular style? Most of my styles are based on default and this mod works fine but another style is a little more modified and gets all messed up with this.

Regards
Mark

nexialys 05-13-2009 01:09 PM

i can help you a little... (why ask "someone" when i'm here.. lol)

there is 3 plugins in this product that need to be edited by you if you want them to work on a single style...

plugins: forumbit_display, forumhome_complete, forumdisplay_complete

you have to change them like this:
Code:

if($stylevar['styleid'] == 'X')
{
###### THE CONTENT OF THE PLUGINS ######
}

replace the X with the "styleid" you want the product to work for.

madotds 05-13-2009 01:29 PM

Lightning fast support :) Cheers mate I will go now and have a go at that.

regards
Mark

Stifmeister2 05-13-2009 01:56 PM

Is it possible to add this only for certain styles, and not every style??

nexialys 05-13-2009 02:00 PM

sure, change for this this:

Code:

$arrayofstyles = array(X, Y, Z);
if(in_array($stylevar['styleid'], $arrayofstyles))

change the X, Y, Z for the styleids you need...

madotds 05-13-2009 04:01 PM

Quote:

Originally Posted by nexialys (Post 1810075)
sure, change for this this:

Code:

$arrayofstyles = array(X, Y, Z);
if(in_array($stylevar['styleid'], $arrayofstyles))

change the X, Y, Z for the styleids you need...

Hi sorry but do I just need to add this code to the top of each of the plugins? I have added

Code:

$arrayofstyles = array(1, 2, 3, 4,);
if(in_array($stylevar['styleid'], $arrayofstyles))

to the top of each plugin but it still has an effect on Style ID 6

Regards
Mark

nexialys 05-13-2009 04:07 PM

you have to make like the first request, like
PHP Code:

$arrayofstyles = array(1234);
if(
in_array($stylevar['styleid'], $arrayofstyles))
{
# THE CODE OF THE PLUGIN




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