The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
You'll probably want to change the title to something other than vB Ad Management as well, I forgot.
|
#12
|
|||
|
|||
instead of body onload => use
Code:
window.onload=..... |
#13
|
||||
|
||||
Also good. Come to that, showthread's onload javascript is a variable so you could probably tack additional onload stuff onto the end as well. Instead of a str_replace.
Choices choices. |
#14
|
|||
|
|||
THANK YOU!!!! Actually, ad management is precisely what I'm trying to do. I want to enable the forums Ajax features, however we make our living off ad revenue, and as you know, Ajax doesn't reload the page, so we lose significantly on ad delivery. What I'm trying to do is reload the ad positions along with the edit and quick reply Ajax events.
|
#15
|
||||
|
||||
Something like the option to refresh adverts every X seconds, does that sound worth doing? It's not what you're trying to achieve, but generally speaking...?
|
#16
|
|||
|
|||
I'm not sure we can actually do that, but I'll check. The problem is we are serving our ads via PHP, meaning PHP is writing the JavaScript setup code to the page. I haven't been able to figure out away to refresh the variable call by hooking it on the Ajax start and Ajax complete hooks. That would be ideal, if I could do that way.
So what I've been trying to do, in lieu of that, is dynamically write the JavaScript function that calls the ad, by using JavaScript onclick of the edit and quick reply submit buttons. So I'm writing one JavaScript function to the page with another, using innerHTML, because it's easier than using the DOM methods in this instance. --------------- Added [DATE]1196354702[/DATE] at [TIME]1196354702[/TIME] --------------- RedTyger, I looked over that plugin you graciously attached. Am I correct that it adds a link to a remote JavaScript located in the client script directory, and calls it on page load? |
#17
|
|||
|
|||
FYI, this issue is resolved. I ended up writing my own AJAX script to refresh our ad positions, and calling it onclick of the quick edit and quick reply buttons. Unfortunatly, the quick edit SAVE button is dynamically written and I can't get at it to add the onclick event. But 2 out of 3 ain't bad...
|
#18
|
||||
|
||||
Oh, good job. I ended up adding a timed AJAX advertisement refresh to my ad manager off the back of this, though its not really related. Seems to be appreciated.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|