Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
new php page
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 03/31/09 19:22 
I have a php page that was done for me using nothing from the jrYouTube.php file it was just a page that was created. I was able to add this page to the button created by the module no problem what I am having problems with is everything around the page It is showing this page only no header no footer no artist menu how do I place this page into the site


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 04/01/09 02:29 
You can use Jamroom functions to add the necessary html:

Quote:
jmHtmlBegin() Begin a HTML page in the Jamroom Control Panel
jmHtmlEnd() End a HTML page that was begun with jmHtmlBegin()


http://www.jamroom.net/Jamroom_Function_Reference


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 04/01/09 17:46 
thx steve so far its kinda working the problem is no matter what i do the page shows up above the control panel info which this is showing abnormally as well I took everything out and just put the header and footer there by itself with nothing and it worked perfect..... figured I would try to include the pae in thinking this may help and it does the same thing
http://www.ecmunlimited.com/4spotlight/otherimages/module_page.bmp
Dos anyone knoe how to get everything to line up correctly
Thanks


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 04/02/09 10:03 
You will want to do something like this:


Code
jmHtmlBegin();
etc.
etc.
// start content
ob_start();
echo 'normally this would show above everything, but we're going to put it in an output buffer, then save the output buffer and it should get handled in the correct order once we pass it to jrHtmlFormRawText()';
$_tmp = ob_end_clean();
jrHtmlFormRawText($_tmp);
etc.
etc.
jmHtmlEnd();



_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 04/02/09 14:46 
I am coming up with an undefinede error
http://www.4spotlight.com/rtCreator.php
Fatal error: Call to undefined function jmHtmlBegin() in /home/ecmunlim/public_html/4spotlight/rtCreator.php on line 2


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 04/02/09 18:01 
Are you using the code exactly as I posted it? That is only an example - you'll need to have included Jamroom's master include file so you have access to the Jamroom internal functions.


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 04/02/09 18:11 
This final version was how you typed it minus the echo because i took the echo out cause i was trying diffrent things initially i tried to do it with the master files and when that didnt work i just tried with what you had here. I will retry it and see if I can figure it out .....is everything you put there supposed to be in place or is there something thats to be replaced


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 04/02/09 18:19 
Just all of the etc. stuff is there where I anticipated you had additional code. you can take that out. the ob_start() through jrHtmlFormRawText function needs to stay that way though (of course, replacing the echo with whatever you're putting there).


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 04/02/09 18:48 
heres hwat i have this helped to make everything stay in place but the page im tyring to include isnt showing up

Code
<?php
/**
 * Jamroom RingTone Module Form Controller
 * @copyright 2009 by 4spotlight
 * @author James Dallas - support@4spotlight.com
 */
require('include/jamroom-include.inc.php');

// Our script
$GLOBALS['JR_SCRIPT_NAME'] = 'rtCreator.php';

$_post = getPostVars();
// Login required - get $_user
$_user = sessionVerify();
// get the correct language pack included..
$language = getLanguage($_user['user_language']);
jmHtmlBegin($language['rtCreator'][1]);
        jmBodyBegin();
        jmSpanCell($language['rtCreator'][1],'',30,'html_modify.png');


etc.
etc.
// start content
ob_start();
 include("ringtones.php");
jrHtmlFormRawText();

$_tmp = ob_end_clean();
jrHtmlFormRawText($_tmp);
etc.
etc.
        jmBodyEnd();
        jmHtmlEnd();

?>




_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 04/02/09 22:19 
Change this:

// start content
ob_start();
include("ringtones.php");
jrHtmlFormRawText();

$_tmp = ob_end_clean();
jrHtmlFormRawText($_tmp);

to this:

// start content
ob_start();
include("ringtones.php");

$_tmp = ob_end_clean();
jrHtmlFormRawText($_tmp);


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 04/03/09 04:40 
still nothing showing up


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 04/03/09 09:15 
Where is "ringtones.php" located? It needs to be in the same directory as the script you're viewing.


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 04/03/09 09:18 
located in the main directory of 4spotlight..... example where the jrYouTube.php is located.... t will pull up but out of place if i move the include anywhere in that piece of code if i go above where its at now or below the next line where its at now ot shows but samwe as it did before above the jr stuff


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 04/06/09 08:40 
Any other suggestions I try to work on it this week end and came up empty.


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 04/06/09 12:08 
Hmmm...I'm not quite sure - the jrHtmlFormRawText function was created for cases like this, and I've used it no problem before, so I'm not sure why it wouldn't work in this situation.


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Developers

12Next >
 
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.