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.

Recommended Answers

All 9 Replies

let me know what is the issue may be i help you when i know the issue

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?

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


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

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

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

try this

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

I still get an error.
It seems like its picking up the user thats logged in in and not the one on the table.

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

<a href="<?php echo JRoute::_

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.