Welcome to Geeklog, Anonymous Tuesday, December 24 2024 @ 09:32 pm EST

Geeklog Forums

Geeklog Site Specialized for Blackberry?


Status: offline

winnerdk

Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama
I'm looking into how to make my primary web site more "Blackberry Friendly."

Right now when I look at the site on a Blackberry, users have to "scroll down" through all of the header information and everything included in the left side block before they (finally) get to the content which is contained in the center block.

The first thing that comes up is the "Contribute" link in the header. This is what I'm thinking about - is it possible to add before the "Contribute" link another shortcut to another part of the site built specifically for Blackberry users?

For example, a link that would say something like "Blackberry Friendly Site" and then have a section that collects the printer friendly versions of the articles (only). Or, maybe that could just be a link to the directory for that day.

Is anyone doing something like this? Thoughts? Ideas? How do I get there?

Any input would be appreciated. Big Grin

Don
http://www.panama-guide.com
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Just make a blackberry theme with no side blocks and where the templates contain minimal info. Then create a second account that you login from on your blackberry. Or find out if there is something in the $_SERVER array that tells you the browser is on a blackberry and automatically switches the theme.
 Quote

Status: offline

winnerdk

Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama
Quote by: jmucchiello

Just make a blackberry theme with no side blocks and where the templates contain minimal info. Then create a second account that you login from on your blackberry. Or find out if there is something in the $_SERVER array that tells you the browser is on a blackberry and automatically switches the theme.



That's the idea, but I want people to surf to the site and then see a "Blackberry" link right on the top of the list. They click there, and they are sent into that page formatted as you suggest - with just the content and no side blocks.

The trick is - how do I build that "Blackberry shadow" site so that it's fire and forget - meaning that once I have it set up all of the content will go straight there automatically every time I post an article. I don't want to have to do any additional clicks or anything to make it happen.

But, your idea of the "no side blocks" format is a start.

Don
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Google search helps: http://www.andymoore.info/php-to-detect-mobile-phones/

Perhaps you can use the old Chameleon plugin to use a 'Blackberry' theme on a special 'Blackberry' topic, and redirect Blackberry users to that theme.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

geiss

Forum User
Full Member
Registered: 02/10/04
Posts: 176
Location:Boise, Idaho
Check out the Nouveau theme. It renders the left and right blocks *after* the content column, making it more friendly to alternative media readers.

-Eric
Synergy - Stability - Style --- Visit us at glfusion.org
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Quote by: winnerdk

That's the idea, but I want people to surf to the site and then see a "Blackberry" link right on the top of the list. They click there, and they are sent into that page formatted as you suggest - with just the content and no side blocks.

Why do you want a link? My idea was that if the device is a blackberry, set $_CONF['theme'] to 'blackberry' (or something) and just make a theme that is designed for mobile use.
The trick is - how do I build that "Blackberry shadow" site so that it's fire and forget - meaning that once I have it set up all of the content will go straight there automatically every time I post an article. I don't want to have to do any additional clicks or anything to make it happen.
By not making a "shadow site". Use your site with a specialized theme.

Using beewee's google-fu, find $usetheme = ''; in lib-common and check right there for mobile devices:
Text Formatted Code

if (detect_mobile_device()) { // throw detect_mobile_device into lib-custom.
    $_CONF['theme'] = 'special_mobile_theme_with_a_shorter_name';
    $_CONF['path_layout'] = $_CONF['path_themes'] . $_CONF['theme'] . '/';
    $_CONF['layout_url'] = $_CONF['site_url'] . '/layout/' . $_CONF['theme'];
} else {
// the normal theme code
}
 

Then you make the theme. Copy the professional theme over to your mobile theme name and start removing stuff you don't want. In the functions.php, make your own siteHeader/siteFooter functions that have no side blocks. Etc.
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
There are a couple of ways to better enable mobile devices. I have a BlackBerry and before we came up with a good method to do a pure CSS based layout, I did as Joe suggested, wrote some custom code to detect the BB broswer and set a theme with no side blocks. Works well, but you have to figure out all the different browser types for mobile devices. For me it was easy, I surfed to the site and looked at the logs Smile But if you are trying to do this for several users, it might be a bit more difficult. I did have to revisit my code when I switched to the Opera mini browser on my BB.

Now, I use either the Nouveau or Chameleon theme. As Eric mentioned, they send the content first, then the blocks and it renders very nicely on my BlackBerry or my iPhone. No additional work, just use the theme and you are done.

I'm not sure if you'll have users that need to login, but if you go with the no block method, don't forget to provide a login link somewhere that they can get to.

Thanks!
Mark
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
The OP implied he wanted to modify the story layout as well, removing the contributor line for example. That's why I suggested a separate theme.
 Quote

All times are EST. The time is now 09:32 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content