AzzidReign
Well-known member
I'm on the old version (1.1) and it doesn't allow conditionals in the option fields the last I checked.There might be two ways of doing this:
1. Just modify your banner to check on a CSS / Javascript level for the users browser and serve either this or that banner.
2. Check on PHP-Level the browser. You might want to modify ViewPublic/Thread/View.php. You add your banners in ACP>Settings. These banners are fetched from the program when a user visits a page. The code to fetch these banners is in the addon: ViewPublic/Thread/View.php. You would have to do this:
- 1. Add another ACP>Settings>MobileBanner textfield
- 2. Check within the code if a mobile browser is used and serve the according banner from ACP
As far as #1, I'm not sure what you mean. Are you saying there is a code I can add to my DFP tag to check for browser size? Or do I have to use adsense code to do that? I don't think I've seen DFP codes checking for browser size (yet).
Thanks for the reply. And I'm not comfortable with PHP so I don't know what I would do with the view.php (I already looked in it :/ ).