Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
MisterPhilip Posted January 9, 2013 Posted January 9, 2013 As per this discussion, I'd really like to see more ways to hook into things on the front end.Some places where this could be useful:AJAX requests should utilize developer-defined callbacks. For example, in ipb.topics.js, the method ajaxFastReply has an AJAX request to submit the new topic, which includes if the user's post was successful or not, if it is on the next page, etc. All of these options could be useful for skin / hook developers to hook into. A prime example for me would be to call Google Analytics _trackEvent within a new AJAX reply... but as of now, I can only get it when the user clicks the button. Optionally, it would be great to be able to add data from the backend and be able to include that in the JSON request and be able to manipulate that, but I think I'm being greedy now ;)The editor. I won't get too much into this since the dead horse has already been beaten, but as of now a lot of the CKE plugins have no way to overload them without getting hackish. For example, I'm looking at including other languages in the code box language dropdown. I think I've found a way to add them, but it sure as hell isn't pretty! Instead of making them annon functions, could we figure out a better way to include the plugins? This would be especially helpful if the editor does not become pluggable in 4.0.[/*]I'm sure there are more, but so far those 2 places have stood out to me for needing ways to hook into it.
MisterPhilip Posted January 9, 2013 Author Posted January 9, 2013 I wouldn't mind beating the horse with a stick right now...Take #2 as the first one won't format at all anymore...As per this discussion, I'd really like to see more ways to hook into things on the front end.Some places where this could be useful:AJAX requests should utilize developer-defined callbacks. For example, in ipb.topics.js, the method ajaxFastReply has an AJAX request to submit the new topic, which includes if the user's post was successful or not, if it is on the next page, etc. All of these options could be useful for skin / hook developers to hook into. A prime example for me would be to call Google Analytics _trackEvent within a new AJAX reply... but as of now, I can only get it when the user clicks the button. Optionally, it would be great to be able to add data from the backend and be able to include that in the JSON request and be able to manipulate that, but I think I'm being greedy now ;)[/*]The editor. I won't get too much into this since the dead horse has already been beaten, but as of now a lot of the CKE plugins have no way to overload them without getting hackish. For example, I'm looking at including other languages in the code box language dropdown. I think I've found a way to add them, but it sure as hell isn't pretty! Instead of making them annon functions, could we figure out a better way to include the plugins? This would be especially helpful if the editor does not become pluggable in 4.0.Edit.. I give up. Original contents of the post https://pastee.org/54e56
Recommended Posts
Archived
This topic is now archived and is closed to further replies.