Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: X3mE on August 21, 2008, 11:12:21 AM

Title: Switch to full version button in mobile version
Post by: X3mE on August 21, 2008, 11:12:21 AM
Hi,

I was wondering how to add a link in all of my mobile version pages (wap, wap2, imode), which would force a switch to the full version of that same page?
Title: Re: Switch to full version button in mobile version
Post by: karlbenson on August 21, 2008, 11:15:26 AM
Just add a normal link into the template without the ;wap or ;imode or ;wap2 extension on the link.

The file you'd need to edit would be Themes/default/Wireless.template.php
Title: Re: Switch to full version button in mobile version
Post by: X3mE on August 21, 2008, 11:55:52 AM
Thank you for your reply.

Uhm, what changes should I exactly make? :) I don't know how to add a link to the full version of the page on every page, I can't figure it out from the code of that template.
Title: Re: Switch to full version button in mobile version
Post by: metallica48423 on September 17, 2008, 06:56:30 AM
did you still require assistance for this?

Where were you looking to place said link?
Title: Re: Switch to full version button in mobile version
Post by: Rumbaar on September 17, 2008, 06:58:11 AM
It would depend on where you want it to be displayed.  As you would need to place it in each of the specific functions.

So if you wanted it to say appear in the Display area of each post you'd put a copy of the link without the extensions mention by karlbenson in each of the functions:
function template_wap_display()
function template_imode_display()
function template_wap2_display()

HA!  Too slow again...
Title: Re: Switch to full version button in mobile version
Post by: X3mE on October 01, 2008, 03:57:51 AM
Sorry for the late reply. I still haven't managed to do this.

I would very much appreciate it if someone would modify the Wireless.Template.php file and attached it here. Thanks in advance.
Title: Re: Switch to full version button in mobile version
Post by: Deaks on October 20, 2008, 07:41:43 AM
X3me do you still need help with this
Title: Re: Switch to full version button in mobile version
Post by: X3mE on October 20, 2008, 09:28:16 AM
Yes, I do :).
Title: Re: Switch to full version button in mobile version
Post by: Nathaniel on November 01, 2008, 08:05:25 AM
Try the attached file.
Title: Re: Switch to full version button in mobile version
Post by: X3mE on November 01, 2008, 09:06:50 AM
Yes, it works, thank you!