Notification email URL & Mobiles (WAP)

Started by kai920, June 03, 2008, 02:57:49 AM

Previous topic - Next topic

kai920

How could I add a URL to a notification email (new post, PM, etc.) that is

a) unwrapped, and
b) appends wap2 at the end?

The additional sentence would be something like this:

Quote from: somewhere in the notification emailPS. If you are on a mobile device, you can visit this link: www.mydomain.com/forums/index.php?topic=1234#new;wap2

(as opposed to a bridged CMS link such as www.mydomain.com/component/option,com_smf/Itemid,123/topic,1234/#new etc.)

This would of course be targeted specifically at mobile users.

It wouldn't be too difficult to add this into the notification email I imagine. What files should be edited?

I realize the Joomla bridge has been discontinued, but I can see this being useful for Mambo-SMF bridge users as well.

Orstio

a) wrapped and unwrapped URLs are exactly the same.  Are you referring to the stand alone URL?

b)  You should be able to add that to the strings in the language files.

Bridged wap2 URLs display the same as unbridged wap2 URLs. ;)

kai920

a) oops, yeah I was referring to a standalone URL.  8)

b) so I should edit /components/com_smf/language/english.php?  Don't I need to build this URL somewhere or is it automatic?

I thought bridged URLs would be:
www.mydomain.com/component/option,com_smf/..........;wap2

and unbridged would be:
www.mydomain.com/forums/index.php?topic=1234;wap2

is this not correct ???

Orstio

Quoteb) so I should edit /components/com_smf/language/english.php?  Don't I need to build this URL somewhere or is it automatic?

No, that's the bridge language file.  You need to edit the SMF theme language files.

QuoteI thought bridged URLs would be:
www.mydomain.com/component/option,com_smf/..........;wap2

and unbridged would be:
www.mydomain.com/forums/index.php?topic=1234;wap2

Sorry, yes.  What I meant to say was that whether the user clicks on a URL that takes them to the stand alone forum or the wrapped forum, the wap2 display of the page is the same.

Wrapped:

http://www.everything-science.com/sci/Forum/Itemid,82/topic,7522.msg62205/boardseen,boardseen/lang,en/wap2,wap2#new


Stand alone:

http://www.everything-science.com/components/com_smf/index.php?topic=7522.msg62205;boardseen;wap2#new

kai920

Ahh - I did not know that!  That's clever :)

So I am simply looking for the addition of a wap2 word appended to the end of the URL? (bridged URL)

Orstio

Sort of.

Check PersonalMessage.english.php and Post.english.php.

Advertisement: