![]() |
Ads in reviews Option to place ads in reviews Description Allow to choose if ad is placed in one review, category or all categories Allow ads to be placed in reviews/comments Allow ads to be placed in ReviewPost index |
Good idea your referring to writing some banner ad manager program if I am following. |
I guess .. I can see this for all your products |
well at any rate a nice idea. |
I would suggest you upgrade to ReviewPost 6.0 I added in a new plugin manager where you can include your own blocks of code html or banner ads throughout various places in the application much like the vbulletin plugin manager. Should make upgrades very painless in the future since you do not need to edit our templates anymore to add non standard things. |
Can you explain how exactly this works, please? For example, I have an Amazon vertical banner in my left sidebar in my vBulletin CMS widget. I copied and pasted it right from the Amazon page into the ad manager in vbulletin and it appears as expected. I pasted the exact same code into the reviewpost plugin manager and selected a location (sidebar_middle) and it does not appear. Instead, I see the following error: Parse error: syntax error, unexpected '<' in /home/carmoms/public_html/reviewpost/index.php(330) : eval()'d code on line 1 Can only certain types of code go there or do I need to add code around the amazon code? The odd thing is that this is the code I pasted into the plugin manager, exactly as it appears at the Amazon widget creator: Code: Content visible to verified customers only.Code: Content visible to verified customers only. |
We do not particularly allow script tags in our code as a security thing. Now we actually have a function called convert_html which does not strip bad tags. I made a change in adm-misc.php so it can use that instead of un_htmlspecialchars so you can redownload the build. Anyway your talking about apples to oranges. Your talking the vb banner ad manager not plugin manager. Our plugin manager allows you to create plugins html banner ads in the format we noted. Here is a tutorial on exactly how to create a plugin. http://www.photopost.com/forum/photo...ml#post1302140 Based on the tutorial adding for example a banner ad in the header bottom you would do something like this Code: Content visible to verified customers only.If you read the tutorial you should be able to make all the plugins you want. ;) |
Thanks for the link- I did a search and this thread turned up and somehow missed the FAQ. Are you saying that the new build might allow the script to work? If not, I'll leave it as a feature request then. Both Amazon and Google Adsense use script in their banners. These are probably the two most popular ad networks and I'm sure others use script also. Some of the Amazon widgets use iframe and I could try those instead. I really have no ability to create plugins, but it would be very nice to stick ad network banners and widgets in the reviews section. |
Look at your site lol the block works fine. Yeah our update announcement has a link to the FAQ Your thing works fine if done right. The plugin manager is php code in vb and same as ours. You where talking about the banner manager in vb and trying to do things that way. |
Ah thank you for fixing it. Right, I was looking for the purpose being asked in this thread regarding advertising code, rather than the intended purpose of the plugin system. Still good to see that a simple change allows it to work for both, though. Thanks again! |
Yeah the plugin system allows one to enter banners html or full featured php code into various places in the application. |
It would be nice to add plugin places in product description and User comments |
Yep I will compile lists of additional places users want and when I have the next go around I will add more hook places but on average you can do this easily as noted in the plugin faq thread. When creating a plugin choose the plugin location thats going to run on the script you want for instance any of the showproduct location fields. When you do your plugin choose a look location and when formatting your html to print out just use say the format as an example. $pphook['showphoto_below_desc'] .= "SOME HTML"; You then of course would need to edit your showproduct template and below the $desc variable add $pphook[showproduct_below_desc] it works the same way as vb does really. Users have been creating new hook locations a company does not support and define them that way. As far as supported hook locations like I said I will look at the suggestions forum for hook suggestions when its that time to look at things again. |
There should be example ad example in the plugins forums. Likewise there are threads here where I have asked for plugin ideas as well as possible new hook locations so any comments are appreciated. |
I was trying to add a new plugin to my reviewpost section sidebar to add an Adsense banner. It didn't work, no big deal, I probably messed up something. The odd thing is that it also seems to have ruined the existing plugin that you helped create. I now get this error: Parse error: syntax error, unexpected T_STRING in /home/carmoms/public_html/reviewpost/index.php(335) : eval()'d code on line 1 I removed the new plugin and the error persisted in the plugin that had been working. I tried replacing the Amazon script with an Amazon iframe but that didn't help, either. Even if I substitute text for the script, it still results in the error now. Code: Content visible to verified customers only.I don't think I changed the syntax anywhere. Is there some other setting that might have been affected by adding a new plugin? Sorry to be a PITA today, just now finding time to try and finish up my website and get it rolling after a year lol. |
Nevermind! I just happened upon a way to do this using the Custom PAL options! Works great! |
There is actually a sample adsense plugin in the reviewpost plugins forum but a custom pal works |
I broke something- even that plugin vB4 version gives the same error. No worries though as the custom pal is working fine. |
yeah plugins must be done right bad coding will cause errors. |
| All times are GMT -5. The time now is 06:30 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0