Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Re: [Andy] Category name with +

Quote Reply
Re: [Andy] Category name with + In reply to
This works:

<?php
$string = $category_short;
$pattern[0] = "/ /";
$replacement[2] = "+";
$plustext = preg_replace($pattern, $replacement, $string);
?>

This takes $category_short, e.g., "Gossamer Threads" and creates $plustext, which would be "Gossamer+Threads".
This is for example useful when integrating Amazon web services into your categories.

Thanks Andy, for helping out.

John
Subject Author Views Date
Thread Category name with + gotze 12617 Aug 15, 2004, 12:51 PM
Thread Re: [gotze] Category name with +
Andy 12417 Aug 16, 2004, 12:51 AM
Thread Re: [Andy] Category name with +
gotze 12412 Aug 16, 2004, 11:47 AM
Thread Re: [gotze] Category name with +
Andy 12413 Aug 16, 2004, 11:45 PM
Thread Re: [Andy] Category name with +
gotze 12395 Aug 17, 2004, 3:19 PM
Thread Re: [gotze] Category name with +
Andy 12396 Aug 18, 2004, 1:25 AM
Thread Re: [Andy] Category name with +
gotze 12396 Aug 23, 2004, 4:32 AM
Thread Re: [gotze] Category name with +
Andy 12384 Aug 23, 2004, 5:49 AM
Thread Re: [Andy] Category name with +
jdgamble 12293 Sep 5, 2004, 1:19 AM
Post Re: [jdgamble] Category name with +
Andy 12298 Sep 5, 2004, 3:15 AM