Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
680 views
in Plugins by
closed by

In the notifications plugin I have the following code which finds the location to add a link, how could I change this to find a div of my choice not the user navigation?

$this->content['loggedin']['suffix'] = @$this->content['loggedin']['suffix'].' <a class="qa-history-new-event-link" title="'.$tooltip.'"><span class="notifybub ntfy-event-new">'.$eventcount.'</span></a>';

I have a limited knowledge of php but, tried this after searching about with no success.

$this->find('#tester') = @$this->find('#tester').' <a class="qa-history-new-event-link" title="'.$tooltip.'"><span class="notifybub ntfy-event-new">'.$eventcount.'</span></a>';

Please guys any help would be great as I have been plugging away at this for some time :)

closed with the note: went in a different direction
by
well, it would be nice if you answer your own question in case others have the same question... :)
by
I would but, to be perfectly honest I can't remember how I did it :) I just stumble through edits to my theme, once I get the desired effect I move on to the next and forget now I did it :) I'll just go and check to see if I can figure it out ;)
by
No, I went in a completely different direction and just edited the css to fit my theme
by
I want to give another location to notification bubble.I think i have to change the "loggedin" string in content['loggedin']['suffix'] but i dont know what i have to put in place of it.More specifically i want to put it beside the user avatar. Pls help me.
...