vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Mobile Phone / iPhone / PDA Detection and Style Assignment (https://vborg.vbsupport.ru/showthread.php?t=226946)

TacticalNuke 09-05-2011 12:48 AM

dartho,

Thanks for the mod. I've downloaded and am using the lightweight style. I also downloaded and installed the options and mobile detection and style assignment.

I'm having some issues with the options and style assignment. The options installs alright but none of the changes actually implement. By that I mean I can access the options under vbulletin options, but nothing happens when I change the options. When I install detection, it doesn't even show up under vbulletin options.

I tried both disabling all my other plugins and disabling them before reinstalling but neither appears to work. Do you have any ideas?

dartho 09-05-2011 03:41 AM

You're in the mobile device detection addon thread for vb3.8, there is a vb3.8 lightweoight style, but there is no "options" add-on for the "vb3.8 lightweight style", which is why they probably don't work :)

blind-eddie 10-06-2011 12:21 PM

Quote:

Originally Posted by dartho (Post 1973375)
Try this:

Edit the vbcms_page template in the mobile style and replace

HTML Code:

{vb:raw toolbar}
<div class="vbcms_content">
{vb:raw layout}
</div>

with something like

HTML Code:

<div class="vbcms_content">
Home page unavailable in mobile view, click <a href="forum.php">HERE</a> to view forums.
</div>


What coding do I need to get this to work on 3.8.4 vbacmps?

pgowder 10-06-2011 03:31 PM

Is there a way to allow people to go back to the full style?

blind-eddie 10-06-2011 04:42 PM

Quote:

Originally Posted by pgowder (Post 2253971)
Is there a way to allow people to go back to the full style?

Its an addon for this mod.
https://vborg.vbsupport.ru/showthrea...ghlight=Mobile

dartho 10-06-2011 11:59 PM

Quote:

Originally Posted by blind-eddie (Post 2253916)
What coding do I need to get this to work on 3.8.4 vbacmps?


Edit the adv_portal template in the style and replace it's contents with the following or something similar:

Code:

$stylevar[htmldoctype]
<html>
<head>
$headinclude
<meta http-equiv="Refresh" content="2; URL=forum.php" />
</head>
<body>

$header

$navbar
<div align="center"><a href="forum.php">Portal Disabled in Mobile View - Click here if your browser does not automatically redirect you.</a></div>

$footer

</body>
</html>

Alternatively the adv_portal template can be edited to only show the centre column.

You can do this by removing the left and right column block conditionals in the template in your mobile style. Find and delete the following 2 blocks of code:

Code:

                <if condition="$show['left_column']">
                        <td width="$vba_style[portal_leftcolwidth]"<if condition="$show['center_column'] OR $show['right_column']"> style="padding-$stylevar[right]: $vba_style[portal_colspacing]px"</if>>
                                $home[leftblocks]
                        </td>
                </if>

Code:

                <if condition="$show['right_column']">
                        <td valign="top" width="$vba_style[portal_rightcolwidth]"<if condition="$show['center_column'] OR $show['left_column']"> style="padding-$stylevar[left]: $vba_style[portal_colspacing]px"</if>>
                                $home[rightblocks]
                        </td>
                </if>

I've tweaked my vbadvanced templates a bit more to make them viewable in this style

djjeffa 01-13-2012 01:01 AM

is there any way to add Posted via Mobile Device to all the posts?

dartho 01-13-2012 05:24 AM

This will modify the post text and append a message to it, this means that the user could then edit the post again and remove the text if they wished, but it works for the most part. Disabling the pplugins will not remove the text from posts already made.

Create 2 plugins and change the XXX to the styleid number of your mobile style:
1.
Product:vBulletin
Hook Location:newreply_post_start
Title: Posted via Mobile Device NewPost
Execution Order:5
Plugin PHP Code:
Code:

if ($styleid==XXX) {
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "Posted via Mobile Device" . "\n";
}

2.
Product:vBulletin
Hook Location:newthread_post_start
Title: Posted via Mobile Device NewThread
Execution Order:5
Plugin PHP Code:
Code:

if ($styleid==XXX) {
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "Posted via Mobile Device" . "\n";
}


Mythotical 01-20-2012 02:03 AM

Just wanted to let you know I have tested this on vB 4.1.10 and it works perfect. Thanks.

Fluke667 02-27-2012 09:04 PM

Quote:

Originally Posted by dartho (Post 2287168)
This will modify the post text and append a message to it, this means that the user could then edit the post again and remove the text if they wished, but it works for the most part. Disabling the pplugins will not remove the text from posts already made.

Create 2 plugins and change the XXX to the styleid number of your mobile style:
1.
Product:vBulletin
Hook Location:newreply_post_start
Title: Posted via Mobile Device NewPost
Execution Order:5
Plugin PHP Code:
Code:

if ($styleid==XXX) {
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "Posted via Mobile Device" . "\n";
}

2.
Product:vBulletin
Hook Location:newthread_post_start
Title: Posted via Mobile Device NewThread
Execution Order:5
Plugin PHP Code:
Code:

if ($styleid==XXX) {
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "Posted via Mobile Device" . "\n";
}





i want make 5 empty lines and than "Posted via Mobile Device", but howto?


This isnt working:

Code:

"\n";
"\n";
"\n";
"\n";
"\n";
"\n";
if ($styleid==XXX) {
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "Posted via Mobile Device" . "\n";
}



All times are GMT. The time now is 01:32 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.01340 seconds
  • Memory Usage 1,756KB
  • 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
  • (8)bbcode_code_printable
  • (2)bbcode_html_printable
  • (4)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
  • (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