Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
Displaying Module Info
jamesd116



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

Posted: 10/30/09 08:27 
I am trying to display my info on my module can someone tell me what I may have forgotten in this coding that doesnt allow it to display i receive nothing right now there is nothing in the error log


Code
<?php
/**
 * Jamroom Custom Modules display tasks
 * @copyright 2009 by Talldude Networks LLC.
 * @author Brian Johnson - bigguy@jamroom.net
 */
defined('IN_JAMROOM') or exit();

$query = "SELECT task_subject, task_description, task_notes, task_status FROM wkTracker";
$result = mysql_query($query);

while($row = mysql_fetch_assoc($result))
{
echo "Problem:{$row['task_subject']} <br>" .
        "Description: {$row['task_description']} <br>" .
        "Notes: {$row['task_notes']} <br>" .
        "Status: {$row['task_status']} <br><br>";
}

?>

Thanks James


_________________
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
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 10/30/09 14:33 
I'm not sure what you mean here... is this a Form Controller script? If it is you'll need to remove the "IN_JAMROOM" check, since that is only used in included files.

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
jamesd116



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

Posted: 10/30/09 15:11 
No its not a for controller should it be included within thie form controller I am trying to display the info basically on a page by itself in the form of a pop up7


_________________
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
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 10/30/09 15:20 
If this script is in your Jamroom directory (and not in your module directory), then it is a Form Controller script, and you will need to remove this line:

defined('IN_JAMROOM') or exit();

for it to work. You never use the IN_JAMROOM check in a form controller script.

Note that you are doing no authentication in that script, so be sure you want what is being shown to be available to anyone.

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
jamesd116



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

Posted: 11/04/09 08:59 
Ok I think i have the correct way of doing this maybe I may be wrong but if you can tell me how to set up the link i think this is the better way to do it after careful consideration
I created a tpl that has all of the information needed like i have set up on the front page if you see on the frontpage of http://www.submittv.com/4sldemo the info is displayed so i created a more complete version of that tpl file so I want to click on the title in the classified ad and have it go to that ad display i am thinking something like this
'{$JAMROOM_URL}/index.php?t=ad_display')then i know somewhere after it has to have the $AD_ID and then the >$AD_TITLE </a>
how would i set this up I been through some of the files and not understanding the throry behind setting this up
thanks James

PS I also would like to have this pull up in the pop up window so that it doesnt pull up a whole page and the user doesnt have to leave the page


_________________
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
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.