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)

Alan_SP 01-21-2012 06:16 PM

Just found out this:

In template FORUMDISPLAY you use this code:

HTML 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&amp;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:

HTML 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&amp;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

Quote:

Originally Posted by deverill2010 (Post 2292328)
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

1 Attachment(s)
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:
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/showthrea...17#post2275317

Mark.B 01-27-2012 09:36 PM

Quote:

Originally Posted by dartho (Post 2293229)
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/showthrea...17#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

Quote:

Originally Posted by deverill2010 (Post 2292701)
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:
Code:

body
{

and add immediately above:
Code:

.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

Quote:

Originally Posted by dartho (Post 2289299)
If you wish to make this change manually, edit init.php and
search for:
Code:

elseif ($mobile_browser_advanced && $vbulletin->options['mobilestyleid_advanced'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with
Code:

elseif ($mobile_browser_advanced AND $vbulletin->options['mobilestyleid_advanced'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])
and search for
Code:

elseif ($mobile_browser && $vbulletin->options['mobilestyleid_basic'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with

Code:

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:


All times are GMT. The time now is 09:10 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.02452 seconds
  • Memory Usage 1,764KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)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