Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
making a skins directory in the module
jamesd116



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

Posted: 03/18/10 13:54 
I have seen this done befoore in other modules butr i am unable to f ind out how it was done. I have trie to move all of the files to a directory in my module module/skins/Nova/ and its coming up with the tpl file is unreadable because its no longer in the normal location. So where the area that I have to change to make it work I have looked and looked for something and am still looking so that i can change the directory for the individual modules.
I hope this is clear and thanks
here is the error I am getting

Code
the template file "supTicket_display.tpl" does not exist or is not readable from the skins/Nova directory


I have chnged the templates that were in the skins directory and moved to the new skins directory for the row templates and added modules/supTicket/skins/Nova/The_template_files.tpl


_________________
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: 03/18/10 15:18 
As far as I know there isn't a skins directory in the module system.


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


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

Posted: 03/18/10 15:34 
You should place any templates used by your module in the jamroom/modules/ModuleName/templates directory.

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: 03/20/10 07:12 

bigguy:
You should place any templates used by your module in the jamroom/modules/ModuleName/templates directory.

Hope this helps!

- Brian


I have done this and its still giving me the same message I have looked around the files lookign for anything that would refenrece where the tpl files for my module are at but can not locate anything that ais getting me any where closer than where I am at right now.
****I have the my direcory as JR/modules/modName/templates/Nova <--- This is after I looked ove the battle mod which has the Nova although I didd try it with out the Nova also


Code
the template file "supTicket_display.tpl" does not exist or is not readable from the skins/Nova directory
Still looking in the skins/Nova directory


_________________
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: 03/24/10 07:47 
Is there anywhere else I need to make changes to in order to make this work


_________________
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: 03/25/10 15:56 

jamesd116:
Is there anywhere else I need to make changes to in order to make this work


When calling your template, you need to pass in the "module" name - i.e.

index.php?module=YourModuleName&t=template_name

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: 04/24/11 15:57 

bigguy:

jamesd116:
Is there anywhere else I need to make changes to in order to make this work


When calling your template, you need to pass in the "module" name - i.e.

index.php?module=YourModuleName&t=template_name

Hope this helps!

- Brian

I have tried this and have done many different ways with ' and " nothing seems to be working to get this going.
I can make it work by using the code in the main JR directory but moved to the module directory its not working

Code
{jr_ranking mode='ecmModule' band_id="$BAND_ID" show="10" row_template="index.php?module=ecmModule&t=ecmModule_display_index.tpl"}



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


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

Posted: 04/25/11 07:34 
It should be something like this if your using the jr_ranking function.

Code

{jr_ranking mode="ecmModule" module="ecmModule" band_id=$BAND_ID show="10" row_template="ecmModule_display_index.tpl"}


Hope this helps,
Douglas


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



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

Posted: 04/25/11 07:44 
Thanks 6 that worked


_________________
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/25/11 08:43 
This is something that I have been working on for a month or so can someone tell me why when I click on the link that it brings me to a list of my entire list of ads It should only bring up the one ad I had this working prior but im not sure what was different prior the address shows correctly with the ID showing as it should but it shows my entire list when it should only show 1

Code
  <td width="150px" bgcolor="#ADD8E6"> <b> <a href={$JAMROOM_URL}/index.php?ecmModule_display&ad_id={$AD_ID}>{$AD_ITEM}</a></td>


Click Here!!!


EDIT: Never Mind I fixed it the ad_id needed to be AD_ID


_________________
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/26/11 17:56 
ok so i am able to get the first page that links on the index to work using the template directory in my module folder
but
any of the other pages will only work with the files from the skins/Nova directory even after putting the module=ecmModule in the files accrdingly.
you can see by going Clicking Here
i have been trying this for 2 days now and just seem to cant get the other pages to pull fromt he templates directory
advise of additional pages would need something different


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


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 04/26/11 18:59 
If i want to use a file from the module templates folder i use this code.

If the module name was apDosomething, the template file would go in
/modules/apDosomething/templates/the_do_something_template.tpl

and in the php code, the function to retrieve that would be

Code
htmlShowTemplate('apDosomething', 'the_do_something_template.tpl', $data);


Then whatever was in the $data array would show up in the {debug} call from that template.


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
jamesd116



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

Posted: 04/27/11 08:19 
Big Guy I am looking and looking over this and comparing to what you mentioned everything looks the same but its not recognizing this

Code
<a href={$JAMROOM_URL}/index.php?module=ecmClassifieds&t=ecmClassifieds_display&AD_ID={$AD_ID}>{$AD_ITEM}</a></td>


I did try manually changing the url in the address bar to the module= and it does sort of work when done manually


bigguy:

jamesd116:
Is there anywhere else I need to make changes to in order to make this work


When calling your template, you need to pass in the "module" name - i.e.

index.php?module=YourModuleName&t=template_name

Hope this helps!

- Brian
[/code]


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