Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • ZetaBoards Auto-PM on Registration v1.2
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
ZetaBoards Auto-PM on Registration v1.2
Tweet Topic Started: Jun 8 2009, 05:59 PM (5,826 Views)
ZeroVelocity Jul 23 2009, 03:24 PM Post #31
Member Avatar
Mrs. Tentacles likes chocolate

Posts:
47
Group:
Member
Member
#154
Joined:
Jul 20, 2008
Coding language
HTML/CSS
I use zbAIO, so I was wondering, is this modification built into the zbAIO system already? I don't want to put it in yet... just like someone wouldn't want to put two of the same codes in the same place.
NO SIGS 4 U!
Offline Profile Goto Top
 
Namieko Jul 26 2009, 02:19 PM Post #32
Member Avatar
Mother hen

Posts:
159
Group:
Member
Member
#3,293
Joined:
Jul 7, 2009
Coding language
HTML/CSS
Hey this works grate but is there a way i could link it to my account? My user name is Nami...

im using this on http://s1.zetaboards.com/Ninja_Days/
Posted Image
Offline Profile Goto Top
 
Viral Jul 26 2009, 02:28 PM Post #33


Posts:
342
Group:
Dedicated
Member
#48
Joined:
Jul 17, 2008
Coding language
PHP
ZV, this is not included in the AIO :) .
Namieko: Not sure what you mean.

Posted Image
Offline Profile Goto Top
 
Desire Law Jul 26 2009, 05:08 PM Post #34


Posts:
114
Group:
Dedicated
Member
#3,362
Joined:
Jul 26, 2009
Coding language
None
Thanks; I've been looking for a code like this.

This will surely become useful. :D
Offline Profile Goto Top
 
Kommandant Jul 29 2009, 09:11 AM Post #35


Posts:
10
Group:
Member
Member
#3,368
Joined:
Jul 29, 2009
Coding language
None
I tried using this lol, and it doesn't work for me... Don't know why! This is what I used:

Spoiler: click to toggle
Code:
 
<script type="text/JavaScript">
//<![CDATA[
// Auto PM on Registration Created by Viral - http://zbaio.zetabin.com
var pm = {};
pm.newmessage = "New Message";
pm.from = "System Message";
pm.subject = "Welcome to the Forum!";
pm.content = 'Hello and welcome to G-Force! To get yourself started I suggest you introduce yourself in the [url=http://s1.zetaboards.com/G_Force/forum/1025780/]Meeting Market[/url]. Additionally you should go and get yourself classed in ability by the community via the [url=http://s1.zetaboards.com/G_Force/forum/1063295/]Classing Studio[/url]. I hope you enjoy yourself here, if you have any questions don't hesitate to contact a member of staff. Thanks for joining the forums!';
pm.sent = "One minute ago";
pm.url = "#";
pm.id = $("#top_info strong a").text();
pm.sendmessage = function()
{
$.get(main_url+"msg/?c=2",{},function(data)
{
pm.xc = $("input[name=xc]",data).val();
pm.secure = $("input[name=secure]",data).val();
$.post(main_url+"msg/?c=3&sd=1",{name:pm.id,xc:pm.xc,msg:0,fwd:0,convo:0,draft_edit:0,secure:pm.secure,title:"wJf3V99o_I8hI_c8q-P",post:pm.content,track:1},function(){window.name = window.name.replace("reg=1","");pm.getmessage();});
});
}
pm.toast = function(url,newmessage,from,subject,sent)
{
$("#copyright").after('<div id="pmtoast" style="display: block;"><a id="pmlink" href="'+url+'"><big>'+newmessage+'</big><small>From:</small><strong>'+from+'</strong><br/><small>Subject:</small><strong>'+subject+'</strong><br/><small>Sent:</small><strong>'+sent+'</strong></a><a id="pmclose" href="#">Close</a></div>');
$("#pmclose").click(function(){$(this).parent().hide("slow");});
}
pm.getmessage = function()
{
$.get(main_url+"msg/?folder=-2",{},function(data){
pm.data = $("table.pm.togglechecks tr.row1:first td:first a",data);
pm.url = pm.data.attr("href");
with(pm)
{
toast(url,newmessage,from,subject,sent);
}
});
}
pm.clean = function()
{
if(document.title == "wJf3V99o_I8hI_c8q-P"){
document.title = pm.subject;
var theTitle = $("#boardmeta").next().children();
theTitle.eq(0).html(theTitle.html().replace("wJf3V99o_I8hI_c8q-P",pm.subject));
$("#main a[href="+$('#top_info strong a').attr('href')+"]").parent().html(pm.from);
var nav = document.getElementById("nav");
nav.innerHTML = nav.innerHTML.replace("wJf3V99o_I8hI_c8q-P",pm.subject);
$("#conversation").next().remove();
$("#conversation tr:first td:first img").remove();
}
$("table.pm.togglechecks tr a").each(function()
{
if($(this).text() == "wJf3V99o_I8hI_c8q-P")
{
$(this).text(pm.subject).parent().next().html(pm.from);
}
});
}
pm.register = function()
{
if(location.href.match(/\/register\/\?c=1/gi)){
$("button[type=submit]").click(function()
{
window.name = "reg=1";
});
}
}
pm.logged_in = function()
{
return $("#top_info small a").size() == 1;
}
pm.startAuto = function(){
if(window.name.match("reg=1"))
{
if(pm.logged_in() === true)
{
pm.sendmessage();
}
else
{
window.name = window.name.replace("reg=1","");
}
}
}
pm.startAuto();
pm.register();
pm.clean();
//]]>
</script>


