Thread: Add-On Releases - Everywhere Sidebar 4 VB4
View Single Post
  #693  
Old 11-15-2010, 04:12 AM
Dexter_kcd Dexter_kcd is offline
 
Join Date: May 2005
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dexter_kcd View Post
I have been looking at this on my site, as I have been having the same issue. I think the problem does not lay here with the ESB mod, nor with the mobile style by Dartho, I think the problem lays with the auto-detection hack by Dartho. Here's why I think this:

- on my iPhone, if I go to my site, I get the sidebar on the mobile.

- if I log in on my iPhone with my admin account, I get the sidebar on the mobile.

- if I go directly to the style id by editing the url to add ?styleid=xx the sidebar goes away

- if I log out of the admin account, the sidebar comes right back

You can even test this by looking at the mobile style in your PC browser, the sidebar will not be there if you manually choose your mobile style or preview it by the Style Manager link.

So if, as an Admin, I go directly to the mobile style, I do not see the sidebar. However, if I do not manually choose the style, and let the auto-detection hack do the job of assigning my style, the sidebar shows up at the bottom of my page.

I have also tried it by enabling style choice at a regular user level, and then choosing the style with the selector, and again, a manual choice works, the sidebar is ignored. If the style is assigned automatically by the detection hack, the sidebar shows up.

Dexter...

For those having trouble with this on Mobile skins, if you are using the auto-detection hack by Dartho, here is your solution.

The ESB hack is only checking the style choice according to the user's stated preference in their control panel. The auto-detect hack overwrites that if you are on a mobile device, but does not actually change your saved style setting. So as far as ESB knows you are not using the mobile style, and setting the ESB preferences to ignore style XX has no effect.

So, to fix this, go into your Style Manager, choose your mobile style, and Edit Templates. Find the ESB template which is named "sidebarext_temp." Edit that template, and remove all code from the template. Save the template. This should stop the ESB from showing up at all in your mobile style, since there will be no code to render for the ESB template in that style.

Dexter...
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01107 seconds
  • Memory Usage 1,768KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete