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)

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 05:00 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.02485 seconds
  • Memory Usage 1,774KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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