I put it above the board...
Posted Image Posted Image Posted Image

Graphic Force now has a coding database, as well as top quality themes
150,000+ posts
500+ members
Offline Profile Goto Top
 
Kochu Jul 29 2009, 11:33 AM Post #36
Member Avatar


Posts:
17
Group:
Member
Member
#3,330
Joined:
Jul 19, 2009
nice code. I like it. It was something that I was looking for. :)
Posted Image
Offline Profile Goto Top
 
Viral Jul 30 2009, 07:16 PM Post #37


Posts:
342
Group:
Dedicated
Member
#48
Joined:
Jul 17, 2008
Coding language
PHP
Try
Code:
 
<script type="text/JavaScript">
//<![CDATA[
// Auto PM on Registration Created by Viral - http://zbaio.zetabin.com
var pm = {};
pm.newmessage = "New Message";
pm.from = "System Message";
pm.subject = "Welcome to the Forum!";
pm.content = 'Hello and welcome to G-Force! To get yourself started I suggest you introduce yourself in the [url=http://s1.zetaboards.com/G_Force/forum/1025780/]Meeting Market[/url]. Additionally you should go and get yourself classed in ability by the community via the [url=http://s1.zetaboards.com/G_Force/forum/1063295/]Classing Studio[/url]. I hope you enjoy yourself here, if you have any questions don\'t hesitate to contact a member of staff. Thanks for joining the forums!';
pm.sent = "One minute ago";
pm.url = "#";
pm.id = $("#top_info strong a").text();
pm.sendmessage = function()
{
$.get(main_url+"msg/?c=2",{},function(data)
{
pm.xc = $("input[name=xc]",data).val();
pm.secure = $("input[name=secure]",data).val();
$.post(main_url+"msg/?c=3&sd=1",{name:pm.id,xc:pm.xc,msg:0,fwd:0,convo:0,draft_edit:0,secure:pm.secure,title:"wJf3V99o_I8hI_c8q-P",post:pm.content,track:1},function(){window.name = window.name.replace("reg=1","");pm.getmessage();});
});
}
pm.toast = function(url,newmessage,from,subject,sent)
{
$("#copyright").after('<div id="pmtoast" style="display: block;"><a id="pmlink" href="'+url+'"><big>'+newmessage+'</big><small>From:</small><strong>'+from+'</strong><br/><small>Subject:</small><strong>'+subject+'</strong><br/><small>Sent:</small><strong>'+sent+'</strong></a><a id="pmclose" href="#">Close</a></div>');
$("#pmclose").click(function(){$(this).parent().hide("slow");});
}
pm.getmessage = function()
{
$.get(main_url+"msg/?folder=-2",{},function(data){
pm.data = $("table.pm.togglechecks tr.row1:first td:first a",data);
pm.url = pm.data.attr("href");
with(pm)
{
toast(url,newmessage,from,subject,sent);
}
});
}
pm.clean = function()
{
if(document.title == "wJf3V99o_I8hI_c8q-P"){
document.title = pm.subject;
var theTitle = $("#boardmeta").next().children();
theTitle.eq(0).html(theTitle.html().replace("wJf3V99o_I8hI_c8q-P",pm.subject));
$("#main a[href="+$('#top_info strong a').attr('href')+"]").parent().html(pm.from);
var nav = document.getElementById("nav");
nav.innerHTML = nav.innerHTML.replace("wJf3V99o_I8hI_c8q-P",pm.subject);
$("#conversation").next().remove();
$("#conversation tr:first td:first img").remove();
}
$("table.pm.togglechecks tr a").each(function()
{
if($(this).text() == "wJf3V99o_I8hI_c8q-P")
{
$(this).text(pm.subject).parent().next().html(pm.from);
}
});
}
pm.register = function()
{
if(location.href.match(/\/register\/\?c=1/gi)){
$("button[type=submit]").click(function()
{
window.name = "reg=1";
});
}
}
pm.logged_in = function()
{
return $("#top_info small a").size() == 1;
}
pm.startAuto = function(){
if(window.name.match("reg=1"))
{
if(pm.logged_in() === true)
{
pm.sendmessage();
}
else
{
window.name = window.name.replace("reg=1","");
}
}
}
pm.startAuto();
pm.register();
pm.clean();
//]]>
</script>

