vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - VSa - Sub-Forum Manager (https://vborg.vbsupport.ru/showthread.php?t=236960)

ibwt 02-19-2012 06:20 PM

i have installed, done all the stuff described in 'notes' and it doest work

my vb is suite 4+

stefano9lli 02-20-2012 12:58 PM

Here's a fix for mobile-suite working

Write a new plugin

https://vborg.vbsupport.ru/external/2012/02/25.png

Here's the code
NOTICE: Replace YOURSTYLEIDHERE

Code:

if ($styleid == YOURSTYLEIDHERE){
  $vbulletin->options['vsasfm_enable'] = 0;
}


ia7 02-24-2012 12:04 AM

I installed the Mobile style and I think this has caused a problem with this mod. The funny thing is though, when I switched on the HTML Template comments via the Settings it fixed the issue by putting in a malformed 'list' tag.

Anyone else experienced this? I'm using 4.1.10.

Addition: I've just copied and pasted TiKu's updated version and now it appears to have fixed the display issue when HTML Comments were enabled so thanks for the fix TiKu!! :) Just to add that now the opposite happens whereby with HTML Comments active this mod appears to experience a problem though it's not much of an issue now.

GameOverViper 02-26-2012 04:40 PM

Hi, I've had this installed for a while now on my forum and it's currently using the latest version. I just started using IE again and noticed that the lists are showing in 1 column instead of 2 in IE. It shows up fine in Firefox though. Any help on fixing this? Forum is www.xbox360clans.net/forum.php

webphangan 03-12-2012 02:58 AM

I will try

TiKu 03-16-2012 09:17 PM

Is anyone using this add-on with VB 4.1.11? After upgrading to VB 4.1.11, my FORUMHOME is totally broken and I'm unsure whether it's caused by my modifications to this add-on. I only know that disabling the add-on fixes the problem.

MadMakz 03-17-2012 12:29 AM

no issues here on 4.1.11.

TiKu 03-17-2012 07:19 AM

Found it. It's a problem in the add-on, but the consequences are only visible with my modifications.
The real problem is that the add-on compares the template version with this code:
Code:

$vbulletin->options['templateversion'] >= '4.1.8'
With version 4.1.11 this comparison doesn't work, because 11 is lexigraphically smaller than 8.

TiKu 03-17-2012 07:39 AM

To fix the problem, add this code to MN hook:
Code:

                        if (!function_exists('vsa_CompareVersions'))
                        {
                                function vsa_CompareVersions($verstr1, $verstr2)
                                {
                                        $ver1 = explode('.', $verstr1);
                                        $ver2 = explode('.', $verstr2);
                                        for($i = 0; $i < 3; $i++)
                                        {
                                                if(intval($ver1[$i]) > intval($ver2[$i]))
                                                        return -1;
                                                elseif(intval($ver1[$i]) < intval($ver2[$i]))
                                                        return 1;
                                        }
                                        return 0;
                                }
                        }

Then instead of
Code:

if ($vbulletin->options['templateversion'] >= '4.1.8')
use this code:
Code:

$templateVerIsOlderThan418 = (vsa_CompareVersions($vbulletin->options['templateversion'], '4.1.8') > 0);
if(!$templateVerIsOlderThan418)


Ricsca 03-28-2012 11:14 AM

How to disable in defoult mobile vbulletin?

Thanks


All times are GMT. The time now is 10:17 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.01413 seconds
  • Memory Usage 1,743KB
  • 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_code_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
  • (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