Welcome inbox v2

Started on the old forum in November 2010 · view the original in the archive · old links redirect here

#inbox2

3 replies · 479 views · started 16 years ago · 1 min read

3 participants
.DARKNESS. Junior · 11 posts #1

please help, i wanna change the automated welcome inbox so that it will go into inbox 2, can anybody tell me how to do this 🙁

wolvertoon Newbie · 9 posts #2

Hey im thinking as I wanted to do that to go to your core functions.inc and duplicate autopm to say autopm2

 
function autopm2($msg, $who)
{
mysql_query("INSERT INTO inbox2 SET text='".$msg."', byid='1', toid='".$who."', unread='1', timesent='".time()."'");
}

And in register.inc where you see this part

 addonline(getuid_nick($name),"Just Registered","");
$delonline=mysql_query("DELETE FROM online WHERE uid='".getuid_nick($name)."'");
$msg="Hello Welcome from everyone here at ".sitename()." hope you have a great and friendly time at our site any problems pm myself or my team anytime[br/] You are awarded 100 points for joining you can gain points by using forums,Games and chat which will unlock other site parts enjoy yourself and have fun :o)[small][i][br/]p.s: this is an automated pm[/i][/small]";
$msg=mysql_escape_string($msg);
[B]autopm($msg,getuid_nick($name));[/B]
return 0;
}else{
return 2;
}
}
}

change autopm($msg,getuid_nick($name)); to autopm2($msg,getuid_nick($name)); just to call it at function.inc try that it should work 🙂

Hi im Antione Tony Thanks to all for the help everyone has giving me on coding-talk, im here almost everyday Here to code/create and learn new stuff , If I can help I will but please say thanks and friends on the way is a total bonus as we all have something in common we love creating new stuff 🙂

pmbguy Senior · 344 posts #4

ok, just a thought: (I'd typed this out in more detail twice but it kept giving error when i try post, so thus consise version) what if the welcome pm is stored in the database? that way you can change it every 5 minutes if you want from the staff tools... ok, here's a step by step ish guide:

  1. add another field into your settings table called welcomepm
  2. set it to be varchar 500 or whatever...
  3. Put your desired welcome message text there...
  4. Add an extra box to general settings/admin tools... 5 Add extra $variable on the update settings page to carry welcomepm...
  5. add welcomepm="$welcomepm" to the update sql bit...
  6. add a query to call $msg from db instead of having: $msg = "message text";
  7. Enjoy changing welcome PM for special occasions, etc...

(You'll never believe how easy it is till you try)

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close