List Info

Thread: Conditionally display themes




Conditionally display themes
country flaguser name
United States
2007-03-20 09:04:00
01C76AD7.14550EA0" v:src="cid:image001.gif01C76AD7.14550EA0" v:shapes="_x0000_Mail" width=0 height=0 class=shape style='display:none;width:0;height:0'>

Is there a way to conditionally display a theme using JavaScript?

 

So for instance I have a script that determines the screen size and we have special software for displaying web pages on a mobile phone and I would like to use this script to display a theme that is geared for mobile and uses the special code for our software.

 

Michael F. Sole 
Gold Group
Dream | Change | Profit

www.gold-group.com 
www.gold-mobile.com

732.587.2101 x 261 - Office

516.592.3683 - Mobile 
msolegold-group.com" title="mailto:jallengold-group.com">gold-group.com">gold-group.com">msolegold-group.com
 

 

View Original Image
  
Re: Conditionally display themes
country flaguser name
United States
2007-03-20 09:22:45
On Tuesday 20 March 2007 10:04, Michael Sole wrote:
> Is there a way to conditionally display a theme using
JavaScript?
>
>
> So for instance I have a script that determines the
screen size and we have
> special software for displaying web pages on a mobile
phone and I would
> like to use this script to display a theme that is
geared for mobile and
> uses the special code for our software.
>

This sounds like it may be an appropriate place to use a
flavor for display on 
mobile devices distinct from the HTML flavor.  But if the
browser on the 
phone supports CSS and JavaScript you can check for the
browser type/OS and 
simply switch out the CSS files used so a mobile version is
used instead of 
the regular version (this assumes the actual html structure
is also 
appropriate for the mobile sreen size and form factor).

Is this kind of what you are looking for?

Jamey

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers

Re: Conditionally display themes
country flaguser name
United States
2007-03-20 09:32:40
Well I have the script already cause we do mobile web
develop here. So I
already know how to determine the screen size of the device
that is view the
web site (and yes it would depend on whether the mobile
device supports
javascript but so far we have had a high success rate).

What I need to know is how in Blojsom do I switch the theme
that is
displayed.

Normally I use this script to maintain a single URL for
access. So if you
were to enter www.google.com on your desktop you would get
one version of
the site and if you entered the same URL from your mobile
device it would
redirect you to a mobile version.

What I am trying to avoid is having two blogs setup. I want
to display the
same blog from the same database on both sites. Just
formatted differently.

Michael F. Sole 
Gold Group 
Dream | Change | Profit 

www.gold-group.com  
www.gold-mobile.com

732.587.2101 x 261 - Office

516.592.3683 - Mobile 
msolegold-group.com 


-----Original Message-----
From: blojsom-users-bounceslists.sourceforge.net
[mailto:blojsom-users-bounceslists.sourceforge.net] On
Behalf Of James H.
Linder
Sent: Tuesday, March 20, 2007 10:23 AM
To: blojsom-userslists.sourceforge.net
Subject: Re: [Blojsom-users] Conditionally display themes

On Tuesday 20 March 2007 10:04, Michael Sole wrote:
> Is there a way to conditionally display a theme using
JavaScript?
>
>
> So for instance I have a script that determines the
screen size and we
have
> special software for displaying web pages on a mobile
phone and I would
> like to use this script to display a theme that is
geared for mobile and
> uses the special code for our software.
>

This sounds like it may be an appropriate place to use a
flavor for display
on 
mobile devices distinct from the HTML flavor.  But if the
browser on the 
phone supports CSS and JavaScript you can check for the
browser type/OS and 
simply switch out the CSS files used so a mobile version is
used instead of 
the regular version (this assumes the actual html structure
is also 
appropriate for the mobile sreen size and form factor).

Is this kind of what you are looking for?

Jamey

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.15/728 - Release
Date: 3/20/2007
8:07 AM
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.15/728 - Release
Date: 3/20/2007
8:07 AM
 



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers

Re: Conditionally display themes
country flaguser name
United States
2007-03-20 09:40:24
I guess there are probably a number of ways you could go about presenting a mobile theme.

My first inclination would be to use blojsom217;s flavor capability to attach a particular template for say a “mobile” flavor. (Seems like someone beat me to the punch in a follow-up post, but here goes anyway). Take a look at:

http://www.blojsom.com/blog/david/feed/mobile/

Or

http://www.blojsom.com/blog/david/?flavor=mobile

I just created a “mobile” flavor with a MIME type of “application/xhtml+xmlR21; to use the mobile-xhtml.vm template that is included with blojsom. This way you don’t need to do any guessing or negotiation.

Is this something that would work or is there some other processing you need to do?

On 3/20/07 10:04 AM, "Michael Sole" <msolegold-group.com> wrote:


Is there a way to conditionally display a theme using JavaScript?
 
So for instance I have a script that determines the screen size and we have special software for displaying web pages on a mobile phone and I would like to use this script to display a theme that is geared for mobile and uses the special code for our software.
 

Michael F. Sole
Gold Group
Dream | Change | Profit
www.gold-group.com <http://www.gold-group.com/&gt;
www.gold-mobile.com
<http://www.gold-mobile.com&gt;

732.587.2101 x 261 - Office

516.592.3683 - Mobile
msolegold-group.com msolegold-group.com"><mailto:msolegold-group.com>  




--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.15/728 - Release Date: 3/20/2007 8:07 AM
 ;

 &nbsp;


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-users


--
David Czarnecki

http://www.blojsom.com/blog/ | http://blojsom.sf.net
View Original Image
Re: Conditionally display themes
country flaguser name
United States
2007-03-20 09:47:31

