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 🙁
Welcome inbox v2
Started on the old forum in November 2010 · view the original in the archive · old links redirect here
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 🙂
ok, i got a reply to add but it keeps saying requst entity too large or something wierd like that...
C3 Themes: http://c3themes.wen.ru/index.html Find Files: http://mystarter.tk/?goto=X-search
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:
- add another field into your settings table called welcomepm
- set it to be varchar 500 or whatever...
- Put your desired welcome message text there...
- Add an extra box to general settings/admin tools... 5 Add extra $variable on the update settings page to carry welcomepm...
- add welcomepm="$welcomepm" to the update sql bit...
- add a query to call $msg from db instead of having: $msg = "message text";
- Enjoy changing welcome PM for special occasions, etc...
(You'll never believe how easy it is till you try)
C3 Themes: http://c3themes.wen.ru/index.html Find Files: http://mystarter.tk/?goto=X-search