View Single Post
Old 01-25-2018, 02:00 PM   #15
psyang
Powerplay Quarterback
 
Join Date: Jan 2010
Exp:
Default

If running the javascript function more than once is not an issue, you might look at just modifying the PostBit_Init function found in vbulletin_global.js. This seems to be called during the ajax responses (as well as at other times). That way, there is only one place to make a change, instead of multiple places. It will probably take care of other cases we aren't thinking of where ajax might be used as well.

Add the twitter function after the function "child_img_alt_2_title(C)" but before "function vBulletin_init()". It should look like:

Before:
Quote:
child_img_alt_2_title(C)}function vBulletin_init()
After:
Quote:
child_img_alt_2_title(C);myTwitterFunction();}func tion vBulletin_init()
psyang is offline   Reply With Quote