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
  #122  
Old 05-01-2010, 09:34 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know - ask the developer. It has nothing to do with this add-on
Reply With Quote
  #123  
Old 05-07-2010, 01:47 AM
ToNetU ToNetU is offline
 
Join Date: Mar 2003
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

It appears that our MySQL query kill script is ending this query prematurely because it is running for upwards of 2-3 minutes without completing:

Code:
[ 1273196161 ] [ *** ] [ 40493302 ] [ 146 ] [ *** ] [ Query ] [ KILLED ] [ ] [ ALTER TABLE `post` ADD `mobile` BOOL NOT NULL DEFAULT '0' ]
[ 1273196161 ] [ *** ] [ 40494206 ] [ 80 ] [ *** ] [ Query ] [ KILLED ] [ '***.***.com' ] [ ALTER TABLE `post` ADD `mobile` BOOL NOT NULL DEFAULT '0' ]
[ 1273197062 ] [ *** ] [ 40505463 ] [ 52 ] [ *** ] [ Query ] [ KILLED ] [ '***.***.com' ] [ ALTER TABLE `post` ADD `mobile` BOOL NOT NULL DEFAULT '0' ]
Unfortunately this limit is in place to prevent queries from becoming stuck and overloading the server. It doesn't look like this query is working properly as it shouldn't need to run for longer than a few seconds. I checked the table "post" and there is not currently a column named mobile.

can i know why it is taking so long for this query to complete?

btw i installed it without any problem in my test forum , but when i tried to install it into my live forum i got this error:

Code:
Database error in vBulletin 4.0.3:

Invalid SQL:
ALTER TABLE `post` ADD `mobile` BOOL NOT NULL DEFAULT '0';

MySQL Error   : MySQL server has gone away
Error Number  : 2006
Request Date  : Thursday, May 6th 2010 @ 08:34:41 PM
Error Date    : Thursday, May 6th 2010 @ 08:36:01 PM
Script        : http://www.***.com/forum/admincp/plugin.php?do=productimport
Referrer      : http://www.***.com/forum/admincp/plugin.php?do=productadd
IP Address    : *****
Username      : tonetu
Classname     : vB_Database
MySQL Version :
maybe the reason is because my test database is 30 mb, but my live database is 3 gb ?

installed, thanks..
Reply With Quote
  #124  
Old 05-07-2010, 09:37 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try the 1.0.4 version just posted up
Reply With Quote
  #125  
Old 05-07-2010, 11:14 PM
tafreeh tafreeh is offline
 
Join Date: May 2008
Location: Canada
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you forgot to add new private message option at mobile style
Reply With Quote
  #126  
Old 05-08-2010, 12:52 AM
ToNetU ToNetU is offline
 
Join Date: Mar 2003
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
try the 1.0.4 version just posted up
same problem mate, it's taking so long to install it then got this messege:
Code:
Database error in vBulletin 4.0.3:

Invalid SQL:
ALTER TABLE `post` ADD `mobile` BOOL NOT NULL;

MySQL Error   : MySQL server has gone away
Error Number  : 2006
Request Date  : Friday, May 7th 2010 @ 08:48:12 PM
Error Date    : Friday, May 7th 2010 @ 08:51:01 PM
Script        : http://www.***.com/forum/admincp/plugin.php?do=productimport
Referrer      : http://www.***.com/forum/admincp/plugin.php?do=productadd
IP Address    : ***
Username      : tonetu
Classname     : vB_Database
MySQL Version :
Reply With Quote
  #127  
Old 05-09-2010, 05:11 PM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ToNetU View Post
same problem mate, it's taking so long to install it then got this messege:
Code:
Database error in vBulletin 4.0.3:

Invalid SQL:
ALTER TABLE `post` ADD `mobile` BOOL NOT NULL;

MySQL Error   : MySQL server has gone away
Error Number  : 2006
Request Date  : Friday, May 7th 2010 @ 08:48:12 PM
Error Date    : Friday, May 7th 2010 @ 08:51:01 PM
Script        : http://www.***.com/forum/admincp/plugin.php?do=productimport
Referrer      : http://www.***.com/forum/admincp/plugin.php?do=productadd
IP Address    : ***
Username      : tonetu
Classname     : vB_Database
MySQL Version :
same error here
Reply With Quote
  #128  
Old 05-09-2010, 09:11 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did some testing with ToNetU and it seems if you have a large databse, you will need to run the queries manually, and they could take a while. I'm looking into it ...
Reply With Quote
  #129  
Old 05-10-2010, 09:45 AM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi dartho.
"posted from mobile" is not such a important thing that we actually need a separate field in post table. I think just adding a posted from mobile at the end of the post will be better.
Reply With Quote
  #130  
Old 05-10-2010, 10:02 PM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
I did some testing with ToNetU and it seems if you have a large databse, you will need to run the queries manually, and they could take a while. I'm looking into it ...
yip Total space used by the DATA directory 1,824.14 mb
Reply With Quote
  #131  
Old 05-23-2010, 03:19 PM
vasiljok3 vasiljok3 is offline
 
Join Date: Sep 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried to install the product for about 2 hours, and it was a failure (I manually stopped the process). My database size is about 1gb, is this normal?

Now I have the problem -

HTML Code:
Database error in vBulletin 4.0.3:

Invalid SQL:
ALTER TABLE `post` ADD `mobile` BOOL NOT NULL;

MySQL Error   : Duplicate column name 'mobile'
Error Number  : 1060
Request Date  : Sunday, May 23rd 2010 @ 08:57:28 AM
Error Date    : Sunday, May 23rd 2010 @ 08:57:28 AM
Script        : http://org/admincp/plugin.php?do=productimport
Referrer     : http://org/admincp/plugin.php?do=productadd
I can not install or uninstall the product (it is not in the list of products).

What should I do?
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:20 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.14481 seconds
  • Memory Usage 2,342KB
  • 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
  • (4)bbcode_code
  • (1)bbcode_html
  • (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