0

I am a total php newbie and hope to find someone who could help on a few issues:
Site CMS=joomla 2.5; the component breezingforms/contentbuilder requires certain php code to link a field to a task i.e. referring to a URL. I have more detail for someone willing to help.

2
Contributors
9
Replies
35
Views
3 Years
Discussion Span
Last Post by AARTI SHRIVAS
0

Id like to link the username entered with breezingforms and listed in a contentbuilder output table to the respective user in uddeIM (an internal messaging system).
the php code suggestion we received from the developer of uddeIM (below) does not work, maybe wrong tags?

<?php
$user = JFactory::getUser();
?><a href="/<?php echo JRoute::_('index.php?option=com_uddeim&task=new&runame='.$user-get('username'));
?>">PM</a>

http://catholicparishnetworks.com/jobs

0

i think proble / in anchor tag use this and pet me know your problem is solved or not

<?php
$user = JFactory::getUser();
?><a href="<?php echo JRoute::_('index.php?option=com_uddeim&task=new&runame='.$user-get('username'));
?>">PM</a>

Edited by AARTI SHRIVAS

0

Thank you AArti, but the code did not work. I reveive this error:
Fatal error: Call to undefined function get() in /home/content/20/11552120/html/administrator/components/com_contentbuilder/classes/contentbuilder.php(555) : eval()'d code on line 1

0

try this

<?php
$user = JFactory::getUser();
?><a href="<?php echo JRoute::_('index.php?option=com_uddeim&task=new&runame='.$user->get('username'));
?>">PM</a>
0

I still get an error.
It seems like its picking up the user thats logged in in and not the one on the table.
/component/uddeim/?task=new&runame=chargers

0

use this if you want to pass user id in link i don't understand what is you requirment but just give a try

 <?php
 $user=JFactory::getUser();
 $logged_id_user_id=$user->username;
?>
<a href="<?php echo JRoute::_
('index.php?option=com_uddeim&task=new&runame='.$logged_id_user_id;
?>">PM</a>
0

Thank you very much for the help but it still doesnt work. I appreciate it.

0

please can you explain what exactly you want to do and give complete code also

Edited by AARTI SHRIVAS

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.