vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=230)
-   -   Mobile, Cell, Phone, PDA, iPhone Style (https://vborg.vbsupport.ru/showthread.php?t=174375)

dartho 05-14-2008 11:37 PM

Quote:

Originally Posted by 051119 (Post 1519667)
Is it possible to turn off the 'Posted via Mobile Device' message?

Thanks!

Best way is to do a search and replace on the mobile templates - search for [i]Posted via Mobile Device[/i] and replace with nothing...

I see I'm probably going to have to release a product with this style to turn things on and off and set options ?

swissbob 05-15-2008 12:50 AM

Quote:

Originally Posted by dartho (Post 1519977)
I did add these, and also managed to get Mobile Adsense working (with some manual work - no product for this sorry) but then trashed my dev server to do test runs on upgrading my live one... I'll look into it real soon and post an up date with the template ad hooks in and also soem guidelines on how to integrate mobile adsense...

That sounds great, thanks.

I finally managed to get a mobile sub domain working with vBSEO. for anyone else getting the same problem, there are at least two solutions here:
http://www.vbseo.com/f2/base-href-23196

swissbob 05-15-2008 10:31 AM

Our next challenge is to create a mobile domain site map for Google.

swissbob 05-15-2008 10:45 AM

Also, it is no longer validating as XHTML 1.0 Strict. It looks relatively simple to fix though - just remove a 'center' argument and the layout of some of the tags.

howarde 05-16-2008 02:14 PM

Great out of the box mobile style! Works great on my PDA!

I just added

Quote:

<if condition="!$show['detailedtime']"><span class="time">$thread[lastposttime]</span></if>
to the Threadbit since our forum is very active - it makes it easier for someone like me (a user of the mobile style) :D

Jase2 05-19-2008 09:51 PM

Quote:

Originally Posted by TechGuy (Post 1519535)
FYI, I "fixed" the Opera Mobile bug by removing this code from the tagbit_wrapper template:

Code:

<img src="$stylevar[imgdir_misc]/11x11progress.gif" id="tag_form_progress" class="inlineimg" style="display:none" alt="" />

Thanks for that, TechGuy. That is however for the tags, so a work-around needs to be done. Saying that, Dartho hasn't made it work to add tags--so it must be there by mistake. I'm going to add capability for adding tags, so I'll post an update shortly. :)

swissbob 05-21-2008 10:36 AM

I have noticed that every page has the same title too. This is of course terrible for search engine placement.

The problem is that the headinclude features this:
Code:

<title>$vboptions[bbtitle] Mobile</title>
<link rel="stylesheet" href="wireless.css" type="text/css" />

I have been trying to use conditionals in the headinclude to change this. I can get it to work for the foumdisplay pages but not showthread:

Code:

<if condition="THIS_SCRIPT == 'forumdisplay'">
        <title>$foruminfo[title_clean]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if></title>
<else />
        <if condition="THIS_SCRIPT == 'showthread'">
                <title>$thread[prefix_plain_html] $thread[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if></title>
        <else />
                      <title>$vboptions[bbtitle] Mobile</title>
        </if>
</if>
<link rel="stylesheet" href="wireless.css" type="text/css" />

I just get a blank title for the threads. I presume that this means that for some reason the $thread information isn't available? The page number will show, but the prefix and title are missing.

I am a complete novice at this kind of alteration. Can anyone see what I am doing wrong?

swissbob 05-21-2008 11:07 AM

This is just a quick recap of what this style could do with to make it perfect:

1. Mobile Adsense integration
2. Appropriate titles
3. An option to revert to the default style in the footer
4. Inclusion of tags for adding/editing (not essential though)
5. Optional removal of the 'posted via mobile device' message.
6. Creation of a mobile sitemap for Google

Jase2 05-21-2008 12:26 PM

Hmm.... why is is bad for search engine? Bots aren't going see this style, are they ?

It can be easily changed to use the forum and thread titles, but I don't see the benefits...

swissbob 05-21-2008 01:40 PM

Quote:

Originally Posted by Jase2 (Post 1526796)
Hmm.... why is is bad for search engine? Bots aren't going see this style, are they ?

They are if it is on a separate domain, which this style is designed for. Google runs a separate mobile search engine that will happily spider a mobile optimised version.

I use m.mydomain.com for the mobile version and hopefully I will work out how to create a separate mobile sitemap for the site too.

If it is easy enough, then please, please, please make the change! :)


All times are GMT. The time now is 01:07 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.01805 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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