Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Ultrabubble:
A.R.T.I.S.T sefjam wrong url /ARTIST/
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 06/16/08 20:52 
Hi, SefJam is not picking up on the aritsts that have dots in their names.

I have a few artist called names with dots in their names
A.R.T.I.S.T.

SefJam using the instructions and replacing {$ARTIST_URL} with
{$BAND_NAME|jr_theme_string} leaves these types of artists with an incorrect link.

The correct location link for this type of artist appears to be
A_R_T_I_S_T_

To get it to display the friendly URL's correctly i was using:
{$BAND_URL_NAME|jr_replace:" ":"_"|jr_replace:".":"_"}

but is there a cleaner way to get this all working?

Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 06/17/08 00:23 
That is the correct way to do that, although the best thing to do is to ensure that your artists can only use standard characters in their Friendly names and not allow them to customize it.


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


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 06/17/08 00:34 
dot are standard characters arnt they? I didnt change after the install.

Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 06/17/08 00:42 
I should have said alphabetical characters.


_________________
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
djmerlyn
Jamroom Ustad


Joined: 18 Dec 2003
Posts: 13497
Location: Behind You

Posted: 06/17/08 00:43 
dots (as well as other characters) are not typically used in URLs and they tend to depict a function (ie; domain.com seperates the name from the TLD extension and file.php seperates the file name from the file format type as / seperates folder/subfolder, etc...).

Just a thought on that Wink

The characters listed here are what I have as not allowed for artist URL names and has done well for me fwiw

http://jamroom.net/phpBB2/viewtopic.php?p=25871#25871


_________________
Pro JR Hosting, now 50% off!
-100% Guaranteed

"more server and network power than any host, dedicated to your jamroom site"
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 06/17/08 00:52 
yeah, i get the significance of the dot com but jamroom as standard allows for dots in the usernames.

'mary j. blige'

so now that i do have artists with dots, what is a good idea to get my jamroom with sefjam running smoothly?

Back to top
djmerlyn
Jamroom Ustad


Joined: 18 Dec 2003
Posts: 13497
Location: Behind You

Posted: 06/17/08 00:56 
"Artist Names" and "Artist URL Names" are two different things.

I prefer to be strict on "URL names", while being loose on "artist names", to ensure everyones "friendly URL" works without issue.

Since they can be configured separately, it should be a breeze Wink


_________________
Pro JR Hosting, now 50% off!
-100% Guaranteed

"more server and network power than any host, dedicated to your jamroom site"
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 06/17/08 01:01 
I tried this earlier on when my artists with dots URL's wernt working. that is how i came up with the above replace function.

DJ are you saying that i can change the way the rewrite rules operate? so that 'mary j. blige' would come up as /mary_j_blige/ by changeing a setting somewhere in the admin panel?

my url bad characters are set to

Code
, ; / ? : @ = & # * ' $ } { < >  | %

but even if i a dot to the end of them it still needs the underbar for the URL to be correct.

Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 06/19/08 02:35 
so what was the final decision?

is there a way for me to stop the dots going to the URL? or do i need to replace them in the templates?


_________________
Michael Ussher
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: 06/24/08 00:05 
bump.

do i handle this problem in the admin panel of jamroom or by changing the templates.

If i handle it in he admin area, how do i do it?

If i handle it in the templates, is it just me who has to use {$BAND_URL_NAME|jr_replace:" ":"_"|jr_replace:".":"_"} as the instruction mail said to use {$BAND_NAME|jr_theme_string}. or is it all users who use SefJam.

If its just me, what does everybody else that uses SefJam have as settings in their admin panel that allows them to get away with using {$BAND_NAME|jr_theme_string} and not have any problems.

Thanks


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


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 06/24/08 02:56 
It depends how you want to do it. I would recommend only letters in the artist name and use the band name with jr_theme_string. If you need to allow other letters in your artist names you can use artist name url, and either disallow them in the control panel or filter them out in the smarty. Depends what you want from your artist urls and how you want to do it.

Obviously, for search engine benefit you would want your artist name to be the same as the url, not different.


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


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 06/24/08 03:25 
This is how i want it to work, but i cant figure out the settings to make it work this way.

I want to have this in my templates:
{$BAND_NAME|jr_theme_string}

I want users to be allowed to use names like
M.I.K.E.

I want this users name to come up at
http//mysite.com/MIKE

What would the settings for this be?

what characters go here: jamroom config -> account settings->
'Name Bad Characters' (what are your settings)
'URL Bad Characters' (what are your settings)


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


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 06/24/08 03:28 
You can't use BAND_NAME if there are "." in there without stripping them out in the smarty. Use BAND_URL_NAME instead and disallow the "." in url bad characters.


_________________
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
Display posts from previous:   
User Support Forum Archive (Read Only)
Ultrabubble

 
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.