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-13-2008 09:33 AM

Change in previous post implemented. If you forum home page is not index.php - you will need to edit the navbar temaplte and change accordingly

tekguru 05-13-2008 04:57 PM

Good to see this being developed. Installed.

TechGuy 05-13-2008 05:52 PM

Quote:

Originally Posted by dartho (Post 1517881)
I actually don't use any gif's in this style - I logged onto your site with a mobile device and didn't get a mobile style either...

You're right -- you don't. It's got to be some WYSIWYG JavaScript. How else could it pick up when I click inside the textarea?

http://forums.techguy.org/ shows up in this skin on my phone in both IE and Opera... IE works completely OK, but Opera has the 11x11progress issue.

Thanks!

Jase2 05-13-2008 06:18 PM

Hi TechGuy, I don't seem to be having that problem with mine. Do you have any modified code ? I suggest you upload the code you're using, so that we can take a look. That is, the whole style .xml =)

TechGuy 05-13-2008 07:37 PM

I haven't modified the style in any way. Just signed up for your site (nice one, by the way) -- same problem when using Opera for Windows Mobile.

Jase2 05-13-2008 07:47 PM

Ah, so it appears to be. I'll have to take a look through the code -- unless Dartho already has a fix?
Quote:

Just signed up for your site (nice one, by the way)
Thanks!

dartho 05-13-2008 10:38 PM

I just loaded opera mini 4 on my device, surfed to my site (which I just installed the latest version of this style on fresh).

The quick reply appears to have a small square in it which I am assuming is a carriage return or line feed marker.

By editing the SHOWTHREAD template and removing any whitespace between
"<textarea name="message" rows="10" cols="30" style="height:100px;width:100%" tabindex="1">"
and
"Posted via Mobile Device</textarea>"

this will remove that symbol. Although it doesn't appear to affect functionality...

TechGuy 05-13-2008 10:59 PM

Not Opera Mini, but Opera for Windows Mobile. :)

webghey 05-14-2008 02:29 AM

any help on the ability to allow tmobile sidekick users to see the normal version instead of mobile? I'm not sure what I would need to write in the exception box?

dartho 05-14-2008 02:37 AM

Assuming you are using this https://vborg.vbsupport.ru/showthread.php?t=173239 for mobile detection? If so, when a sidekick user is online, check their useragent string in teh Who's Online section. You can then pick a unique piece of this and add it to teh exceptions.

A quick google and it looks it the UA string will be: Mozilla/5.0 (compatible;AvantGo 3.2 ProxiNet; Danger hiptop 1.0)

If this is the case, probably add "hiptop 1.0" to the exceptions - I believe Danger Hiptop make the sidekick? Liek I said - this is from 30 seconds of research, so double check and test!

Hope this helps -

webghey 05-14-2008 02:51 AM

hey hey hey - thank u - I will look now

swissbob 05-14-2008 04:24 PM

Quote:

Originally Posted by RCK (Post 1514132)
Hello,
I don't know what is vbSEO and didn't change the 'include domain in URLs' option. But with standard vB I manage to fix the error you had.

http://www.vbseo.com

I have tried turning vBSEO off and on, and it is definitely the cause of the base href inclusion. I have asked on thieir forum if it is possible to turn it off.

In the mean time, I have been trying to install Google Mobile Adsense, without any luck. Do the hooks not work in this mobile style?

I tried a conditional clause on the style id in a new plugin like this, wrapped around the adsense code, but can't get it to appear for any of the main hooks:
Code:

if($GLOBALS[foruminfo][styleid]==8)
{
}

Admittedly my understanding and experience of the hook system is extremely limited.

Jase2 05-14-2008 04:44 PM

No, the template hooks will need to be added. I believe Dartho was going to do this, not too sure now, however. It's pretty easy to add the hooks, though. :)

TechGuy 05-14-2008 04:55 PM

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="" />

051119 05-14-2008 06:46 PM

Is it possible to turn off the 'Posted via Mobile Device' message?

Thanks!

joopster 05-14-2008 07:02 PM

Quote:

Originally Posted by Crimm (Post 1502304)
Dartho I hope you don't mind this. I HAD to get this working, so I thought I would offer everyone a bandaid until Dartho gets back. I thought I would share in case anyone is stuck after moving to 3.7 today.

Okay I had to get this working, since I have already moved to 3.7 and I have mobile users ;)

According to this post: https://vborg.vbsupport.ru/showthread.php?t=177013

If you are getting this error:

Find the following templates:

Add this just before the submit button:
Code:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
That should at least get you by in a pinch until Dartho puts a new version up.

;)

Thanks for this but what is the submit button code?

Jase2 05-14-2008 07:33 PM

You don't need to do that now. Dartho has updated the original first post with the new download package :)

joopster 05-14-2008 10:43 PM

I am still getting that message. I have done the final update as suggested after going from 6.10 to 7 from vb.com. I don't know how to get this to work properly.

joopster 05-14-2008 10:50 PM

for some reason it works now.

oh well.

thanks!

dartho 05-14-2008 11:35 PM

Quote:

Originally Posted by Jase2 (Post 1519521)
No, the template hooks will need to be added. I believe Dartho was going to do this, not too sure now, however. It's pretty easy to add the hooks, though. :)

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...

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! :)

Jase2 05-21-2008 05:06 PM

I see what you mean. I don't think this style was made for a different domain, though -- since Dartho only released an hack to do that not so long ago. It's simply an easy-to-use mobile style!

swissbob 05-21-2008 07:24 PM

Quote:

Originally Posted by Jase2 (Post 1527073)
I see what you mean. I don't think this style was made for a different domain, though -- since Dartho only released an hack to do that not so long ago. It's simply an easy-to-use mobile style!

Well, it's a match made in heaven. :)

I think that the titles should be fixed for both the sake of doing it properly for mobile users with decent sized screens and for those forum owners who want to run a separate domain (i.e. me).

dartho 05-21-2008 09:17 PM

Fixing up titles:

Edit the headinclude template and remove:
Code:

<title>$vboptions[bbtitle] Mobile</title>
Then edit the showthread template and add:
Code:

<title>$thread[prefix_plain_html] $thread[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
after the text $headinclude


Then edit the forumdisplay template and add:
Code:

<title>$foruminfo[title_clean]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
after the text $headinclude


Then edit the FORUMHOME template and add:
Code:

<title>$vboptions[bbtitle] Mobile</title>
after the text $headinclude

dartho 05-21-2008 09:27 PM

In relation to search engines. I started showing this style to Yahoo (my ranking sucks on Yahoo anyway, so I wasn't too concerned about negative side effects and it's always crawling with Yahoo spiders) only yesterday and noticed that my bandwidth usage for the day dropped significantly!

It's hard to tell after only a day, but anywhere between 25% and 50% which is 250 - 500MB on my site!

swissbob 05-21-2008 10:15 PM

Thanks for the titles solution. That will make a huge difference. I love this style on a separate domain that you have created.

Now we just need a hook and plugin for the adsense. Any idea how to add those?

We shouldn't underestimate the worth of the mobile Adsense. I have one other site (not a forum) that has a mobile version and the mobile adsense consistently out performs the main adsense, despite having about 1/3 of the traffic.

dartho 05-22-2008 02:02 AM

New version released - Changes above (post 113) have now been integrated, also added ad_location hooks (be aware that if you have an ad management system these may now be used and display non mobile ads in your style!)

I also played with integrating Google Mobile Adsense - I have done it (I think - it may take a couple days for teh ads to start showing, but it looks promising from the HTML source code of my site) on SHOWTHREAD as below:

Edit: See post 134 for mobile ads integration information...

TechGuy 05-22-2008 03:25 AM

Looks great! Even Opera Mobile likes it. :)

Hornstar 05-22-2008 09:31 AM

I installed it, and selected it on my pc, but how do I go back to my other skin now? I dont see any skin selection drop down box.

swissbob 05-22-2008 09:39 AM

Quote:

Originally Posted by dartho (Post 1527512)
Anyone want to test this stuff and let us know how it goes? I've added all the other ad_location hooks - just need to determine the best vbulletin hooks to use to populate them.

OK, my ads haven't appeared yet, but some test text is in place, thank you.

As for locations, which hooks have you included? showthread_start appears to put the ad code right at the top, above the HEAD section, which I think will cause it to fail validation and breaks the cookies for mobile browsers (i.e. breaks the website).

Ideally, we would want it after the HEAD, and just before the content. Any idea which hook corresponds to this position for every page?

Hornstar 05-22-2008 09:57 AM

Thanks, ive noticed a few slight things, but hopefully you will continue to update and support this skin, because it looks promising! thanks.


Just wonder tho, I have a donation hack installed and it is showing on my mobilie skin, any idea how I will remove this from just the mobile skin? www.gamerzneeds.net/forums

Thanks.


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.01987 seconds
  • Memory Usage 1,841KB
  • 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
  • (10)bbcode_code_printable
  • (12)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
  • (40)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