Hi all.
I just installed uBrowser on a Drupal 5.1 site (recently upgraded from 4.7.x). When I try to use the "Category browser" admin page for uBrowser, though, I get some very strange results--at least, they seem strange to me because I don't understand it.
After I've filled out the form to create a uBrowser, I click the Display uBrowser button. According to the page text, "the textarea beneath the uBrowser will display the PHP to put the browser on a page in your site," but that's not what happens in my case. Instead, I get a full-blown 404 page, shoehorned into the textarea box. (In case it's relevant, I'll mention that my Drupal installation is in /CMS/ instead of in wwwroot, but that has never caused any other problems of which I'm aware. Also, this is on IIS.) When I view the source for the page as a whole, there seems to be nothing "in" the textarea, so I'm at a loss as to how to start troubleshooting.
Given that Javascript is not my strongest suit, can someone give me some idea what I am seeing, or why, or how to fix it?
Thank you for any help.
Comments
Oops.
I failed to see that below the 404 display was another textarea containing the code. I think (I hope) I can take it from there. Thank you and my apologies if you've spent any time thinking about this post.
OK, now I have to take *that* back.
Still have a problem, albeit a different one. Seems to be a browser issue.
In Mac IE, the uBrowser admin page doesn't display properly; I can't even make some of the selections. No surprise there and who really cares; this is just a data point.
In Safari, there is code in the display area, but it seems to be truncated. Only the last 19 lines show up.
In Firefox 2.0.0.2 on the Mac, the page just hangs on a blank screen when I hit the button.
Could someone possibly provide the PHP code for a working uBrowser? I think I can figure out how to modify that to suit my application, and just forget the admin page's wizard.
uBrowser PHP code sample
It's been months since your last post, so you've probably received the PHP code, or other solution, you're looking for. But in any case, I found your post while playing with my own uBrowser PHP code, so I'll paste mine as requested.
--------
A site by, of, and for the Drupal newbie: http://www.drupalace.com