I know there are many tutorials out there & have searched this forum as well; but my case is light different... @ I can't edit templates, so everything to be done via js insertion/modification This is the original html: [not complete]
the above is an editor for phpbb3, when we post a message we are directed to http://example.com/post where there is a confirmation of message being posted then we are redirected . I want to skip that
so I tried with this a mixture of js & jquery first I inserted this html before or after something
I am trying to remove the online class ONLY for administration which has a unique url namaley /u1. The idea is to scan all the divs containing TWO classes namely post (users reply) & online (users currently logged in). Then check whether this reply or div is from administration, then remove the online class thereby removing the online picture that is floating left. Any ideas would be appreciated
Background: You enter some text in message editor textbox; press send; page (& not popup) appears stating 'Message successfully recorded...return to message' Send button HTML
Limitations: Cannot edit template/html ...had to be done via javascript/jquery
Objective: to replace Send button with a custom one such as one you press it (after message is entered) you be redirected back to your current page(URL) & 'Message successfully recorded...return to message' page is thus skipped.
Abstract ideas: 1] Get the href of current page via a function
function threadurl(href) {
$.get(href, function() {
window.location.reload();
});
}
2] replace 'Send' button with custom one (with class: button2...& other attributes) & somehow add