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!


All times are GMT. The time now is 02:31 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.03688 seconds
  • Memory Usage 1,770KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (7)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