Search…

X3 Photo Gallery Support Forums

Search…
 
x-tremed
Topic Author
Posts: 20
Joined: 20 May 2011, 16:40

Link html to another site

28 Jun 2011, 10:51

We had some complaints from users that the html gallery isn't very good readable on a iPhone / iPad . Therefore we want to create a mobile website for the users surfing to our gallery with a mobile phone.

But i need to forward these users to the url the mobile site is. Where can i found the code that forwards mobile users to the html website so i can change the forwarding url ?
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: Link html to another site

29 Jun 2011, 00:17

In the latest update we fixed the gallery for the iPhone (I hope we did at least, check: http://imaegevuex.com/demo/x2 ).

In any case, I would recommend you to change CSS for iPhone/iPad in Settings > Custom CSS, rather than having a separate site. But anyway, here is what you can do:

iv-includes/controllers/IndexController.php:21
Code
	if (IS_MOBILE && $this->conf->get('/config/imagevue/settings/enableHTML')) {
			$this->_forward('html');
		}
Change $this->forward ... to
Code
header ('Location: /yourpage');
firedev.com
 
x-tremed
Topic Author
Posts: 20
Joined: 20 May 2011, 16:40

Re: Link html to another site

29 Jun 2011, 14:43

Tnx, the new update solved the problems with the iPad / iPhone.