3.2 mChat Welcome Message

Forum rules
To add a post here you need to click on the topic attribute by doing this you aggree that you have tested the ext your adding on 3.2.x
User avatar
martin
Founder
Founder
Posts: 494
Joined: Sun May 24, 2015 3:14 pm
Status: Offline
Screen Resolution: 1366x768
  • Ubuntu Chrome

mChat Welcome Message

Jan 2018 07 14:21

Post by martin » Sun Jan 07, 2018 2:15 pm

Post by martin by martin Jan 2018 07 14:21

Extension Name: mChat Welcome Message
Author: dmzx & martin

Extension Description:

This extension will add an random welcome message in mchat when user login.





Added code for profile link when using {$username} in message.



Added code for "Hide my online status this session" so no message when member hide the online status.
mchatwelcomemessage_v102.zip


Want just new users to get posted on there first login then do the edit below.
Open ext/dmzx/mchatwelcomemessage/event/main_listener.php
Find This may be a partial find and not the whole line

Code: Select all

if (!empty($row['rand_text']) && $row['session_viewonline'] == 1)
Replace with Replace the preceding lines with the following

Code: Select all

if (!empty($row['rand_text']) && $row['session_viewonline'] == 1 && $this->user->data['user_lastvisit'] == 0 && $this->user->data['user_new_privmsg'] == 0 && $this->user->data['user_last_privmsg'] == 0)
Now set up your random message in the acp.
You do not have the required permissions to view the files attached to this post.
Save page loads and make pages shorter find it here. Show user sig once in a page
Use this to install an ext on your board no more ftp or path making.
Path too install this ext is ext/boardtools/upload https://www.phpbb.com/community/viewtop ... #p13700571