Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> nukeSEO
Author Message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1772

PostPosted: Wed Mar 04, 2015 3:03 pm Reply with quote

I'm searching the filtering of the auto-generated page-title. If i add a "&" in the title of an article in the News module (RN25x) then it's not displayed in the title-tag. The same issue exists for other specialchars. I don't want create it manually over the colorbox it should generated automatically. Where i can find or/and change it?

issue example for title in the news edit form: "A & B"
shown as: "A B"

_________________
Github: RavenNuke

Last edited by neralex on Fri Mar 06, 2015 9:50 am; edited 1 time in total 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Wed Mar 04, 2015 8:58 pm Reply with quote

Not 100% sure, but I think it is in includes/nukeSEO/dh/dh.class.php and the function is seoHTMLtoMETA.

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
neralex







PostPosted: Thu Mar 05, 2015 11:15 am Reply with quote

Thank you! It seems i got it sorted in this function.

php Code:
	if ($type != 'title') {

$str = preg_replace('/(\[(\S+)\]|&(?![a-zA-Z]{2,6};))/sU', '', $str); // Remove BBCode and chopped off entities
}
 
misterstereus
Regular
Regular



Joined: Aug 03, 2012
Posts: 56
Location: Rome Italy

PostPosted: Fri Mar 06, 2015 2:49 am Reply with quote

php Code:
$title = str_replace ( "&", " ", $title );

_________________
MisterStereus from Rome Italy!! 
View user's profile Send private message Send e-mail Visit poster's website
neralex







PostPosted: Fri Mar 06, 2015 3:13 am Reply with quote

misterstereus, in this function does not exitst the variable $title and it wouldn't help to add this line. I would get only some of your loved php errors. If this variable would exist then it would replace my needed "&" with a freespace. But thanks for reading this topic. Wink

To clarify btw: the variable $title isn't in use to build the page-title since some years in RN.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> nukeSEO

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©