View Full Version : Mini Mods - Lightweight Style Options for "Lightweight Style"
dartho
08-25-2010, 10:00 PM
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.
dartho
08-26-2010, 02:19 AM
F.a.q.
sulasno
08-26-2010, 03:37 AM
tagged and thanks
lovelypk
08-26-2010, 04:36 AM
Does it auto detect Mobile device and change the style to lightweight?
dartho
08-26-2010, 04:51 AM
No, it does not. There is an addon for 3.8 which also runs under 4.0 that can do that, however I do hope to update that one of these days and re-release
dartho, the mobile master!
Alecsmith
08-26-2010, 12:22 PM
tagged install great work :)
omanmoon.net
08-26-2010, 12:36 PM
Thanks
Good work :)
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
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'
russag
08-26-2010, 05:34 PM
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 :)
cherylferraro
08-26-2010, 07:14 PM
Error when importing the xml file.
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...
dartho
08-26-2010, 09:13 PM
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
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.
dartho
08-26-2010, 09:15 PM
Error when importing the xml file.
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
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?
dartho
08-26-2010, 10:04 PM
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
flyerndiver
08-26-2010, 10:19 PM
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!
Mopar Rob
08-28-2010, 12:39 PM
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.
dartho
08-28-2010, 01:33 PM
In AdminCP, Go into teh Settings, Options menu and then Lightweight Styl;e Options (Should be near end) and you can change settings there.
Mopar Rob
08-28-2010, 02:42 PM
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..
dartho
08-28-2010, 09:53 PM
Install this via Product Manager, not Style Manager!
burntire
08-29-2010, 07:30 PM
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!
Here is how I fixed the issue with double installation.
With both products installed you only have to work with the old product moboptions40.
Download the old product
https://vborg.vbsupport.ru/showthread.php?t=229044
product-moboptions40-1.0.4
Open the product in an HTML editor and find the uninstall code
<uninstallcode><![CDATA[$db->query_write("ALTER TABLE `".TABLE_PREFIX."post` DROP `mobile`");
$db->query_write("ALTER TABLE `".TABLE_PREFIX."thread` DROP `mobile`");
$db->query_write("ALTER TABLE `".TABLE_PREFIX."post` DROP `ua`");
$db->query_write("ALTER TABLE `".TABLE_PREFIX."thread` DROP `ua`");]]></uninstallcode>
Replace the uninstall code with
<uninstallcode></uninstallcode>
Now import the moboptions40 product again allowing over wright. This will install the product without the conflicting un-install code.
Now un-install the old product moboptions40.
The new Lightweight product should now work correctly.
Okay, when I enable the 'posted by mobile device', the pipe character | doesn't line up with the rest of the post box. Is that because I'm running 4.0.4, something I've done, or is it like that for everyone?
dartho
08-30-2010, 09:37 PM
Not sure. I think I wrote it pre 4.0.4, although I could be wrong. It's lining up on my test site. Do you have a link I could look at?
Not sure. I think I wrote it pre 4.0.4, although I could be wrong. It's lining up on my test site. Do you have a link I could look at?
If its lining up for you, its likely edits I've done. Just in case...
http://uselessforums.com/showthread.php?11792-Been-watching-True-Blood-lately...&p=729370#post729370
Mopar Rob
08-30-2010, 11:40 PM
Install this via Product Manager, not Style Manager!
Thanks Man.. Told ya it was a newb Question.. WORKS GREAT!!!!!!!!!!!!!!!!!!
Will be sending you a donation your way 4sure.
My only 1 request would be to have an option to show the name of the forum the post is in. I have certain posts that are in Private sections and when i use the NEW POSTS feature it doesnt alert me what section of the forum its in. Other than that.. KILLER MOD!!!
LuisManson
09-02-2010, 02:05 PM
is it me or this wont redirect users to the theme if they are coming from a mobile?
dartho
09-03-2010, 12:34 AM
No, this addon does not do the mobile detect thing. This one (https://vborg.vbsupport.ru/showthread.php?t=226946) does (and yes, it is compatible with vb4)
LuisManson
09-03-2010, 10:29 PM
No, this addon does not do the mobile detect thing. This one (https://vborg.vbsupport.ru/showthread.php?t=226946) does (and yes, it is compatible with vb4)
thankyou very much
hey dartho.
i have both mobile and lightweight skins and options addons installed.
it's now showing double "posted via mobile device" below posts :S
dartho
09-05-2010, 02:30 AM
Did you read the 1st post?
Secondly - make sure you read the notes if you use the Mobile Style and the Mobile Style Options addon.
and the Notes section contains:
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.
neoacro
09-09-2010, 08:01 AM
how do I disable my sidebar blocks for my mobile version? It's showing uglily at the bottom of right corner of my mobile browser
dartho
09-10-2010, 10:42 PM
the vBulletin side bar should not show, or are you using a 3rd party add-on?
struff
09-12-2010, 05:31 PM
"Posted via Mobile Device" is not showing up on posts we make. Is that not working yet?
dartho
09-12-2010, 09:38 PM
That should be working - can you kink me to a post?
struff
09-12-2010, 11:48 PM
That should be working - can you kink me to a post?
Check your PM.
Thanks.
Yurified
09-18-2010, 12:57 PM
"Posted via Mobile Device" is not showing up on posts we make. Is that not working yet?
I have same problem :/ But overall its awesome :up: Thank you so much for this :D
Rebecca217
09-19-2010, 02:50 PM
Thanks very much! :)
JayCat
09-21-2010, 11:52 PM
"Posted via Mobile Device" is not showing up on posts we make. Is that not working yet?
Doesn't work for me either, but I'm using DBTech's tagging mod as well so I think that's whats interfering with it.
dartho
09-22-2010, 12:15 AM
There are 2 ways to add that message. One where the info gets logged in the DB and shown in the post footer on the left hand side, and the other when the message gets appended to the post itself. By default, the first option is what it uses. To enable the second, you need to make active the 2 inactive plugins for this product in the plugin manager.
If I could have admin access for a site where the 1st option isn't working, I might be able to work out why.
Mr Peabody
09-22-2010, 05:30 AM
is there any way to disable the vbadvanced CMS and make it go straight to the forum main page?
dartho
09-22-2010, 08:05 AM
edit the adv_portal template and put a link and/or a redirect to the forum
Mr Peabody
09-22-2010, 07:20 PM
cheers :)
Rob F
09-22-2010, 10:45 PM
Might be a simple question but I've not seen it asked so here goes ...
Is it possible at all to have the reply box scroll as a member is typing a reply? This was possibly the only criticism our members had on the old mobile style, that once they reached the bottom of the box they could keep typing a message but couldn't see what they were typing.
dartho
09-22-2010, 10:56 PM
scrolls down happily in my testing? I don't think there are any tags to control that behaviour - perhaps outdated browsers on users devices, or a device specific issue?
nike.stars
09-26-2010, 02:50 AM
just want to let you know that this feature isn't working:
* Optionally add 'Posted Via Mobile' message to new posts/threads (message can be customised)
dartho
09-26-2010, 03:21 AM
It's woking fomne on my site, however check post #42 on the previous page
dhemitz
09-27-2010, 05:18 AM
Thanks......
Hi dartho, I seem to have a bit of a major problem. I installed the Lightweight style, which was all fine, and then tried to install the Lightweight style options product, and it seemed to hang during the install. In the product manager, the product didn't seem to install, but then I then went to the front page of my forums and got this: http://forums.relicnews.com.
I deleted the lightweight style, but it still remains. This happens using the vBulletin default style and my custom style. I had no previous mobile styles installed.
Please help!
dartho
09-30-2010, 10:16 PM
It looks like teh master style got overwritten. I don't know how this can happen. You will need to upload tools.php from the vbUlletin install package to your admincp and restore your master style (very first setting)
Ah thanks, that fixed it. :)
Unfortunately, it seems to overwrite the master style every time I import the lightweight style. This is using v 4.0.7. Very strange... any ideas, dartho?
dartho
09-30-2010, 11:02 PM
It really shouldn't be! When importing the style, are you what options are you choosing? Try choosing the default style as the parent
strudinox
10-01-2010, 03:13 AM
Great mod! Installed + 5 stars!
glen290
10-04-2010, 08:39 AM
Quick question before I enable this, is there anyway to bypass the vbulletin CMS and go straight to forums ?
dartho
10-04-2010, 10:11 AM
not using this addon, however, check this post in the style thread: https://vborg.vbsupport.ru/showthread.php?p=2097867#post2097867
whites
10-11-2010, 06:03 PM
just want to let you know that this feature isn't working:
* Optionally add 'Posted Via Mobile' message to new posts/threads (message can be customised)
I'm experiencing the same thing, any ideas on what is going on?
Cadellin
10-12-2010, 06:14 PM
I'm experiencing the same thing, any ideas on what is going on?
The "Post by Mobile Device" doesn't work for me either on both the default and my custom theme.
whites
10-19-2010, 05:49 PM
dartho, can we get an update on what is going on with the 'Posted by Mobile Device' problem?
Thanks!
Do you have his other skin/theme/thing installed?
dartho
10-20-2010, 11:41 AM
ah - good point flypaper - I forgot about issues there.
whites - "posted by Mobile" works perfect on my dev site which has minimal otehr addon's. Make sure you read the "Notes"section in the first post.
If you are not/ no longer using the previous "Mobile" style, remove it and teh associated add-on, uninstall this one and then re-install it and check settings.
I am willing to log onto sites to check them out to see if I can resolve issues, send me a PM.
whites
10-22-2010, 04:50 PM
dartho,
After removing the style and the options plugin, and re-installing them, it is working now.
Thanks!
dartho
10-22-2010, 09:11 PM
Good to hear!
OldSchoolDSL
10-26-2010, 02:35 AM
Working flawlessly on 4.0.8
Thank you
thieu.bocap
11-22-2010, 04:08 PM
Can't remove, database error when i remove this add-on :(
dartho
11-22-2010, 08:45 PM
what is the database error? Also - did you read the notes section before installing?
rughis
11-23-2010, 07:30 AM
Hello
Really a nice add-on.
Just a question: is it possible to disable CMS navigation from Lightweight Style?
dartho
12-02-2010, 05:31 AM
same on my test site - I'll look into it and fix
dartho
12-02-2010, 10:33 AM
worked it out.
replace the header template in the lightweight style with:
<vb:if condition="$vboptions['ls_page_title']!=''">
<div align="right">
<vb:if condition="$vboptions['ls_default_style_link']==1">
<a class="toplinks" href="{vb:raw vboptions.ls_navbar_home}?{vb:raw session.sessionurl}styleid={vb:raw vboptions.ls_default_style}">{vb:raw vboptions.ls_default_link}</a>
</vb:if>
<vb:if condition="$show['member']">
<a class="toplinks" href="login.php?do=logout&logouthash={vb:raw bbuserinfo.logouthash}">{vb:rawphrase log_out}</a>
</vb:if>
</div>
<div class="header" align="left">{vb:raw vboptions.ls_page_title}</div>
<vb:else />
<div class="logo" style="text-align:right;">
<vb:if condition="$vboptions['ls_default_style_link']=='1'">
<a class="toplinks" href="{vb:raw vboptions.ls_navbar_home}?{vb:raw session.sessionurl}styleid={vb:raw vboptions.ls_default_style}">{vb:raw vboptions.ls_default_link}</a>
</vb:if>
<vb:if condition="$show['member']">
<a class="toplinks" href="login.php?do=logout&logouthash={vb:raw bbuserinfo.logouthash}">{vb:rawphrase log_out}</a>
</vb:if>
</div>
</vb:if>
<vb:if condition="$ad_location['ad_header_logo']">
{vb:raw ad_location.ad_header_logo}
</vb:if>
rughis
12-02-2010, 09:06 PM
Sorry, how can I avoid the HOME navigation when I use this lightweight style?
dartho
12-02-2010, 09:39 PM
Sorry, how can I avoid the HOME navigation when I use this lightweight style?
See this post for a work around: https://vborg.vbsupport.ru/showthread.php?p=2089883#post2089883
rughis
12-04-2010, 04:13 PM
See this post for a work around: https://vborg.vbsupport.ru/showthread.php?p=2089883#post2089883
Thank you Dartho!
I used the code you suggested to another user in a previous post and now all is working fine.
You could edit the vbcms_page template and replace all with something like:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
{vb:raw headinclude}
<title>{vb:raw vboptions.bbtitle}</title>
</head>
<body>
<div class="bodywrapping">
{vb:raw header}
{vb:raw navbar}
<div><a href="forum.php">CMS Disabled in Mobile View, please click here to proceed to forum</a>
</div>
{vb:raw footer}
</div>
</body>
</html>
I have now only an issue to fix: can I automatically redirect the users to the forum?
dartho
12-04-2010, 08:40 PM
You could put this in the head section of that template code:
<meta http-equiv="refresh" content="0;url=http://yourdomain.com/forum"/>
rughis
12-05-2010, 02:16 PM
You could put this in the head section of that template code:
<meta http-equiv="refresh" content="0;url=http://yourdomain.com/forum"/>
Thank you again :)
This style is really wonderful!
This is my final result :)
https://vborg.vbsupport.ru/external/2010/12/56.png
OldSchoolDSL
12-05-2010, 06:07 PM
uninstalled.
The_____KinG
12-16-2010, 06:43 AM
I use a vb4 suite< 4.07> can i use the lightweight style and this add on product with it without any problem because i read this is only for vb4 forums
will the mobile version have the HOME and Forum and BLOG tab separately or the Home on the moble skin denotes the forum page ?
appreciate the hard work and like the product
dartho
12-16-2010, 08:32 AM
it means that CMS and BLOG will not render well under this style - they'll basically look pretty crappy, but the forums will look as in the screen shots. There are no links to the BLOG or CMS. Check the vbdev.org test site and you'll get an idea what I mean ...
Hi
When I installed this on my forum it will hang my server. I have a huge database. COuld this be the problem?
My load average go beyond 100.0
thanks
dartho
12-31-2010, 09:58 PM
part of teh install process is adding 2 new columns to the post and thread tables. This is probably where it is getting caught up if you have a huge database.
You could manually add these (name MOBILE, type BOOL and name UA, type VARCHAR(100)) and edit the XML and remove the contents of the <installcode> and <uninstallcode> blocks
Ok I'll try that tomorrow.. I left it for 2 hours and my load avg was at 400 so I took down mysql.
I'll try that and let you know.
Thanks for replying and happy new year.
The Rocketeer
01-04-2011, 09:02 AM
Lightweight Style Options for "Lightweight Style", not working with VB 4.1.
No Change style option on header nor in footer.
will look forward to the fix and when the style is more bug free, for now uninstalled..
dartho
01-04-2011, 11:03 AM
Lightweight Style Options for "Lightweight Style", not working with VB 4.1.
No Change style option on header nor in footer.
will look forward to the fix and when the style is more bug free, for now uninstalled..
Works as expected on my 4.1 site with change style option in header or footer as configured
The Rocketeer
01-04-2011, 03:12 PM
Works as expected on my 4.1 site with change style option in header or footer as configured
Never mind, I overlooked a basic thing, that I had to configure it in the options > Lightweight Style Options ...many thanks ..
its a great style..
Phooey
01-09-2011, 03:19 PM
I've installed the style and configured this plugin, but when I try accessing the forums on my iPhone, it still shows the default full theme. I emptied the cache and cookies, but that didn't do anything either. What am I missing?
dartho
01-10-2011, 10:42 AM
You are missing this: https://vborg.vbsupport.ru/showthread.php?t=249967
Phooey
01-11-2011, 01:28 PM
You are missing this: https://vborg.vbsupport.ru/showthread.php?t=249967Seriously, stop being so awesome. :up:
Gero50
01-22-2011, 06:39 AM
Installed and works great, great work.
Taurus1
02-03-2011, 01:31 AM
Thanks, works great!
Just one question please. How can I get the Forum link in the top actually go to my forum? Whatever option I enter in the options, I get this: http://creativx.net/forums/forum.php
So I need it to just go here: http://creativx.net/forums
But even if I leave that empty, it gives me the first link.
Thanks.
EDIT: It also adds the forum.php behind the PC Mode link. So it does not work there either.
EDIT AGAIN: Sorry, disregard this, I figured it out. I had to enter index.php
prandah
02-03-2011, 10:47 AM
hey, how to disable forum statisctic on mobile version?
my forum www.ditusuk.com
mobile version http://m.ditusuk.com
dartho
02-03-2011, 11:46 AM
You need to tell me what add-on you are using to make those statistics
prandah
02-03-2011, 03:37 PM
i used
[AJAX] Advanced Forum Statistics
prandah
02-05-2011, 10:58 AM
hello
dartho
02-05-2011, 08:09 PM
Hello. There doesn't appear to be an "enable / disable" type option in that add-on (which I assume is this one: https://vborg.vbsupport.ru/showthread.php?t=232811&highlight=statistics ?) so you can;t disable it as such. However, you could try editing and deleting the contents of all the temapltes for that product within this style:
'+++++++_topstats_main',
'+++++++_topstats_tabbit',
'+++++++_topstats_menubit',
'+++++++_topstats_footer',
'+++++++_topstats_thread_info',
'+++++++_topstats_blog_info',
'+++++++_topstats_latest_posts',
'+++++++_topstats_hottest_threads',
'+++++++_topstats_most_viewed',
'+++++++_topstats_top_posters',
'+++++++_topstats_latest_news',
'+++++++_topstats_newest_members',
'+++++++_topstats_top_starters',
'+++++++_topstats_top_referrers',
'+++++++_topstats_top_reputation',
'+++++++_topstats_thanked_members',
'+++++++_topstats_top_forums',
'+++++++_topstats_top_credits',
'+++++++_topstats_latest_blogs',
'+++++++_topstats_top_infractions',
'+++++++_topstats_latest_classads',
'+++++++_topstats_latest_comments',
'+++++++_topstats_most_viewed_entrys',
'+++++++_topstats_hottest_entrys',
'+++++++_topstats_top_bloggers'
[Edit] For some reason, the text "v i e t v b b" in the above template names gets replaced with +++++++. Someone here at vb.org seems to have an issue with them?
prandah
02-06-2011, 09:52 AM
thanks dartho
it's work :D
anupam_luv
02-11-2011, 12:15 AM
Some of my posts are mistakenly marked as "Posted via Mobile Device" ....... I want to remove it from everywhre and reset its status so that I should mark only new post from now on as "Posted via Mobile Device" ...
Can u suggest any sql query which can remove "Posted via Mobile Device" status from all my posts?
dartho
02-11-2011, 03:39 AM
something like the following 2 queries should do it:
UPDATE post SET mobile = NULL, ua = NULL WHERE post.userid = nn;
UPDATE thread SET mobile = NULL, ua = NULL WHERE post.userid = nn;
replacing nn with your userid
zeus_r6
02-27-2011, 05:56 PM
Any idea why this is left aligned rather than being next to the links on the right in postbit foot?
Screenshot attached
dartho
02-27-2011, 09:04 PM
because that's where I put it :)
zeus_r6
02-27-2011, 10:35 PM
Any insight on what .css file or template to modify to put it right next to edit post?
dartho
02-28-2011, 02:06 AM
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.
zeus_r6
02-28-2011, 03:42 AM
There is hardly anything in the posted by mobile device template ... nothing seems to change the location of it
dartho
02-28-2011, 08:57 AM
I see you have the same problem with Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?p=2167588#post2167588) - go ask you style designer.
prandah
02-28-2011, 11:23 AM
hai dartho
i'm sorry, i ask again :D
how to put this logo on the post via mobile device ?
like this picture
dartho
02-28-2011, 11:56 AM
hai dartho
i'm sorry, i ask again :D
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
zeus_r6
03-01-2011, 01:13 AM
I see you have the same problem with Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?p=2167588#post2167588) - 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 !:D
dartho
03-01-2011, 05:58 AM
that wouldn't be the hack, that would be the default vBulletin style which puts it there.
lighthazard
03-07-2011, 05:45 PM
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 :)
pandusetiawan
03-08-2011, 10:53 AM
Hi Dartho....could you help me to add forum navigation on navbar?So user can jump to the sub-forum above.
Like this....
http://asixfiles.com/imagea6/out.php/i4954_bread.jpg
Thank you in advanced... :D
siriuxs
03-09-2011, 09:20 AM
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?
dartho
03-09-2011, 08:58 PM
Becasue this doesn't change styles. Try this one: https://vborg.vbsupport.ru/showthread.php?t=249967 or vBulletin's one in 4.1.2
blizmop
03-22-2011, 12:09 AM
Hi Dartho. Thank you for the mobile skin style. It's working excellent for me. My users are complaining that they cannot change back to the desktop styles so I tried to download and install these options. I downloaded "product-lsoptions.xml" but I am not sure what to DO with that file. I uploaded it with the style manager, creating a new style but that was fruitless. Can you point me in the right direction please?
Thanks again.
dartho
03-22-2011, 03:20 AM
you should read the post immediately before yours.. :rolleyes:
ssslippy
05-12-2011, 05:15 AM
Just a note the disable whats going on doesnt work.
charlesr
05-17-2011, 03:37 PM
Does this need to be uninstalled before or after uninstalling the lightweight style?
dartho
05-17-2011, 09:32 PM
it should make no difference
charlesr
05-18-2011, 08:53 AM
Thanks for the swift response. The reason I ask is that I uninstalled the style but now when trying to uninstall the options plugin 1.0.0 (in 4.1.3) I get:
Invalid SQL:
ALTER TABLE `post` DROP `mobile`;
MySQL Error : Can't DROP 'mobile'; check that column/key exists
Error Number : 1091
So I was wondering how best to proceed.
Note: I have installed the official vbulletin mobile - unsure if that makes any difference, but thought I'd mention it.
dartho
05-18-2011, 09:14 AM
Chances are when you installed (or when you first attemnpted to uninstall) this you had a timeout or errors which caused the tables to not be created, and now when trying to drop teh tables it can't as they aren't there.
What you can do is go into the product manager and edit this product and delete teh contents of teh Uninstall Code. Then when you uninstall it will remove everything except the database columns which aren't actually there anyway.
charlesr
05-18-2011, 10:15 AM
Great. All sorted. Much appreciated.
Filgga
06-12-2011, 05:44 PM
Sad,
This' causing database errors on vB 4.1.4
Had to disable
dartho
06-12-2011, 10:32 PM
Sad, people report errors but provide no further information which may help to resolve them.
Don't forget to click the "Mark as Uninstalled" link
Filgga
06-13-2011, 08:01 PM
Sad, people report errors but provide no further information which may help to resolve them.
Don't forget to click the "Mark as Uninstalled" link
This made my day...
It's like this:
Users cannot swicth to the PC version of the site. Tried all efforts but in vain.
I did not UnInstall, simply disabled, waiting for ur input. I meant, disabled in my previous msg.
I sent you a PM, please see what you can do. I doubt it's only me.
dartho
06-13-2011, 10:11 PM
Thanks for the PM, Filgga - but you still haven't told me anything! I need error messages at least to find out where you are having a problem. What is the full database error message?
Filgga
06-13-2011, 10:22 PM
Thanks for the PM, Filgga - but you still haven't told me anything! I need error messages at least to find out where you are having a problem. What is the full database error message?
The database error was being caused by this:
Set 'Mobile' & UA Fieldas the new vB 4.1.4 tells me do not recognize 'UA' field in MySQL (sorry I did not copy the error).
I enabled the mod, disabled only that, the errors are gone (i did an edit above).
Still, users cannot switch between themes (to default theme).
U can visit my site (on my signature) via mobile and then via PC and see the difference.
This' after upgrading to vB 4.1.4; everything was OK before upgrading.
Looks like you're now upgrading http://vbdev.org/forum.php please test this and you'll see what we're facing
dartho
06-14-2011, 12:39 AM
I upgraded to 4.1.4 on my test site and I get no errors and also have no issues switching styles.
how can i disable share browser details from guests? (via mobile text's descripton)
dartho
07-01-2011, 12:58 AM
Edit the posted_by_mobile_device template and change the title in the anchor to something other than {vb:raw post_ua}
dartho
07-01-2011, 01:01 AM
Sorry - saw you only want to do this for guests.
Change
{vb:raw post_ua}
to
<vb:if condition="$show['member']">{vb:raw post_ua}</vb:if>
in that same template and then there will be no tool tip for guests
thenashy
07-03-2011, 06:56 AM
I have installed this, and have it all working. However, when viewing the mobile theme, when users click "Desktop" to go back to the default style, there is no style n umber displayed.
How does this noob fix that?
Sorry - saw you only want to do this for guests.
Change
{vb:raw post_ua}
to
<vb:if condition="$show['member']">{vb:raw post_ua}</vb:if>
in that same template and then there will be no tool tip for guests
thank you dartho for code. i'm setting for only administrator.
<vb:if condition="$bbuserinfo[usergroupid] == 6">{vb:raw post_ua}</vb:if>
Shevko
07-13-2011, 02:23 PM
Hi i use vb 4.1.4 and this theme.. there is a problem.. when opera mini users use your theme, theme auto change to default theme.. and this always to be.. what can i do?
Taurus1
07-16-2011, 10:04 AM
When I choose not to show the "What's going on" section it still shows though. Any ideas on that? Thank you very much!
dartho
07-17-2011, 02:48 AM
When I choose not to show the "What's going on" section it still shows though. Any ideas on that? Thank you very much!
oops ...
edit the FORUMHOME template, search for
<!-- what's going on box -->
replace with
<vb:if condition="$vbulletin->options['ls_whats_on']">
<!-- what's going on box -->
then search for
</vb:if>
{vb:raw footer}
replace with
</vb:if>
</vb:if>
{vb:raw footer}
Taurus1
07-17-2011, 06:16 AM
Thanks dartho, that did it.
Monster247
08-29-2011, 11:02 PM
dartho do i need to install this if i have installed product-mobdetect40.1.0.1.xml ur newest version??
dartho
08-30-2011, 12:38 AM
No you do not. Although, this does different things to the detect modification.
FCRhino
08-31-2011, 07:33 PM
I have it installed on 4.1.5 and it doesn't say Posted via Mobile. The other options work, so I guess it's still an overall success, but I wish this one did as well.
blankpage
09-04-2011, 04:58 AM
When I post a message with this mobile style, my signature doesn't appear to other users!
How can I solve?
dartho
09-04-2011, 10:09 AM
Edit newreply template, search for
</div>
</form>
{vb:raw footer}
and add imemdiately before:
<vb:if condition="$bbuserinfo['signature'] != ''">
<label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" {vb:raw checked.signature} /> {vb:rawphrase show_your_signature}</label>
</vb:if>
then edit SHOWTHREAD search for
<input type="submit" id="btn" value="{vb:rawphrase submit_reply}" />
add immediately before
<input type="hidden" name="signature" id="cb_signature" value="1" tabindex="1" />
You can use the code from SHOWTHREAD in NEWREPLY if you always want signature with no checkbox option.
blankpage
09-04-2011, 06:32 PM
Wow! Perfect! :)
Thanks! :)
HeLLCiTo
09-07-2011, 06:44 PM
how is the code to disable the portal?
imported_Vishalsachar
11-06-2011, 12:59 AM
Thanks, excellent work!
S@NL - BlackBik
12-11-2011, 04:33 PM
Can anybody tell me how I can disable the v3Arcade product in this style?
I found the "Enter code here to disable add ons" in the Lightweight options, but I don't have a clue about what to put in this.
The v3Arcade has an option to disable the add-on in it's admin settings.
dartho
12-12-2011, 12:55 AM
It doesn't look like v3arcade has a general enabled/disabled option. How is it interfering with the Lightweight style?
S@NL - BlackBik
12-12-2011, 04:38 PM
Hi Dartho, thanks for your quick response. We're in completely different timezones, so answering can take a while ;)
My users get the following error:
Fatal error: Cannot redeclare get_games() (previously declared in / home/websites/forumsetinl/htdocs/ includes/block/html.php(95) : eval()'d code:7) in /home/websites/ forumsetinl/htdocs/includes/block/ html.php(95) : eval()'d code on line 68
v3Arcade does have a general enable/disable setting in the admin control panel. It is stored in the database field "arcadeopen" that is located in the the vBulletin "setting" table. Value 1 is on. Value 0 is off.
S@NL - BlackBik
12-15-2011, 06:34 PM
Dartho, you can discard my question.
I've been digging a little deeper and found out that it was the side-block module for v3Arcade that conflicted with this style. That was designed for the CMS, but I found out it also worked on the forum. Guess there was a problem with this misuse.
I've disabled this block and the errors no longer present themselves.
SemperFideles
01-21-2012, 08:46 PM
Product does not work with vBulletin 4.1.10
tekmaster
02-15-2012, 09:26 AM
Is there a way to insert a language chooser?
dartho
02-15-2012, 12:11 PM
maybe - you basically have to add the following code into the footer template
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-core.js?v={vb:raw vboptions.simpleversion}"></script>
<div>
<form action="{vb:raw vboptions.forumhome}.php" method="get" id="footer_select">
<vb:if condition="$show['languagechooser']">
<select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="{vb:rawphrase quick_language_chooser}">
{vb:raw languagechooserbits}
</optgroup>
</select>
</vb:if>
</form>
</div>
</vb:if>
but some of that code would usually be shared with the quick style chooser.
If you do not use the style chooser, search for the following and replace it with the above code
<vb:if condition="$vbulletin->options['ls_default_style_link']==3">
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-core.js?v={vb:raw vboptions.simpleversion}"></script>
<div>
<form action="{vb:raw vboptions.forumhome}.php" method="get" id="footer_select">
<vb:if condition="$show['quickchooser']">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="{vb:rawphrase quick_style_chooser}">
{vb:raw quickchooserbits}
</optgroup>
</select>
</vb:if>
</form>
</div>
</vb:if>
If you want both choosers, replace with this
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-core.js?v={vb:raw vboptions.simpleversion}"></script>
<div>
<form action="{vb:raw vboptions.forumhome}.php" method="get" id="footer_select">
<vb:if condition="$show['languagechooser']">
<select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="{vb:rawphrase quick_language_chooser}">
{vb:raw languagechooserbits}
</optgroup>
</select>
</vb:if>
<vb:if condition="$show['quickchooser']">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="{vb:rawphrase quick_style_chooser}">
{vb:raw quickchooserbits}
</optgroup>
</select>
</vb:if>
</form>
</div>
tekmaster
02-18-2012, 10:11 AM
Thanks for the help on this, I know that if I want to insert the language chooser elsewhere, it requires me to create a product in the admincp so that it calls it out. I'm not sure if you're familiar with it as well because I had to do this when I wanted to create the language chooser to be on the top of my default skin.
Here's the link to what I did, I'm just not sure how I can apply it for the mobile skin: http://ipankaj.net/how-to-move-vbulletin-language-chooser-from-footer-to-navbar/
dartho
02-18-2012, 11:42 PM
It would work exactly the same for the mobile skin as for your default style.
What that plugin does is register variables used by the languagechooser - this is only needed if you move the language chooser out of the footer temaplte as the variables are already registered there.
Is that plugin already active on your forum? If so, you can move the languagechooser to your navbar template in the lightweight style and you will not need to add a new plugin. If you move it to one of the other templates, just add a new plugin and change 'navbar' in the code to the name of the template you moved it to.
tekmaster
02-27-2012, 10:02 PM
so I tried inserting them on the footer, however the footer did not display the style chooser/language chooser. I'm actually trying to have the language chooser only on the top where the navibar is located.
dartho
02-29-2012, 03:59 AM
so I tried inserting them on the footer, however the footer did not display the style chooser/language chooser. I'm actually trying to have the language chooser only on the top where the navibar is located.
Is that plugin already active on your forum? If so, you can move the languagechooser to your navbar template in the lightweight style and you will not need to add a new plugin.
...
autoescala
03-13-2012, 10:49 AM
Works perfect on 4.1.11 except the option of "Mobile post text" this don't do nothing when I post some from this style.
regards
S_E_A
05-18-2012, 11:59 AM
Receive an Array error message when checking users online on 4.1.12. Anyone else had this problem?
Cheers
Shaybloom
03-29-2013, 10:29 AM
How do i change the blue colour thats all over including the footer to black??
I tried changing footer colour and border almost everything in footer IN Style Variable Editor
to black and saved it it even shows red colour indicating it is edited but strangely enough NOTHING has changed on the theme on the forum,its still BLUE
please help!
romaxe
05-31-2013, 02:34 AM
It works with 4.1.8?
dartho
05-31-2013, 11:48 PM
How do i change the blue colour thats all over including the footer to black??
I tried changing footer colour and border almost everything in footer IN Style Variable Editor
to black and saved it it even shows red colour indicating it is edited but strangely enough NOTHING has changed on the theme on the forum,its still BLUE
please help!
You need to edit the lightweight.css.php file to make changes - this doenlt use the StyleVar system
madness85
07-22-2013, 07:11 PM
You need to edit the lightweight.css.php file to make changes - this doenlt use the StyleVar system
hi @dartho i have no styles to pick from in style chooser any ideas y apart from that its great :)
https://vborg.vbsupport.ru/external/2013/07/12.jpg
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.