vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=247)
-   -   Forum Style - Lightweight Style for Small Screen Devices (cell phone, iphone, mobile, android) (https://vborg.vbsupport.ru/showthread.php?t=249277)

dartho 03-27-2013 03:47 AM

If you wanted to make this simpler, and don;t mind going into debug mode on your site, you could edit the Option Code for Mobile Style boxes in AdminCP so that all styles (both mobile and standard) show up and then you could replace the styleid numbers in the plugin above with $vbulletin->options['mobilestyleid_basic'], $vbulletin->options['mobilestyleid_advanced'] and $vbulletin->options['styleid'] then if you changed styles down the track you wouldn;t need to edit the plugin by hand. You would still need the above plugin to make it work.

To do this change the Option Code to:
PHP Code:

select:eval
//options = fetch_style_title_options_array('', false, 'mobile');
$options fetch_style_title_options_array();
$options = array('0' => $vbphrase['none']) + $options


Filgga 03-27-2013 03:59 AM

Quote:

Originally Posted by dartho (Post 2412496)
To do this change the Option Code to:
PHP Code:

select:eval
//options = fetch_style_title_options_array('', false, 'mobile');
$options fetch_style_title_options_array();
$options = array('0' => $vbphrase['none']) + $options


Superb! I know, many will benefit from this... Do I add the code onto the above code and look like:
PHP Code:

//VB has already check and set cookies if the user can skip the style, so just read what they wrote
$vbulletin->input->clean_array_gpc('c', array(
    
COOKIE_PREFIX 'userstyleid'     => TYPE_INT,
    
COOKIE_PREFIX 'skipmobilestyle' => TYPE_BOOL,
));
$skip $vbulletin->GPC[COOKIE_PREFIX 'skipmobilestyle'];
//Admin can have any style they want, so check if they're an admin and have specificed a styleid
if ($vbulletin->userinfo['permissions']['adminpermissions'])
{
$vbulletin->input->clean_gpc('r''styleid'TYPE_INT);
$styleid $vbulletin->GPC['styleid'];
}
else if (
$skip)
//if the user is not an admin has chosen to skip the mobile style (if allowed) give them default
$styleid=$vbulletin->GPC[COOKIE_PREFIX 'userstyleid'];
else if (
$vbulletin->mobile_browser_advanced
$styleid=89;  //Advanced mobile style ID
else if ($vbulletin->mobile_browser)
$styleid=89;   //Basic mobile style ID
else 
$styleid=1;  //everyone else gets default style default style

select:eval
//options = fetch_style_title_options_array('', false, 'mobile');
$options fetch_style_title_options_array();
$options = array('0' => $vbphrase['none']) + $options

?

Thanks for your prompt response

dartho 03-27-2013 04:10 AM

No - you would need to put your site into debug mode, then go into your vbulletin options in AdminCP where you choose the style settings and click on the edit link next to where you select the mobile styles and change the Option Code in there

Filgga 03-27-2013 04:25 AM

Quote:

Originally Posted by dartho (Post 2412498)
No - you would need to put your site into debug mode, then go into your vbulletin options in AdminCP where you choose the style settings and click on the edit link next to where you select the mobile styles and change the Option Code in there

Gotcha!

Will revert to you once successful. Obrigado!

----Edit----

I worked. Thanks much!

Shaybloom 03-29-2013 10:28 AM

How do i change the blue colour thats all over including the footer to black??
I tried changing footer colour and border almost everything in footer IN Style Variable Editor
to black and saved it it even shows red colour indicating it is edited but strangely enough NOTHING has changed on the theme on the forum,its still BLUE
please help!

tareqbd 03-29-2013 12:43 PM

Quote:

Originally Posted by dartho (Post 2409603)
edit the SHOWTHREAD template,
search for (near the bottom of the template)
Code:

{vb:raw footer}
and add the following immediately above it

Code:

{vb:raw template_hook.showthread_below_posts}

OK, I have tried already but no luck. Still the charged content not loading on click.
Any other suggestion please.

dartho 03-29-2013 01:03 PM

Quote:

Originally Posted by Shaybloom (Post 2412903)
How do i change the blue colour thats all over including the footer to black??
I tried changing footer colour and border almost everything in footer IN Style Variable Editor
to black and saved it it even shows red colour indicating it is edited but strangely enough NOTHING has changed on the theme on the forum,its still BLUE
please help!

see the 5th dot point of the install instructions

dartho 03-29-2013 01:04 PM

Quote:

Originally Posted by tareqbd (Post 2412913)
OK, I have tried already but no luck. Still the charged content not loading on click.
Any other suggestion please.

I don;t use that add-on. Have you asked them what requirements are?

tareqbd 03-29-2013 07:09 PM

Quote:

Originally Posted by dartho (Post 2412917)
I don;t use that add-on. Have you asked them what requirements are?

Yes, I did. Their reply was as below:
Quote:

Quote Originally Posted by Belazor View Post
showthread_below_posts is needed for the JS code that powers charged content.

dartho 03-30-2013 03:17 AM

So they told you the same thing again? Did you let them know that adding that hook didn't appear to work for you? If not, you may want to do so.


All times are GMT. The time now is 04:52 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.02011 seconds
  • Memory Usage 1,763KB
  • 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
  • (7)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