Modifying My Blogs module
Hi - I'm trying to modify the My Blogs module to list all blogs containing my user name in the description field, rather than just listing blogs I created. Any ideas on how this can be done?
---------
I detail one approach I hoped would work, but no luck:
(1) modify the list_user_blogs function in tikilib.php as follows:
$query = "select * from `tiki_blogs` where `user`=?";
$query = "select * from `tiki_blogs` where (`description` like ?)";
Unfortunately, this requires the ENTIRE description field to be ONLY my username. Not useful.
(2) I would think the following would solve the problem. The % signs serving as wildcards. But wildcards are not allowed in php (right?):
(`description` like %?%)
Is there another way to insert wildcards or regex expressions into tikilib.php?