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
Lightweight Style Options for "Lightweight Style" Details »»
Lightweight Style Options for "Lightweight Style"
Version: 1.0.0, by dartho dartho is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.6 Rating:
Released: 08-25-2010 Last Update: Never Installs: 439
Supported DB Changes Uses Plugins Auto-Templates
 

Firstly - this is only of use if you have installed the Lightweight Style

Secondly - make sure you read the notes if you use the Mobile Style and the Mobile Style Options addon.

OK, now that the formalities are over, this is an add-on to the Lightweight Style It allows you to customise a few common parts of the style without needing to edit templates.

It also adds in options to disable some products when the Lightweight style is being used and optionally adds "Posted by Mobile Device" type text into posts created using the mobile style.

* Optionally adds links to default style (in footer or header)
* 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 optionally hide mobile style from Style Chooser

Version Control:
1.0.0 - 26 AUG 2010 - Initial Release

Notes:
If you have installed "Mobile Style Options" (vb4) and make use of the 'Posted via Mobile Device' option, uninstalling Mobile Style Options will remove all records of posts made using the Mobile Style. The posts will of course remain, just the message will be gone. If this is not an issue for you - uninstall it BEFORE installing this addon. If you wish to keep those records, rather than uninstall it, disable it OR edit the product via Product Manager and remove all the uninstall code, save and then uninstall (this last option is the cleanest)

Running them both is OK, but you will need to disable the "Add Posted By Mobile Message to Post" plugin on the Mobile Style Options product. Uninstalling one of them will affect the other and cause errors as they share database columns. If you uninstall one without making the uninstall code changes, you shjould uninstall both and then re-install the one you are staying with.

Download Now

File Type: xml product-lsoptions.xml (12.3 KB, 2338 views)

Show Your Support

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

Comments
  #12  
Old 08-26-2010, 05:34 PM
russag russag is offline
 
Join Date: Jan 2010
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by flypaper View Post
I readded Mobile Style options and the database error went away. My users can now post. However, I'd really like to be able to remove Mobile Style options.

I don't know if the problem is related to having both installed or its just Mobile Style options. Should I post in that thread?

edit: BTW, the error was

MySQL Error : Unknown column 'ua' in 'field list'
Same here I removed Mobile Style options and received the same error.

Great style though man and good options
Reply With Quote
  #13  
Old 08-26-2010, 07:14 PM
cherylferraro cherylferraro is offline
 
Join Date: Oct 2005
Location: California
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Error when importing the xml file.

Code:
Database error in vBulletin 4.0.6:

Invalid SQL:

		INSERT INTO vb_product
			(productid, title, description, version, active, url, versioncheckurl)
		VALUES
			('lsoptions',
			'Lightweight Style Options',
			'A collection of options to customise the Lightweight style',
			'1.0.0',
			1,
			'http://vbdev.org/forum.php',
			'http://vbdev.org/forum.php');

MySQL Error   : Duplicate entry 'lsoptions' for key 'PRIMARY'
Error Number  : 1062
Request Date  : Thursday, August 26th 2010 @ 01:08:28 PM
Error Date    : Thursday, August 26th 2010 @ 01:11:40 PM
Script        : http://www.mysite.com/forum/admincp/plugin.php?do=productimport
Referrer      : http://www.mysite.com/forum/admincp/plugin.php?do=productadd
Classname     : vB_Database
MySQL Version : 5.1.48-log
addendum:
Please note, the error was my fault. I had 2 vb admin panels open and had already installed it on this one...
Reply With Quote
  #14  
Old 08-26-2010, 09:13 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by flypaper View Post
Uhhh, so after installing this, I uninstalled the Mobile Style Options. Now it appears that I can't post on the forum without a database error! Sweet
Quote:
Originally Posted by russag View Post
Same here I removed Mobile Style options and received the same error.

Great style though man and good options
Sounds like neither of you read my notes in the first post in regards to mobile style options and this one. [edit: or perhaps you did but my lack of detail didn't help - sorry] Both share database entries, by uninstalling Mobile, you deleted the database columns which this one needs. To clean things up, you'll need to uninstall both, then reinstall this one.
Reply With Quote
  #15  
Old 08-26-2010, 09:15 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cherylferraro View Post
Error when importing the xml file.

Code:
Database error in vBulletin 4.0.6:

Invalid SQL:

		INSERT INTO vb_product
			(productid, title, description, version, active, url, versioncheckurl)
		VALUES
			('lsoptions',
			'Lightweight Style Options',
			'A collection of options to customise the Lightweight style',
			'1.0.0',
			1,
			'http://vbdev.org/forum.php',
			'http://vbdev.org/forum.php');

MySQL Error   : Duplicate entry 'lsoptions' for key 'PRIMARY'
Error Number  : 1062
Request Date  : Thursday, August 26th 2010 @ 01:08:28 PM
Error Date    : Thursday, August 26th 2010 @ 01:11:40 PM
Script        : http://www.mysite.com/forum/admincp/plugin.php?do=productimport
Referrer      : http://www.mysite.com/forum/admincp/plugin.php?do=productadd
Classname     : vB_Database
MySQL Version : 5.1.48-log
I would guess hat means you either have another product with the same productid installed (I though vBulletin would track this?) or you have tried to install it twice without the ovewrite option
Reply With Quote
  #16  
Old 08-26-2010, 09:53 PM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
Sounds like neither of you read my notes in the first post in regards to mobile style options and this one. Both share database entries, by uninstalling Mobile, you deleted the database columns which this one needs. To clean things up, you'll need to uninstall both, then reinstall this one.
I read it, but didn't think I qualified. Hopefully we're the only idiots, but it does read more complex that it may need to...

Thanks for the fix tho.

edit: I'm no genius coder, but isn't it generally a good idea for each product/hack to have unique DB entries?
Reply With Quote
  #17  
Old 08-26-2010, 10:04 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I re-read it and saw it wasn't real clear either - I've edited the notes to be a little more clear.

You're right - I thought about creating unique column names, but then thought many would want to retain the data so kept them the same. I'm no genius coder either - if I was, I'd proibably have the install file check and throw up warnings etc during installation
Reply With Quote
  #18  
Old 08-26-2010, 10:19 PM
flyerndiver flyerndiver is offline
 
Join Date: Jan 2010
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Damn. I misread it too and now I can't uninstall them both because the uninstaller stops at the two DROP calls. Could you tell me what the attributes need to be so that I can recreate these two columns?

Thanks; great mod! I hope it will one day support blogs and CMS.

edit: nevermind, I edited the uninstall code and now only have the lightweight style options running. Thanks again!
Reply With Quote
  #19  
Old 08-28-2010, 12:39 PM
Mopar Rob Mopar Rob is offline
 
Join Date: Jul 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok here is a real NEWB question.. Not sure where to find this basic install info on the forums. I imported/merged this file into the lightweight mobile style. (Assuming that was done correctly) Now I cant find where to access these options??? Again sorry for the newb question but .. IM LOST.
Reply With Quote
  #20  
Old 08-28-2010, 01:33 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In AdminCP, Go into teh Settings, Options menu and then Lightweight Styl;e Options (Should be near end) and you can change settings there.
Reply With Quote
  #21  
Old 08-28-2010, 02:42 PM
Mopar Rob Mopar Rob is offline
 
Join Date: Jul 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
In AdminCP, Go into teh Settings, Options menu and then Lightweight Styl;e Options (Should be near end) and you can change settings there.
I do not see it?? Ok here were my steps:

- I went to Styles /upload and merged the product-lsoptions.xml file to the Mobile style

Now when I goto Settings/Options I do not see the Lightweight Style Options listed in the menu.

Do I need to update tables or run any maint??? Sorry again for the Newb Questions..
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 10:15 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.05383 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
  • (2)bbcode_code
  • (6)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
  • (3)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
  • (1)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