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
  #102  
Old 02-28-2011, 02:06 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You would need to edit the Add Posted By Mobile Message to Post plugin and change the hook location used to one of the others available.

The line you want to change in that plugin is:
$template_hook['postbit_controls'] .= $templater->render();

Change the bit in red. A quick check of the postbit template shows other hooks available listed below. None of them look like they'd do exactly what you want, but give it a go:

postbit_userinfo_left
postbit_userinfo_right_after_posts
postbit_userinfo_right
postbit_messagearea_start
postbit_signature_start
postbit_signature_end
postbit_controls
postbit_end



You could also edit the posted_by_mobile_device template to make changes to what is displayed.
Reply With Quote
  #103  
Old 02-28-2011, 03:42 AM
zeus_r6 zeus_r6 is offline
 
Join Date: Jun 2007
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is hardly anything in the posted by mobile device template ... nothing seems to change the location of it
Reply With Quote
  #104  
Old 02-28-2011, 08:57 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see you have the same problem with Post Thank You Hack - go ask you style designer.
Reply With Quote
  #105  
Old 02-28-2011, 11:23 AM
prandah's Avatar
prandah prandah is offline
 
Join Date: Jun 2010
Location: Indonesia
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hai dartho

i'm sorry, i ask again

how to put this logo on the post via mobile device ?

like this picture
Attached Images
File Type: jpg Untitled-1.jpg (29.6 KB, 0 views)
Reply With Quote
  #106  
Old 02-28-2011, 11:56 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by prandah View Post
hai dartho

i'm sorry, i ask again

how to put this logo on the post via mobile device ?

like this picture
edit the posted_by_mobile_device template to make changes to what is displayed
Reply With Quote
  #107  
Old 03-01-2011, 01:13 AM
zeus_r6 zeus_r6 is offline
 
Join Date: Jun 2007
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
I see you have the same problem with Post Thank You Hack - go ask you style designer.
Actually it was the hack, it would display incorrectly even with the stock style....here is the fix which was found by the designer of the custom skin I'm running:


1) open template postbit
find
HTML Code:

{vb:raw template_hook.postbit_controls}

and move it under

<span class="postcontrols">

2) Do the same for postbit_legacy

A big thanks to Alexander from www.webandart.gr !
Reply With Quote
  #108  
Old 03-01-2011, 05:58 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that wouldn't be the hack, that would be the default vBulletin style which puts it there.
Reply With Quote
  #109  
Old 03-07-2011, 05:45 PM
lighthazard lighthazard is offline
 
Join Date: May 2007
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I noticed that the lightweight skin doesn't really support the CMS (Like you said)


If I can make a suggestion and make it an option in the add-on to automatically redirect mobile devices from the cms to the forum? That way, it would go straight to the style.

Just a suggestion
Reply With Quote
  #110  
Old 03-08-2011, 10:53 AM
pandusetiawan pandusetiawan is offline
 
Join Date: Dec 2009
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Dartho....could you help me to add forum navigation on navbar?So user can jump to the sub-forum above.
Like this....


Thank you in advanced...
Reply With Quote
  #111  
Old 03-09-2011, 09:20 AM
siriuxs siriuxs is offline
 
Join Date: Nov 2005
Location: Italia
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi to all... I have vbulletin 4.0.8 and this product isn't functionally... I have install Lightweight Style, and after this plugin... I set it to default style for mobile device... but if I go on my forum from my iphone forum.hdblog.it, is visualized the default theme for pc desktop... why?
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 03:19 PM.


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.06211 seconds
  • Memory Usage 2,335KB
  • 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_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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)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