Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
Question about PHP Non Jamroom Include
cmpnetwork



Joined: 15 Sep 2007
Posts: 1241
Location: Chicago

Posted: 01/23/09 00:40 
Dear Brian or Kyle or 6Strings

Ok say i got this php code i want to add to my tpl file how would i do it so it shows up on the site and does not mess anything up?

i tried a few things but its not working here is the code for the script


Code

<?php include("http://adserve.adster.com/sserve.php?pid=28808");
?>



_________________
Promoter - Developer - Video Game Geek
http://www.chicagomusicpromotions.com
Back to top
djmerlyn
Jamroom Ustad


Joined: 18 Dec 2003
Posts: 13497
Location: Behind You

Posted: 01/23/09 01:18 
I'm not the aforementioned, but it can be done a handfull of ways;

generic, least recommended;
{php} include("http://adserve.adster.com/sserve.php?pid=28808");{/php}

generic;
{include file="http://adserve.adster.com/sserve.php?pid=28808"}

artist themes only;
{jr_theme_php_include file="http://adserve.adster.com/sserve.php?pid=28808"}

last resort if all else fails;
{jr_fetch file="http://adserve.adster.com/sserve.php?pid=28808"}

http://www.jamroom.net/Jamroom3_Template_Includes


_________________
Pro JR Hosting, now 50% off!
-100% Guaranteed

"more server and network power than any host, dedicated to your jamroom site"
Back to top
cmpnetwork



Joined: 15 Sep 2007
Posts: 1241
Location: Chicago

Posted: 01/23/09 01:30 
Thank you sir The Last One Worked Perfectly

last resort if all else fails;
{jr_fetch file="http://adserve.adster.com/sserve.php?pid=28808"}




djmerlyn:
I'm not the aforementioned, but it can be done a handfull of ways;

generic, least recommended;
{php} include("http://adserve.adster.com/sserve.php?pid=28808");{/php}

generic;
{include file="http://adserve.adster.com/sserve.php?pid=28808"}

artist themes only;
{jr_theme_php_include file="http://adserve.adster.com/sserve.php?pid=28808"}

last resort if all else fails;
{jr_fetch file="http://adserve.adster.com/sserve.php?pid=28808"}

http://www.jamroom.net/Jamroom3_Template_Includes



_________________
Promoter - Developer - Video Game Geek
http://www.chicagomusicpromotions.com
Back to top
xfactor151



Joined: 05 May 2007
Posts: 139

Posted: 01/23/09 07:11 
I have a question. How do I include a non jamroom php file in an iframe into jamroom?

Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 01/23/09 07:28 
You may want to check out how to use iframes but basically you would just use the url to the php script in your iframe src parameter...

http://www.w3schools.com/
http://www.w3schools.com/tags/tag_iframe.asp


Code
<iframe src="http://url.to/your_script.php" etc...></iframe>


Hope this helps Smile


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
djmerlyn
Jamroom Ustad


Joined: 18 Dec 2003
Posts: 13497
Location: Behind You

Posted: 01/23/09 12:21 
Perhaps this should be in "user site design and integration"...


_________________
Pro JR Hosting, now 50% off!
-100% Guaranteed

"more server and network power than any host, dedicated to your jamroom site"
Back to top
cmpnetwork



Joined: 15 Sep 2007
Posts: 1241
Location: Chicago

Posted: 01/23/09 14:02 
Trust me IFrames are hell i did that my first go around before i asked about the PHP include i found that djmerlyn php include was very helpfull thanks.



xfactor151:
I have a question. How do I include a non jamroom php file in an iframe into jamroom?



_________________
Promoter - Developer - Video Game Geek
http://www.chicagomusicpromotions.com
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Developers

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.