Change
Wasn't sure what to do with this, so I'm posting here and hopefully someone will see and pass on to correct persons.
I wanted a way to pass the tiki username to an external web page. I got a lot of information from the tiki people on the irc channel, thank you.
This is what I did, and think this or something like this would be useful in a future release.
I basically modified one line in the tiki-featured_link.php file that transposes the string "PassTikiName" with $user, so if you want to use the tiki user name in a featured link you would do:
http://www.somesite.com?name=PassTikiName
and if you were logged on as Tikiuser, it would actually execute:
http://www.somesite.com?name=Tikiuser
the code is as follows:
$section = 'featured_links';
include_once ('tiki-section_options.php');
$smarty->assign_by_ref('url',str_replace('PassTikiName',$user, $_REQUEST%22url%22));
$smarty->assign('mid', 'tiki-featured_link.tpl');
$smarty->display("tiki.tpl");
?
The only line I changed is the $smarty->assign('url',$_REQUEST%22url'));
to
$smarty->assign_by_ref('url',str_replace('PassTikiName',$user, $_REQUEST%22url%22));