Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
AD Gallery 52
SyntaxHighlighte... 51
Newsletters v4.03 112
Facebook Like Box 125
Newsletters v4.02 57
Metro 164
Facebook Connect 171
Shoutbox Panel 127
Redactor for PHP... 106
MI Floating Side... 109
Facebook Login/R... 154
Avatar Studio v2.03 179
Relationship Sta... 98
Sexual Orientati... 116
Fisherman 143
Popular Addons
iTheme2 5801
Arise 5790
User Control v1.23 4619
Event Calendar 4050
Photowidget panel 3888
Radio-Theme red2... 3356
Highslide Gallery 3313
CSS/JavaScript D... 3229
Facebook Connect... 2985
Dynamic Menu 2893
Slideshow Lightb... 2721
L-AMANT 2659
Enigma 2636
2Dark 2606
Black 2579
View Thread
Who is here? 1 guest(s)
 Print Thread
How to add code to header and where
Vyper69
I am trying to add code into my header in order to make my page viewable on mobile devices. but i dont know where to place it.
 
http://elink2biz.com
Craig
Hi there,

Here you go this should help...

http://www.php-fu...d_id=30959
 
http://www.fusiontube.co.uk/
Vyper69
I understand what it is saying, but this is all new to me, let me show you what i need to do. I am trying to give my site a mobile version. So the instructions say to add this code to the <head> tag on my index.html. Ok fusion has index.php but i am pretty sure i don't add it there. here is the code.

Download source  Code
<script src="http://static.dudamobile.com/DM_redirect.js" type="text/javascript"></script>
<script type="text/javascript">DM_redirect("http://mobile.dudamobile.com/site/oilregionbusiness_1");</script>




So really how would i add it to the head tag and where do i add it in fusion.

Merged on Jul 01 2012 at 18:21:37:
This is what I have. Please tell me if I am wrong.

Download source  Code
openside("Mobile Redirect");
echo "add_to_head<script src="http://static.dudamobile.com/DM_redirect.js" type="text/javascript"></script>
<script type="text/javascript">DM_redirect("http://mobile.dudamobile.com/site/oilregionbusiness_1");</script>";
closeside();



Edited by Vyper69 on 01-07-2012 23:21
 
http://elink2biz.com
PolarFox
You need something like this:


openside("Mobile Redirect");//optional string

add_to_head('<script src="http://static.dudamobile.com/DM_redirect.js" type="text/javascript"></script>
<script type="text/javascript">DM_redirect("http://mobile.dudamobile.com/site/oilregionbusiness_1");</script>');

closeside();//optional string

 
http://unlogic.info
Vyper69
Thanks. mobile site is runninig, the only thing I don't like is to see a blank panel. would it still work if the panal wasnt enabled.

Merged on Jul 02 2012 at 00:17:42:
guess not. I need to be able to add this one thing to the header without using the panel.
Edited by Vyper69 on 02-07-2012 05:17
 
http://elink2biz.com
Wanabo
NO. Just remove the openside and closeside lines.
KPN Gebruikers Groep, my largest pHp-Fusion site about an ISP.
pHp-Fusion.Org, tutorials to enhance php-fusion.
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support site. Send PB for info.
 
http://ziggo.gebruikers.eu
Vyper69
Got it thanks. Fixed
 
http://elink2biz.com
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
PHP-Fusion font for new header Themes Support 4 28-04-2013 04:50
Header appearance on different resolution screens Content Administration 9 25-04-2013 10:32
how to put image in TLC theme header ? Themes Support 2 14-04-2013 16:24
stylo news panel header color Themes Support 2 14-04-2013 14:04
Help with Register form for Ajax Caht Code Ideas for Modifications and Requests 1 10-04-2013 11:22
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel byVenue