Q2A Market - Support

We are here to provide you support for Q2A Market premium and free products. If you have any issue in installation, option settings or any bug you found. Please create a ticket. We would try to get back to you as soon as possible.

Simple adverts "Image advert" option values not saved on db ?

I've just installed the plugin.
I tested the "Google Adsense or HTML" option and it works.
After that I tried the "Image Advert" option, but I could not get it to work.
I have the "Google Adsense or HTML" checkbox not checked, the "Enable Adverts" and "Image Advert" checkbox checked.
Whichever string I put inside the 2 textarea ("Image Full URL" and "Advert Link"), when I click "save changes" the values are not saved in the qaoptions (q2amadvertdestinationlink and q2amadvertimage_url are present but they contain empty string).
Furthermore the textarea become "blank" after I click the save button.

opened on Nov 20 in Simple Advert

1 Answer

 
Best answer

Wow! you are the first who has reported this issue. I found there was a missing prefix in options.

To fix the issue find qa-adverts-options.php in the q2am-simple-adverts directory at around line #50

qa_opt('advert_image_url', qa_post_text('q2am_advert_image_url'));
qa_opt('advert_destination_link', qa_post_text('q2am_advert_destination_link'));

Replace with below

qa_opt('q2am_advert_image_url', qa_post_text('q2am_advert_image_url'));
qa_opt('q2am_advert_destination_link', qa_post_text('q2am_advert_destination_link'));

The code was not with the prefix so was not storing anything into the database. Thanks to notifying me.

answered Nov 20
selected Nov 21

Now it works perfectly !
Thanks

ps
when you'll need a tester ask to me !
:-) :-)

Cool...!
testing could be nice help. Will let you know once ready with new product.