View Full Version : Forum Style - Lightweight Style for Small Screen Devices (cell phone, iphone, mobile, android)
Alan_SP
01-21-2012, 06:16 PM
Just found out this:
In template FORUMDISPLAY you use this code:
<div class="titlebg">{vb:raw foruminfo.title_clean}<vb:if condition="$show['newthreadlink']">
<a id="btn" style="font-weight:normal;font-size: .8em; border: 1px solid #999999;color: #000000;" href="newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase new} {vb:rawphrase thread}</a></vb:if>
Use instead phrase {vb:rawphrase post_new_thread}
So that there is this code:
<div class="titlebg">{vb:raw foruminfo.title_clean}<vb:if condition="$show['newthreadlink']">
<a id="btn" style="font-weight:normal;font-size: .8em; border: 1px solid #999999;color: #000000;" href="newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase post_new_thread}</a></vb:if>
Problem is that my language (Croatian) is a bit more complicated than English and I know that this is similar with Spanish, German and many more of them. It is correct phrase for this button and it's much better to use it instead two phrases.
Hippy
01-25-2012, 12:08 PM
this style produces a number of coding errors and warnings
some are a easy fixes ..
pop your url in there http://validator.w3.org/ once you selected your mobile style youll have this at the end of the url "?styleid=4" < your style # will be in place of the 4 here ( meaning what ever number is assigned to your mobile style
most errors are coming from the header template what seems to be open <imput> and <img> or they should be contained in <form> or something to make valid..
deverill2010
01-25-2012, 06:48 PM
Dartho I am on version 1.0.0 on the latest VB 4.1.10, You mod has 63 template conflict merge things.
U'm im not really sure what to do, I don't know if I need to update, I don't know how to update and I made some custom changes didn't i (I doubt you remember as I don't lol).
Can you tell me please how to update the style and how to keep the colours etc as i don't want to be faffing with that again.
Thanks
djbaxter
01-25-2012, 09:16 PM
Dartho I am on version 1.0.0 on the latest VB 4.1.10, You mod has 63 template conflict merge things.
U'm im not really sure what to do, I don't know if I need to update, I don't know how to update and I made some custom changes didn't i (I doubt you remember as I don't lol).
Can you tell me please how to update the style and how to keep the colours etc as i don't want to be faffing with that again.
Thanks
Solution: re-import the style, selecting "merge with" the name of your current mobile style, and it should resolve all those "conflicts".
deverill2010
01-26-2012, 02:50 PM
Ok I reimported the style but one issue i am having is I can't post as a guest, although I have guest posting enabled.
Also what is this box on the left?
See pic.
Mark.B
01-27-2012, 07:22 PM
Those with the "<br />" issue.
I have just spent an hour or so sorting this out and I think I have a solution. I think this only works if you have the lightweight style options hack as well.
The issue: Reply to thread still uses CKEditor. If you switch the template back to a simple textarea, as it was before, the quote isn't passed.
To fix:
Copy the contents of template editor_toolbar_off to editor_ckeditor.
This gives you the quote, but gives you all sorts of <br /> tags and other HTML stuff.
This issue is caused when the user has the WYSIWYG set, so we need to turn that off in the mobile style.
Add the following plugin:
Product: Lightweight Style Options
Hook Location: editor_toolbar_switch
Execution order: 5
PHP Code:
if (STYLEID==$vbulletin->options['ls_mobile_style'])
{
$vbulletin->userinfo[showvbcode]=0;
}
Give it a whirl, seems to have worked for me.
dartho
01-27-2012, 09:28 PM
Thanks Mark, I'm pretty sure this was resolved in the latest version of this style after finding a fix (initially with a plugin like yours) and then with a template edit (plugin no longer required) which was put into the latest version.
Check this post: https://vborg.vbsupport.ru/showthread.php?p=2275317#post2275317
Mark.B
01-27-2012, 09:36 PM
Thanks Mark, I'm pretty sure this was resolved in the latest version of this style after finding a fix (initially with a plugin like yours) and then with a template edit (plugin no longer required) which was put into the latest version.
Check this post: https://vborg.vbsupport.ru/showthread.php?p=2275317#post2275317
I did have a crack at that but still didn't manage to get it quite right....my issue was that I could get the quote passed through correctly, but only into a cut-down CKEditor (in which case, line breaks fail on iOS devices). Or, I could get the plain text box but no quote was passed through.
Admittedly I'm on an older version but none of the posted fixes worked correctly for me. I can't easily upgrade due to all the customising I've done.
In the finish I found adding the plugin and then using the original (pre-CKEditor) version of the mobile style's newreply template has sorted it for me.
dartho
01-27-2012, 09:37 PM
Ok I reimported the style but one issue i am having is I can't post as a guest, although I have guest posting enabled.
Also what is this box on the left?
See pic.
That box is vBuilletin's 'Autosave' - the latest version of this style shouldn't have it if you updated teh lightweight.css.php file, as you haven't, you'll need to do it yourself.
Edit the lightweight.css.php file, search for:
body
{
and add immediately above:
.hidden {display:none;}
That should do it.
I don't know how vBulletin's merge feature works - I've never had much luck with it. If you've customised templates it's best to note changes and reapply them. Best thing to do is install latest version as a fresh style and leave your existing one in place so you can reference it. The same applies for the lightweight.css.php file - this is where you would have made colour changes.
The Rocketeer
02-02-2012, 06:01 AM
If you wish to make this change manually, edit init.php and
search for:
elseif ($mobile_browser_advanced && $vbulletin->options['mobilestyleid_advanced'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with
elseif ($mobile_browser_advanced AND $vbulletin->options['mobilestyleid_advanced'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])
and search for
elseif ($mobile_browser && $vbulletin->options['mobilestyleid_basic'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with
elseif ($mobile_browser AND $vbulletin->options['mobilestyleid_basic'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])
This is not necessary for 4.1.10 users, is it? :confused:
dartho
02-02-2012, 09:52 AM
I think vBulletin will be fixing it in 4.1.11 ?
@Daffy - The logo is defined in the CSS so you can change there or overwrite the existing image file "images/misc/mobilelogo.png"
If you can;t see it being rendered, it could be that your brower doesn't support it, or if you have the options addon for this style you have enetered in text for the header which replaces the logo.
Aha!! That's why I don't see the logo.
I was wondering if it would be possible to add back a "mobile" adsense type thing Adsense Mobile Ad types here (https://support.google.com/adsense/bin/answer.py?hl=en&utm_medium=link&utm_campaign=ww-ww-et-asfe_&utm_source=aso&answer=185668)
I was also wondering if it was possible to put the option to go the Lite style at the top of the page on the standard layout so it is possible to switch between full and lite without having to fish in the styles drop down at the bottom.
The reason I ask this is because there are times when I use this style on my laptop/computer. Having a low bandwidth version is brilliant if you are stuck on dial up or using an overcrowded WiFi network.
Wonderful work thank you:)
Hippy
02-04-2012, 10:53 PM
dartho
I test most everything with this site http://validator.w3.org
can you review and confirm the changes made are good
thanks dartho
if all checks out, could you please add to your nexted version if you release one
when I ran this skin through that site
there was 14 Errors, 3 warning(s)
you can run your site as well .. need to make sure changing to the style you use that address with the Example-->"?styleid=6" at the end of the url so it does not read the default style
with the fixes I did to these 2 template
This document was successfully checked as XHTML 1.0 Transitional! Passed
header template
1st the changes I made here where
(){a&&a();b()}} to (){<();b()}}
and changed
(var i = 0; i < a.length; i++) to (var i in a)
<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>
<script type="text/javascript">
function fixImgs(b){var a=document.getElementsByTagName("img");for(var i in a)if(w=a[i].width,h=a[i].height,w>b)f=1-(w-b)/w,a[i].width=w*f,a[i].height=h*f}function addLoadEvent(b){var a=window.onload;window.onload=typeof window.onload!="function"?b:function(){<();b()}}addLoadEvent(function(){fix Imgs(200)});</script>
also in the navbar template
all the <input
I added a / at the end
changed template
<div class="navbar">
<vb:if condition="$vbulletin->options['ls_navbar_home']!=''">
<a href="{vb:raw $vbulletin->options['ls_navbar_home']}{vb:raw session.sessionurl_q}">{vb:raw vboptions.ls_home_link_text}</a>
<vb:else />
<a href="forum.php{vb:raw session.sessionurl_q}">{vb:rawphrase forum}</a>
</vb:if>
<vb:if condition="$show['member']">
<a href="search.php?{vb:raw session.sessionurl}do=getnew">{vb:rawphrase new_posts_nav}</a> <a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase user_cp}</a>
<vb:if condition="$vbulletin->userinfo[pmunread]>0">
<a id="newpm" href="private.php?{vb:raw session.sessionurl}">New PM</a>
</vb:if>
<vb:else />
<a href="search.php?{vb:raw session.sessionurl}do=getdaily">{vb:rawphrase todays_posts}</a>
</vb:if>
<a href="search.php{vb:raw session.sessionurl_q}">{vb:rawphrase search}</a></div>
<vb:if condition="!$show['member']">
{vb:raw ad_location.ad_navbar_below}
<div>
<form class="navbarbelow" action="login.php?do=login" method="post">
<input onclick="this.value='';" name="vb_login_username" class="windowbg" id="navbar_username" accesskey="1" value="Username" size="8" type="text" />
<input onclick="this.value='';" name="vb_login_password" class="windowbg" id="navbar_password" accesskey="2" value="" size="8" type="password" />
<input name="cookieuser" value="1" type="checkbox" />
<input name="securitytoken" value="guest" type="hidden" />
<input id="btn" value="Log in" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="3" type="submit" />
<input name="s" value="" type="hidden" />
<input name="do" value="login" type="hidden" />
<input name="vb_login_md5password" type="hidden" />
<input name="vb_login_md5password_utf" type="hidden" />
</form>
</div>
</vb:if>
<vb:if condition="$show['notices'] AND THIS_SCRIPT != 'register'"><form action="profile.php?do=dismissnotice" method="post" id="notices">
<input type="hidden" name="do" value="dismissnotice" />
<input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
<input type="hidden" name="url" value="{vb:raw return_link}" />
{vb:raw notices}
</form></vb:if>
<div>{vb:raw navbits.breadcrumb}</div>
dartho
02-04-2012, 11:05 PM
@F&R - There's nothing to stop you adding Ads in - the ad hooks etc are all there. I'm pretty sure you can just paste in the code you receive from Google
re: Full Site link - if you have a drop box, I assume you have the 'Options' addon installed? IN which case you should be able to select the option to have a link in the footer rather than a dropdown box
dartho
02-04-2012, 11:51 PM
@Hippy - Thanks. I closed off those input tags as well as some img tags in other templates. As for the script, rather than change it, I simply added comment codes insode the <script> tags:
<script type="text/javascript">
<!--
...
-->
</script>
as I wasn;t sure if the code changes would affect functionality.
At one stage in t he distant past, I think the original version of this style was XHTML Strict, but I got lazy over time :o
Hippy
02-05-2012, 02:23 AM
welcome
yes I remember some img tag but i forgot where they where ..
that was a different day I was testing and forgot to mention it here since I did forget about them..
I wasn't sure what the a&&a ment all I could come up with was &alt; I i could not come up with anything in a search ..
but I did find this http://stackoverflow.com/questions/7223697/for-var-i-0-i-a-length-i-vs-for-var-i-in-a this is why I change that code..
keep me posted bud and again thanks for the fantastic mobil (better that vb's "IMO") style ;)
if you comment out the script will the image still resize I test what I did and they still do..
if thats what it's for..
dartho
02-05-2012, 06:47 AM
if you comment out the script will the image still resize I test what I did and they still do..
if thats what it's for..
Yep the comment is only meant to stop the bowser trying to render it whilst allowing the script engine to still execute the script - or something like that ...
@F&R - There's nothing to stop you adding Ads in - the ad hooks etc are all there. I'm pretty sure you can just paste in the code you receive from Google
re: Full Site link - if you have a drop box, I assume you have the 'Options' addon installed? IN which case you should be able to select the option to have a link in the footer rather than a dropdown box
Thanks for the reply, yes I have the options add-in installed and it does display "desktop" on the Lightweight style, BUT what I was asking is how I can put the reciprocal button on the desktop style to quickly go to the lightweight style when it is loading the desktop style.
On the ads stuff, ok great, I will have a play.
I do have one more problem. On my windows phone 7 it displays fine and when I change pages, the lightweight style is still in force. However on an iPhone and on a Nokia Xpress Music, when you change page (to go into thread for example) it reverts to the desktop style.
I have uninstalled the style and the options and then reinstalled them, cleared system cache and updated styles. The users have cleared their caches and logged in again, but it still reverts to the desktop style when you change pages. Any ideas? As I said my Windows Phone 7 behaves as expected, iPhones don't.
dartho
02-05-2012, 12:13 PM
@F&R - Try editing the headinclude template and removing the line
<base href="{vb:raw vboptions.bburl}/" />
In regards to link - try editing the header template in your default style, search for:
<li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}">{vb:rawphrase help}</a></li>
and add the following immediately before it:
<li><a href="forum.php?styleid=1">Lightweight Style</a></li>
that what type of thing you are after?
Hippy
02-05-2012, 12:26 PM
@Hippy - Thanks. I closed off those input tags as well as some img tags in other templates. As for the script, rather than change it, I simply added comment codes insode the <script> tags:
<script type="text/javascript">
<!--
...
-->
</script>
as I wasn;t sure if the code changes would affect functionality.
At one stage in t he distant past, I think the original version of this style was XHTML Strict, but I got lazy over time :o
can you add the edit you did I am not quite sure how you ment to do, this are ..... the code ? and just add the code in replace or the dots there in your example ?
dartho
02-05-2012, 09:59 PM
search headinclude template for
<script type="text/javascript">
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Cat Arriola | http://astrodiva.journalspace.com/ */
function fixImgs(maxW) {
var pix=document.getElementsByTagName('img');
for (i=0; i<pix.length; i++) {
w=pix[i].width;
h=pix[i].height;
if (w > maxW) {
f=1-((w - maxW) / w);
pix[i].width=w * f;
pix[i].height=h * f;
}
}
}
// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent(function() {
fixImgs(200); // ('element ID', maximum width)
});
</script>
and replace with :
<script type="text/javascript">
<!--
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Cat Arriola | http://astrodiva.journalspace.com/ */
function fixImgs(maxW) {
var pix=document.getElementsByTagName('img');
for (i=0; i<pix.length; i++) {
w=pix[i].width;
h=pix[i].height;
if (w > maxW) {
f=1-((w - maxW) / w);
pix[i].width=w * f;
pix[i].height=h * f;
}
}
}
// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent(function() {
fixImgs(200); // ('element ID', maximum width)
});
-->
</script>
this is an optimised version of the above code block you can use instead (optimised for size) I should probably move it to an external file so that browsers can cache it
<script type="text/javascript">
<!--
function addLoadEvent(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){if (b){b()}a()}}}function fixImgs(a){var b=document.getElementsByTagName("img");for(i=0;i<b.length;i++){w=b[i].width;h=b[i].height;if(w>a){f=1-(w-a)/w;b[i].width=w*f;b[i].height=h*f}}}addLoadEvent(function(){fixImgs(200) })
-->
</script>
@F&R - Try editing the headinclude template and removing the line
<base href="{vb:raw vboptions.bburl}/" />
In regards to link - try editing the header template in your default style, search for:
<li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}">{vb:rawphrase help}</a></li>
and add the following immediately before it:
<li><a href="forum.php?styleid=1">Lightweight Style</a></li>
that what type of thing you are after?
Thanks, will give this a go tomorrow... the styleid will be 2 for me I guess.
The style not sticking apparently is a known issue due to be fixed in 4.1.11 but will give your fix a go first, might be easier. but it's 11.30pm here so time for bed. Night and thanks for the help.
Salleen
02-05-2012, 10:32 PM
not working @ 4.1.10
Hippy
02-06-2012, 01:20 AM
search headinclude template for
<script type="text/javascript">
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Cat Arriola | http://astrodiva.journalspace.com/ */
function fixImgs(maxW) {
var pix=document.getElementsByTagName('img');
for (i=0; i<pix.length; i++) {
w=pix[i].width;
h=pix[i].height;
if (w > maxW) {
f=1-((w - maxW) / w);
pix[i].width=w * f;
pix[i].height=h * f;
}
}
}
// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent(function() {
fixImgs(200); // ('element ID', maximum width)
});
</script>
and replace with :
<script type="text/javascript">
<!--
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Cat Arriola | http://astrodiva.journalspace.com/ */
function fixImgs(maxW) {
var pix=document.getElementsByTagName('img');
for (i=0; i<pix.length; i++) {
w=pix[i].width;
h=pix[i].height;
if (w > maxW) {
f=1-((w - maxW) / w);
pix[i].width=w * f;
pix[i].height=h * f;
}
}
}
// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent(function() {
fixImgs(200); // ('element ID', maximum width)
});
-->
</script>
this is an optimised version of the above code block you can use instead (optimised for size) I should probably move it to an external file so that browsers can cache it
<script type="text/javascript">
<!--
function addLoadEvent(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){if (b){b()}a()}}}function fixImgs(a){var b=document.getElementsByTagName("img");for(i=0;i<b.length;i++){w=b[i].width;h=b[i].height;if(w>a){f=1-(w-a)/w;b[i].width=w*f;b[i].height=h*f}}}addLoadEvent(function(){fixImgs(200) })
-->
</script>
my headerinclude it
<vb:comment>
<meta name="viewport" content="width=320,user-scalable=yes,initial-scale=1.0" />
</vb:comment>
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="HandheldFriendly" content="true" />
<meta name="MobileOptimized" content="device-width" />
<meta http-equiv="Content-Type" content="text/html; charset={vb:stylevar charset}" />
<meta id="e_vb_meta_bburl" name="vb_meta_bburl" content="{vb:raw vboptions.bburl}" />
<vb:if condition="$show['threadinfo']">
<vb:elseif condition="$show['foruminfo']" />
<meta name="keywords" content="{vb:raw foruminfo.title_clean}, {vb:raw vboptions.keywords}" />
<meta name="description" content="<vb:if condition="$pagenumber > 1">{vb:rawphrase page_x, $pagenumber}-</vb:if>{vb:raw foruminfo.description_clean}" />
<vb:else />
<meta name="keywords" content="{vb:raw vboptions.keywords}" />
<meta name="description" content="{vb:raw vboptions.description}" />
</vb:if>
<link rel="stylesheet" href="{vb:raw vboptions.bburl}/lightweight.css.php" type="text/css" />
<base href="{vb:raw vboptions.bburl}/" />
The Rocketeer
02-06-2012, 03:13 AM
@ Hippy, Could you please list / put all your and moof's edits currently required in one new post with instructions and everything? So we all can use that until vBulletin 4.1.11 fixes these issues. It should also make it easier for Dartho to update his style and make the necessary changes.
I have also had someone work on my mobile styles Homepage(as in the CMS home) and to be honest it looks very decent now, I will post my edits soon so some of you can get the cms home page working with your mobile style. :)
Hi Dartho
your suggestion to remove <base href="{vb:raw vboptions.bburl}/" /> from the headinclude didn't work I'm afraid.
there is this vBulletin bug (http://tracker.vbulletin.com/browse/VBIV-13851) which has a fix, but I am unsure where to implement it in your code or even if it applies!
Thanks for the header idea, I have since moved it down into some white space where pudgy fingers on a small screen can hit it without zooming.
dartho
02-06-2012, 09:36 PM
Hi Dartho
your suggestion to remove <base href="{vb:raw vboptions.bburl}/" /> from the headinclude didn't work I'm afraid.
there is this vBulletin bug (http://tracker.vbulletin.com/browse/VBIV-13851) which has a fix, but I am unsure where to implement it in your code or even if it applies!
Thanks for the header idea, I have since moved it down into some white space where pudgy fingers on a small screen can hit it without zooming.
Check here for a fix to that:
https://vborg.vbsupport.ru/showthread.php?p=2289299#post2289299
My bad, I was searching in templates, forgot to read the instructions.... :) Works now, ta muchly!
sevak
02-07-2012, 06:53 PM
not working on 4.1.10 saying its only for 4.1.8..:(
Ozymandyus
02-07-2012, 07:29 PM
not working on 4.1.10 saying its only for 4.1.8..:(
Just click the option to ignore version when you're doing the import. Problem solved.
Hippy
02-07-2012, 08:20 PM
working 100% with all versions including vb4.1.10
Hostboard
02-12-2012, 12:29 AM
My users are really enjoying this :) Some of them however still want to use the "PC Style". When they select this the style changes, but upon their next selection it reverts back to the mobile version. Any way to change that behavior?
Hippy
02-12-2012, 12:57 AM
My users are really enjoying this :) Some of them however still want to use the "PC Style". When they select this the style changes, but upon their next selection it reverts back to the mobile version. Any way to change that behavior?
https://vborg.vbsupport.ru/showthread.php?p=2289299#post2289299
I don't even see pc style on mine but I know this it what dartho says will fix it a couple posts back
Breixo
02-15-2012, 07:54 AM
It also shows an "Invalid File Specified" message when trying to install this style on vB4.1.10, any idea why?
Thanks!
dartho
02-15-2012, 12:00 PM
clear your browser cache and download again and make sure you are using style manager, not product manager
Breixo
02-15-2012, 12:24 PM
Ups! Sorry, I just used the product manager. Now it works.
thanks!
wtfaatp
02-17-2012, 07:36 AM
If you wish to make this change manually, edit init.php and
search for:
elseif ($mobile_browser_advanced && $vbulletin->options['mobilestyleid_advanced'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with
elseif ($mobile_browser_advanced AND $vbulletin->options['mobilestyleid_advanced'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])
and search for
elseif ($mobile_browser && $vbulletin->options['mobilestyleid_basic'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with
elseif ($mobile_browser AND $vbulletin->options['mobilestyleid_basic'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])
People are saying this logs them our every time the make a selection on the website..?
Basicly if they switch over the the "Full Site" they cant stay logged in> :\ Get the thank you for logging in and everything but when the return to the forum.php they are logged out.
dartho
02-17-2012, 08:14 AM
Are you saying this change to init.php does that?
wtfaatp
02-17-2012, 12:09 PM
No one said anything until I did it..
Either that or no one noticed till recent..
Either way it is happening tested this morning :\
dartho
02-17-2012, 01:45 PM
Those changes to init.php are direct from vBulletin to fix a vBuletin bug - nothing to do with me as such. Try reverting the changes and see what happens then.
deverill2010
02-19-2012, 05:23 PM
Dartho for some reason I am having trouble with this style and another mod ESB - http://www.midwiferyonline.co.uk/forum.php?styleid=8
I don't get why the sidebar is showing up in the mobile style..?
dartho
02-19-2012, 09:03 PM
Mods will generally apply to all styles, plugins don;t discriminate. If you have this sidebar mod https://vborg.vbsupport.ru/showthread.php?t=233871 it apparenly has options to disable it within certain styles. Otherwise, link me to which one you are using.
deverill2010
02-19-2012, 09:06 PM
Yep that's the one I have but the gold version. I'll have a look through the options now to see if I can find it.
deverill2010
02-19-2012, 09:09 PM
Ah lovely, I've done it. Ta
Hippy
02-19-2012, 11:14 PM
dartho..........................
Just wanted to shout out here and thank you once again for the great style (kills vb's ) :) and your great support...
deverill2010
02-20-2012, 09:02 AM
My Iphone doesn't detect this style when viewing in safari? How Can I get this to be enabled on all mobile phones but exclude the ipad?
I only want users to use this style or use my tapatalk app. I really don't want any mobile phones viewing the desktop version of my site as its is just not configured for phones.
Also did you manage to include the CMS? I know you talked about it quite a while back.
dartho
02-20-2012, 10:01 AM
WHat are you using for detection? There are bugs with teh detection side of things under the last few versions of vBulletin 4. vBulletin's fix for this is a previous page https://vborg.vbsupport.ru/showthread.php?p=2289299#post2289299
CMS is not straight forward as far as I can tell - go back a few pages and you'll find an attached CMS style you can try out (in a test style or site! - Not live )
deverill2010
02-20-2012, 10:14 AM
I have no idea what I'm using for detection.. Lol.
I originally installed this style like a year ago, so I can't remember what I've done but just recently deleted the style as I originally merged the newesy with the oldest and it screwed up. I have just reinstalled the latest style.
What detection script should I be using? (Will have a look at that link now). ty
dartho
02-20-2012, 11:19 AM
Nowadays I generaly tell people to use vBulletin's built in one - then I don't have to support it :)
@ngel
02-20-2012, 11:22 AM
Nowadays I generaly tell people to use vBulletin's built in one - then I don't have to support it :)
lol you've done a great job
I wish I had the time to customize it the way I want it...
deverill2010
02-20-2012, 12:01 PM
Ok set up vb detection script but my iPhone still doesnt automatically use your style.
Is this where I need to apply these fixes? - https://vborg.vbsupport.ru/showpost.php?p=2289299&postcount=746
dartho
02-20-2012, 10:01 PM
Yep - that's the one
deverill2010
02-20-2012, 10:32 PM
Yep edited but the iPhone still isn't being picked up and transferred to the your light skin even though I have that set for old and new devices and I have it so users can't change styles so it's on force but it still isn't showing.
dartho
02-22-2012, 05:03 AM
Do you have the styles checked as user selectable? (ticks next to their name in Style Manager)
deverill2010
02-22-2012, 06:13 AM
Yep my desktop n mobile are ticked in style manager.
dartho
02-22-2012, 09:30 AM
I'm not sure what could be causing your issue. I could look at your site if you like?
deverill2010
02-22-2012, 12:12 PM
If you could dartho that would be great.
I've had someone on the VB forum say they can view my site in the mobile style (I'm not sure what phone they are using) but the style doesn't come up on my iPhone 3GS..
I'll PM you now. Ty
paul07thebig
02-24-2012, 12:23 AM
Only the homepage of the forums works for me? I click a thread and it goes to my normal style. Any ideas?
dartho
02-24-2012, 06:26 AM
Yep - this: http://tracker.vbulletin.com/browse/VBIV-13851
Which I belive can be worked around by this https://vborg.vbsupport.ru/showthread.php?p=2289299#post2289299
Nirjonadda
02-24-2012, 12:01 PM
vBulletin Message
This file was created using a different version of vBulletin from the one you are running.
Your version: 4.1.10
File version: 4.1.8
dartho
02-24-2012, 12:19 PM
Correct.
However, should you wish to install this you can select 'Yes' on the "Ignore Style Version" option.
ejup2009
02-26-2012, 04:10 AM
magnifico trabajo.. funciona maravillosamente bien en la versiòn 4.1.9.. la pagina web se visualiza muy rapida desde un BlackBerry.
Gracias... excelente aporte
ejup2009
02-26-2012, 04:13 AM
vBulletin Message
This file was created using a different version of vBulletin from the one you are running.
Your version: 4.1.10
File version: 4.1.8
edit file vbulletin-style-4.1.8-lightweight-1.0.3.xml using notepad and modify 4.1.8 by 4.1.10.
note : excuseme but I dont very much speak English. Thanks you.
paul07thebig
02-26-2012, 08:19 PM
Where would I found init.php?
Thanks
deverill2010
02-26-2012, 08:21 PM
In your includes folder.
Hippy
02-26-2012, 08:54 PM
Where would I found init.php?
Thanks
includes folder
sadiq6210
02-28-2012, 05:55 AM
Can I use it in RTL forum?
dartho
02-28-2012, 07:34 AM
I have seen it installed in RTL forums, and it *looked* like it was working (I cannot read arabic) so I would guess the answer is yes.
ringo88
02-28-2012, 11:25 PM
Great Work!!
But I have a question. Appereantly since I installed this skin and made it the default choice for mobile devices I had a decrease in the mobile visits count from Google Analytics. I put the code in the headerinclude_bottom instead of headerinclude as suggested in many places (it works well with the other normal styles).
Is it right? Or is that the problem?? In which template do I have to put the G.Analytics code?
Thank you very much.
P.S.: Any way to show the ajax chatbox in this style??
dartho
02-29-2012, 04:01 AM
Dunno - check your site in the lightweight style and see if the Google Analytics code is there or not. I put it in the footer on mine, but I guess you could put it in the header
re: chatbox - probably, let us know when you work it out as others have asked from time to time.
Bounce
03-01-2012, 07:59 PM
some nice features in the newer version dartho,
how do I add a "PM" button, next to edit etc?
Bounce
03-01-2012, 08:12 PM
also the "whats going on" section is missing now, and how do i remove the adverts :(
Hippy
03-01-2012, 08:40 PM
also the "whats going on" section is missing now, and how do i remove the adverts :(
search the thread your answer is in here not to far back or add the addon posted in the first post
dartho
03-01-2012, 10:29 PM
also the "whats going on" section is missing now, and how do i remove the adverts :(
There shouldn't be any ads and the what's going on should be working in the latest version. Ads were left in by mistake and an updated version with them removed was uploaded within an hour or so (as soon as I found out). The whats going on box should also work in the latest version?
autoescala
03-02-2012, 11:35 AM
Today, I test the premium mobile style included in the new release 4.1.11 of VB, i don't like!!! Its ugly and heavy load on Android Galaxy S versus dartho light skin, I prefer the dartho style.
The only thing I don't know how to change is the underline style of the text in this skin, it would be more beautyful if you improve a lite the boxes when u are inside a sub-forum.
Some similar like this: http://www.bowlandcentral.com/forum/index.php?styleid=167
this custom style based on your work, is very very nice....
Bounce
03-02-2012, 08:20 PM
There shouldn't be any ads and the what's going on should be working in the latest version. Ads were left in by mistake and an updated version with them removed was uploaded within an hour or so (as soon as I found out). The whats going on box should also work in the latest version?
thanks mate, any thoughts on post 826
https://vborg.vbsupport.ru/showpost.php?p=2305143&postcount=826
dartho
03-02-2012, 11:56 PM
Where did you want the PM button - next to the edit, reply buttons on postbit?
Hippy
03-03-2012, 12:47 AM
I would like to add a post thank..
what code would you need to see from that mod ?
thanks
dartho
03-03-2012, 02:41 AM
See this post for Abe1's Post Thanks Hack integration: https://vborg.vbsupport.ru/showthread.php?p=2305643#post2305643
This probably needs a bit of tweaking, but here goes:
edit post_thanks_box template in the lightweight style and replace contents with:
<div class="windowbg" id="post_thanks_box_$post[postid]">$post_thanks_box</div>
edit post_thanks_button template in lightweight style and replace contents with:
<a id="btn" href="post_thanks.php?$session[sessionurl]do=post_thanks_add&p=$post[postid]&securitytoken=$bbuserinfo[securitytoken]" id="post_thanks_button_$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give($post[postid], <if condition="$vboptions[post_groan_integrate]">true<else />false</if>);"</if> <if condition="$display_thanks_image == 'none'">style="display:none"</if> rel="nofollow">Thanks</a>
edit post_thanks_postbit template in the lightweight style and replace contents with:
<if condition="$post['post_thanks_amount'] == 1">
<phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase>
<else />
<phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></if>
$post[post_thanks_bit]
edit postbit and postbit_legacy templates in lightweight style , search for
<img src="$stylevar[imgdir_misc]/moderated_small.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
</div>
</if>and replace with
<img src="$stylevar[imgdir_misc]/moderated_small.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
$template_hook[postbit_controls]
</div>
</if>
$template_hook[postbit_end]
I think that should just about do it - assuming it is this hack: https://vborg.vbsupport.ru/showthread.php?t=165673 that you have installed
caveat: this may introduce other hacks into the lightweight style which use the postbit_end and postbit_control hooks
Hippy
03-03-2012, 02:53 AM
yep will test it out in the am .. thanks for your time dartho
Filgga
03-03-2012, 02:54 AM
^^^^
Thanks dartho for the above info; can the vBSEO Like system be added in the same manner?
Filgga
03-03-2012, 03:01 AM
Nowadays I generaly tell people to use vBulletin's built in one - then I don't have to support it :)
Your version for detection of devices was superb, used to detect iPad either. The vBulletin's buit-in one does not.
dartho
03-03-2012, 04:03 AM
^^^^
Thanks dartho for the above info; can the vBSEO Like system be added in the same manner?
Link me to a copy and I can look when I get a chance
Hippy
03-03-2012, 04:10 AM
This probably needs a bit of tweaking, but here goes:
edit post_thanks_box template in the lightweight style and replace contents with:
<div class="windowbg" id="post_thanks_box_$post[postid]">$post_thanks_box</div>
edit post_thanks_button template in lightweight style and replace contents with:
<a id="btn" href="post_thanks.php?$session[sessionurl]do=post_thanks_add&p=$post[postid]&securitytoken=$bbuserinfo[securitytoken]" id="post_thanks_button_$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give($post[postid], <if condition="$vboptions[post_groan_integrate]">true<else />false</if>);"</if> <if condition="$display_thanks_image == 'none'">style="display:none"</if> rel="nofollow">Thanks</a>
edit post_thanks_postbit template in the lightweight style and replace contents with:
<if condition="$post['post_thanks_amount'] == 1">
<phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase>
<else />
<phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></if>
$post[post_thanks_bit]
edit postbit and postbit_legacy templates in lightweight style , search for
<img src="$stylevar[imgdir_misc]/moderated_small.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
</div>
</if>and replace with
<img src="$stylevar[imgdir_misc]/moderated_small.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
$template_hook[postbit_controls]
</div>
</if>
$template_hook[postbit_end]
I think that should just about do it - assuming it is this hack: https://vborg.vbsupport.ru/showthread.php?t=165673 that you have installed
caveat: this may introduce other hacks into the lightweight style which use the postbit_end and postbit_control hooks
the code posted is old
anyway updated to vb4
would be I guess (below)
but still don't work
post_thanks_box
<div class="windowbg" id="post_thanks_box_{vb:raw post.postid}">
{vb:raw post_thanks_box}
</div>
post_thanks_button
<a id="btn" href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&p={vb:raw post.postid}&securitytoken={vb:raw bbuserinfo.securitytoken}" id="post_thanks_button_{vb:raw post.postid}"<vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give({vb:raw post.postid}, <vb:if condition="$vboptions[post_groans_integrate]">true<vb:else />false</vb:if>);"</vb:if> <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> rel="nofollow" class="post_thanks_button">{vb:rawphrase post_thanks_thanks}</a>
post_thanks_postbit
<vb:if condition="$post['post_thanks_amount'] == 1">
{vb:rawphrase post_thanks_user_says, {vb:raw post.username}}
<vb:else />
{vb:rawphrase post_thanks_users_say, {vb:raw post.post_thanks_amount_formatted}, {vb:raw post.username}}
</vb:if>
{vb:raw post.post_thanks_bit}
postbit and postbit_legacy templates in lightweight style I don't have
<img src="$stylevar[imgdir_misc]/moderated_small.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
</div>
</if>
and the hooks would be
{vb:raw template_hook.postbit_controls}
{vb:raw template_hook.postbit_end}
but the hooks are not working from what I can tell.. or something else..
:confused:
dartho
03-03-2012, 04:40 AM
ah - sorry, I did that under 3.8.7 as that's what I use :)
I will have look a tthe vb4 vesion
dartho
03-03-2012, 07:22 AM
Should be able to get something up tonight for this...
thenamesgould
03-03-2012, 09:36 AM
Dartho, if you have the time and inclination, it would be amazing if you could have a look at adding this thanks hack for vb4 ... https://vborg.vbsupport.ru/showthread.php?t=243510
dartho
03-03-2012, 11:12 AM
Integrating Abe1's post thanks add-on (https://vborg.vbsupport.ru/showthread.php?t=231666) into the lightweight style.
replace the following templates with the code provided (in the lightweight style only!!)
post_thanks_box
<if condition="$post_thanks_box"><div class="windowbg" id="post_thanks_box_$post[postid]">$post_thanks_box</div></if>
post_thanks_button
<a id="btn" href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&p={vb:raw post.postid}&securitytoken={vb:raw bbuserinfo.securitytoken}" id="post_thanks_button_{vb:raw post.postid}"<vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give({vb:raw post.postid}, <vb:if condition="$vboptions[post_groan_integrate]">true<vb:else />false</vb:if>);"</vb:if> <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> rel="nofollow" class="post_thanks_button">{vb:rawphrase post_thanks_thanks}</a>
post_thanks_postbit
<vb:if condition="$post['post_thanks_amount'] == 1">
{vb:rawphrase post_thanks_user_says, {vb:raw post.username}}
<vb:else />
{vb:rawphrase post_thanks_users_say, {vb:raw post.post_thanks_amount_formatted}, {vb:raw post.username}}
</vb:if>
{vb:raw post.post_thanks_bit}
Edit both the postbit & postbit_legacy templates as follows
Search for:
<vb:if condition="$post['editlink']"><a id="btn" href="{vb:raw post.editlink}">{vb:rawphrase edit}</a></vb:if>
Add the following immediately above:
{vb:raw template_hook.postbit_controls}
Then go to end of template and paste in:
{vb:raw template_hook.postbit_end}
and your done!
dartho
03-03-2012, 11:24 AM
Just noticed something else with the style in general - my last update only included updates to the postbit_legacy template which should have been made to both postbit and postbit_legacy (they are meant to be identical). I suggest overwriting the postbit template copying with the contents of the postbit_legacy template.
Hippy
03-03-2012, 11:59 AM
Integrating Abe1's post thanks add-on (https://vborg.vbsupport.ru/showthread.php?t=231666) into the mobile style.
replace the following templates with the code provided (in the lightweight style only!!)
post_thanks_box
<div class="windowbg" id="post_thanks_box_{vb:raw post.postid}">{vb:raw post_thanks_box}</div>
post_thanks_button
<a id="btn" href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&p={vb:raw post.postid}&securitytoken={vb:raw bbuserinfo.securitytoken}" id="post_thanks_button_{vb:raw post.postid}"<vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give({vb:raw post.postid}, <vb:if condition="$vboptions[post_groan_integrate]">true<vb:else />false</vb:if>);"</vb:if> <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> rel="nofollow" class="post_thanks_button">{vb:rawphrase post_thanks_thanks}</a>
post_thanks_postbit
<vb:if condition="$post['post_thanks_amount'] == 1">
{vb:rawphrase post_thanks_user_says, {vb:raw post.username}}
<vb:else />
{vb:rawphrase post_thanks_users_say, {vb:raw post.post_thanks_amount_formatted}, {vb:raw post.username}}
</vb:if>
{vb:raw post.post_thanks_bit}
Edit both the postbit & postbit_legacy templates as follows
Search for:
<vb:if condition="$post['editlink']"><a id="btn" href="{vb:raw post.editlink}">{vb:rawphrase edit}</a></vb:if>
Add the following immediately above:
{vb:raw template_hook.postbit_controls}
Then go to end of template and paste in:
{vb:raw template_hook.postbit_end}
and your done!
your the best .. worked like a charm
I have dbtech_bookmark and thread system and like you said this will bring on other mods
now showing a image but not working from what I can tell
this is the code ..in template dbtech_bookmark_post
whats do I change ..and will there be other changes to other templates
thanks again
<img name="newpostbookmarklink" data-hasbookmarked="{vb:var hasBookmarked}" data-postid="{vb:var post.postid}" data-bookmark="dbtech/bookmark/images/post.png" data-bookmarked="dbtech/bookmark/images/delete.png" src="<vb:if condition="$hasBookmarked">dbtech/bookmark/images/delete.png<vb:else />dbtech/bookmark/images/post.png</vb:if>" alt="{vb:raw phrase}" style="cursor:pointer; vertical-align:middle;" />
<span class="seperator"> </span>
dartho
03-03-2012, 12:03 PM
You could just delete the contents of that template in the lightweight style to stop it showing, same should work for most other add-ons that start appearing because of the addition of hooks.
BTW - I modified the code for the post_thanks_box template above so that it only shows the post thanks box when someone has actually posted thanks
dartho
03-03-2012, 12:09 PM
Alternatively if you wanted to integrate the post thanks hack, and not put the hooks in, you can put the code from post_thanks_box in place of {vb:raw template_hook.postbit_end} in the postbit templates and put the code from post_thanks_button in place of {vb:raw template_hook.postbit_controls}
Hippy
03-03-2012, 12:14 PM
You could just delete the contents of that template in the lightweight style to stop it showing, same should work for most other add-ons that start appearing because of the addition of hooks.
BTW - I modified the code for the post_thanks_box template above so that it only shows the post thanks box when someone has actually posted thanks
thanks you!!!!!!!!!!!!!!
Alternatively if you wanted to integrate the post thanks hack, and not put the hooks in, you can put the code from post_thanks_box in place of {vb:raw template_hook.postbit_end} in the postbit templates and put the code from post_thanks_button in place of {vb:raw template_hook.postbit_controls}
got ya that bud ..
Hippy
03-03-2012, 12:37 PM
if you add the contents from post_thanks_button in place of {vb:raw template_hook.postbit_controls}
the button shows up on everyone ..
If you have it set so you can thank yourself it is showing
then if clicked you get the you don't have permission to do this act or what ever it says.
any ideas would be greatly appreciated
dartho
03-03-2012, 12:37 PM
The only thing I don't know how to change is the underline style of the text in this skin, it would be more beautyful if you improve a lite the boxes when u are inside a sub-forum.
Some similar like this: http://www.bowlandcentral.com/forum/index.php?styleid=167
this custom style based on your work, is very very nice....
To remove underlines and make style changes etc, edit the CSS file. To remove underlines form ALL linkes, edit the lightweight.css.php file, search for
body
{
and add
a {text-decoration:none;}
immediately above it.
I have tried to leave the style as simple as possible, whilst still being functional, to make it easy for admins to tailor it for their site as Mark has done.
dartho
03-03-2012, 12:43 PM
if you add the contents from post_thanks_button in place of {vb:raw template_hook.postbit_controls}
the button shows up on everyone ..
If you have it set so you can thank yourself it is showing
then if clicked you get the you don't have permission to do this act or what ever it says.
any ideas would be greatly appreciated
Ah - I didn't think oif permissiosn etc....
try wrapping the following conditional around it:
<vb:if condition="$display_thanks_image=='none'">
<a id="btn" href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&p={vb:raw post.postid}&securitytoken={vb:raw bbuserinfo.securitytoken}" id="post_thanks_button_{vb:raw post.postid}"<vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give({vb:raw post.postid}, <vb:if condition="$vboptions[post_groan_integrate]">true<vb:else />false</vb:if>);"</vb:if> <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> rel="nofollow" class="post_thanks_button">{vb:rawphrase post_thanks_thanks}</a>
</vb:if>
tareqbd
03-03-2012, 02:53 PM
Well bro, I made the thanks work. But user has to press the button 2/3 times and refresh the page. Because I am using hide option integrated with Abe1's thanks hack, in normal version once user press thank, the hidden content automatically show without refreshing the page but in mobile version it needs to refresh and press thanks more times. Can I make it ajax based or if I can change anything which will make it automatically and user will get rid of pressing the button every time or refresh the page.
Thank you.
dartho
03-03-2012, 11:27 PM
I don't know what the hide option is, the above code seems to work fine from my mobile phone.
tareqbd
03-04-2012, 01:16 AM
I don't know what the hide option is, the above code seems to work fine from my mobile phone.
https://vborg.vbsupport.ru/showthread.php?t=271979
bro above is the mod I am talking about. thanks.
Hello dartho
I have just upgraded to vb4 4.1.11
In order to avoid the moaning in control panel about templates, I deleted the lightweight style, upgraded to 4.1.11 and then uploaded the lightweight style and the options add on.
Thing is, it doesn't look anything like what it did before. Gone is the desktop button at the top, adding a title to the options doesn't remove the logo, and the logo is vbulletin not your mobile logo.
What on earth did I do wrong? Or is it 4.1.11 doing something?
Uploaded again and this time it worked... seems that what I was looking at was the vb4 version... not as nice as yours.
Bounce
03-05-2012, 07:33 PM
Where did you want the PM button - next to the edit, reply buttons on postbit?
yes please :up:
I'm also having problems with a blue text that I haveon the usernames and forum titles, i've had a look in the css but cant see anything :(
Crotan
03-05-2012, 11:03 PM
Thank you for providing this lightweight style, and keeping it supported. Vbulletin should of had their "premium" mobile style available to license holders well before 4.1.11
For the time being that's what I'm using because of how it handles cms articles, where as this style doesn't.
dartho
03-06-2012, 12:01 AM
yes please :up:
I'm also having problems with a blue text that I haveon the usernames and forum titles, i've had a look in the css but cant see anything :(
re: blue text - try edit the CSS file, search for:
.forumold a,.forumnew a,.forumlink aand replace with
.forumold a,.forumnew a,.forumlink a,.forumold_lock a, .forumnew_lock a
as for the PM button, I'm havbing issues getting the PM recipient to be recognised - I'll have a look and get back to you
sportsfroma2
03-06-2012, 03:23 AM
I just upgraded from vb 4.1.10 to 4.1.11, lightweight style is still running great in it... Although I wasn't exactly just how to handle the template merge issues (I reverted a couple, then I figured I shouldn't have done that), so I just reinstalled the style to make the warnings go away, lol
dartho
03-06-2012, 09:38 AM
That's one way of doing it. From the FAQ on post #2 (https://vborg.vbsupport.ru/showthread.php?p=2089187#post2089187)
Q. How do I get rid of all those template out of date messages in control panel home?
A. You could edit and save each one without actually making changes or you could run the following query on your database:
UPDATE template SET version = '4.1.9', mergestatus = 'none' WHERE styleid=XX;
change XX to the styleid number of the mobile style and 4.1.9 to whatever the version number currently is.
Bounce
03-06-2012, 03:22 PM
re: blue text - try edit the CSS file, search for:
.forumold a,.forumnew a,.forumlink aand replace with
.forumold a,.forumnew a,.forumlink a,.forumold_lock a, .forumnew_lock a
as for the PM button, I'm havbing issues getting the PM recipient to be recognised - I'll have a look and get back to you
Thanks will try that when I get in and thanks if you could, I have a piece of code from another add on that I have on the style but it doesn't look right and isn't like a button!
Posted from my moby phone
:D
Hippy
03-07-2012, 01:17 AM
dartho how can last activity be added to whos online
thnaks
dartho
03-07-2012, 06:50 AM
Isn;tthat already there? Here's my whosonlinebit template
<div>
<span><vb:if condition="$show['loggedinuser']">
<a href="{vb:link member, {vb:raw userinfo}}">{vb:raw userinfo.musername}</a>{vb:raw userinfo.hidden}<vb:if condition="$show['buddy']">+</vb:if>
<vb:else />
<vb:if condition="$show['spider']">{vb:raw spidertype}<vb:else />{vb:raw userinfo.musername}</vb:if>
</vb:if></span>»
<span>
{vb:raw userinfo.action}
<vb:if condition="$show['where']">
{vb:raw userinfo.where}
</vb:if>
</span> »
<vb:if condition="$show['ip']">
<span>
{vb:raw userinfo.host}
</span>
</vb:if>
</div>
Hippy
03-08-2012, 04:09 AM
last activity meaning the time.. not the place ..
my template must of been from a older version..
but it did the same thing..
but with your still no time.
<vb:comment>
<vb:if condition="exec_switch_bg()"></vb:if>
<div>
<vb:if condition="$show['spider']">{vb:raw spidertype}
<vb:else />
{vb:raw userinfo.musername}
</vb:if>
- {vb:raw userinfo.action}
</div>
</vb:comment>
<div>
<span><vb:if condition="$show['loggedinuser']">
<a href="{vb:link member, {vb:raw userinfo}}">{vb:raw userinfo.musername}</a>{vb:raw userinfo.hidden}<vb:if condition="$show['buddy']">+</vb:if>
<vb:else />
<vb:if condition="$show['spider']">{vb:raw spidertype}<vb:else />{vb:raw userinfo.musername}</vb:if>
</vb:if></span>»
<span>
{vb:raw userinfo.action}
<vb:if condition="$show['where']">
{vb:raw userinfo.where}
</vb:if>
</span> »
<vb:if condition="$show['ip']">
<span>
{vb:raw userinfo.host}
</span>
</vb:if>
</div>
dartho
03-08-2012, 09:18 AM
Slip the following in there somewhere
» <span>{vb:raw userinfo.time}</span>
Maybe immediately after <span><vb:if condition="$show['loggedinuser']">
<a href="{vb:link member, {vb:raw userinfo}}">{vb:raw userinfo.musername}</a>{vb:raw userinfo.hidden}<vb:if condition="$show['buddy']">+</vb:if>
<vb:else />
<vb:if condition="$show['spider']">{vb:raw spidertype}<vb:else />{vb:raw userinfo.musername}</vb:if>
</vb:if></span>
Hippy
03-08-2012, 11:02 AM
Thanks dartho I'll give it a go when I GET home. Thanks
autoescala
03-09-2012, 08:05 AM
Dear Dartho,
Thank you very much to help me to remove the underline properties of the text.
I have 2 questions more:
I installed the new version, and I can't see the "PC Mode" button, only appears the button "Log out" is normal ?
second, where or how can I put the adsense codes to see the banners up the navbar and in footer ??
In the new 4.1.11 version if you configure the new "google adsense"option in Ads, appears banners in all templates with the same size.
I want to do the same but without using this option, because this options , no difference between PC and mobile templates. I want to put the mobile adsense code for mobile in a part of this nice style....
here is an example:
https://vborg.vbsupport.ru/external/2012/03/35.png
I hope I explained well...
Best regards, thanks in advance
Bounce
03-09-2012, 05:50 PM
I installed the new version, and I can't see the "PC Mode" button, only appears the button "Log out" is normal ?
did you install https://vborg.vbsupport.ru/showthread.php?t=249339 ?
That has the option to Add a link to the default style
autoescala
03-12-2012, 08:57 AM
Thanks Bounce, I will try this!!
Filgga
03-12-2012, 03:19 PM
Integrating Abe1's post thanks add-on (https://vborg.vbsupport.ru/showthread.php?t=231666) into the lightweight style.
replace the following templates with the code provided (in the lightweight style only!!)
post_thanks_box
<if condition="$post_thanks_box"><div class="windowbg" id="post_thanks_box_$post[postid]">$post_thanks_box</div></if>post_thanks_button
<a id="btn" href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&p={vb:raw post.postid}&securitytoken={vb:raw bbuserinfo.securitytoken}" id="post_thanks_button_{vb:raw post.postid}"<vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give({vb:raw post.postid}, <vb:if condition="$vboptions[post_groan_integrate]">true<vb:else />false</vb:if>);"</vb:if> <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> rel="nofollow" class="post_thanks_button">{vb:rawphrase post_thanks_thanks}</a>
post_thanks_postbit
<vb:if condition="$post['post_thanks_amount'] == 1">
{vb:rawphrase post_thanks_user_says, {vb:raw post.username}}
<vb:else />
{vb:rawphrase post_thanks_users_say, {vb:raw post.post_thanks_amount_formatted}, {vb:raw post.username}}
</vb:if>
{vb:raw post.post_thanks_bit}
Edit both the postbit & postbit_legacy templates as follows
Search for:
<vb:if condition="$post['editlink']"><a id="btn" href="{vb:raw post.editlink}">{vb:rawphrase edit}</a></vb:if>Add the following immediately above:
{vb:raw template_hook.postbit_controls}Then go to end of template and paste in:
{vb:raw template_hook.postbit_end}and your done!
Hi dartho,
Can this be employed for the vBSEO_like button?
dartho
03-13-2012, 03:38 AM
Same answer as the first time you asked, Filgga :)
Link me to a copy and I can look when I get a chance
Filgga
03-13-2012, 03:50 AM
Same answer as the first time you asked, Filgga :)
Done,
Thanks.
Timac LEO
03-14-2012, 05:42 AM
Update vbulletin 4.1.11?
Hippy
03-14-2012, 10:38 AM
works fine with vb4.1.11
Bounce
04-11-2012, 08:15 PM
Quote (Reply) is broken in vb 4.1.12
doesnt quote! :(
tambo
04-14-2012, 10:35 AM
I've got this running, but I was wondering if it is possible to move the lightweight.css.php file to another location, rather than root?
Would I have to edit something in the templates or xml file?
Why would I want to ask this? Not all Admins on our board have root access, but access to different parts of the server, based on their interests/expertise. It would be good to give the person responsible for styling access to the CSS file, without giving them root access.
EDIT: Never mind. I got it.
Use 'Replacement Variable Manager' in ACP.
Replace:
/lightweight.css.phpwith
/folder/structure/of/your/choice/lightweight.css.php...and then move the lightweight.css.php file to that location.
You'll then need to edit the CSS file 'Logo Image Location' to locate the logo image from root (as it's no longer relative). So, in my case:
/vb/images/misc/mobilelogo.png...or wherever you want to put it. There's probably an easier way. :D
Great mod by the way. Very impressive.
dear dartho,
how to fix this? my vbul. 4.1.12
1. on 4.1.12, clicking quote on mobile style wont include the quoted message.
2. empty page, there are no 1, 2, 3 ... . see the attachment.
dartho
04-16-2012, 10:44 PM
I just updated my test site (vbdev.org) and have none of the problems reported above? Anyone else?
@Semprot - if you want to try and add reputation, the button code would be something like this:
<vb:if condition="$show['reputationlink']"><a id="btn" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&p={vb:raw post.postid}" title="{vb:rawphrase add_reputation}" rel="nofollow" id="reputation_{vb:raw post.postid}">Rep</a></vb:if>
Alan_SP
04-18-2012, 08:09 AM
if i upload lightweight style as normal style (i didnt select mobile as parent), quote is working, but it wont appear on "Style & Language Settings" >> "Default Style for Old Mobile Browsers"
You could use https://vborg.vbsupport.ru/showthread.php?t=249339, I have it installed and there you could set this style as default.
I tested it on computer, not mobile phone, so I'm not sure that this style will actually get selected for mobile devices.
Bounce
04-18-2012, 07:11 PM
More update :
if i upload lightweight style as normal style (i didnt select mobile as parent), quote is working, but it wont appear on "Style & Language Settings" >> "Default Style for Old Mobile Browsers"
If i upload it as mobile style, quote is not working, but it will appear on "Style & Language Settings" >> "Default Style for Old Mobile Browsers".
Yip, quotes dont work if style is parent of mobile styles default
does work if it has no parent.
:up:
Bounce
04-19-2012, 07:26 PM
cancel that, i still dont have this working :(
Alan_SP
04-20-2012, 09:02 AM
Strange. I installed as new style, after that I deleted old one. Quoting works for me, only I changed phrase from reply to reply_with_quote (postbit_legacy).
I didn't noticed problems so far, but it's still too early to tell for sure that there are no problems.
still having problem with quote?
I suggest you to delete old lightweight style & re-add it with non-mobile no-parent.
thx. solved on my prob :)
The Rocketeer
04-24-2012, 10:14 AM
Hi, I think we are finally ready to move on to the default vBulletin theme, But before that I wanted to share the vB CMS Article pages, I saved these two files, AFAIK this worked well with our CMS and should work with your too.
All the best and thanks for the Style and effort. :up:
djbaxter
04-27-2012, 11:53 AM
I have the vB Mobile Style as default in 4.1.12 PL1.
However, at least one member is expressing an option to use this mobile style instead.
Two questions:
1. If I add this as a mobile style it shows a number of uncached templates. How can I fix this? (If I add it as a new full style, the templates are cached but that seems like it would be confusing to users.)
2. There seems to be no way to make this the default mobile style now that the vB Mobile Style is installed, and in either this mobile style or the vB Default Mobile Style, there seems to be no way to choose an alternate mobile style - just mobile or full forum default style. How can I add this as an option?
Alan_SP
04-28-2012, 12:43 PM
Just two posts before yours is answer: https://vborg.vbsupport.ru/showpost.php?p=2322629&postcount=888
Install this mod and you'll be able to set this style as default for mobile devices. Just turn off vB's default system for setting default mobile style for mobile devices.
djbaxter
04-28-2012, 01:03 PM
But I don't want to disallow users from using the vBulletin mobile version. I just want to add the option for mobile users to select this one.
I have the Suite. Now the CMS doesn't get a lot of use and blogs are currently disabled so the forum is the main focus, but this style, unlike the vBulletin mobile style, doesn't provide for anything but the forum.
Suggestions?
dartho
04-29-2012, 08:34 AM
I have the vB Mobile Style as default in 4.1.12 PL1.
However, at least one member is expressing an option to use this mobile style instead.
Two questions:
1. If I add this as a mobile style it shows a number of uncached templates. How can I fix this? (If I add it as a new full style, the templates are cached but that seems like it would be confusing to users.)
2. There seems to be no way to make this the default mobile style now that the vB Mobile Style is installed, and in either this mobile style or the vB Default Mobile Style, there seems to be no way to choose an alternate mobile style - just mobile or full forum default style. How can I add this as an option?
1. Uncached templates are from vBulletin removing templates that are in teh non-mobile default (or more correctly MASTER) style. It would seem they then proc3eed to hide these templates form the style manager :confused: I think the way to reolve this would be to deleted those templates from the XML file before installing it.
2. On my test site I can happily select both this style and vBulletins Mobile style as default style for both old and/or modern mobile browsers?
In order to have links to other mobile styles, you will need to make edits to templates (probably footer) and add in links there. It would appear that vBulletin have removed the style chooser code from the mobile styles? A plugin would have to be written to create this or you may be able to manually add the code to your style.
A plugin could also be conceivably written to detect visitors viewing your CMS from this style and flick them over to vBulletins style?
Alan_SP
04-29-2012, 10:34 AM
I have the Suite. Now the CMS doesn't get a lot of use and blogs are currently disabled so the forum is the main focus, but this style, unlike the vBulletin mobile style, doesn't provide for anything but the forum.
Actually it does. You can look at CMS, Blog, I even look at VaultWiki articles with this style. It is not optimized, but it is usable. Test it yourself. Add direct links in navbar manually as I did and you'll see that it works.
djbaxter
04-30-2012, 02:32 AM
Actually it does. You can look at CMS, Blog, I even look at VaultWiki articles with this style. It is not optimized, but it is usable. Test it yourself. Add direct links in navbar manually as I did and you'll see that it works.
Thank you. I'll look into this further...
However, even with the Options add-on installed, my iPhone will not select this style as default unless I fully delete the vBulletin Default Mobile Style. Setting the vBulletin Stytle options to "None" for Mobile does not work.
Does that correspond with your experience?
djbaxter
04-30-2012, 02:41 AM
Also are you saying to use VB4 - Mobile Phone / iPhone / PDA Detection and Style Assignment (https://vborg.vbsupport.ru/showthread.php?t=249967&highlight=mobile) instead of Lightweight Style Options for "Lightweight Style" (https://vborg.vbsupport.ru/showthread.php?t=249339)?
Dartho seems to have several versions of everything which is confusing...
dartho
04-30-2012, 08:25 AM
Also are you saying to use VB4 - Mobile Phone / iPhone / PDA Detection and Style Assignment (https://vborg.vbsupport.ru/showthread.php?t=249967&highlight=mobile) instead of Lightweight Style Options for "Lightweight Style" (https://vborg.vbsupport.ru/showthread.php?t=249339)?
Dartho seems to have several versions of everything which is confusing...
Nope - only one version of each thing. The 2 you list are 2 different products. One is mobile detection script (vBulletin now has one of it's own) and the other is an extension to this style which adds optional customisations (which you would otherwise have to manually edit templates or add plugins to create).
Alan_SP
04-30-2012, 12:11 PM
Also are you saying to use VB4 - Mobile Phone / iPhone / PDA Detection and Style Assignment (https://vborg.vbsupport.ru/showthread.php?t=249967&highlight=mobile) instead of Lightweight Style Options for "Lightweight Style" (https://vborg.vbsupport.ru/showthread.php?t=249339)?
I use both. :)
With first I selected which style is default for mobile devices and my users reported that this style gets selected, but I disabled vB own options. I'm on vB4.1.12PL1.
djbaxter
04-30-2012, 12:53 PM
I use both. :)
With first I selected which style is default for mobile devices and my users reported that this style gets selected, but I disabled vB own options. I'm on vB4.1.12PL1.
When you say "disabled" do you mean uninstall? or how exactly did you disable the vB options? I am also on 4.1.12 PL1.
edytwinky
05-01-2012, 02:52 AM
Does this mod allow for users to vote in polls?
Alan_SP
05-01-2012, 06:51 PM
When you say "disabled" do you mean uninstall? or how exactly did you disable the vB options? I am also on 4.1.12 PL1.
Just put it to None, you have two options in ACP->Settings->Options->Style & Language Settings:
Default Style for Old Mobile Browsers
Default Style for Modern Mobile Browsers
There you can choose style you want automatically selected when user's browsing from mobile. Put it to none (or use it, than you don't need mod from dartho). In some vB versions there was bug and this didn't worked. Not sure in which version it was corrected if it is corrected. I'm using dartho's mod and it works.
Merriweather
05-08-2012, 03:19 AM
Something is going on with the pagenav. For instance, I am seeing:
Thread Title Here > (25) ()
Where "25" is the number of posts, and the parenthesis is supposed to have the page navigation links, but it's showing up blank. It will show (...Last Page) if there are at least 50 posts, but for 10 - 49 posts, I get blank parenthesis.
Ideas?
dartho
05-08-2012, 12:46 PM
If you red over the last couple pages, there have been some issues reported which seem to be resolved by reinstalling as a new style?
Merriweather
05-14-2012, 11:46 PM
I tried that to no avail. I'm thinking it might be because I installed it as a mobile style vs a regular style?
Hippy
05-15-2012, 11:55 PM
after updating to vb4.1.12 pl1 it's not caching any templates.
I have 8WayRun.Com - Micro Debug Stats (https://vborg.vbsupport.ru/showthread.php?t=240905) installed since day one and you can see if a template is not being cached.. as so
this is 8wayrun's screenshot from his mod as a example of whats happening
https://vborg.vbsupport.ru/attachment.php?attachmentid=116105&d=1271813205
this only start to display a long list of stock and mod template after the latest..
I am not sure what vb changed for this to happen..
any ideas ?
djbaxter
05-16-2012, 12:26 AM
after updating to vb4.1.12 pl1 it's not caching any templates.
I have 8WayRun.Com - Micro Debug Stats (https://vborg.vbsupport.ru/showthread.php?t=240905) installed since day one and you can see if a template is not being cached.. as so
this is 8wayrun's screenshot from his mod as a example of whats happening
https://vborg.vbsupport.ru/attachment.php?attachmentid=116105&d=1271813205
this only start to display a long list of stock and mod template after the latest..
I am not sure what vb changed for this to happen..
any ideas ?
Yep. Re-import the XML for the style.
Hippy
05-16-2012, 12:33 AM
I did and lost all the templates that where not edited from when we did the post thanks..
I had to add them back manually
but that did not fix it
I even deleted it and imported it again...
dartho
05-16-2012, 07:42 AM
I think the way to resolve the uncached templates would be to deleted those templates from the XML file before importing the style. I've been pretty busy lately and haven;t had teh time to sit down and have a proper look as yet ...
Hippy
05-18-2012, 08:59 PM
thanks .. But seems they are missing .. I think one of the vb updated moved it to a mobile style and if it wasn't a edited template it did away with it
so adding them back I think will fix it ..
Not sure if thats the correct way tho..
life first .. and see what you come up with
thanks for the support
S_E_A
05-19-2012, 01:44 PM
Receive an Array error message when checking users online on 4.1.12. Anyone else had this problem?
Cheers
The Rocketeer
05-20-2012, 01:41 PM
@Dartho, Update the style after vB 4.1.2 , that should fix most bugs. also please take the time to view and consider including or improving upon my edited cms templates from here, https://vborg.vbsupport.ru/showpost.php?p=2323050&postcount=889 :)
it should help a lot of people and a great add on for this style out of the box. (no credits needed)
edytwinky
05-26-2012, 08:47 PM
Dartho,
Is there any way to include a box on posting replies or threads for users to insert images from their phone?
Hippy
05-27-2012, 11:19 PM
For some reason i reinstalled this style as mobile-no-parent after upgrading to 4.2.0..
Quoting message works.
Add reputation page doesn't work.
Add infraction page doesn't work.
Will they fixed if the stylevar on the template is changed?
it removes templates when you did that
I would add it back to the normal style group
or you have to add those templates it's missing back..
edytwinky
05-28-2012, 12:32 PM
dartho, release the option for blog and cms!! maybe by donation? :)
Second?
edytwinky
05-30-2012, 12:44 AM
I'm working with trying to get the notifications on the Lightweight theme.
I pulled out the following code from the default theme and pasted it on to the lightweight navigation bar. It comes up but it doesn't look the same way. Anybody have any suggestions on what I might be missing?
<vb:if condition="$notifications_total">
<li class="popupmenu notifications" id="notifications">
<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}: <span class="notifications-number"><strong>{vb:raw notifications_total}</strong></span></a>
<ul class="popupbody popuphover">
{vb:raw notifications_menubits}
</ul>
</li>
<vb:else />
<li class="popupmenu nonotifications" id="nonotifications">
<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}</a>
<ul class="popupbody popuphover">
<li>{vb:rawphrase no_new_messages}</li>
<vb:if condition="$show['pmmainlink']"><li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li></vb:if>
</ul>
</li>
</vb:if>
The Rocketeer
05-31-2012, 09:59 PM
Dartho whats the news on releasing the newer version of this style? I think we might have to switch back to this as most members dont like the vB mobile and also since it doesn't work with most phones either(something I didn't notice previously :P
https://vborg.vbsupport.ru/showpost.php?p=2330963&postcount=912
The Rocketeer
05-31-2012, 10:00 PM
dartho, release the option for blog and cms!! maybe by donation? :)
There is no CMS or Blog option. I have done custom work for someone to make their CMS work within this style, but those changes did not translate over to the default CMS or other layouts, so can not be used in this style.
Second?
Look at This: https://vborg.vbsupport.ru/showpost.php?p=2323050&postcount=889
Just a minor bit edit to the CMS style, looks great with the mobile style. If he doesn't have the time to work on a fully fledged CMS theme then he could include it if he wants.
So the add rep & infraction don't work if i add as mobile style group because the templates of those 2 are removed?
How to add those templates?
I reinstalled as mobile because when i installed as normal, it showed activity stream page as default page.
But on my default-computer style, i deleted activity stream Tab.
It doesn't even exist, so i have no idea why i got activity stream as default home-page on lightweight style.
Update: i completely deleted activity stream, and reuploaded as normal-no-parent.
I think You will have to just create a new default / parent style then delete this and the old style and just reinstall the style, that should fix most issues I think it has some minor issues with 4.2 though.
Favori
06-02-2012, 07:45 AM
There is a poll problem on my forums. Users can't view polls so can't vote polls. Please help me for that problem.
Bounce
06-05-2012, 01:01 PM
There is a poll problem on my forums. Users can't view polls so can't vote polls. Please help me for that problem.
Have you installed the style as a parent in the "mobile style" section?
Install it with no parent in the normal styles and your polls etc will all work!
Bounce
06-05-2012, 01:03 PM
Dartho,
Any more thought on adding a PM button?
I added <!-- ////////start PM button in postbit////// -->
<vb:if condition="$show['pmlink']"><a class='pminpostbit' href="private.php?{vb:raw session.sessionurl}do=newpm&u={vb:raw post.userid}" rel="nofollow"><img src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase send_pm}" />PM</a><span class="seperator"> </span></vb:if>
<!-- ////////end PM button in postbit////// -->
to my postbit_legacy, it shows but only as link and not a button:(
atm im trying to add that^ and a thanks button and also make post counts show on a members profile?
Getting a bit stuck with the codes thou :(:D
Bounce
06-05-2012, 09:02 PM
ok I added for a PM button...
In postbit or postbit_legacy
find
<div class="windowbg" align="right">
add after
<vb:if condition="$show['pmlink']"><a id="btn" href="private.php?{vb:raw session.sessionurl}do=newpm&u={vb:raw post.userid}">{vb:rawphrase send_pm}</a></vb:if>
or move to where ever you like :)
edytwinky
06-08-2012, 12:15 AM
Any word on notifications for the Lightweight style
JAFRI
06-08-2012, 07:45 AM
update for 4.2.0 PLS.
edytwinky
06-10-2012, 06:33 PM
Darthos,
I'm having the same issue with 4.2
When I click on the users online link to see what users are doing.
it just shows Array under the Username- - Last Activity table.
But on the forumhome, it shows what users are online.
dartho - after upgrading to 4.12
Can you fix the online users. It just shows array, changes were made to forumhome whos online.
edytwinky
06-12-2012, 06:44 PM
I'm looking to hire a dev to make notifications work with this style. Would anybody be willing to split the cost of hiring a dev to do it? Getting ready to get quotes on it
tareqbd
06-14-2012, 01:47 PM
dartho bro, is there anyway to make dbtech vbshout box work with your mobile style and also how can I add report button on postbit. please let me know.
snakes1100
06-15-2012, 12:11 PM
For anyone that is using the latest patch, you will have to fix init.php as vbulletin conveniently forgot to patch their own patch......
https://vborg.vbsupport.ru/showpost.php?p=2289299&postcount=746
Example Vb Version - 4.1.10 patch level 3, requires this fix again in init.php
charlesr
06-18-2012, 10:44 AM
Not a major issue, but when you click on "new posts" or "search", the navigation disappears, so you have to then click through to a post to see it again.
dartho
06-19-2012, 01:27 AM
Short story is, it doesn't work correctly with 4.2 as it wasn't written for 4.2, but you would have seen that it wasn't compatible when you upgraded your test site before upgrading your live site. ;)
I really don't have the time to look at this at the moment, but will happily post fixes if someone has them to put forward.
The Rocketeer
06-20-2012, 07:26 AM
Such a Shame, This was a really nice style :( I wish someone could come and update it and fix it up for vB 4.2 since Dartho cant do it now, once updated I am sure then it will give many more years of great service. even posting the fixes will be a great step towards helping everyone :)
All the best Dartho, I hope you can update it one day soon. :)
letipro
06-20-2012, 09:38 AM
update for 4.2.0 PLS
charlesr
06-21-2012, 06:32 AM
What else is broken apart from what I mentioned above? All the rest seems to be working for me? I'm continuing to leave it for users on 4.2 and I know people are using it.
thenamesgould
06-23-2012, 04:30 AM
What else is broken apart from what I mentioned above? All the rest seems to be working for me? I'm continuing to leave it for users on 4.2 and I know people are using it.
I use this daily on my own forum, and hadn't even noticed that ... and I haven't had any complaints. Definitely not getting rid of it just because of that!
I'm just hoping that when vb5 rolls around, there will be a version of this for that!!! :)
The Rocketeer
06-24-2012, 05:30 AM
But I don't want to disallow users from using the vBulletin mobile version. I just want to add the option for mobile users to select this one.
I have the Suite. Now the CMS doesn't get a lot of use and blogs are currently disabled so the forum is the main focus, but this style, unlike the vBulletin mobile style, doesn't provide for anything but the forum.
Suggestions?
in the same boat, need some help with the second question..
The Rocketeer
06-25-2012, 01:23 AM
This issue is said to be once again present in 4.2 after the patch
http://tracker.vbulletin.com/browse/VBIV-13851
If you wish to make this change manually, edit init.php and
search for:
elseif ($mobile_browser_advanced && $vbulletin->options['mobilestyleid_advanced'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with
elseif ($mobile_browser_advanced AND $vbulletin->options['mobilestyleid_advanced'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])
and search for
elseif ($mobile_browser && $vbulletin->options['mobilestyleid_basic'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with
elseif ($mobile_browser AND $vbulletin->options['mobilestyleid_basic'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])
above fix is not working, code not found inside init.php
charlesr
06-25-2012, 09:51 AM
in the same boat, need some help with the second question..
I lock the CMS to the site style (pencil on homepage) - it's useable on modern phones.
The vbulletin mobile one seems tremendously slow on my nokia 5800 (older symbian touchscreen), so I don't force it on users. I have this one set as the default for older mobiles and leave the option for modern phones as "none".
deverill2010
06-25-2012, 09:57 AM
I have this style on my CMS :) its not perfect but it gets the basics done for simple browsing on phones.
http://www.midwiferyonline.co.uk/forum.php?styleid=8. I don't have a 'home' link as I haven't got around to editing that in. So once clicked on the above link, add index.php after .co.uk/
The Rocketeer
06-30-2012, 03:09 PM
also I am unable to select the any other style, it only lets me select the default mobile style or none? look at this pic
https://vborg.vbsupport.ru/attachment.php?attachmentid=139450&stc=1&d=1341072418
Gripi
07-06-2012, 05:25 PM
hi..
i saw that every member that reply post from this mobile style, the signature option automaticly OFF, how to make the "Show Signature" always ON when reply a thread.
thanks
Danny M
07-10-2012, 03:55 PM
Hey,
I've installed this style, but how do I make it display for users who visit my forum on their mobile.
I looked in the "Style and Language" settings, but the only style that gets listed in the dropdown box is "Default Mobile Style" and not "Lightweight" :(
Anyone know how I can fix this?
Thanks
deverill2010
07-10-2012, 04:02 PM
in the instructions in the first post it says this -
**Install and configure "LightWeight Style Options (https://vborg.vbsupport.ru/showthread.php?t=249339)"
I think the above does allow it to be selected as a mobile style.
Hey,
I've installed this style, but how do I make it display for users who visit my forum on their mobile.
I looked in the "Style and Language" settings, but the only style that gets listed in the dropdown box is "Default Mobile Style" and not "Lightweight" :(
Anyone know how I can fix this?
Thanks
You don't even have to search the thread for your answer, look at the post RIGHT above yours. wow!
Merriweather
07-15-2012, 04:38 PM
I am wondering if there is a way to include the forum notifications in this style? I know it notifies on a new pm, but I also have notifications that show for new Group posts and when users are tagged/quoted.
edytwinky
07-15-2012, 09:45 PM
On my poll results, instead of showing who has voted, it just says "array"
Any idea what might be wrong?
dartho
08-21-2012, 07:14 AM
I've had a bit of a look at 4.2 and this style today. It will involve quite a bit of time for me to get it working under the Mobile master style. Or I have to remove portions of it. It could be just the one thing I looked at, but I couldn;t find how to add a pagenav to the thread bits in forumdisplay.
It should be take significantly less time to make it work as previously as a non-mobile style.
PLease post your issues when installed as a full style and i"ll look at them
style ta dùng hiện tại edit từ đây, xoắn nhiều quá
dartho
08-23-2012, 12:52 AM
Sorry, but my Vietnamese language skills are rather poor ...
rkhyd
09-07-2012, 04:23 PM
If i want to include a dbtech Shoutbox to the mobile page just after then header, how to do that?
Adding the code {vb:raw show.vbshout_instance1} where instance1 is the varname of the SB doesn't do any modification to the lightweight style. Can anyone guide me on this?
RK
jamoss
09-15-2012, 03:19 PM
Are polls enabled?
Are polls enabled?
yes, but you must edit templates :D
jamoss
09-16-2012, 01:43 AM
yes, but you must edit templates :D
Gah, I'd have to do that on the default mobile one, too. I was hoping someone had them done already.:rolleyes:
edytwinky
09-19-2012, 03:29 PM
On my poll results, instead of showing who has voted, it just says "array"
Any idea what might be wrong?
letipro
09-24-2012, 04:36 PM
Gah, I'd have to do that on the default mobile one, too. I was hoping someone had them done already.:rolleyes:
you mean like this?
https://vborg.vbsupport.ru/attachment.php?attachmentid=141431&stc=1&d=1348508183
http://buidoi.net/threads/10058-test-binh-chon-tren-style-mobile.html?styleid=4
dougdirac
09-26-2012, 11:42 PM
Is this style compatible with blogs?
Robbed
09-27-2012, 01:39 AM
I've had a bit of a look at 4.2 and this style today. It will involve quite a bit of time for me to get it working under the Mobile master style. Or I have to remove portions of it. It could be just the one thing I looked at, but I couldn;t find how to add a pagenav to the thread bits in forumdisplay.
It should be take significantly less time to make it work as previously as a non-mobile style.
PLease post your issues when installed as a full style and i"ll look at them
It seems to work for me but new posts. when clicking on the link it redirects to fullsite.
I used to be able to test the mobile site from my pc but now it redirects to the fullsite, same with my blackberry it doesn't redirect to the mobile site but iphone/ipod still does.
dougdirac
09-27-2012, 04:32 PM
It seems to work for me but new posts. when clicking on the link it redirects to fullsite.
I used to be able to test the mobile site from my pc but now it redirects to the fullsite, same with my blackberry it doesn't redirect to the mobile site but iphone/ipod still does.
Are you using 4.2? There was a known error that did something like this in some previous version of vB. I had the issue with vB 4.1.10.
Also check your "Style and Language Settings". There is a setting "Default Style for Old Mobile Browsers" and "Default Style of Modern Mobile Browswers".
Robbed
09-27-2012, 07:54 PM
Yes 4.2.
I have both set to none because i use dartho different domain different style to assign a mobile style.
dougdirac
09-27-2012, 11:26 PM
ok. just a stab in the dark.
Robbed
09-28-2012, 08:03 PM
any idea why
http://m.domain.com/forums/search.php?do=getnew&contenttype=vBForum_Post would redirect to the main site now since 4.2
Robbed
10-04-2012, 04:13 AM
dartho
I ended up setting Always use Forum URL as Base Path to no
then opening headerinclude for my main skins and change this code
<base href="{vb:raw basepath}" />
I set it manually to mydomain/forums
This worked, let me know if you have any better way of doing this.
Looks like always use forum url as base path was set to yes after one of the upgrades.
Set it back to no and it's working for me again
craigvm
10-11-2012, 08:13 PM
i`ve installed this but my index.php sends you to vba portal but on the mobile style its just a blank screen even after installing the plugin to disable vba on this style any idea how i can fix it
Muhammad Rahman
10-21-2012, 12:05 AM
hay, I can not make a thread with this style, anyone can help?
information: vBulletin 4.2
thank you.
thenamesgould
11-03-2012, 11:23 AM
Has anybody who has this style installed modified it to have the banner running all the way across the top of the page, and obviously appearing a bit bigger?
That's what I want to do, and I thought before I try to do it myself, if someone else has done it and I could have a sneaky look, I would try that first. :)
thenamesgould
11-04-2012, 08:59 AM
Don't worry, all done now. Just a matter of increasing the height of the image in the CSS file, and increasing the size of the image itself. Looks great on the touchscreens you get these days!
Gripi
01-06-2013, 05:29 PM
Hello...
May be this is a bug, i found that when i already subcribed to one thread via Full Style, then i post a new reply inside the thread using this Mobile Style, the thread automaticly got ubsubscribed.
Anyone experienced problem like this? and how to solve it?
Thanks alot for your help.
charlesr
01-14-2013, 10:47 AM
Sorry if I've missed this already, but is anyone able to view their PMs? i.e. hit "usercp" and then "private messages"
Alan_SP
01-14-2013, 07:48 PM
PMs work for me. Through UserCP I can access them if there aren't new, or there's special link if there are new (unread) PMs.
@ngel
01-20-2013, 02:20 PM
Hello, for some reason the desktop link doesn't redirect to the desktop style, what should I do?
@ngel
01-21-2013, 08:29 PM
I'm going to release an addon product which enables such options. In the mean time have a look in the header template and search for
<vb:if condition="$vbulletin->options['ls_default_style_link']==1">
<a class="toplinks" href="{vb:raw $vbulletin->options['ls_navbar_home']}?{vb:raw session.sessionurl}styleid={vb:raw vboptions.ls_default_style}">{vb:raw vboptions.ls_default_link}</a>
</vb:if>
and replace with
<a class="toplinks" href="forum.php?{vb:raw session.sessionurl}styleid=xxx">Desktop</a>
where xxx is your default styleid. change the href to suit your site also.
There are 2 instances that need to be edited as described above
I've done that but still doesn't work for me!
dartho
01-24-2013, 04:03 AM
Do you allow users to change styles?
also - what version of VB. things are different in 4.2 I think ...
@ngel
01-24-2013, 09:45 AM
Thank you for your response!
I have 4.1.5 and I do allow users to change style!
dartho
01-25-2013, 10:58 AM
Thank you for your response!
I have 4.1.5 and I do allow users to change style!
try editing the footer template and change teh "-1" in the following:
<a href="?styleid=-1">Default Style</a>
to the styleid number of your default style
@ngel
01-25-2013, 02:17 PM
Nothing... neither with -1 or 3
tareqbd
01-28-2013, 12:45 AM
Need help to make dbtech credit deluxe work with this style. Seems onclick the charged contents are not loading. Advise appreciated.
djbaxter
01-28-2013, 02:26 AM
DBTech add-ons don't play nicely with a lot of other add-ons. You may be further ahead looking for a replacement for whatever add-on is conflicting with this one.
Alan_SP
01-29-2013, 12:48 AM
This is not true, especially as we a talking about custom (mobile) skin.
Thing is, there are hooks that are missing and certainly not some coding problem with DBTech mod per se. If you want, you could ask what hooks you need to add, but with adding hooks, style becomes less mobile, which beats it purpose.
Courty
02-07-2013, 11:20 PM
Dartho,
first of all, thanks for creating this mod. The Lightweight style is super-popular on my forum.
Now, I have a (minor) issue with users inadvertently hitting the 'report button instead of 'reply'. So my question is this: how do I reorder the buttons below each post?
Disclaimer: Apologies if the info is already in here somewhere. I did do some searching of this thread but have to date been unable to find the answer I am looking for.
dartho
02-08-2013, 12:58 AM
edit the postbit and/or postbit_legacy templates and you should find the report post button code in there pretty easily - just move it where you want, or even remove it
Courty
02-09-2013, 11:13 PM
edit the postbit and/or postbit_legacy templates and you should find the report post button code in there pretty easily - just move it where you want, or even remove it
Thanks! Worked a treat.
Courty
02-11-2013, 10:21 AM
Hmmm, another quick question for Dartho or anyone else who speaks code, apologies if this should be in another thread.
If possible, I would like to align the 'Report' and 'Infraction' button to the left side, and the 'Reply' and 'Edit' buttons to the right. I worked out how to do it using a new div tag, but that pushed the right side onto a new line (which I don't want).
Here's what I'm working with, is there an easy mod to make this work?
<div class="{vb:raw post.statustitle}windowbg2" id="post{vb:raw post.postid}">
<a name="post{vb:raw post.postid}"></a>
<a href="{vb:link member, {vb:raw post}}">{vb:raw post.username}</a> {vb:raw post.posttime} {vb:raw post.postdate}
<vb:if condition="$show['avatar']"><br />
<a href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
</a>
</vb:if>
</div>
<div class="windowbg">{vb:raw post.message}<br /><br />
<!-- attachments -->
<vb:if condition="$show['attachments']">
<div><span>Attached: </span>
<vb:if condition="$show['thumbnailattachment']">
<span>{vb:raw post.thumbnailattachments}<br /></span>
</vb:if>
<vb:if condition="$show['imageattachment']">
<span>{vb:raw post.imageattachments}<br /></span>
</vb:if>
<vb:if condition="$show['imageattachmentlink']">
<span>{vb:raw post.imageattachmentlinks}<br /></span>
</vb:if>
<vb:if condition="$show['otherattachment']">
<span>{vb:raw post.otherattachments}<br /></span>
</vb:if>
<vb:if condition="$show['moderatedattachment']">
<span>{vb:raw post.moderatedattachments}<br /></span>
</vb:if>
</div>
<!-- / attachments -->
</vb:if>
<vb:if condition="$show['reportlink']"><a id="btn" href="{vb:raw post.reportlink}" rel="nofollow">{vb:rawphrase report_bad_post}</a></vb:if>
<vb:if condition="$show['infractionlink']">
<vb:if condition="$post['editlink']"><a id="btn" href="{vb:raw post.editlink}">{vb:rawphrase edit}</a></vb:if>
<vb:if condition="$post['replylink']"><a id="btn" href="{vb:raw post.replylink}" id="qrwq_{vb:raw post.postid}" rel="nofollow">{vb:rawphrase reply}</a></vb:if>
<a id="btn" href="infraction.php?{vb:raw session.sessionurl}do=report&p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase add_infraction_for_x, {vb:raw post.username}}">Infraction</a>
</vb:if>
<vb:if condition="$show['redcard']">
<a class="redcard" href="infraction.php?{vb:raw session.sessionurl}do=view&p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase received_infraction}"><img border="0" src="{vb:stylevar imgdir_button}/red-card_sm.png" alt="{vb:rawphrase received_infraction}" /></a>
<vb:elseif condition="$show['yellowcard']" />
<a class="yellowcard" href="infraction.php?{vb:raw session.sessionurl}do=view&p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase received_warning}"><img border="0" src="{vb:stylevar imgdir_button}/yellow-card_sm.png" alt="{vb:rawphrase received_warning}" /></a>
</vb:if>
</div>
<vb:if condition="$post['isfirstshown']">
{vb:raw ad_location.ad_showthread_firstpost_start}
{vb:raw ad_location.thread_first_post_content}
</vb:if>
<vb:if condition="$post['islastshown']">
{vb:raw ad_location.thread_last_post_content}
</vb:if>
dartho
02-11-2013, 01:25 PM
You'll need to float one of the divs
SolidSnakeLive
02-14-2013, 06:46 PM
Last Update: 16 Dec 2011
Add new update its the best mobile style
tareqbd
03-10-2013, 03:33 AM
This is not true, especially as we a talking about custom (mobile) skin.
Thing is, there are hooks that are missing and certainly not some coding problem with DBTech mod per se. If you want, you could ask what hooks you need to add, but with adding hooks, style becomes less mobile, which beats it purpose.
Thank you. I have contacted DBT, they advised as below:
showthread_below_posts is needed for the JS code that powers charged content.
Help appreciated.
dartho
03-12-2013, 10:58 PM
edit the SHOWTHREAD template,
search for (near the bottom of the template)
{vb:raw footer}
and add the following immediately above it
{vb:raw template_hook.showthread_below_posts}
Dwarden
03-17-2013, 10:05 PM
very nice style, do you plan release updated version for 4.2.0 pl3 ?
Marco Aurelio
03-18-2013, 03:24 PM
Hi dartho, thanks for your lightweight!
Please, help me! :D In vBulletin 4.2, this:
{vb:raw post.post_thanks_bit}
doesn't work! How can I fix?
K4GAP
03-18-2013, 08:08 PM
I have but one question before I install this. How is it better than the standard vb mobile style?
Thanks for your effort and work.
Alan_SP
03-18-2013, 10:14 PM
Well, I think that you should install it and see differences for yourself.
In my opinion, dartho's style is much better, I use it when I'm on mobile internet and don't need vB mobile style at all. But, it all comes down to your own tastes.
Filgga
03-19-2013, 04:45 PM
dear dartho,
how to fix this? my vbul. 4.1.12
2. empty page, there are no 1, 2, 3 ... . see the attachment.
How did you solve this?
dartho
03-19-2013, 11:15 PM
How did you solve this?
Looks like he did here:
https://vborg.vbsupport.ru/showthread.php?p=2322346#post2322346
Hippy
03-20-2013, 02:23 AM
Hi dartho, thanks for your lightweight!
Please, help me! :D In vBulletin 4.2, this:
{vb:raw post.post_thanks_bit}
doesn't work! How can I fix?
search post thanks in this thread youll find the code for the whole mod to work..
K4GAP
03-20-2013, 04:43 AM
Well, I think that you should install it and see differences for yourself.
In my opinion, dartho's style is much better, I use it when I'm on mobile internet and don't need vB mobile style at all. But, it all comes down to your own tastes.
In most cases that is exactly what I do. But usually an alternative will have listed advantages i.e. does this or that work or look better than the original.
dartho
03-20-2013, 04:52 AM
In most cases that is exactly what I do. But usually an alternative will have listed advantages i.e. does this or that work or look better than the original.
There is no comparison as there was no vBulletin mobile style when I made this one. I'm not sure if vBulletin listed advantages / comparisons to this one when they release their alternative though :)
Marco Aurelio
03-20-2013, 11:22 AM
search post thanks in this thread youll find the code for the whole mod to work..
Sorry, but this:
Integrating Abe1's post thanks add-on (https://vborg.vbsupport.ru/showthread.php?t=231666) into the lightweight style.
replace the following templates with the code provided (in the lightweight style only!!)
post_thanks_box
<if condition="$post_thanks_box"><div class="windowbg" id="post_thanks_box_$post[postid]">$post_thanks_box</div></if>
post_thanks_button
<a id="btn" href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&p={vb:raw post.postid}&securitytoken={vb:raw bbuserinfo.securitytoken}" id="post_thanks_button_{vb:raw post.postid}"<vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give({vb:raw post.postid}, <vb:if condition="$vboptions[post_groan_integrate]">true<vb:else />false</vb:if>);"</vb:if> <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> rel="nofollow" class="post_thanks_button">{vb:rawphrase post_thanks_thanks}</a>
post_thanks_postbit
<vb:if condition="$post['post_thanks_amount'] == 1">
{vb:rawphrase post_thanks_user_says, {vb:raw post.username}}
<vb:else />
{vb:rawphrase post_thanks_users_say, {vb:raw post.post_thanks_amount_formatted}, {vb:raw post.username}}
</vb:if>
{vb:raw post.post_thanks_bit}
Edit both the postbit & postbit_legacy templates as follows
Search for:
<vb:if condition="$post['editlink']"><a id="btn" href="{vb:raw post.editlink}">{vb:rawphrase edit}</a></vb:if>
Add the following immediately above:
{vb:raw template_hook.postbit_controls}
Then go to end of template and paste in:
{vb:raw template_hook.postbit_end}
and your done!
doesn't work after upgrade to vBulletin 4.2, because I don't see {vb:raw post.post_thanks_bit}. I write that code in template, but it doesn't appear on forum, so I don't know who thanked.
dartho
03-20-2013, 02:29 PM
You haven't really given us enough info to help, but I would guess you need to redo the post bit template edits
Hippy
03-20-2013, 10:50 PM
Sorry, but this:
doesn't work after upgrade to vBulletin 4.2, because I don't see {vb:raw post.post_thanks_bit}. I write that code in template, but it doesn't appear on forum, so I don't know who thanked.
still works for me ..
check your work over
Filgga
03-25-2013, 07:23 AM
Looks like he did here:
https://vborg.vbsupport.ru/showthread.php?p=2322346#post2322346
There's no direct fix for this? I've some customizations made and re-installing the same to fix this minor bug seems to be painful
:confused:
BTW, have you managed to get vBSEO Like system compatible with it?
dartho
03-25-2013, 10:46 PM
Sorry but I I don't have vbseo so can not look at this. But if it is just a matter of some hooks needing to be added to templates it would be trivial to do if you could find out which hooks are used by the vbseo hack.
You could export the style from your site, including your customisations, and re-install that as per the suggested 'fix' ?
Filgga
03-26-2013, 08:23 AM
Sorry but I I don't have vbseo so can not look at this. But if it is just a matter of some hooks needing to be added to templates it would be trivial to do if you could find out which hooks are used by the vbseo hack.
Yeah, loud n clear ;)
You could export the style from your site, including your customisations, and re-install that as per the suggested 'fix' ?
Yep, this fixes the problem but another problem rises:
1. If installed as a Standard skin, then the error is fixed!
2. If installed as a mobile skin, the same error comes
Problem: Using vB's default style assignment the theme doesn't appear to be selective under Settings > Options > Style & Language Settings (for mobile themes)
I bet, this' not your fault. vB team was supposed to allow any skin from standard to mobile can be selected to be assigned for mobile users. I see no point of forcing someone to categorize them (IMHO)
What's your suggestion?
dartho
03-27-2013, 03:25 AM
vBulletin messed things up for this style when the seperated mobile and standard styles.
If you want to use VB detection and simply apply one style to advanced mobile devices, one style to basic mobile devices and a default style to everyone and allow people to select their own style (assuming they are already allowed to do this on your site) and still allow admin to pick any style they want, the following should do it.
Create a plugin on style_fetch with the following code being sure to enter in teh styleids you want for mobile, advanced mobile and default styles:
//VB has already check and set cookies if the user can skip the style, so just read what they wrote
$vbulletin->input->clean_array_gpc('c', array(
COOKIE_PREFIX . 'userstyleid' => TYPE_INT,
COOKIE_PREFIX . 'skipmobilestyle' => TYPE_BOOL,
));
$skip = $vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'];
//Admin can have any style they want, so check if they're an admin and have specificed a styleid
if ($vbulletin->userinfo['permissions']['adminpermissions'])
{
$vbulletin->input->clean_gpc('r', 'styleid', TYPE_INT);
$styleid = $vbulletin->GPC['styleid'];
}
else if ($skip)
//if the user is not an admin has chosen to skip the mobile style (if allowed) give them default
$styleid=$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'];
else if ($vbulletin->mobile_browser_advanced)
$styleid=20; //Advanced mobile style ID
else if ($vbulletin->mobile_browser)
$styleid=7; //Basic mobile style ID
else
$styleid=1; //everyone else gets default style default style
dartho
03-27-2013, 03:47 AM
If you wanted to make this simpler, and don;t mind going into debug mode on your site, you could edit the Option Code for Mobile Style boxes in AdminCP so that all styles (both mobile and standard) show up and then you could replace the styleid numbers in the plugin above with $vbulletin->options['mobilestyleid_basic'], $vbulletin->options['mobilestyleid_advanced'] and $vbulletin->options['styleid'] then if you changed styles down the track you wouldn;t need to edit the plugin by hand. You would still need the above plugin to make it work.
To do this change the Option Code to:
select:eval
//options = fetch_style_title_options_array('', false, 'mobile');
$options = fetch_style_title_options_array();
$options = array('0' => $vbphrase['none']) + $options;
Filgga
03-27-2013, 03:59 AM
To do this change the Option Code to:
select:eval
//options = fetch_style_title_options_array('', false, 'mobile');
$options = fetch_style_title_options_array();
$options = array('0' => $vbphrase['none']) + $options;
Superb! I know, many will benefit from this... Do I add the code onto the above code and look like:
//VB has already check and set cookies if the user can skip the style, so just read what they wrote
$vbulletin->input->clean_array_gpc('c', array(
COOKIE_PREFIX . 'userstyleid' => TYPE_INT,
COOKIE_PREFIX . 'skipmobilestyle' => TYPE_BOOL,
));
$skip = $vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'];
//Admin can have any style they want, so check if they're an admin and have specificed a styleid
if ($vbulletin->userinfo['permissions']['adminpermissions'])
{
$vbulletin->input->clean_gpc('r', 'styleid', TYPE_INT);
$styleid = $vbulletin->GPC['styleid'];
}
else if ($skip)
//if the user is not an admin has chosen to skip the mobile style (if allowed) give them default
$styleid=$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'];
else if ($vbulletin->mobile_browser_advanced)
$styleid=89; //Advanced mobile style ID
else if ($vbulletin->mobile_browser)
$styleid=89; //Basic mobile style ID
else
$styleid=1; //everyone else gets default style default style
select:eval
//options = fetch_style_title_options_array('', false, 'mobile');
$options = fetch_style_title_options_array();
$options = array('0' => $vbphrase['none']) + $options;
?
Thanks for your prompt response
dartho
03-27-2013, 04:10 AM
No - you would need to put your site into debug mode, then go into your vbulletin options in AdminCP where you choose the style settings and click on the edit link next to where you select the mobile styles and change the Option Code in there
Filgga
03-27-2013, 04:25 AM
No - you would need to put your site into debug mode, then go into your vbulletin options in AdminCP where you choose the style settings and click on the edit link next to where you select the mobile styles and change the Option Code in there
Gotcha!
Will revert to you once successful. Obrigado!
----Edit----
I worked. Thanks much!
Shaybloom
03-29-2013, 10:28 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!
tareqbd
03-29-2013, 12:43 PM
edit the SHOWTHREAD template,
search for (near the bottom of the template)
{vb:raw footer}
and add the following immediately above it
{vb:raw template_hook.showthread_below_posts}
OK, I have tried already but no luck. Still the charged content not loading on click.
Any other suggestion please.
dartho
03-29-2013, 01:03 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!
see the 5th dot point of the install instructions
dartho
03-29-2013, 01:04 PM
OK, I have tried already but no luck. Still the charged content not loading on click.
Any other suggestion please.
I don;t use that add-on. Have you asked them what requirements are?
tareqbd
03-29-2013, 07:09 PM
I don;t use that add-on. Have you asked them what requirements are?
Yes, I did. Their reply was as below:
Quote Originally Posted by Belazor View Post
showthread_below_posts is needed for the JS code that powers charged content.
dartho
03-30-2013, 03:17 AM
So they told you the same thing again? Did you let them know that adding that hook didn't appear to work for you? If not, you may want to do so.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.