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)

daveaite 09-12-2010 09:54 PM

Donated :)

CoZmicShReddeR 09-13-2010 10:42 PM

hey mine keeps showing the CMS page any idea's how to fix it? When I use with the other theme it works fine but this one shows cms page...

I am using both of your mobile plugins too not sure if I set something wrong...

I am using mobile opera on my window mobile device.

dartho 09-14-2010 12:31 AM

Not sure I understand. If I head to your site, I get the CMS - then if I click Forums, I get forums. Forums are all looking as they should.

Try editing teh vbcms_page template in teh Lightweight style and replace it's contents 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}">
<head>
    {vb:raw headinclude}

    <title><vb:if condition="$vboptions['cmstitle']">{vb:raw vboptions.cmstitle}<vb:else />{vb:raw vboptions.bbtitle}</vb:if> - {vb:raw html_title}</title>

    {vb:raw headinclude_bottom}
</head>

<body style="text-align:{vb:stylevar left}">

{vb:raw header}
{vb:raw navbar}
{vb:raw toolbar}
<div class="vbcms_content">
Home page unavailable in mobile view, click <a href="forum.php">HERE</a> to view forums.
</div>
{vb:raw footer}
</body>
</html>


Devoran 09-17-2010 06:10 AM

Hey there - firstly, fantastic style - I love it! Have it working with both the options addon and the mobile detect addon. Only one thing, the new posts box seems to sit out to the right a little on iOS 4.1 and Safari (my only test mobile platform) rather than remaining flush with the rest of the page, and also it appears at the bottom on every single forum page. Is this normal?

ximcix 09-17-2010 08:59 AM

I uploaded the images folder & lightweight.css.php to my forums root, but get a barebones style (no logo image, no colors) what Am i doing wrong?

Yes I installed & configured the product as well.

dartho 09-17-2010 10:07 AM

@Devoran - Are you able to give me a screen shot? I use safari under windows and an iphone emulator - both seem to be showing OK.

@ximcix - can you send me a link? Generally means (OK - always means) you've uploaded to an incorrect place, or the incorrect folder.

ximcix 09-17-2010 03:47 PM

sent via PM

dartho 09-17-2010 10:19 PM

Thanks ximcix, I see the issue now.

Have a look in at the FAQ in post #2 https://vborg.vbsupport.ru/showthrea...87#post2089187 and use the 'longtag' CSS you can download from there!

ximcix 09-17-2010 11:05 PM

Thank you.
Working now
Marked as Installed

asuccar 09-19-2010 12:40 AM

This is freakin awesome dude...I installed all of your stuff and together they work like a charm!!!!! Thanks heap!!!!!

Question, this style is only for forums right....how can we have it for blogs as well?

dartho 09-19-2010 02:54 AM

Quote:

Originally Posted by asuccar (Post 2100266)
how can we have it for blogs as well?

by painstakingly editing all the blogs templates so they display on a small screen Ok.

vbulletin will have it covered by the end of the year if what they say over at vbulletin.com is true

Manoel J?nior 09-19-2010 03:53 AM

Great man!

Thanks: INSTALLED!

Rebecca217 09-19-2010 02:49 PM

This is great! Thank you! :)

fridaypassion 09-21-2010 06:22 PM

Just installed this and it made my CMS disappear?

dartho 09-22-2010 12:18 AM

CMS does not work (well) in this style, but it should not be affected in any other.

pandusetiawan 09-23-2010 10:35 AM

Hi Dartho...great work with this stuff...two thumbs up for you :)
A little question...how can I add "first page" link in the thread view..since the threadview are always bring us to the last post/last page of the thread.thanks.

dartho 09-23-2010 11:04 AM

It shouldn't bring up the last post, but rather the first unread post.

You could add or modify the link in the threadbit template to one of the following

Code:

First Post:
<a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw thread.realthreadid}">First Post</a>

First New Post:
<a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_gotonew_{vb:raw thread.realthreadid}">First New Post</a>

Last Post:
<a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpost}, 'threadid', 'threadtitle'}#post{vb:raw pageinfo_lastpost.p}">Last Post</a>


pandusetiawan 09-23-2010 12:27 PM

Oh I see.
Ok..I'll try it tomorrow...thx a lot buddy :)

pandusetiawan 09-24-2010 12:59 AM

Quote:

Originally Posted by dartho (Post 2102193)
It shouldn't bring up the last post, but rather the first unread post.

You could add or modify the link in the threadbit template to one of the following

Code:

First Post:
<a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw thread.realthreadid}">First Post</a>

First New Post:
<a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_gotonew_{vb:raw thread.realthreadid}">First New Post</a>

Last Post:
<a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpost}, 'threadid', 'threadtitle'}#post{vb:raw pageinfo_lastpost.p}">Last Post</a>


Work well....thx very much bro...you're the man :D

2 more thing....how to add 'First page' & 'Last Page' link in postbit & how to make picture (that using [img] tag) are displayed in postbit?
Thx :)

dartho 09-24-2010 01:20 AM

I'm not sure I understand - the postbit is for individual posts - there is no first/last.

Images should work as normal

pandusetiawan 09-24-2010 02:11 AM

Quote:

Originally Posted by dartho (Post 2102522)
I'm not sure I understand - the postbit is for individual posts - there is no first/last.

Images should work as normal

I mean First & Last Page of the post....as Djawir said in post #14 :D

<<First 2 3 4 5 Last>>

Image are ok now..thx :)
How do I find the addon variable name to turn it off in options?I'm using Everywhere Side Bar....& i want to disable it on mobile view.

dartho 09-24-2010 02:39 AM

OK. Try replacing the pagenav template with

Code:

                <vb:if condition="$show['first']">
                <span class="first_last"><a rel="start" href="{vb:raw firstaddress}{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase first_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw firstnumbers.first}, {vb:raw firstnumbers.last}, {vb:raw total}}">{vb:rawphrase first}</a></span>
                </vb:if>
                <vb:if condition="$show_prior_elipsis && $show['prev'] && $show['first']">
                <span class="separator">...</span>
                </vb:if>
                {vb:raw pagenav}
                <vb:if condition="$show_after_elipsis && $show['next'] && $show['last']">
                <span class="separator">...</span>
                </vb:if>
                <vb:if condition="$show['last']">
                <span class="first_last"><a href="{vb:raw lastaddress}{vb:raw address2}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?<vb:else />&amp;</vb:if>page={vb:raw totalpages}</vb:if><vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase last_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw lastnumbers.first}, {vb:raw lastnumbers.last}, {vb:raw total}}">{vb:rawphrase last}</a></span>
                </vb:if>


dartho 09-24-2010 02:52 AM

Quote:

Originally Posted by pandusetiawan (Post 2102531)
How do I find the addon variable name to turn it off in options?

Turn turn off the disaply of images?
Quote:

I'm using Everywhere Side Bar....& i want to disable it on mobile view.
Could you link me to this so I can look?

pandusetiawan 09-24-2010 02:57 AM

Quote:

Originally Posted by dartho (Post 2102543)
OK. Try replacing the pagenav template with

Code:

                <vb:if condition="$show['first']">
                <span class="first_last"><a rel="start" href="{vb:raw firstaddress}{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase first_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw firstnumbers.first}, {vb:raw firstnumbers.last}, {vb:raw total}}">{vb:rawphrase first}</a></span>
                </vb:if>
                <vb:if condition="$show_prior_elipsis && $show['prev'] && $show['first']">
                <span class="separator">...</span>
                </vb:if>
                {vb:raw pagenav}
                <vb:if condition="$show_after_elipsis && $show['next'] && $show['last']">
                <span class="separator">...</span>
                </vb:if>
                <vb:if condition="$show['last']">
                <span class="first_last"><a href="{vb:raw lastaddress}{vb:raw address2}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?<vb:else />&amp;</vb:if>page={vb:raw totalpages}</vb:if><vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase last_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw lastnumbers.first}, {vb:raw lastnumbers.last}, {vb:raw total}}">{vb:rawphrase last}</a></span>
                </vb:if>


Worked...thx man :)

http://asixpoint.com/im2/out.php/i1608_Capture11497.jpg

Everywhere Sidebar : https://vborg.vbsupport.ru/showthread.php?t=233871

dartho 09-24-2010 04:05 AM

Try adding

Code:

//disable everywhere sidebar
$vbulletin->options['esidebar_switch']=0;

in the disable addons code box in 'Lightweight Style Options' settings

pandusetiawan 09-24-2010 04:19 AM

Quote:

Originally Posted by dartho (Post 2102568)
Try adding

Code:

//disable everywhere sidebar
$vbulletin->options['esidebar_switch']=0;

in the disable addons code box in 'Lightweight Style Options' settings

It's not work...although there are no sidebar in forumhome....but inside forum the sidebar are still showed up :(

http://asixpoint.com/im2/out.php/i1609_cap22.jpg

dartho 09-24-2010 06:08 AM

try checking with the mod author - they'd know how to disable their code better than I would

pandusetiawan 09-24-2010 06:29 AM

Quote:

Originally Posted by dartho (Post 2102595)
try checking with the mod author - they'd know how to disable their code better than I would

Ok..will do that...thx so much for you help man :)

nike.stars 09-26-2010 06:35 PM

i think i found a bug

if the forum is turned Off, and we try to access the skin via a direct link and then try to log in, it success but i was thrown back to homepage being logged out. however if i try to click PC Mode link, it works fine and also if i switch back to lightweight it is fine. i try it on iphone though

some suggestions: you might want to add "first / prev" for page navigation because it really speed up navigating process. Please also add more spaces between page number as it is very hard to click on a iPhone/touch sensitive based device

dartho 09-26-2010 10:10 PM

For First / Last - have a look on the previous page, post #103.

As for the log in issue, what do you mean by "works fine"

I have found that I can log in with the forums turned off, but can't actually see anything other than the forum closed message. This happens under any style and would be a vBulletin bug. I can't view any posts or threads though?

nike.stars 09-27-2010 04:54 AM

sorry, a bit correction, the problem above is also happen if the forum is switched ON.

what i mean works fine, if i access using standard styling, i can login as usual and then switch back to lightweight style and use it normally

however, if i try to login using lightweight style, i can't login properly, it keep throwing me back to home page, it seems like login isn't processed though

dartho 09-27-2010 10:35 AM

I can't reproduce this on my phone (WinMo 6.5 HTC) or any desktop browsers (safari, chrome, firefox, IE)

Anyone else?

nike.stars 09-28-2010 03:56 PM

hm, maybe because i assigned a subdomain m.domain.com to be redirect to style direct link?

because if i choose the lightweight style manually from main style, it is fine

dartho 09-28-2010 10:01 PM

Rather than redirect to a style link, try pointing m.domain.com to the same webspace as your primary domain and give https://vborg.vbsupport.ru/showthread.php?t=174381 a go (install the single domain version - the 2nd XML file) It says it's for 3.7, but it works for 4.0

winners888 09-29-2010 06:05 AM

Can the menu make it in such a way like Iphone where you touch the arrow and it will just slide to next page..?

nike.stars 09-29-2010 08:32 AM

i've give that plugin a try, but still i can't login properly if i login from m.domain.com

well actually, i'm already logged in, this is proved if i switch back to PC Mode, i'm already logged in. it seems the style cannot accept proper login if i login from subdomain

should i make a video to show it?

dartho 09-29-2010 08:34 AM

Ah - that's vBulletin doing what it is meant to do - I think you will need to add m.domain.com to your domain whitelist in settings in AdminCP

slinky 09-29-2010 12:37 PM

A couple of things - in the if/else statement in the navbar template, the forum home URL is hardcoded as forum.php. This caused me to have problems since I renamed it to index.php so I wouldn't have forum.php as my forum title - it hadn't been the case in the past. :) This may throw a couple of people as you set this variable in the navbar. Will also go to the mobile options page since I didn't get the "PC Mode" link to switch to the PC style to show up.

In addition, no link to site home via the graphic. I added that in, a simple URL most would expect instead of a wasted space for the logo.

dartho 09-29-2010 12:44 PM

The "PC Mode" link comes when you install and configure "Lightweight Style Options"

I'll have a look at the templates in regards to your other suggestions

slinky 09-29-2010 12:50 PM

Quote:

Originally Posted by dartho (Post 2104606)
The "PC Mode" link comes when you install and configure "Lightweight Style Options"

I'll have a look at the templates in regards to your other suggestions

I just realized I was confused with the lightweight and mobile options - make sure you install the right one! :D Doh! Thanks. :)


All times are GMT. The time now is 05:08 AM.

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.02106 seconds
  • Memory Usage 1,840KB
  • 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
  • (7)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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