collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 591
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: Shout Box Automated Welcome Message  (Read 6974 times)

0 Members and 1 Guest are viewing this topic.

Offline tombillings

  • Semi Newbie
  • *
  • Posts: 30
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Shout Box Automated Welcome Message
« on: March 11, 2011, 07:02:26 AM »
I was wondering if there was a way to code the shout to "Welcome (New User Name) To The Forum". Basically create and post a welcome message when a new member joins my community.

SMF 2R4
SP 2.3.3

Thanks in advance,

 Tom
« Last Edit: March 11, 2011, 09:52:29 AM by tombillings »

Offline 130860

  • Super Handsome Language Coordinator
  • Comrade
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Shout Box Automated Welcome Message
« Reply #1 on: March 11, 2011, 09:08:52 AM »
try this, on your /Sources/Subs-Members.php  find this:

// Admin gets informed here...
      adminNotify('approval', $memberID, $regOptions['username']);
   }


and replaced with this:

Code: [Select]
// Admin gets informed here...
adminNotify('approval', $memberID, $regOptions['username']);
}

global $smcFunc;

$smcFunc['db_insert']('',
'{db_prefix}sp_shouts',
array(
'id_shoutbox' => 'int',
'id_member' => 'int',
'member_name' => 'string',
'log_time' => 'int',
'body' => 'string',
),
array(
1,
1,
'admin',
time(),
'Welcome '.$regOptions['username'].'to the forum',
),
array('id_shout')
);

where

array(
         1,   // this is the ID of your shoutbox
         1,  // the id of the person who will make the shout
         'admin', //  the username of the person who willmake the shout
         time(), 
         'Welcome '.$regOptions['username'].'to the forum',  // the message it will display:  welcome "username" to the forum
      ),

Offline tombillings

  • Semi Newbie
  • *
  • Posts: 30
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shout Box Automated Welcome Message
« Reply #2 on: March 11, 2011, 09:51:00 AM »
Does that person have to be online in order for this to work, if so how could i create a simple greeter and have it appear to be online all the time? Meaning I am currently doing the greeting but I cannot be online all the time to do so.

Offline tombillings

  • Semi Newbie
  • *
  • Posts: 30
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shout Box Automated Welcome Message
« Reply #3 on: March 11, 2011, 09:52:07 AM »
nevermind, it's working perfect, sorry if i bumped this thread that was not my intention...thanks so much for the quick help, works like a charm!!

Offline 130860

  • Super Handsome Language Coordinator
  • Comrade
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Shout Box Automated Welcome Message
« Reply #4 on: March 11, 2011, 02:36:49 PM »
to answer the question, no, you don't have to be online for the shout to be created, the shout is created automatically when a new person successfully register at your forum regardless if you're online or not :)

Offline Jorge_CS_

  • Semi Newbie
  • *
  • Posts: 11
  • Gender: Male
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Shout Box Automated Welcome Message
« Reply #5 on: April 28, 2011, 01:16:41 PM »
Does this work on SMF 1.1.13?

Offline grafitus

  • Comrade
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: Shout Box Automated Welcome Message
« Reply #6 on: April 28, 2011, 03:10:31 PM »
No, it works only on 2.0 x.
my modsI don't reply support PMs. Please use support forums.

Offline S@ffz

  • Jr. Member
  • **
  • Posts: 51
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Shout Box Automated Welcome Message
« Reply #7 on: June 22, 2011, 05:56:56 PM »
I have used this and it works great  :D  Thanks 130860

Offline telemus

  • Semi Newbie
  • *
  • Posts: 12
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: Shout Box Automated Welcome Message
« Reply #8 on: March 17, 2012, 02:23:30 AM »
I'm loving this code, but I can't seem to figure out how to make their name that shows in the shoutbox, a link to their profile? can someone help?

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: Shout Box Automated Welcome Message
« Reply #9 on: March 17, 2012, 03:25:13 AM »
Find:

Code: [Select]
'Welcome '.$regOptions['username'].'to the forum',
Replace with:

Code: [Select]
'Welcome [url=' . $scripturl . '?action=profile;u=' . $memberID . ']'. $regOptions['username'] . '[/url] to the forum',

Offline telemus

  • Semi Newbie
  • *
  • Posts: 12
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: Shout Box Automated Welcome Message
« Reply #10 on: March 26, 2012, 03:01:01 AM »
This is perfect except it replaces their name with [link] .. is there a way to stop it from replacing all links to "[link]" ??  Thanks so much for all your help..

Offline Buta

  • Semi Newbie
  • *
  • Posts: 6
    • Sportski ribolov
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shout Box Automated Welcome Message
« Reply #11 on: May 24, 2012, 10:58:33 AM »
I have some problem. Please help me about this code

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 114
  • SMF Version: 2.0.5
  • SP Version: 2.3.5
Re: Shout Box Automated Welcome Message
« Reply #12 on: May 24, 2012, 12:48:40 PM »
I had this same problem with the Arcade Auto-Shout with links... Underdog told me (if I remember correctly) that the shoutbox was modified to show links as [link] for some reason due to issues with urls or some such thing (I am paraphrasing and likely getting it wrong... but he DID lay blame on the shoutbox not his code).