![]() |
I've tried all the methods posted on here but can't get OpenX to work with 3.8.1 without getting a parse syntax error. Any ideas?
|
I have localmode calls working well (very fast page loads) but I am getting time skew despite the vb clock, server clock and all other services being correctly set. whenever I do a
<ad what="zone:1" /> The post bit timestamps are all back in time by the amount of the GMT offset... (+10) very strange. If I take the invocation out the times go back to normal. Interestingly enough the time stamp at the bottom of the board is correct. I wonder if the plugin is writing a UTC time to a local variable that then is built into the post bit... Any one with any idea on help would be appreciated in the mean time I will continue to hack away at it - I am on 3.8.2. Man, its sooo fast! I have to get it working! I notice that if I use "detailed" as a time setting in the vB options I get a correct result... Must be a variable getting reset somehow... Any ideas? |
OK I think I can see where this is happening but just don't know how to track it down - it is possible that this is specific to 3.8.2 and I would be very willing to write up my method for getting it to work if I can get this time issue sorted.
The Time skew occurs if and only if there is a local mode invocation called using the <ad /> code. I can put <ad what="zone:1" /> in the footer or header, refer to it from an ad location or whatever but so long as there is a reference to this tag the time jumps back 10 hours. So when I look at the plugin called Ad tag callback I see that its hook is at the template_compile and this tells me that it is a likely cause of elements of the time being rewritten... Interestingly the time statement at the bottom of the board is always correctly displayed and if I switch the time mode to "detailed" I get the correct time (ie 1 minute ago) for a post just made instead of a 10 hour shift into the past... BUT in the PM inbox the time shift is still evident. This is the plugin code: Code:
if (!function_exists('_tag_callback')) Does anyone think I am on the right track or is it futile troubleshooting this wonderful but rather antiquated (for 3.5) implementation now?> |
Guys, I am not sure how much interest there is for this mod to be adapted to work with 3.8.2 but I for one have spent some considerable time getting it to work with only one issue - the clock is set back to UTC during the callout to the ad server when using local mode. I can't see any reason why it will not work as advertised with vB3.8.2 using javascript invocation.
It is a great mod and one that with a little patience rewards the effort to implement. Much thanks to the developer, not just for the hack but also the inspiration and opportunity to learn so miuch more about plugin integration while trying to fix what is a bug with openx - not a problem with this great hack. If The M.I.P is still monitoring this thread I would offer, in exchange for some tips to work around the UTC problem (I have many threads about posing possible work arounds but have not got any workable answers or come up with a solution myself yet) I will make every effort to update the plugin for 3.8.2 or at the very least write a step by step integration guide for 3.8.2 and openx2.8. I know that this is an easy thing to work around for a programmer but the problem is finding one who can see the context quickly enough to make the fix! Just putting it out there The M.I.P. thanks for the great work on this inspired product and thanks for reading everyone! Will |
I am interested for sure.
|
I get a shifted time as well, a fix would be great.
|
I have detailed the nature of the problem here:
https://vborg.vbsupport.ru/showthread.php?t=214263 that links to a couple of alternative attempts to glean what info i can about the nature of the tz problem and the openx bug that is allegedly responsible. Not much in the way of progress toward a solution I am afraid as yet. |
Curious as to any luck with this as of yet?
|
Not yet, following various leads; I'll be sure to keep you updated of progress.
|
Right on, thanks.
The java delivery def uses a lot of resources. |
I have a fresh vB3.8.2 with no other mods but this and two themes, one implements the <ad/> tag and another doesn't. The board is natively set to UTC+10 and I have added the time zone to the time stamps when viewing the only post on the board in each style it can be seen that when the ads are on the time stamp is UTC and when off reverts to board time. Board time is correctly reported at the bottom of the main page for the user in either case.
I continue to drill down on this. I am certain it has something to do with the local mode bug in openX but this still shouldn't throw vB - there must be some way of protecting the local variables in vB so that they are not zapped with the call out to openX by a simple plugin. By the By, something to be aware of is that if you use the disable hooks in config.php to check your board functionality with the way that this plugin works the <ad/> tags break the templates calling for view_ad which (with hooks disabled) is an undefined function - yielding thus a fatal error. Code:
Fatal error: Call to undefined function view_ad() in /var/www/archq/forums/global.php(614) : eval()'d code on line 1 Code:
define('DISABLE_HOOKS', true); |
Thanks for taking the time to try and get this working.
|
well, i finally decided to just install a older version of openads.
It works fine with this plugin and does the trick for me. IF the time problems get fixed, then i might try to upgrade to the new openads |
That is good news as a fall back - I have set my board to time display detailed so they get a relative take on the time stamp - but it is far from a workable solution. I have too much running on openX and am going to pursue this to the bitter end :)
Cheers, Will |
OK.... Drum roll:
The fix is almost absurdly simple. You have to specify the openads timezone variable before making the callout. I can only confirm this for vB3.8.3, phpAdsNew Banner Ads Integration 1.0.4, openX 2.8 and php5 so please don't go jumping into your plugins and stuffing up boards without backups and copying and pasting the original code to a text editor. The line needed is the spec of the local server timezone for your host: Code:
OA_setTimeZone('Australia/Sydney'); To fix this problem with Local Mode (not xml-rpc) method calls to openX 2.8 you need edit the plugin: view ad function http://www.sourcepoint.com.au/outlin...d_function.png http://www.sourcepoint.com.au/outlin...d_function.png Select all in the plugin code box and replace with this: Code:
if (!function_exists('view_ad')) Code:
OA_setTimeZone('TIME/ZONE'); OR if you just want to insert the line yourself find: Code:
$phpAds_context[] = array('!=' => 'bannerid:'.$ad['bannerid']); Code:
OA_setTimeZone('TIME/ZONE'); Code:
return "<!-- BEGIN ad {$adcomment} -->{$ad['html']}<!-- END ad {$adid} -->"; or at least that has fixed the issue for me. Now I must say that I am not sure of what effect this might have on the openX server if it is not in the timezone that the main boards are - this could conceivable cause problems associated with skew of the statistics or other database date and time records within openX. If I notice anything like this I will report here. Cheers, Will |
Fantastic Will, will try this now, have had to stay on 2.4.3 due to the ad tag bug.
Cheers Bruce |
Quote:
|
It's this Add-on with a modification (one only) to the plugin that delivers the ad.
|
Thanks for the answer. Is the modification related to the ability to use local calls or not? I really wanted to get rid of the javascript...
|
This mod invokes the ads via local mode or xml-rpc calls by defining a template tag <ad />.
The javascript invocation method is not implemented using the <ad /> tag to callout phpAdsNew [openX]. If I understand you correctly, you are using javascript invocation calls generated by the zone defined in phpAdsNew [openX]? This method is slow and very inefficient compared to local mode therefore I tried this mod in order to improve performance but immediately ran into the problem of it no longer being supported for vB3.8.x or openX (as such). Having a server with vB3.8.3 and openX 2.8 on the same localhost I thought I'd give this mod a go and see if it works. It does, but with the caveat that as soon as you invoke an ad using the <ad /> tag all timestamps on the board are reverted to UTC (whatever the server config or userCP setting) but the board time remains correct and displays correctly (timezone and all) at the bottom of the pages. The reason for this is that when making local mode calls to openX 2.8 the timezone is not correctly handled - as reported in this bug. Several workarounds are suggested and I found that ultimately defining the openX timezone prior to making the callout (with the localhost local timezone - nothing to do with a user's preference setting offset) fixed the problemo. So that, in a nutshell, is it. I have not experimented with xml-rpc but since this mod provides it as an alternative call I suspect it works as expected. You can therefore do away with javascript invocation by implementing this mod with the single plugin modification I posted above. HTH Cheers, \\' I suppose that this mod could be relaunched as OpenX Banner Ads Integration and stated as compatible with vB 3.8 and OpenX2.8 - much more testing would have to be done though and the local system timezone would have to be implemented as opposed to hardwiring it in the plugin. |
vb 3.8.3
openx 2.8 - 1. I did what stardotstar said Above 2. I set up website and campaign and uploaded banner and Linked them together 3. Set up zone = zone name Header Added this too the header Template were I wanted the banner <ad what="Header" /> when I hit save I get a blank page and it won't save the code. Then I tried to use the java tag invocation code and it saved but nothing displayed. I need just a little more help getting this to work. Thanks |
Ok fixed as it works good now
chang to the full path in Plugins & Products-Plugin Manager-Product : phpAdsNew Integration-init_startup and edit find phpadsnew.inc.php and ad the full path Code:
'http://www.mysite.org/openx/phpadsnew.inc.php' which you can find under inventory/zones/ invocation code drop down menu selct java and it showed up fine I am so jumping with joy right now woot woot. :D Now I'm off to forumhome template hopefully I'm on a roll |
I have a new problem on forumhome as the banner dispalys under the navbar on the left.
what I need is it to display on the left be side the forums. what can I do too re size the forums to give me a left column on forum home so it displays left of the forums. |
star,
Thanks a million for this, should work perfectly. The only question I have left is if the modification you suggested will take the actual zone file in the server and read it or just implement a standard. I'm asking this because of daylight savings time adjustments that tend to move around quite a bit from year to year. Thanks again, |
Dennis - you need to specify the actual TZ in this work around. Like - Australia/Sydney - so daylight saving would only be invoked if openX is able to auto detect daylight saving time - I know many systems do but not sure of openX. So no, it does not read the server zone file - but that should be easy enough to do by using the php TZ variable.
dholt - I would look into the template/style forums - I'm not much more than a hack at layout and css stuff... I use USC (Ultimate Side Columns) for my side banners, otherwise you can adjust the widths in the template controls in ACP. |
I use vbadvanced on every threadpage on the right sidebar. I will setup a module in the right sidebar which shows a large Rectangle Ad.
I have about 17.000 Threads in the most of them i want to show the same banner. But in around 100 Threads i want to show 100 different Banners. Say for the Nokia E71 Thread, i want to show a Nokia E71 banner which links into the right place on our shop. In the Iphone 3 GS Thread i want to show a banner with Iphone 3 Gs which links in the Iphone Section in our shop etc... Is this possible with this mod? |
Quote:
Thinking back, if you new the banner ID that you wanted to refer to, or created a group showing a bunch of iPhone banners, then you could call banners for that group when in the iPhone section of your site directly. The same goes for the Nokia. But you'd have to do it by either referring to that particular banner, or that group and randomly selecting a banner from the group. But what you're asking can be done. |
I have done some simple placement of the banner invocation in the templates using the places where the existing ad hooks are for vB itself - and inserted some simple conditionals that delivery a particular zone if a forum is a particular ID...
I should mention that if you can use the localmode invocation and the openX is on the localhost it is much much faster than if you do a javascript call, but LWillmann is right there is a considerable load to sustain if your site is delivering massive page refreshes. I keep an eye on this thread becasue I am trying to get the flash banners to work since I completely rely on this hack to deliver my commercial content on my site and in the absence of a better alternative that I can readily transition to I am needing it to be as good as possible. |
Can this please be changed to be compatibel with the 4.0-version?
|
I am sure it can be - but who would do that I am not sure. I am not on 4 and have not yet even begun to get my head around ensuring that my mods and hacks will transition. :ugh:
BTW I have the flash components working by building in a script call that defines the flashplayer - this is documented in one of my other threads here - and is a solution contributed by another member here who found it on OpenX forums. Happy New Year all. W |
Quote:
|
The flash display issue that was identified from an OpenX thread by TenPercenter is this
Quote:
|
Anyone have this working with vb4 yet by any chance.
I will pay for this to be converted or a completely new mod written, if someone with the proven experience would be able to get openx and the options working with vb4. thanks |
an update for VB4?!? pleeeeeaseeeeee help!
|
Quote:
|
Still willing to pay for this mod to be ported over to work with vb4, or a new mod created.
|
Any updates to 4.0 version ?
|
I've been using OpenX with vB4 without any problems, calling the ads directly with javascript.
|
Quote:
|
Sure. :)
Please remember that calling several ads using this method might load your server significantly. All you have to do is go into your OpenX control panel, choose 'Direct Selection' from the left menu, next select javascript invocation from the options and adjust the script according to your needs. All my banners have unique identifiers so it's pretty easy to target them with a simple '?what=' condition in the script. The final script version is copied to where ever you want the banner to show, usually placing it inside one of the ad templates is a good idea. :) |
All times are GMT. The time now is 02:33 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|