Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-07-2015, 08:47 PM
tim.liton tim.liton is offline
 
Join Date: Dec 2012
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Tamplate crashes after refresh.

Hello guys.

Am using a template from here (free one) & the developer have encrypted his css.
I have made all changes via additional.css and are working great.
The only problem I have is that the template crashes after I refresh the page. After 2-3 refresh's it comes back to normal.

Any Idea how to fix it? Thank you guys!
Reply With Quote
  #2  
Old 12-07-2015, 09:01 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try turning off caching under style and language settings in the admincp and use the maintenance tool to rebuild styles.
Reply With Quote
  #3  
Old 12-07-2015, 09:18 PM
tim.liton tim.liton is offline
 
Join Date: Dec 2012
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67 View Post
Try turning off caching under style and language settings in the admincp and use the maintenance tool to rebuild styles.
Thank you Richie but am not able to find caching option under Style and Language. Could you please explain it where to find it?

Thank you.
Reply With Quote
  #4  
Old 12-08-2015, 07:44 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Encrypted his CSS? There's no such thing as CSS encryption.
All client sided code can easily be de-obfuscated.
Reply With Quote
  #5  
Old 12-08-2015, 10:33 AM
tim.liton tim.liton is offline
 
Join Date: Dec 2012
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
Encrypted his CSS? There's no such thing as CSS encryption.
All client sided code can easily be de-obfuscated.

Yes, it looks like this:

HTML Code:
<stylevar name="blockhead_border" value="YTo0OntzOjU6InVuaXRzIjtzOjI6InB4IjtzOjU6IndpZHRoIjtzOjE6IjEiO3M6NToic3R5bGUiO3M6NToic29saWQiO3M6NToiY29sb3IiO3M6NzoiI0RBREZDQiI7fQ==" />

		<stylevar name="blockhead_color" value="YToxOntzOjU6ImNvbG9yIjtzOjc6IiM0RTRFNEUiO30=" />

		<stylevar name="blockhead_link_color" value="YToxOntzOjU6ImNvbG9yIjtzOjc6IiM0RTRFNEUiO30=" />
Reply With Quote
  #6  
Old 12-08-2015, 10:36 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Those are base64_encoded values which vBulletin uses to store changed style variables in the exported style.

https://www.base64decode.org/
Reply With Quote
  #7  
Old 12-08-2015, 11:27 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you edit the styles .xml file after exporting in an attempt to copy/paste style related variables and such to your new style?

If so then that is what caused this confusion, next time use this mod to export custom templates easily then import - https://vborg.vbsupport.ru/showthread.php?t=257072
Reply With Quote
  #8  
Old 12-08-2015, 05:11 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tim.liton View Post
Yes, it looks like this:

HTML Code:
<stylevar name="blockhead_border" value="YTo0OntzOjU6InVuaXRzIjtzOjI6InB4IjtzOjU6IndpZHRoIjtzOjE6IjEiO3M6NToic3R5bGUiO3M6NToic29saWQiO3M6NToiY29sb3IiO3M6NzoiI0RBREZDQiI7fQ==" />

		<stylevar name="blockhead_color" value="YToxOntzOjU6ImNvbG9yIjtzOjc6IiM0RTRFNEUiO30=" />

		<stylevar name="blockhead_link_color" value="YToxOntzOjU6ImNvbG9yIjtzOjc6IiM0RTRFNEUiO30=" />
Those are style vars, you edit them via the Style Manager in ACP. They are not encrypted.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04067 seconds
  • Memory Usage 2,236KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete