4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: ameenov on May 30, 2005, 09:26:27 AM
-
In the details page ..
I am trying to Removing the links in the keywords because I want it to be only text
like description.
what i have to do?
-
in includes/functions.php find:
foreach ($split_keywords as $key => $val) {
$keywords .= (($keywords != "" ) ? ", " : "")."<a href=\"".$site_sess->url(ROOT_PATH."search.php?search_keywords=".urlencode($val))."\">$val</a>";
}
replace it with (or insert below):$keywords = str_replace(" ", ", ", $image_row['image_keywords']);
-
Hi
thanks V@no
But the text became like that:
The, keywords, have, commas
Can I remove it?
-
OK
I have done it that way:
find:
$keywords = "";
$keywords = str_replace(" ", ", ", $image_row['image_keywords']);
replace it with
$keywords = (!empty($image_row['image_keywords'])) ? format_text($image_row['image_keywords'], 1) : REPLACE_EMPTY;
===========
But I don't know if it is the right way?
Or it will make problems to me in the future?
-
u dont need any conditions there, because the part where u put that line is already inside that condition and u dont need use format_text because there is nothing to format, especialy no need enable html in the keywords list ;)
so, simple $keywords = $image_row['image_keywords'];
woulld be enough :)
-
Hi Vano,
how could I get a further keyword-Tag without links? I want to get dynamic Keywords in Meta-Tags without Links
http://www.4homepages.de/forum/index.php?topic=11375.0 and want to use the Link-Functionality in the detail-Image-View.
So this thread means to delete all Link-Informations from the keywords. For me, I want to have the link-Informations in the detail-view, but not in the Meta-Tags.
Perhaps I have to generate a new Keyword-Function only to display the text-Version?
And no in German - sorry my bad english.
In einem anderen Thread habe ich gefragt wie ich die dynamischen Keywords in Meta-Tags bekomme. Mit {image_keywords} bekomme ich die Keywords innerhalb von Links - also unbrauchbar für Meta-Tags. Dieser Thread zeigt mir zwar wie ich die Links entferne, aber ich möchte sie ja in einem bestimmten Teil, nämlich bei den Bild-Details, behalten.
Also eine zweite Keywords-Funktion/Variable einfügen? Wie mache ich das, und an was für einer Stelle?
hinzwiekunz