Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Ampersand symbol in profile name and page title

11 years 2 days ago
Licenses:
JomSocial Expired

Hi,

I have a user profile in my jomsocial site, which has & symbol in it and its mandatory to have it as its a brand name.

When this profile is visited in the browser, the title doesn't display this ampersand symbol properly. Its displays it as &

For example. If my profile name is "Bread & Butter", in the browser title its displayed as "Bread & Butter".

Kindly let me know how to rectify this.

regards,
Siva

11 years 2 days ago
  • David's Avatar
  • David
  • Visitor
  • Thank you received: 0
Licenses:

Hi Siva,

This is happened by default from all webserver and domain rules.. you can try to another website and everything with & symbol will be replace with & on URL address.. also if you had some file with white space on the file name (like "Me and my family", when you upload (example : dropbox) and get the link will be "me%20and%20my%20family", as default URL link will change whitespace into "%20"..

We can't change this because this is default from webserver and rules from www i think :)

Warm Regards,

David

11 years 2 days ago
Licenses:
JomSocial Expired

Hi David,

Thanks for your response. But I see facebook pages with & symbol like the below link to be working fine in the browser title.

www.facebook.com/pages/Wren-Martin-High-...tion/211811005650507

Any idea what the server needs to make this work?

regards,
Siva

11 years 2 days ago
  • David's Avatar
  • David
  • Visitor
  • Thank you received: 0
Licenses:

Hi Siva,

sorry for misunderstood, i think you want URL link appears as & instead & :D
can you provide me FTP access ? i need to added new code to create page title show into & not & or you want to added it by your self ?

go to components / com_community / helpers / head.php.. open head.php with your favourite text editor and go to very bottom on this file (Line 155 ) and you will see :

$document->setTitle($title);
change that code into :
$document->setTitle(html_entity_decode($title));

Warm Regards,

David

11 years 2 days ago
Licenses:
JomSocial Expired

And that works like a charm!
Thanks a lot, David.

regards,
Siva

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW