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)

edytwinky 06-13-2013 02:54 PM

Quote:

Originally Posted by dartho (Post 2426799)
I would guess that vbsuper uses its own alternate templates for displaying private messages and that those templates don't exist in this style, even if they did exist through inheritance, they'd likely not be mobile suitable?

dartho any suggestion on why the word array comes up when looking at poll voter history?

Bounce 06-15-2013 08:48 PM

Quote:

Originally Posted by Filgga (Post 2412497)
Superb! I know, many will benefit from this... Do I add the code onto the above code and look like:
PHP Code:

//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

none of this worked for me... running 4.2.1

I added the plugin but as soon as i clicked back onto forum link it brought up the default style :eek: when choosing 'mobile' in the style chooser it wouldnt change it back

Bounce 06-15-2013 09:06 PM

Quote:

Originally Posted by dartho (Post 2426799)
I would guess that vbsuper uses its own alternate templates for displaying private messages and that those templates don't exist in this style, even if they did exist through inheritance, they'd likely not be mobile suitable?

Never had time to look as complaints flooded in that PM's were not working, i would say 40% of users on my site use this style:cool:

dartho 06-16-2013 02:23 AM

Quote:

Originally Posted by Bounce (Post 2428365)
none of this worked for me... running 4.2.1

I added the plugin but as soon as i clicked back onto forum link it brought up the default style :eek: when choosing 'mobile' in the style chooser it wouldnt change it back

I just successfully tested this on a 4.2.1 site. Try logging out and testing as a guest or standard user.

dartho 06-16-2013 02:30 AM

Quote:

Originally Posted by edytwinky (Post 2427896)
dartho any suggestion on why the word array comes up when looking at poll voter history?

Edit the pollresult template and replace the contents with this:

Code:

<div class="windowbg">
        <span>
                <vb:if condition="$option['uservote']">
                        {vb:raw option.question}
                <vb:else />
                        {vb:raw option.question}
                </vb:if>
                <vb:if condition="$show['pollvoters']">
                        <div class="commalist">
                                <vb:each from="names" value="row">
                                        <a class="commalist" href="{vb:link member, {vb:raw row}}">{vb:raw row.musername}</a>{vb:raw row.comma}
                                </vb:each>
                        </div>
                </vb:if>
        </span>
<span><strong>{vb:raw option.votes}</strong></span>
<span>{vb:raw option.percent}%</span>
</div>


dartho 06-16-2013 03:46 AM

Quote:

Originally Posted by Bounce (Post 2425091)
Also in 4.2.1 there is 'array' showing on users online link

ediy WHOSONLINE template and replace
<span>{vb:raw onlinebits}</span>

with

Code:

<vb:each from="onlinebits" key="count" value="userinfo"><div>
<span><a href="{vb:link member, {vb:raw userinfo}}">{vb:raw userinfo.musername}</a></span>
                {vb:raw userinfo.action}
                <vb:if condition="$userinfo['show']['where']">
                  <span>
                    <vb:if condition="$userinfo['show']['subscribed']"><img class="inlineimg" src="{vb:stylevar imgdir_misc}/subscribed.png" alt="{vb:rawphrase you_are_subscribed_to_this_thread}" /></vb:if>
                    {vb:raw userinfo.where}
                  </span>
    </div>          </vb:if></vb:each>


edytwinky 06-20-2013 02:11 PM

Quote:

Originally Posted by dartho (Post 2428407)
Edit the pollresult template and replace the contents with this:

Code:

<div class="windowbg">
        <span>
                <vb:if condition="$option['uservote']">
                        {vb:raw option.question}
                <vb:else />
                        {vb:raw option.question}
                </vb:if>
                <vb:if condition="$show['pollvoters']">
                        <div class="commalist">
                                <vb:each from="names" value="row">
                                        <a class="commalist" href="{vb:link member, {vb:raw row}}">{vb:raw row.musername}</a>{vb:raw row.comma}
                                </vb:each>
                        </div>
                </vb:if>
        </span>
<span><strong>{vb:raw option.votes}</strong></span>
<span>{vb:raw option.percent}%</span>
</div>


Fixed. Thanks!

Guest200721 07-12-2013 04:32 AM

We downloaded the new Lightweight for vb4.2.1 as you said a few weeks ago.

I can't get our logo to show at the top . Is there a size limit? I'm pretty sure I have the right directory and titlename path. Does the logo have to have a certain name?

Thanks!

dartho 07-13-2013 11:59 PM

edit the lightweight.css.php file and search for $Logo="images/misc/mobilelogo.png"; and modify accordingly, or edit/overwrite the images/misc/mobilelogo.png file itself

Guest200721 07-14-2013 01:42 AM

I overwrote the image but it didn't work. The little cell phone is gone but my logo isn't there.

UPDATE: the image was named mobile.png. I renamed my logo and all is well!

THANKS!

jramos1973 07-14-2013 01:05 PM

Quote:

Originally Posted by The Rocketeer (Post 2323050)
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:

Thanks you, very much.. installed in web page :) NewGenteBlackBerry

PD : Excuse me for Bad English.. I Don?t Speak English very well..

:D :up:

craigvm 07-30-2013 03:10 PM

hi i was using this but decided to change colors and messed them up so i removed it but when i try to upload it again i get this server error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Web Server at fordmodified.co.uk

any idea why

dartho 07-30-2013 10:20 PM

Are you re-uploading the lightweight.css.php file also? Messing this file up could possibly cause server errors as as simple as it is, it is still PHP.

If you are uploading it - try deleting it and seeing if you then get errors - you should get a very simple bland style - and then upload a fresh copy again and see how it goes.

craigvm 07-31-2013 06:54 AM

Quote:

Originally Posted by dartho (Post 2436186)
Are you re-uploading the lightweight.css.php file also? Messing this file up could possibly cause server errors as as simple as it is, it is still PHP.

If you are uploading it - try deleting it and seeing if you then get errors - you should get a very simple bland style - and then upload a fresh copy again and see how it goes.

just tried m8 and still the same

dartho 08-02-2013 02:44 AM

Which did you try? Removing the lightweight.css.php or replacing it? If you get errors after removing it, your problem lies elsewhere...

craigvm 08-02-2013 10:32 AM

Quote:

Originally Posted by dartho (Post 2436646)
Which did you try? Removing the lightweight.css.php or replacing it? If you get errors after removing it, your problem lies elsewhere...

yes i tried both and as said every other theme installs fine

Bob Meta 08-05-2013 06:49 PM

I apologize if this has been asked earlier, but I could not find it while scanning through earlier posts. I have installed this style for our forums and it works perfectly and had no issues with the install. However, I can't find a "register" button anywhere on this style, so new users need to go to the Full Site in order to register. Am I missing something?

Thank you for the style!

Currently using vB 4.2.1

clayt101 08-06-2013 08:36 PM

Quote:

Originally Posted by dartho (Post 2423865)
just install this one as a new desktop style

Pretty new with this, but I wanted to give it a shot...

I think I did everything correctly...I put the contents of the "upload" folder on their corresponding folders on my FTP site.

I tried making it both a desktop style and a mobile style; however, both times I got the error saying it was made for 4.1.8.

I went into the xml file and changed it to 4.2.1....will that mess anything up (saved as a mobile style)?

dartho 08-06-2013 09:00 PM

That shouldn't mess things up - but you have an option to ignore version when importing, although there might be changes since 4.1.8 not compatible with 4.2.1

@Bob Meta - sorry, I never did the registration screens

Bob Meta 08-07-2013 04:27 PM

Quote:

Originally Posted by dartho (Post 2437568)
@Bob Meta - sorry, I never did the registration screens

Thank you for the response! I did notice that first time users will see the "If this is your first visit, be sure to check out...etc" message, and that does include a registration link. The registration form appears to be functional, although formatting is a bit off.

Do you have plans to add a more permanent registration link/page in the future?

Edit: I would like to add that despite not having a registration link, I still far prefer this mobile style over vb default. It's faster and MUCH easier to navigate.

rughis 08-08-2013 07:46 AM

Quote:

Originally Posted by rughis (Post 2419926)
Can I do something to fix?
I don't use vB Mobile Style. Uninstalling it can fix the problem or I have to do something else?

Thank you for your help

Hi Dartho, I've tried to further understand the problem, but without success :(

I deleted vB Mobile Style and I reinstalled the lightweight style from scratch, but now I receive the message "Array" on whoisonline.

Edit: SOLVED!!!

https://vborg.vbsupport.ru/showpost....postcount=1061

heyzeus909 08-10-2013 01:14 AM

Is there any way for an option to upload/attach pictures? A 'manage attachments' button, or a link - anything would be great.

dartho 08-10-2013 10:56 AM

adding attachments is already an option...

heyzeus909 08-10-2013 09:15 PM

I only see the option when submitting a new thread, not when replying.

Example

trigatch4 08-13-2013 07:39 PM

Any chance you would update your vB 3.8.7 style to look more like this?

I've been scouring the web for days looking for a suitable 3.8.7 mobile style but pretty much everything is horrendous and our site is too large and customized to move to 4.X+

Would pay to have this done...

dartho 08-14-2013 03:19 AM

Quote:

Originally Posted by trigatch4 (Post 2438715)
Any chance you would update your vB 3.8.7 style to look more like this?

I've been scouring the web for days looking for a suitable 3.8.7 mobile style but pretty much everything is horrendous and our site is too large and customized to move to 4.X+

Would pay to have this done...

Check it: https://vborg.vbsupport.ru/showthread.php?t=263822 :up:

tareqbd 11-17-2013 01:52 PM

Anyway to make dbtech advance registration work with it?

dartho 11-18-2013 10:47 AM

I don't know/use that mod - what doesn't work?

deprich 11-26-2013 03:41 PM

I found the following error for me:

When i do a "New Posts" search, the links for "Last page" are broken. Usually it should be something like that:

http://www.example.com/f99/thread-name-9999/index999.html

But it is something like that:

http://www.example.com/f99/thread-name-9999/index999Array.html

Of course the "Array" is the mistake and i guess there is something wrong in a template for the search, but i couldn't find where, what and why. I use the Style with vB 4.2.0.

Any Fix for that problem would be very helpful.

asabet 05-31-2014 12:28 AM

First, thanks for this awesome style. Donation sent. Second, is there a way to use CSS to resize images similar to how the Stylevar works for the default vB4 style?

The reason I ask is that this Lightweight style seems to load images full size briefly, and then they resize down to 200px. Sometimes this doesn't seem to happen smoothly, and on some phones, it results in wacky formating (horizontal scrolling, yuck).

The default style resizes to whatever you've set as image_max_size in the StyleVar prior to loading the image, which seems to work better. Any way to do something similar here?

Thanks again!

asabet 06-01-2014 10:58 PM

Quote:

Originally Posted by dartho (Post 2277273)
sorry, edit the CSS file (the lightweight.css.php file you uploaded to your server), and add it right at the end - sorry, no ?> to search for at the end.

I solved my image resizing problem by adding this at the end of the aforementioned CSS file:

PHP Code:

img
{max-width:90%;
height:auto;
margin-left:auto
margin-right:auto;} 


asabet 06-08-2014 12:51 AM

Quote:

Originally Posted by Mark.B (Post 2293179)
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:
PHP Code:

if (STYLEID==$vbulletin->options['ls_mobile_style'])
{
$vbulletin->userinfo[showvbcode]=0;


Give it a whirl, seems to have worked for me.

Thanks, that worked great for me. I don't use the Lightweight Style Options product, so I altered it as follows:

Product: Vbulletin
Name: Disable WYSIWYG for mobile style
Hook Location: editor_toolbar_switch
Execution order: 5
PHP Code:

if (STYLEID==X)
{
$vbulletin->userinfo[showvbcode]=0;


where X is the # for my mobile style

asabet 06-08-2014 02:29 PM

Another change I made was to put this for headinclude so the page doesn't autozoom during post edit or reply:

PHP Code:

<vb:if condition="!in_array(THIS_SCRIPT, array('newreply', 'editpost'))">
<
vb:comment>
<
meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
</
vb:comment>
<
meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<
vb:else />

<
vb:comment>
<
meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
</
vb:comment>
<
meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
</
vb:if>

<
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}/" /> 


Bounce 07-12-2014 05:11 PM

Anyone able to add code to delete a private message when in usercp?

What template is the private messages?

dartho 07-16-2014 08:41 AM

Adding something like:
HTML Code:

<form action="private.php?do=managepm&amp;dowhat=delete&amp;pmid={vb:raw pm.pmid}" method="post" class="block">
<div class="titlebg">{vb:rawphrase delete_this_message}</div>
                <div class="windowbg">
{vb:rawphrase delete_message_click_button}
<input type="submit" class="button" value="{vb:rawphrase delete_this_message}" />
<br /><label for="deletepm"><input id="deletepm" name="pm[{vb:raw pm.pmid}]" type="checkbox" value="true" /> {vb:rawphrase delete_this_message}</label>
                </div>
                <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
                <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
                <input type="hidden" name="do" value="managepm" />
                <input type="hidden" name="dowhat" value="deleteonepm" />
                <input type="hidden" name="folderid" value="{vb:raw pm.folderid}" />               
        </form>

to the bottom of the pm_showpm template should do it, I think ...

Twikitero 07-21-2014 06:38 PM

Is it possible to replace the mobile style that comes with vbulletin default for this style?
Thanks

EDIT: SOLVED

Twikitero 07-21-2014 07:39 PM

I have a problem, when I go to my site from a mobile forum automatically detects correctly but an annoying zooming, as could edit this to be displayed without having to zoom out completely manually.
Thank you
this is my site if you can visit it http://www.thisiphone.com/forum.php from a mobile so you can view

Mark.B 07-21-2014 08:26 PM

Quote:

Originally Posted by Twikitero (Post 2507676)
I have a problem, when I go to my site from a mobile forum automatically detects correctly but an annoying zooming, as could edit this to be displayed without having to zoom out completely manually.
Thank you
this is my site if you can visit it http://www.thisiphone.com/forum.php from a mobile so you can view

A a guess, it's to do with your header....have you altered the header template at all?

Twikitero 07-22-2014 12:38 PM

Quote:

Originally Posted by Mark.B (Post 2507686)
A a guess, it's to do with your header....have you altered the header template at all?

Thanks for your response, but I have not made any changes in this template style Lightweight.
?You know how I can solve this error?
Thanks

Mark.B 07-22-2014 03:24 PM

The code in red below causing your issue:
Code:

body {
    margin: 0;
    min-width: 990px;
    width: auto;
}



All times are GMT. The time now is 12:19 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.02531 seconds
  • Memory Usage 1,899KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (5)bbcode_php_printable
  • (18)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