Page Widgets
Let me check on your site please. I'll make sure your settings are ok for this as I have things like this working.
The paypal donate button works fine but the javascript I am having issues with and it worked prior to stable so now we need to figure out what happened. I have had the same issue with analytics that used to work in a block and now has to be put in the template files only since stable release so something changed. So, does anyone have ideas of making the javascript work now in widgets?
The specific glitch I'm having when creating a widget with javascript code (and trying it various ways) is that it "takes over" the Page/Group I'm trying to create.
It remains the Page/Group to whatever I named the widget, and the script deletes and replaces any content I had in the Information area.
This happened when I created as a block and not a block.
Tinymce is likely stripping out your javascript tag: <script>
The tinymce config file needs to be modified. The 'script' tag has to be added as a valid element.
Normally the config file is tinymce.php but I haven't been able to find it which means phpfox probably has a custom setup and this settings is somewhere else.
Anyone out there know where to find the tinymce config?
you should be able to find it in the admincp
if that doesn't work, then I dunno w here else it could be hiding!
I didn't do it. Nobody saw me do it. You can't prove anything! - B.S.
http://www.phpfox.com/tracker/view/9681/ <-- MUST HAVE
Tinymce is likely stripping out your javascript tag: <script>
The tinymce config file needs to be modified. The 'script' tag has to be added as a valid element.
Normally the config file is tinymce.php but I haven't been able to find it which means phpfox probably has a custom setup and this settings is somewhere else.
Anyone out there know where to find the tinymce config?
I tried with default editor and it still would not work. I am thinking this needs to be a coded block instead of a widget now. It worked prior to stable. blah.
I tried with default editor and it still would not work. I am thinking this needs to be a coded block instead of a widget now. It worked prior to stable. blah.
Bumping this specific question again to see if any solutions have been found:
How to insert javascript widget into the new Pages widget area in V3?
Actually, I'd like to know how to insert a javascript widget in any of the modules (marketplace listings, for example).
I had to follow data66's excellent tutorial on creating a page that can have its own block to use a javascript petition widget on my site:
http://www.phpfox.com/kb/article/283/add-a-page-th...
Is there any other way to embed javascript widgets in other areas of phpFox?
EDIT TO UPDATE:
I just inserted PayPal's widget which is not javascript and it works!!! Not the typical donation button, but an actual interactive widget. It works in the Page widget area, as well as in a marketplace listing. It's a flash widget, not javascript.
Not sure if people HAVE to create a PayPal account to donate that way though; that would be a drawback, but at least a widget of some sort works properly.
I have some in blocks. Some work from admin and some don't so you have to make a coded block. I put the petition widget in a block on my site and it worked fine but it did not get the petition I wanted.
It just gets their standard petition and goes to their site. Send me the widget code and I'll play with whatever widget you are trying to make in marketplace.
I've found that either V3 plays nice with javascript, eats it, or throws it up.
I got the javascript stuff working in widgets. I researched some stuff and Tinymce seems to not like javascript. I did not find a solution to that part. What I did was turn off tinymce and insert my javascript widget with the default editor active. Checked it and it worked. Then I said, heck why not turn on tinymce and see what happens. Well, widget still worked. I inserted another widget and it also worked. ? I don't know why this worked but on my dev site I can now insert the javascript widgets with tinymce on. I need to test it more but you can try using the default editor and see if it works out.