Posted Image
Offline Profile Goto Top
 
Kommandant Jul 31 2009, 01:06 PM Post #38


Posts:
10
Group:
Member
Member
#3,368
Joined:
Jul 29, 2009
Coding language
None
Still doesn't work for some reason.

I just put it above the board right?
Posted Image Posted Image Posted Image

Graphic Force now has a coding database, as well as top quality themes
150,000+ posts
500+ members
Offline Profile Goto Top
 
demonadenmar Oct 14 2009, 09:49 AM Post #39
Goddess of Chaos

Posts:
2
Group:
Member
Member
#3,033
Joined:
May 22, 2009
Coding language
HTML/CSS
I really like this code (have been hunting for one like it for weeks) but I do have a question / concern...

Is there any way to get this code to work with the admin / email validation system turned on or is the only way it will ever work is with these security features turned off?
Offline Profile Goto Top
 
Thatz Oct 18 2009, 01:11 PM Post #40


Posts:
1
Group:
Member
Member
#3,527
Joined:
Oct 17, 2009
Coding language
None
I don't understand. I've been trying to get this code to work, but it won't pop up at all when new members log in.

That's what I've been using for the code down below.

Spoiler: click to toggle

<script type="text/JavaScript">
//<![CDATA[
// Auto PM on Registration Created by Viral - http://zbaio.zetabin.com
var pm = {};
pm.newmessage = "New Message";
pm.from = "Thatz";
pm.subject = "Welcome to SHINE!";
pm.content = "Hi, welcome to Shine! We are a community for writers and artists, so please jump in and share some of your work with us in some of the boards provided. It may be intimidating at first, but don't worry, once you get the hang of it things will be easier.

You can request drabbles in both the Disciplinary Office, and Class Participation, or you can take some prompts from there yourself and show others what you can do. There's also a roleplaying board, so please, don't be afraid, everyone here is nice and will be happy to help you get around!

So, go introduce yourself!";
pm.sent = "One minute ago";
pm.url = "#";
pm.id = $("#top_info strong a").text();
pm.sendmessage = function()
{
$.get(main_url+"msg/?c=2",{},function(data)
{
pm.xc = $("input[name=xc]",data).val();
pm.secure = $("input[name=secure]",data).val();
$.post(main_url+"msg/?c=3&sd=1",{name:pm.id,xc:pm.xc,msg:0,fwd:0,convo:0,draft_edit:0,secure:pm.secure,title:"wJf3V99o_I8hI_c8q-P",post:pm.content,track:1},function(){window.name = window.name.replace("reg=1","");pm.getmessage();});
});
}
pm.toast = function(url,newmessage,from,subject,sent)
{
$("#copyright").after('<div id="pmtoast" style="display: block;"><a id="pmlink" href="'+url+'"><big>'+newmessage+'</big><small>From:</small><strong>'+from+'</strong><br/><small>Subject:</small><strong>'+subject+'</strong><br/><small>Sent:</small><strong>'+sent+'</strong></a><a id="pmclose" href="#">Close</a></div>');
$("#pmclose").click(function(){$(this).parent().hide("slow");});
}
pm.getmessage = function()
{
$.get(main_url+"msg/?folder=-2",{},function(data){
pm.data = $("table.pm.togglechecks tr.row1:first td:first a",data);
pm.url = pm.data.attr("href");
with(pm)
{
toast(url,newmessage,from,subject,sent);
}
});
}
pm.clean = function()
{
if(document.title == "wJf3V99o_I8hI_c8q-P"){
document.title = pm.subject;
var theTitle = $("#boardmeta").next().children();
theTitle.eq(0).html(theTitle.html().replace("wJf3V99o_I8hI_c8q-P",pm.subject));
$("#main a[href="+$('#top_info strong a').attr('href')+"]").parent().html(pm.from);
var nav = document.getElementById("nav");
nav.innerHTML = nav.innerHTML.replace("wJf3V99o_I8hI_c8q-P",pm.subject);
$("#conversation").next().remove();
$("#conversation tr:first td:first img").remove();
}
$("table.pm.togglechecks tr a").each(function()
{
if($(this).text() == "wJf3V99o_I8hI_c8q-P")
{
$(this).text(pm.subject).parent().next().html(pm.from);
}
});
}
pm.register = function()
{
if(location.href.match(/\/register\/\?c=1/gi)){
$("button[type=submit]").click(function()
{
window.name = "reg=1";
});
}
}
pm.logged_in = function()
{
return $("#top_info small a").size() == 1;
}
pm.startAuto = function(){
if(window.name.match("reg=1"))
{
if(pm.logged_in() === true)
{
pm.sendmessage();
}
else
{
window.name = window.name.replace("reg=1","");
}
}
}
pm.startAuto();
pm.register();
pm.clean();
//]]>
</script>
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

Track Topic · E-mail Topic Time: 7:40 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy