• 0

Help with a wordpress plugin [wikipop]


Question

Hello,

I am using a plugins called wikipop on my wordpress blog. This plugin is not supported anymore and the last update I've donne broke it. Now, the button in edit doesn't show anymore and the popup is empty when clicking on a link in a post :'(

 

I've tried to search where is the problem in the code but couldn't find it.

Does someone use this plugin or can help me to repair it ?

 

Thank for your help.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

I fixed this on my dev environment with a single change. Looked like a typo to me. 

Line 91 of wikipop.php remove the ampersand symbol (&).

function register_button(&$buttons) {
Link to comment
Share on other sites

  • 0

 

I fixed this on my dev environment with a single change. Looked like a typo to me. 

Line 91 of wikipop.php remove the ampersand symbol (&).

function register_button(&$buttons) {

Nice catch I looked into the plugin and couldn't find the bug that quickly but this is obviously a bug, atleast I don't know of a php syntax that requires to put a & in front of a variable lol

Link to comment
Share on other sites

  • 0

The Front end links worked fine for me too when i made this change. Have you tried updating the pages/re-adding your links?

 

Hmm ok, I redownload the plugin to check if I didn't modified something and broke it.

I still have an empty popup when I click. I used Firebug to debug the javascript and there is something I don't understand. I don't really know how wordpress work but this 4 line inject code if I'm correct :

add_action('wp_head', 'tb_enqueue', 1);
add_action('wp_head', 'tb_inject', 10);
add_action('loop_end', 'create_iframe', 1);
add_shortcode( 'wikipop', 'wikipopFunction' );

The first, second and last line work as I can find in the HTML code the line associated with tb_enqueue, tb_inject and wikipopFunction.

What I can't find when I search in the HTML is the :

<div style="display: none;" id="wikipopFrame"><iframe id="theFrame" style="border: none;" name="theFrame" width="340" height="400" src=""></iframe></div>

It seems that create_iframe is never called so the iFrame is never create so my popup is empty.

Somebody can help me with add_action('loop_end', 'create_iframe', 1); ? Can I use another action to test if the iFrame is added to the code ?

 

Hope you can help me.

Link to comment
Share on other sites

This topic is now closed to further replies.