Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Mobile Style Options 4.0 Details »»
Mobile Style Options 4.0
Version: 1.0.4, by dartho dartho is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.0.3 Rating:
Released: 11-27-2009 Last Update: 05-22-2010 Installs: 330
Supported Uses Plugins Auto-Templates
Is in Beta Stage  

This is an add-on for the 4.0 version of my Mobile style. If you do not have this style installed, it is of no use to you!

It adds options to your vBulletin Options for customizing:
  • Optionally adds links to default style (in footer or navbar)
  • Optionally add 'Posted Via Mobile' message to new posts/threads (message can be customised)
  • Optionally display "What's Going On" box in forum home
  • Optionally display Style Chooser in footer
  • Set 'Home' link URL (rather than editing templates)
  • Can hide mobile style from Style Chooser

Install the latest Mobile style (should have same version number as this addon, but may have a different alpha char on end of version number)

Install this add-on and set your options

Version History
1.0.1 - Initial Release port from 3.x
1.0.2 - Fixed up 'Posted via Mobile' options
You can modify how the message displays by editing the "posted_by_mobile_device" template, you could even edit the hook location and have it display above the post
1.0.3 - Reality check for this with issues, no new functionality
1.0.4 - small install change which should stop timeouts on sites with large post tables

Download Now

File Type: xml product-moboptions40.xml (9.7 KB, 658 views)
File Type: xml product-moboptions40-1.0.2a.xml (11.1 KB, 454 views)
File Type: xml product-moboptions40-1.0.3.xml (12.3 KB, 211 views)
File Type: xml product-moboptions40-1.0.4.xml (12.2 KB, 993 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #152  
Old 07-02-2010, 11:16 AM
pant pant is offline
 
Join Date: Mar 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What a ++++ing run around I had because of this style.

In the end I had to delete the style, uninstall the plug in. Reupload the original vb style.xml to the install folder.

Upload tools.php and then import the default style from that point on my site is now working. Maybe I just threw caution to the wind but I would strongly suggest trying this on a test install before you put it on your live site.

I have no idea why it went so badly wrong for me perhaps there was a conflict somewhere as it seems to work for other people just fine.
Reply With Quote
  #153  
Old 07-02-2010, 01:31 PM
cbehan cbehan is offline
 
Join Date: Feb 2009
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having a couple problems with this style.

1. at the top of the screen we get " {$vbulletin->options['mo37_home_link_text']} "
2. The advertising in the footer still appears, but the header ad is gone. I need to get rid of both ads for the style.
Reply With Quote
  #154  
Old 07-02-2010, 09:59 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@cbehan - Point 1 is a bug in the style, edit the navbar template in the mobile style and replace

Quote:
<a class="navbar" href="{vb:raw $vbulletin->options['mo37_navbar_home']}{vb:raw session.sessionurl_q}">{$vbulletin->options['mo37_home_link_text']}</a>
with
Quote:
<a class="navbar" href="{vb:raw vboptions.mo37_navbar_home}{vb:raw session.sessionurl_q}">{vb:raw vboptions.mo37_home_link_text}</a>
For point 2 edit the footer template and remove the ad hook. Also see this post for another bug fix in the style

@pant - sounds like you merged the mobile style into your master style and overwrote it, never a good idea! Sorry, but that's a user error.

@Kolbi - On sites with large post tables in their DB, there were time outs installing this addon due to a DB update on teh post table. If thius timeout, those columns (mobile, ua) won;t be there and so this error can be ignored - did it remove the add-on otherwise? You can double check for 'ua' and 'mobile' columns in your 'post' and 'thread' tables to check.
Reply With Quote
  #155  
Old 07-02-2010, 10:55 PM
pant pant is offline
 
Join Date: Mar 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
@pant - sounds like you merged the mobile style into your master style and overwrote it, never a good idea! Sorry, but that's a user error.
I was careful to select no parent, unless I did something else wrong?

Problems occurred when I installed the plugin if you have any ideas about that?

Although what you say rings true, Hmmmmmmm
Reply With Quote
  #156  
Old 07-02-2010, 11:16 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've done it myself in the past
Reply With Quote
  #157  
Old 07-03-2010, 08:10 AM
pant pant is offline
 
Join Date: Mar 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font size="3">maybe Put A Super Big Warning</font>
Reply With Quote
  #158  
Old 07-19-2010, 01:48 PM
PreciseDemise PreciseDemise is offline
 
Join Date: Jun 2010
Location: England
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any possibility of adding support for the automatic selection of theme based on an Header script to detect Browser type?

I would love to get this theme & add-on set up for 'my' site, however, having to manually select theme each time I switch from my Pré to my Laptop, is putting me off. If this could be automated based on which device I'm using ... that would be just WOW!
Reply With Quote
  #159  
Old 07-19-2010, 09:15 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've done this as a seperate product. See here: https://vborg.vbsupport.ru/showthread.php?t=226946 And yes, it works with vb 4.0, alternatively you could set up a mobile.domainname.com scenario with help from : https://vborg.vbsupport.ru/showthread.php?t=174381
Reply With Quote
  #160  
Old 07-22-2010, 01:24 PM
Gursimran Gursimran is offline
 
Join Date: Jun 2008
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, after installing this mod... my home link got damaged

it is showing {$vbulletin->options['mo37_home_link_text']}

EDIT: fixed.... by reading this post
Reply With Quote
  #161  
Old 08-11-2010, 10:14 AM
Afsoul Afsoul is offline
 
Join Date: Aug 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any demo to see this style???
If we open the forum using this style via mobile then automatic using this style???
Sry, I ask to much, I'm newbie here, thx for the understanding
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 07:51 PM.


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.04755 seconds
  • Memory Usage 2,338KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete