vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=247)
-   -   Forum Style - Lightweight Style for Small Screen Devices (cell phone, iphone, mobile, android) (https://vborg.vbsupport.ru/showthread.php?t=249277)

dartho 12-14-2011 01:28 AM

You can read post #2 for fixes also.

Re: the private messages issue - could it be that you have other unread message types? Maybe a visitor message or something ...

Hippy 12-14-2011 01:32 AM

thanks for the quick reply...
no nothing shows in the normal style.. I checked it all
made a new use with no messages and same...

* I found the Arrays PM fix.. but will check out post #2 to make sure I got it all..

thanks again

Hippy 12-14-2011 02:34 AM

that would of made my life easy if I see post #2 first.

anyway search is your friend..

I did notice this no longer works..

https://vborg.vbsupport.ru/showthrea...31#post2264831

even if WGO is set to members only it will not show even anyone not even guests ..

muratcan25 12-14-2011 08:23 AM

Thank You !

dartho 12-14-2011 12:52 PM

Quote:

Originally Posted by Hippy (Post 2277580)
that would of made my life easy if I see post #2 first.

anyway search is your friend..

I did notice this no longer works..

https://vborg.vbsupport.ru/showthrea...31#post2264831

even if WGO is set to members only it will not show even anyone not even guests ..

that fix was only for those that use the lightweight style options addon. otherwise you did not need to make that edit anf WGO should show by default

Hippy 12-14-2011 08:40 PM

I noticed on the verizon browser there is either one of these I can't remember now
???? before each name.. in current active users

any idea?

I think it was this one if it makes a difference
? or maybe even this one I can't see it good lol..?

also noticed the refresh this page link when viewing who's online.. takes you back to the forum index.. instead on what it intended to do.
the refresh issue can be viewed when you are on this style using your desktop using IE9 or ff
thanks for your quick support with this style..
Regards

Hippy 12-14-2011 09:41 PM

Quote:

Originally Posted by ZeroHour (Post 2217601)
Not sure if it has been mentioned but you should add the show signature code in the showthread template as most would probably want it on/enabled rather then off.

Code:

                <vb:if condition="$bbuserinfo['signature']">
                                        <input type="hidden" name="signature" value="1"/>
                </vb:if>

Also I personally replaced vbcms_page with:
Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
        {vb:raw headinclude}
        <title>{vb:raw vboptions.bbtitle}</title>
        {vb:raw headinclude_bottom}

<script type="text/javascript">
<!--
window.location = "/forums/"
//-->
</script>
</head>
<body>

{vb:raw header}

{vb:raw navbar}

<div id="pagetitle" class="pagetitle ui-bar-b">
        <h1 class="pagetitle">{vb:rawphrase vbulletin_message}</h1>
</div>

<div data-role="content">       
        <div class="ui-body ui-body-e">{vb:rawphrase content_not_supported_by_mobile_style, {vb:link forumhome}}</div>
</div>

{vb:raw footer}

</body>
</html>

It redirects the users to /forums/ which is where my forums are.

EDIT: Another thought too, I would add "Top" links to the bottoms of pages as it can be useful in some scenarios.

the show sig is still not working with that added
any idea?
I don't care much if it don't show on the light style / Mobile but if posted from your phone and the viewing it on your rig with the normal style it's not showing


thanks

DeanoUK 12-15-2011 10:30 AM

Any chance of a 4.1.8 update? Pretty please!

dartho 12-16-2011 12:18 AM

Quote:

Originally Posted by Hippy (Post 2277827)
the show sig is still not working with that added
any idea?
I don't care much if it don't show on the light style / Mobile but if posted from your phone and the viewing it on your rig with the normal style it's not showing
thanks

If you made that change, it should work - does on my test site. Not sure why you get strange characters in who's online - could you link me?

dartho 12-16-2011 12:19 AM

New version released which should have all fixes to the issues as listed in this thread over recent months.

remember - backup backup backup!

rooban12 12-16-2011 12:27 AM

brilliant work

dawges 12-16-2011 02:29 AM

Is it just me or is ads in the update? I don't mind donating to a coder but having ads forced down my throat without my knowledge is not cool.

dartho 12-16-2011 03:10 AM

Ah CRAP!! That was me testing google ads (read one page back and you can see the posts with a member here on how to put in ads) - I'll delete and update now.

Really - that was an honest mistake!

Sorry for the hassle :o

dartho 12-16-2011 03:18 AM

New zip file uploaded with the errant code removed - that google ads code only appeared in the postpit_legacy template - just delete this bit from that template

HTML Code:

<script type="text/javascript"><!--
  // XHTML should not attempt to parse these strings, declare them CDATA.
  /* <![CDATA[ */
  window.googleAfmcRequest = {
    client: 'ca-mb-pub-xxxxxxxxxxxx',
    format: '320x50_mb',
    output: 'html',
    slotname: 'xxxxxxxxxxxxxxx',
  };
  /* ]]>
*/
//-->
</script>
<script type="text/javascript"    src="http://pagead2.googlesyndication.com/pagead/show_afmc_ads.js"></script>

or import new XML in the zip I just uploaded (1.0.3a)

dawges 12-16-2011 03:27 AM

Thanks Dartho!

Hippy 12-17-2011 12:05 AM

1 Attachment(s)
thanks for the update dartho
I have a questions for ya
How do I go about adding Next to the page nav..

thenamesgould 12-18-2011 08:16 AM

Just uploaded the latest version when I upgraded to 4.1.9, and noticed that this step:

"replace the contents of the editor_ckeditor template with that of the editor_toolbar_off template"

doesn't seem to be in there, which lead to a bit of weirdness. Apart from that, very nice! :)

dartho 12-18-2011 10:18 AM

Quote:

Originally Posted by thenamesgould (Post 2278770)
Just uploaded the latest version when I upgraded to 4.1.9, and noticed that this step:

"replace the contents of the editor_ckeditor template with that of the editor_toolbar_off template"

doesn't seem to be in there, which lead to a bit of weirdness. Apart from that, very nice! :)

Is that to say you did this, and then all was cool?

Bacon Butty 12-18-2011 01:01 PM

Quote:

Originally Posted by Bacon Butty (Post 2275244)
Thanks for attempting to fix my problem - sure is appreciated.

I only have a couple of basic add-ons (VSa - Advanced Permissions Based on Post Count, Word Links by BOP5 VB4, vBookie, vB Optimise Lite, Separate Sticky and Normal Threads, Notification for Reputation) - no detection scripts.

If you have a moment, the website is www.grandoldteam.com/forum. If you visit via a mobile, you'll find your unable to escape the default mobile skin on any page other than forum home. Absolutely no idea where to look to fix, .htaccess?

Hi Dartho,

Just an update on this one. It seems a lot of users are finding themselves unable to "switch off the mobile style and use the regular forum default on their mobile devices" once upgraded to 4.1.8;

https://www.vbulletin.com/forum/show...08#post2244908

https://www.vbulletin.com/forum/show...obile-template

https://www.vbulletin.com/forum/show...owser-(vB4-1-9)

I realise it's likely to be a vBulletin issue, rather than your mod - but thought I'd advise here incase anyone else is having the same problem.

bremereric 12-18-2011 03:46 PM

1 Attachment(s)
:up: I have it installed on 4.1.3 And the only question I have if it looks right. I works great from a phone. Loads up a ton faster than any other style. Still loads pictures in a post, that is a plus. Here are two screen shots from my site.

dartho 12-19-2011 12:54 AM

Quote:

Originally Posted by bremereric (Post 2278862)
:up: I have it installed on 4.1.3 And the only question I have if it looks right. I works great from a phone. Loads up a ton faster than any other style. Still loads pictures in a post, that is a plus. Here are two screen shots from my site.

It looks like you have not upload the lightweight.css.php file to your forum root

dartho 12-19-2011 12:59 AM

Quote:

Originally Posted by Bacon Butty (Post 2278822)
Hi Dartho,

Just an update on this one. It seems a lot of users are finding themselves unable to "switch off the mobile style and use the regular forum default on their mobile devices" once upgraded to 4.1.8;

https://www.vbulletin.com/forum/show...08#post2244908

https://www.vbulletin.com/forum/show...obile-template

https://www.vbulletin.com/forum/show...owser-(vB4-1-9)

I realise it's likely to be a vBulletin issue, rather than your mod - but thought I'd advise here incase anyone else is having the same problem.

I'm sure VB will get onto this quick - esp since 4.1.9 was meant to be a big mobile fix release

edit: I looked at the vb detection code - it hasn't changed between 4.1.7 and 4.1.9.

bremereric 12-19-2011 04:21 AM

1 Attachment(s)
Quote:

Originally Posted by dartho (Post 2278987)
It looks like you have not upload the lightweight.css.php file to your forum root

You were correct sir. Sure looks different now. I am new to this but I am still not so smart that I can't ask questions. Thanks.

doobiefillin 12-19-2011 03:01 PM

Can you please link up all the modifications I can do to this theme so that I don't have to overwrite my XML file with the update? Thanks!

S_E_A 12-19-2011 03:01 PM

Dartho, does the latest version no longer show 'Currently Active Users'? Or is the issue at my end? Installed on 4.1.9.

dartho 12-19-2011 09:14 PM

Quote:

Originally Posted by S_E_A (Post 2279119)
Dartho, does the latest version no longer show 'Currently Active Users'? Or is the issue at my end? Installed on 4.1.9.

Do you have the Options addon installed and have Show "What's Going On" set to 'Yes' in it's settings in AdminCP?

Hippy 12-19-2011 09:25 PM

if you dont use that option addon remove this code
https://vborg.vbsupport.ru/showpost....&postcount=566

The Rocketeer 12-20-2011 12:00 AM

@ dartho - the mobile styles Logo is not appearing, I tried changing it on the stylevars titleimage. didn't work. using the latest version on vb 418.

dartho 12-20-2011 01:54 AM

You need to edit the css file - this style doesn't user the stylevars system. alternatively, you can edit the header template (or it could be navbar) and edit it direct

The Rocketeer 12-20-2011 02:05 AM

i see. :o which css file is that? having a hard time finding it in the header and navbar templates. :confused:

Also how do you disable the cms sidebar for the mobile style?
I tried adding the below code to the Lightweight Style Options but didn't work
Code:

$vbulletin->options['enablesidebar'] = 0;

thenamesgould 12-20-2011 03:51 AM

Quote:

Originally Posted by dartho (Post 2278781)
Is that to say you did this, and then all was cool?

Sorry for the slow reply. Yep, that's right. :)

Mr_Running 12-20-2011 12:44 PM

Thank you Dartho for the Lightweight Mobile Style.
Installed and currently checking it out. :)

I have the default vB google ads and I would like to remove the header and footer ads and keep the post ad.

How do I remove the header and footer Ads from the Lightweight Mobile Style?

dartho 12-20-2011 10:20 PM

Quote:

Originally Posted by Mr_Running (Post 2279375)
Thank you Dartho for the Lightweight Mobile Style.
Installed and currently checking it out. :)

I have the default vB google ads and I would like to remove the header and footer ads and keep the post ad.

How do I remove the header and footer Ads from the Lightweight Mobile Style?

edit thoise templates and search for and remove the ad hooks. They start have ad_location in the line, so you can search on this text

The Rocketeer 12-20-2011 10:45 PM

Dartho, you didn't answer my question :)
Also I was trying to improve the cms's look by removing the sidebars and any widget boxes, Can you tell me how? and after logging in the Copyright appears on top of the CMS..


also, i noticed, for some reason the vbulletin mobile detection script doesn't work properly for opera mini and a few other smart phone / iphone like devices? I set this skin as the mobile ski but its not changing. visiting my site using opera mini I get the default style, instead of the mobile style.

heres the opera mini simulator: http://www.opera.com/developer/tools/mini/


thanks

dartho 12-21-2011 01:49 AM

1 Attachment(s)
Sorry - didn;t see this post:
Quote:

Originally Posted by The Rocketeer (Post 2279267)
i see. :o which css file is that? having a hard time finding it in the header and navbar templates. :confused:

Also how do you disable the cms sidebar for the mobile style?
I tried adding the below code to the Lightweight Style Options but didn't work
Code:

$vbulletin->options['enablesidebar'] = 0;


the lightweight.css.php file which you would have uploaded to your forum root. Does the following path resolve on your site? /images/misc/mobilelogo.png - that's where the logo lives

As for the sidebar - I can't get a sidebar to show? However, gice the following code a try: $show['sidebar']=0; - might work, might not ...

The CMS isn't that straight forward to work out, otherwise it would be in this style. It really depends on your layouts I think. I have a very basic CMS setup working on my test site. I'll attach the style here and you can test and get back to me. Same rules apply - backup/test etc. before going live or overwriting you existing lightweight style. Best bet is to add it as a child style of light weight for testing, then if you're happy you can re-import it and merge into existing.

Let me know how it goes

dartho 12-21-2011 01:50 AM

@Rocketeer - As for the mobile device detection - dunno. You could edit the init.php file and manually modify the detection code to pickup those devices, but I think you probably need to lodge a support ticket with vBulletin.com

The Rocketeer 12-21-2011 09:00 AM

Thank you Dartho, Yes that solves the logo problem. I also figured out that having the Text Option enabled in the Liteweight styles options causes the image to be replaced by text. (missed that setting before haha) :)

Now about the sidebar, I am actually referring to the CMS Sidebar, Grids or Widgets as you call it, you know the ones that appear in your CMS such as Menu, Polls, recent Forum posts etc?? I am trying to disable that or any widgets to appear in the CMS home page. That would make it look clean and pretty much complete.

I tried the CMSONLY style you gave me. Installed it as a Child Style of light weight, didn't notice any difference until when I went to my CMS / Homepage, I noticed that it doesn't show any articles. The header, nav and footer is there but the content is not present, and only shows this $column[1] .. I went inside the vbcms_grid_1 and vbcms_grid_2 and noticed it had a lot less code, only this actually..

Code:

<vb:comment></vb:comment>
$column[1]

so maybe you have a few lines of code gone missing there ?

And thanks I will probably open up a support ticket with vBulletin about their Mobile Detection Script not working with Opera Mini and this or any other style.

Happy Holidays :)

dartho 12-21-2011 09:42 AM

Can't really offer much more - I don't know much about CMS or sidebars at all - I don't actually use it (CMS), or vBuylletin 4 for that matter. That CMS Style works on the simple CMS setup I have on my test site (http://vbdev.org)

The Rocketeer 12-21-2011 09:57 AM

Thanks Dartho. I am working on the CMS part, trying to see if it can be improved.
But I think you might have given me the wrong vbulletin-style-lightweight-1.0.3a-CMSONLY.xml version. lol. I fixed it a bit but I think its missing some codes on the vbcms_grid templates.

Mine Looks like this style on your test site: http://vbdev.org/?styleid=16

I think it should look like this one instead? - http://vbdev.org/?styleid=7

- notice on your test site how on styleid=16 there's no articles showing and it just shows $column[1], but on styleid=7 it shows the articles properly? Thats what I am talking about, styleid=16 must be the one you gave me, thats missing some edits.

:)

dartho 12-21-2011 10:40 AM

Actually - I think it is something to do with vBulletin's template system as opposed me exporting incorrectly.

If I export styleid 7 on my test site, i do not get CMS customisations to that style (although viewing it, you can see they are there). If during the export process I select CMS as the product, we end up with that blank page with column[1] on it...

Here's what I had to do to make it work.
Import the Lightweight Style to a new style
Import the CMSONLY style and merge with lightweight style imported above
Import lightweight style again and merge with lightweight style above

See how that goes ...


All times are GMT. The time now is 03:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02407 seconds
  • Memory Usage 1,853KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete