Jump to content


Photo

URL conversion


  • Please log in to reply
3 replies to this topic

#1 vigneshn

vigneshn
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 21 May 2006 - 06:26 PM

i need to convert [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--][a href=\"http://www.centraldirectory.net/showcats.php?sbcat_id=49\" target=\"_blank\"]http://www.centraldirectory.net/showcats.php?sbcat_id=49[/a][/quote]
to [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--][a href=\"http://www.centraldirectory.net/showcats.php?cat=directories\" target=\"_blank\"]http://www.centraldirectory.net/showcats.php?cat=directories[/a][/quote]
i can make use of preg replace functions to remove spaces so no need to worry about that just please do the above modification
ie
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--][a href=\"http://www.centraldirectory.net/\" target=\"_blank\"]http://www.centraldirectory.net/showcats.php?sbcat_id=[/a][!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]"a cat number"[!--colorc--][/span][!--/colorc--][/quote]
to
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--][a href=\"http://www.centraldirectory.net/\" target=\"_blank\"]http://www.centraldirectory.net/showcats.php?cat=[/a][!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]"name"[!--colorc--][/span][!--/colorc--][/quote]
please i will give you the necessay files please post if you are interested
i did some editing but i got 404 not found pages so the link should work please thank you
[!--sizeo:3--][span style="font-size:12pt;line-height:100%"][!--/sizeo--][!--fonto:Arial--][span style="font-family:Arial"][!--/fonto--][a href="http://www.centraldirectory.net/" target="_blank"]Central Links Directory[/a][!--fontc--][/span][!--/fontc--][!--sizec--][/span][!--/sizec--]

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 21 May 2006 - 07:00 PM

I am not so sure what you exactly mean, but I think thats what you need:
$var=$_GET['sbcat_id'];
switch($var){
case 1:
header("Location: http://www.centraldirectory.net/showcats.php?cat=X");
exit;
break;
case 2:
header("Location: http://www.centraldirectory.net/showcats.php?cat=Y");
exit;
break;

//... And so on

You just need to write it...
Think you're smarty?

(Gone until 20 to November)

#3 NoMansLand

NoMansLand
  • Members
  • PipPip
  • Member
  • 24 posts

Posted 23 May 2006 - 08:17 AM

im doing the same as him, but im doing mine throuh MySQL so when its added, users can go: site.com/view.php?Date=ddmmyy is it possible to do it that way?


#4 vigneshn

vigneshn
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 23 May 2006 - 11:21 AM

i am also trying to do with mysql
[!--sizeo:3--][span style="font-size:12pt;line-height:100%"][!--/sizeo--][!--fonto:Arial--][span style="font-family:Arial"][!--/fonto--][a href="http://www.centraldirectory.net/" target="_blank"]Central Links Directory[/a][!--fontc--][/span][!--/fontc--][!--sizec--][/span][!--/sizec--]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users