View Full Version: [S] Help?

RPG-Directory > Solved Support Topics > [S] Help?



Title: [S] Help?
Description: this may sound stupid ..


jyyl94 - April 24, 2008 08:51 AM (GMT)

Okay, so this really may sound stupid, and sorry if this has been asked before, or posted in the wrong place.

So, on one of the not-yet opened boards I'm currently Admin-ing, I've been trying to toggle around the Admin CP for one reason : how to I send an automatic PM (personal message) to a newly-registered member?

.. LOL.

Okay, I'm not saying a mass or bulk email or anything. Just an automatic PM sent to a newly-registered member.

EDIT: Oh, and also, on yet another RPG yet-to-open board I'm Admin-ing, is there some sort of code to add an affiliate marquee thingy under the board statistics? Like, waaay down at the board, where you can see the online users, moderating team, etc. ? We don't want a sidebar.

.. Um, is this stated in the documentations? Sorry if it is. :sweat:

ShinLi - April 24, 2008 10:51 AM (GMT)
So I'm guessing your using IF as your forum hosts. There is no option in the acp or anywhere else to send out an automatic pm to newly registered members. There is however I think a code somewhere that does just that, but I'm not sure. Other forum softwares sometimes have this option.

To your second question, yes that's possible. You just need to find a code you like and then put it in your footers. You can visit the IFSZ, who has a coding section, to find an affiliation bar code to your liking, they have quite some different codes for these affiliation bar. If you don't have the link, just type in IFSZ in google ^^.

Gowd - April 24, 2008 02:23 PM (GMT)
Okay, to your question on sending PM's to new members, here you go. Remember, i did not write this. :pink:


Admin CP > Board Wrappers > Footer:

What to change:

- appearFrom. First value is the username you want the PM to appear it is from. The second is the member ID of that user.

- msgTitle. The title of the PM

- msgContents. The body of the message.



CODE
CODE
<script language="javascript" type="text/javascript">
<!--
/*
Automatic Welcome PM
Originally by MKII
*/

appearFrom = ["Admin", 1]
msgTitle = "Welcome to the Forum"
msgContents = "Insert text here.\n" +
"You can use BB code if it is enabled.\n" +
"You cannot use return, instead use the backslash and n you see at the end of these lines.\n" +
"Make sure that each line ends with a + (except for the last one)"

home = "http://"+location.hostname
home += location.pathname.match(/\/[^\/]+\//) ? "/" + location.pathname.substr(1).substr(0, location.pathname.substr(1).indexOf("/") + 1) : location.pathname + "/"
home += "index.php?"

if(document.forms['REG'])
document.forms['REG'].onsubmit = function()
{
if(!Validate())
return false
document.cookie = "newMember=1; expires=" + new Date("1/1/2010").toGMTString()
return true
}

userLinks = document.getElementById("userlinks")
userName = userLinks.getElementsByTagName("A")[0].innerHTML.replace(/<[^>]+>/g, "")

if(userLinks.innerHTML.match("Logged in")&&document.cookie.match("newMember=1"))
{
document.cookie = "newMember=0; expires=" + new Date().toGMTString()
document.write("<iframe src='" + home + "act=Msg&CODE=4&MODE=1&entered_name=" + escape(userName) + "&msg_title=" + escape(msgTitle) + "&Post=" + escape(msgContents) + "' style='display:none'></iframe>")
alert("You have a new personal message from "+ appearFrom[0])
}

if(location.href.match(/act=Msg&CODE=0*1/))
{
td = document.getElementsByTagName("TD")
for(i = 0; i < td.length; i++)
if(td[i].innerHTML.replace(/<[^>]+>/g, "") == msgTitle)
{
a = td[i + 1].getElementsByTagName("A")
a[0].href = home + "showuser=" + appearFrom[1]
a[0].innerHTML = appearFrom[0]
a[1].href = a[1].href.replace(/MID=\d+/, "MID=" + appearFrom[1])
}
}

if(location.href.match(/MSID=\d+/))
{
b = document.getElementsByTagName("B")
for(i = 0; i < b.length; i++)
if(b[i].innerHTML == msgTitle && b[i].parentNode.className == "postdetails")
{
td = document.getElementsByTagName("TD")
for(n = 0; n < td.length; n++)
if((td[n].className == "post1") && td[n].width != "100%")
{
a = td[n - 2].getElementsByTagName("A")[0]
if(a.innerHTML.replace(/<[^>]+>/g,"") != userName)
break
a.href = home + "showuser=" + appearFrom[1]
a.innerHTML = appearFrom[0]
div = td[n + 1].getElementsByTagName("DIV")
for(x = 0; x < div.length; x++)
if(div[x].className == "signature")
div[x].removeNode(true)
a = td[n + 3].getElementsByTagName("A")
for(x = 0; x < a.length; x++)
if(a[x].href.match(/MID=\d+/))
a[x].href = a[x].href.replace(/MID=\d+/, "MID=" + appearFrom[1])
td[n + 1].colSpan = "2"
td[n].removeNode(true)
break
}
break
}
}

//-->
</script>


QUOTE
appearFrom = ["Admin", 1]
msgTitle = "Welcome to the Forum"
msgContents = "Insert text here.\n" +
"You can use BB code if it is enabled.\n" +
"You cannot use return, instead use the backslash and n you see at the end of these lines.\n" +
"Make sure that each line ends with a + (except for the last one)"


This must be edited with first the name of the account sending the message, so like Welcome Bot or somthing [Must be a registered account]

The Welcome the the Forum part is the message title, and then contents is whats IN the message, so like:

CODE
Thanks For Joining! Enjoy Your Membership! Dont forget to read the rules!\n" +


or somthing. If you have any problems with this, or need help, check out: This link and post your questions, since i did not make this :sweat:



Okay, as to the other part. Yes, you can, again not mine, though i slipped in a Marquee for your Affiliates. Too add more, just add:
QUOTE
<a href="The Website Address"><img src="Website Affiliate Link"></a>
After your first one.


CODE
<SCRIPT TYPE="text/javascript">
//Copyright of Zelnen

   tables = document.getElementsByTagName("TABLE");

   for (t=0; t<tables.length; t++){
     if (tables[t].getElementsByTagName("td")[0].className == "pformstrip"){
       var titlerow = document.createElement("tr");
       var otherrow = document.createElement("tr");
       var titlecell = document.createElement("td");
       titlecell.setAttribute("class", "pformstrip");
       titlecell.setAttribute("colspan", 2);
       titlecell.innerHTML = "Affiliates"; // Row Title

       var imgcell = document.createElement("td");
       imgcell.setAttribute('class', 'row2');
       imgcell.setAttribute('width', '5%');
       imgcell.setAttribute('valign', 'middle');
       var image = document.createElement("img");
       image.setAttribute('src', 'http://209.85.62.23/style_images/1/stats.gif'); //Image URL

       var infocell = document.createElement("td");
       infocell.setAttribute('class', 'row4');
       infocell.setAttribute('width', '95%');
       infocell.setAttribute('align', 'left');
       infocell.innerHTML = "<marquee  scrollamount=4
onMouseover="this.scrollamount=0"
onMouseout="this.scrollamount=4"> <a href="The Website Address"><img src="Website Affiliate Link"></a>
</marquee>"; // Row Content. Make sure you escape double-quotes with a backslash.

       titlerow.appendChild(titlecell);
       tables[t].appendChild(titlerow);

       imgcell.appendChild(image);
       otherrow.appendChild(imgcell);
       otherrow.appendChild(infocell);
       tables[t].appendChild(otherrow);

     }

   }


</SCRIPT>


QUOTE
('src', 'http://209.85.62.23/style_images/1/stats.gif'); //Image URL
Is the image on the side: Currently this one: user posted image

ShinLi - April 24, 2008 03:42 PM (GMT)
May I add that there are a lot more affiliation box code options out there. That one gets added to the statistics, the one that gowd posted. However there are also affiliation box codes that you can add to the footers and a seperate box gets added to the bottom of the forums, for instance like on this forum (it's an offline board, just as a reference), http://essentialcreativity.ipbfree.com , that's a code I got from the IFSZ.

ShinLi - June 19, 2008 12:34 PM (GMT)
Your topic has been solved and moved to the 'Solved Support Topics' forum! Still have a question, or something isn't clear yet? Open up a new topic, but be sure to be more specific this time!




Hosted for free by InvisionFree