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

Hello dear administrators and users. I am using the latest version of q2a Q2A 1.8.8. When I want to use the On Site Notification Plugin in Turkish, there are meaningless sentences, so I want to change the spelling order. The codes are written below. How can I make this order?

orginal and full code: https://github.com/MominRaza/q2apro-on-site-notifications/blob/master/q2apro-onsitenotifications-page.php line:269-271 

the code I want to change:  $eventHtml = $type === 'q2apro_osn_plugin'

? $event['event_text']

: $eventName . ' <a ' . ($type == 'u_message' || $type == 'u_wall_post' ? 'title="' . $event['message'] . '" ' : '') . 'href="' . $activity_url . '"' . (qa_opt('q2apro_onsitenotifications_newwindow') ? ' target="_blank"' : '') . '>' . htmlentities($linkTitle) . '</a>';

output:  on site notification

what I want, for example:  mynotification1

first (1st)sunshine (username will be clickable like in the picture) then (2nd)private message from, and finally (3rd)you received 

Thank you very much in advance to those who can help.

Q2A version: Q2A 1.8.8

1 Answer

+1 vote
by
edited by

I've pushed a commit to the official plugin that has this similar structure.
Check out this post: https://question2answer.org/qa/111970/on-site-notifications-version-1-4-8

by
thank you gold developer its works, what's normally like this. => [Upvote] on your answer [Post]. ,
[Comment] on your question [Post]. , How can I do it this way? =>  on your answer [Upvote] [Post]. ,on your question [Comment] [Post].
by
edited by
Open file: q2apro-onsitenotifications-page.php
Line: 399
https://github.com/q2apro/q2apro-on-site-notifications/blob/master/q2apro-onsitenotifications-page.php#L399

Update it to this:
$eventName = $eventTypeText . '<b>'.$eventName.'</b> ';
...