Firstly thanks to both of you and anyone else who is helping me. I have recently moved to open source software and I have found community support to be incredible.

 

I guess I do not know how to do flavors.

 

Is there a walkthrough for Blojsom 3.0?

 

Plus not all mobile devices do xhtml. The Samsung i730 is one example. Can I test for additional mime types or heards?

 

Michael F. Sole 
Gold Group
Dream | Change | Profit

www.gold-group.com 
www.gold-mobile.com

732.587.2101 x 261 - Office

516.592.3683 - Mobile 
msolegold-group.com" title="mailto:jallengold-group.com">gold-group.com">gold-group.com">msolegold-group.com


From: blojsom-users-bounceslists.sourceforge.net [mailto:blojsom-users-bounceslists.sourceforge.net] On Behalf Of David Czarnecki
Sent: Tuesday, March 20, 2007 10:40 AM
To: blojsom-users
Subject: Re: [Blojsom-users] Conditionally display themes

 

I guess there are probably a number of ways you could go about presenting a mobile theme.

My first inclination would be to use blojsom217;s flavor capability to attach a particular template for say a “mobile” flavor. (Seems like someone beat me to the punch in a follow-up post, but here goes anyway). Take a look at:

http://www.blojsom.com/blog/david/feed/mobile/

Or

http://www.blojsom.com/blog/david/?flavor=mobile

I just created a “mobile” flavor with a MIME type of “;application/xhtml+xml” to use the mobile-xhtml.vm template that is included with blojsom. This way you don’t need to do any guessing or negotiation.

Is this something that would work or is there some other processing you need to do?

On 3/20/07 10:04 AM, "Michael Sole" <msolegold-group.com> wrote:

01C76ADD.290923D0">
Is there a way to conditionally display a theme using JavaScript?
 
So for instance I have a script that determines the screen size and we have special software for displaying web pages on a mobile phone and I would like to use this script to display a theme that is geared for mobile and uses the special code for our software.
 

Michael F. Sole
Gold Group
Dream | Change | Profit
www.gold-group.com <http://www.gold-group.com/&gt;
www.gold-mobile.com
<http://www.gold-mobile.com&gt;

732.587.2101 x 261 - Office

516.592.3683 - Mobile
msolegold-group.com msolegold-group.com"><mailto:msolegold-group.com>  




--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.15/728 - Release Date: 3/20/2007 8:07 AM
 

 &nbsp;


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&amp;CID=DEVDEV


_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-users



--
David Czarnecki

http://www.blojsom.com/blog/ | http://blojsom.sf.net

View Original Image
Re: Conditionally display themes
country flaguser name
United States
2007-03-20 10:06:04

OK I see how to set up a flavor.

 

Does blojsom automatically detect and switch flavors or should I use a landing page to do that?

 

Michael F. Sole 
Gold Group
Dream | Change | Profit

www.gold-group.com 
www.gold-mobile.com

732.587.2101 x 261 - Office

516.592.3683 - Mobile 
msolegold-group.com" title="mailto:jallengold-group.com">gold-group.com">gold-group.com">msolegold-group.com


From: blojsom-users-bounceslists.sourceforge.net [mailto:blojsom-users-bounceslists.sourceforge.net] On Behalf Of David Czarnecki
Sent: Tuesday, March 20, 2007 10:40 AM
To: blojsom-users
Subject: Re: [Blojsom-users] Conditionally display themes

 

I guess there are probably a number of ways you could go about presenting a mobile theme.

My first inclination would be to use blojsom217;s flavor capability to attach a particular template for say a “mobile” flavor. (Seems like someone beat me to the punch in a follow-up post, but here goes anyway). Take a look at:

http://www.blojsom.com/blog/david/feed/mobile/

Or

http://www.blojsom.com/blog/david/?flavor=mobile

I just created a “mobile” flavor with a MIME type of “;application/xhtml+xml” to use the mobile-xhtml.vm template that is included with blojsom. This way you don’t need to do any guessing or negotiation.

Is this something that would work or is there some other processing you need to do?

On 3/20/07 10:04 AM, "Michael Sole" <msolegold-group.com> wrote:

01C76ADF.9708B510">
Is there a way to conditionally display a theme using JavaScript?
 
So for instance I have a script that determines the screen size and we have special software for displaying web pages on a mobile phone and I would like to use this script to display a theme that is geared for mobile and uses the special code for our software.
 

Michael F. Sole
Gold Group
Dream | Change | Profit
www.gold-group.com <http://www.gold-group.com/&gt;
www.gold-mobile.com
<http://www.gold-mobile.com&gt;

732.587.2101 x 261 - Office

516.592.3683 - Mobile
msolegold-group.com msolegold-group.com"><mailto:msolegold-group.com>  




--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.15/728 - Release Date: 3/20/2007 8:07 AM
 

 &nbsp;


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&amp;CID=DEVDEV


_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-users



--
David Czarnecki

http://www.blojsom.com/blog/ | http://blojsom.sf.net

View Original Image
What are the correct values?
country flaguser name
United States
2007-03-23 10:33:27
In the database what are the correct values for:

Blog-url
Blog-admin-url
Blog-base-url
Blog-admin-base-url


I changes these when I first set it up but I did not know
what I was doing
and know I need to set them correctly.

So the top level url is blog.gold-group.com/

Please help!

Michael F. Sole 
Gold Group 
Dream | Change | Profit 

www.gold-group.com  
www.gold-mobile.com

732.587.2101 x 261 - Office

516.592.3683 - Mobile 
msolegold-group.com 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.17/730 - Release
Date: 3/22/2007
7:44 AM
 



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers

[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )