Welcome Guest, Not a member yet? Register   Sign In
Show latest tweets
#12

[eluser]mvdg27[/eluser]
Hi phill, I like your replacement code. There's one error in it though:

Code:
// Run all rules to replace syntax with HTML
$tweet->text = preg_replace(array_keys($patterns), array_values($replace), $tweet->text);

should be

Code:
// Run all rules to replace syntax with HTML
$tweet->text = preg_replace(array_keys($patterns), array_values($patterns), $tweet->text);

($replace should be $patterns)

Can I use your code to combine it with my function?


Messages In This Thread
Show latest tweets - by El Forum - 10-03-2009, 01:11 PM
Show latest tweets - by El Forum - 10-03-2009, 02:00 PM
Show latest tweets - by El Forum - 10-03-2009, 02:05 PM
Show latest tweets - by El Forum - 10-03-2009, 04:33 PM
Show latest tweets - by El Forum - 10-04-2009, 05:14 AM
Show latest tweets - by El Forum - 10-04-2009, 04:13 PM
Show latest tweets - by El Forum - 10-04-2009, 11:59 PM
Show latest tweets - by El Forum - 10-05-2009, 05:46 AM
Show latest tweets - by El Forum - 10-05-2009, 05:56 AM
Show latest tweets - by El Forum - 10-05-2009, 07:59 AM
Show latest tweets - by El Forum - 10-05-2009, 08:09 AM
Show latest tweets - by El Forum - 10-05-2009, 09:00 AM
Show latest tweets - by El Forum - 10-05-2009, 09:58 AM
Show latest tweets - by El Forum - 10-05-2009, 10:22 AM
Show latest tweets - by El Forum - 10-05-2009, 02:15 PM
Show latest tweets - by El Forum - 10-05-2009, 02:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB