Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
jr_url with my module
musiccreatures



Joined: 20 Jun 2009
Posts: 344
Location: Portland Oregon

Posted: 10/18/09 19:05 
I am working on the users manual for my classified Ads module. I am having trouble comprehending the jr_url template function. I need to be able to let the module users know, how to easily plug the module in to their navigation. Any suggestion on how to add the below URL to the Flashback sef_config.php file?

Code
{$JAMROOM_URL}/ranking.php?mode=mcClassifiedAds&order=7&header_template=mcads_header.tpl&row_template=mcads_row.tpl&footer_template=mcads_footer.tpl


Back to top
Brian
Jamroom Team


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

Posted: 10/19/09 15:35 
If you look inside the sef_config.php script, you will see that it is a simple substitution - i.e. what comes in the left is replaced with what is on the right. What have you tried using so far?

Hope this helps!

- Brian


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



Joined: 20 Jun 2009
Posts: 344
Location: Portland Oregon

Posted: 10/19/09 17:47 
I tried to place the following URL in the jr_overall_header.tpl file:

Code
{jr_url seftype='classifieds' sefvalue='categories'}


and in the sef_config.php file, I added the following to the bottom:

Code
$sef['classifieds']['categories']   = 'mode=mcClassifiedAds|order=7|header_template=mcads_header.tpl|row_template=mcads_row.tpl|footer_template=mcads_row.tpl';


But what I received was:

An Error was encountered processing your request:

the template file "categories.tpl" does not exist or is not readable from the skins/Flashback directory


Been reading the jr_url docs but still a bit confused as to how to create a link with jr_url that calls the ranking.php script and sends the header_template, row_template and footer_template.

Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 10/19/09 18:29 
You would make your sef link to a template that contains a {jr_ranking call . Take a look at the way that song.tpl and video.tpl etc work in Nova for a working example.


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



Joined: 20 Jun 2009
Posts: 344
Location: Portland Oregon

Posted: 10/19/09 18:31 
Thanks for the advice. Got it to work as I hoped.

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.