Needs review
Project:
uBrowser
Version:
5.x-1.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Sep 2008 at 16:51 UTC
Updated:
5 Feb 2009 at 14:08 UTC
Hi I have tried the demonstration of ubrowser and loving it!
Tried to implement on my webpage and generate the code as below
'#ubrowser',
'class' => '',
'vid' => 19,
'nids' => 'true',
'search' => 'true',
'view' => 'true',
'window' => 'new',
'close' => 'true',
'multi' => 'true',
'categ' => 'Tag',
'nodesg' => '',
'nodepl' => '',
'filter' => '',
'select' => "",
);
print ubrowser($settings, 'ubrowser');
?>
It looks like its an incomplete code. I have read the documentation and it says that to show ubrowser I will have to paste the code as below
function ubrowser($settings, $id = 'ubrowser') {
// Adds CSS and JS files.
// Validates $settings.
// Returns the HTML output that displays the uBrowser.
}
How do I combine the 2 sets of codes? If possible can you please show me an example? Thanks
Comments
Comment #1
acdtrp commentedthe proper code should look like this:
My ubrowser also generated an incomplete code but I managed to figure it out.
Comment #2
rszrama commentedI'm not getting this issue with the latest uBrowser code on the Livetest. Is there some specific setup you guys are using to cause the incomplete PHP snippet to appear?
Comment #3
joachim commentedSeeing this on 1.4.
The culprit is this line:
change to: