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)
-   -   Administrative and Maintenance Tools - Edit StyleVars page (https://vborg.vbsupport.ru/showthread.php?t=258614)

FReeSTER 09-19-2011 05:42 PM

Ok reporting back. I double checked all of my edits and I found 4 of them were merged so I fixed but results still the same

Lynne 09-19-2011 08:42 PM

I would suggest starting with a totally new file and redoing the file edits. Only this time, make sure you put the code on their own lines and not merge lines at all.

Hippy 10-10-2011 07:28 PM

I pulled the changes out from the code it self and added it in it's correct line since a couple things changed since then..this worked up till 4.1.6 then 4.1.7 it will no longer work..
the edits where perfect.. did it 2 times to make sure , used compareit..
when you click on the style manager in the admincp you just get a blank screen :(

code used ..
PHP Code:

$isscss strpos($vbulletin->GPC['title'],'.css'); 

PHP Code:

iif($isscss === false AND $vbulletin->GPC['dostyleid'] != -1''construct_link_code('Edit StyleVars'"template.php?" $vbulletin->session->vars['sessionurl'] . "do=editcss&dostyleid=" 

PHP Code:

iif($isscss === false AND $template['styleid'] != -1''construct_link_code('Edit StyleVars'"template.php?" $vbulletin->session->vars['sessionurl'] . "do=editcss&dostyleid=" 

and the large chunk of code above
Code:

print_cp_footer();

any help with this would be great
thanks for sharing this great mod lynne

Lynne 10-10-2011 07:48 PM

I just went through and modified my template.php file for 4.1.7 using the instructions in post 1 and it is working just fine on my site. I am getting no blank screens. I'd suggest you check your error_logs.

Hippy 10-10-2011 08:31 PM

yep I should of though of that ..
this is the error
PHP Parse error: syntax error, unexpected ';' in /public_html/testvb/admincp/template.php on line 2224,
line 2224 is
Code:

'template', $templateinfo['template_un'], 22, '5000" style="width:99%', true, true, 'ltr', 'code');
this is under 3 lines under the first edit..
this line was not even touched

Hippy 10-10-2011 08:35 PM

my bad I see where I went wrong...

Lynne 10-10-2011 09:14 PM

Glad you got it figured out. :)

Hippy 10-10-2011 09:27 PM

thanks you for providing this for everyone..
should be default with vb..

I don't know what I was thinking when I was editing that file..
I been fixing so much broken stuff these past few days.. I need a break to get back on track..

once again
your efforts and support are very much appreciated..

voglermc 10-15-2011 02:30 PM

Sweet!

Hippy 01-08-2012 03:27 PM

1 Attachment(s)
Hi Lynne
this was driving me crazy today

after checking over and over my edits .. I realized this was not a edit issue it was a IE9 issue..
I checked in ff and worked like it should..

whats happening is everytime you mouse over a style var in the template the space between the 2 boxes grow

I attached a couple screen shots so you can see what I mean..

thanks


All times are GMT. The time now is 01:45 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.01092 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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