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)
-   -   Board Optimization - vB4 SuperCharged - Optimises CSS, Javascript and HTML (https://vborg.vbsupport.ru/showthread.php?t=229608)

TransAmDan 12-27-2009 08:48 AM

Quote:

Originally Posted by Darkimmortal (Post 1939231)

Well for some reason on your CMS pages I'm seeing: (style id 12)

Whereas on your other pages it's (style id 1)

Could it perhaps be a template that needs reverted?


Found it, In the table in the database 'cms_node' there is a field called 'styleid' it indeed had 12 in it, changed this to 1, and wahoo, problem solved.

The message on the front of my CMS page has gone, and by checking the HTML of the CMS page I can verify it is now calling StyleID 1.

Darkimmortal 12-27-2009 08:50 AM

Quote:

Originally Posted by TeknoSounds (Post 1939249)
Was not fixed in 0.81 :(
Its probably the style issue numbering issue. I'm only running the default style on the dev site, but I had other styles before it.
It appears the styleid is 9.

site is:
http://dev.teknosounds.com/messageboard

note theres no content on the cms atm.

Your CMS seems to be running on styleid 1 - but since you've only got one style it sounds more like my code is a fault. Almost certainly it's this:

PHP Code:

function vbsc_curstyle(){
        global 
$vbulletin;
        
$sid $vbulletin->userinfo['styleid'];
        if(
$sid 1)
            
$sid $vbulletin->options['styleid'];
        return 
sprintf("style%05d"$sid);
    } 

I'll have a dig through the vBulletin source and find out where they pull the styleid from.


Quote:

Ok, all done and working, the problem I had was in your instructions, you said upload the contents of the .zip folder to your forum root.

So I did, that meant the folder inside named 'VBCS' became a directory in the forum root.

Perhaps you should rename the folder within the .zip file to 'forum' that way people would possibly recognise the structure.
Good idea :)

TeknoSounds 12-27-2009 08:53 AM

as far as zip file structure, I'd make the new folder that contains the admincp and whatnot folders called 'upload'...should also add your xml file in there so you only need to download the zip instead of the 2 files.

seems to be the standard at least :)

TeknoSounds 12-27-2009 09:00 AM

Okay, going off Trans post, I went into my cms_node table and sure enough the styleid was 1. I changed this to the styleid 9 that was reflected in the AdminCP and the error goes away.

Maybe this is a bug with the cms where its not putting the proper styleid into the table?

Darkimmortal 12-27-2009 09:08 AM

Quote:

Originally Posted by Darkimmortal (Post 1939254)
I'll have a dig through the vBulletin source and find out where they pull the styleid from.

PHP Code:

$vbcsspath 'css.php?styleid=' . [b]$vbulletin->userinfo['styleid'][/b] . '&langid=' LANGUAGEID '&d=' $style['dateline'] . '&td=' $vbulletin->stylevars['textdirection']['string'] . '&sheet='

Looks like it's probably not an issue in my code then. D:

Must be something that happens to some people after upgrading, because I can't reproduce anything like it on a clean install, even after fiddling with styles.

Quote:

as far as zip file structure, I'd make the new folder that contains the admincp and whatnot folders called 'upload'...should also add your xml file in there so you only need to download the zip instead of the 2 files.

seems to be the standard at least
Yeah "upload" seems like a good idea, but including the xml file inside the zip will make things awkward for me :p

TeknoSounds 12-27-2009 09:10 AM

Hmm guess it'll need to be reported to vB as a bug then. And ya, that sounds right if its been an upgrade...only puts default info in instead of pulling current styleid.

Ahh too true, I understand now that you've only updated the xml these past two minor upgrades.

Darkimmortal 12-27-2009 09:17 AM

I dunno... technically it's working as designed, just incredibly annoying. How many people would ever need to have entire different styles for CMS sections anyway... :/

Delilahs 12-27-2009 09:21 AM

Regarding the file structure, I concur with the way Tekno has described it.

I've also had to go into my Mysql database and change the style id manually in cms_node to 9 instead of 1.

This has to be a bug in the cms as it worked absolutely fine on the forum pages, without any trouble once I had uploaded the correct structure.

Darkimmortal 12-27-2009 09:32 AM

Ok, updated the zip file :)

Also it's not really a bug tbh. Without css.php it would definitely be a problem, but they have it silently outputting the default style when given a non-existent style id. I'll add a workaround to do the same in the next release, but I'm going to wait a while this time - I've been firing out releases too fast :p

TeknoSounds 12-27-2009 09:34 AM

Just an FYI.
Created a thread on vB.com

http://www.vbulletin.com/forum/showt...ding-to-vB-4-0


All times are GMT. The time now is 09:43 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.01636 seconds
  • Memory Usage 1,755KB
  • 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
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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