Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization:
change cp verbiage only for only one quota
elixir



Joined: 28 Jun 2008
Posts: 599

Posted: 07/30/12 18:57 
I need to change the control panel verbiage for only one artist account.

here is the scenario. I need a custom artist quota that allows advertisers to upload advertisements which will be later played when actual songs are player. Since it is an artist quota, the menu displays "songs". I want to change this to "advertisement" only for this quota. Rest everywhere it should stay same.

I am analyzing CP templates but its too confusing and I couldn't find any documentations so far. Any help would be greatly appreciated.


_________________
Custom Jamroom Modules
Facebook App : http://www.jamroom.net/index.php?m=td_market&o=browse&item_id=254
Album Ranking : http://www.jamroom.net/index.php?m=td_market&o=browse&item_id=277
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 07/30/12 21:49 
thats not an easy deal.

There are a couple of ways to do it but neither is simple.

The first is to alter the song.php file (which is not a good idea) and put in conditionals depending on what quota is asking to see the page.

The second is to use a modules language file and hooks.php to over-ride the default values if the user is of the quota you specified. (that might be the easiest way im thinking right now....)

and the third is to build a custom module that does the same thing as songs.php and enable it only for users in that quota, and also disable the songs from the users in that quota. In this way the new module will replace songs and the language in the songs.


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


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 07/31/12 01:14 
Actually, I think this can be done, though not tried it in a long time !!

Copy the /config/language.cfg.php file to a new file with the quota_id in it - i.e. /config/language_2.cfg.php
Then edit the new file to define the language files in /language available to that quota -


Code
$lang['available_languages'] = array(
  'english_2.lang.php' => 'English'
);


Copy the /language/english.lang.php to /language/english_2.lang.php file and edit it appropriately.

hth
Pa


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


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 07/31/12 01:23 
wow, very clever. Smile

do what Paul said.


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



Joined: 28 Jun 2008
Posts: 599

Posted: 07/31/12 17:42 
let me do the paul's idea, hope fully that resolves the issue


_________________
Custom Jamroom Modules
Facebook App : http://www.jamroom.net/index.php?m=td_market&o=browse&item_id=254
Album Ranking : http://www.jamroom.net/index.php?m=td_market&o=browse&item_id=277
Back to top
elixir



Joined: 28 Jun 2008
Posts: 599

Posted: 08/01/12 10:53 
Thank you all for help. The trick actually worked.


_________________
Custom Jamroom Modules
Facebook App : http://www.jamroom.net/index.php?m=td_market&o=browse&item_id=254
Album Ranking : http://www.jamroom.net/index.php?m=td_market&o=browse&item_id=277
Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 08/01/12 11:18 

elixir:
Thank you all for help. The trick actually worked.

Cool - well done.


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization

 
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.