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,827 Views)
Viral Jun 15 2009, 10:11 AM Post #21


Posts:
342
Group:
Dedicated
Member
#48
Joined:
Jul 17, 2008
Coding language
PHP
Updated to v1.2

Posted Image
Offline Profile Goto Top
 
KingSingh Jun 15 2009, 12:51 PM Post #22
Member Avatar
Singh is King!

Posts:
149
Group:
Member
Member
#240
Joined:
Jul 23, 2008
Coding language
HTML/CSS
Um.. Hi. How do you make it say in the subject "Hello [you]" Does BBCode work in the subject?

Also, what does pm.newmessage mean?
Edited by KingSingh, Jun 15 2009, 12:52 PM.
Posted Image
Singh is King!
Offline Profile Goto Top
 
Reid Jun 15 2009, 02:35 PM Post #23
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
To make it say hello [name] then you'd have to do this:
Code:
 
var pm = {};
pm.id = $("#top_info strong a").text();
pm.newmessage = "New Message";
pm.from = "System Message";
pm.subject = "Welcome to the Forum, " + pm.id;
pm.content = 'Hello and welcome!';
pm.sent = "One minute ago";
pm.url = "#";
Also, pm.newmessage is what is displayed in the title of the little notification box - that is, the pm toast's title.
The Resource Board
Offline Profile Goto Top
 
KingSingh Jun 16 2009, 12:43 PM Post #24
Member Avatar
Singh is King!

Posts:
149
Group:
Member
Member
#240
Joined:
Jul 23, 2008
Coding language
HTML/CSS
Thanks Reid. :)

I need more help though. >_<

Code:
 
pm.content = 'Sat Sri Akaal' + pm.id 'Welcome to Chak De Phatte (CDP) \n [img]http://z3.ifrm.com/349/2/0/p171243/Khanda_Lion_sig.png![/img]';


Will that work?
Edited by KingSingh, Jun 16 2009, 12:43 PM.
Posted Image
Singh is King!
Offline Profile Goto Top
 
Reid Jun 16 2009, 01:12 PM Post #25
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
Nope. It would be
Code:
 
pm.content = 'Sat Sri Akaal' + pm.id + 'Welcome to Chak De Phatte (CDP) \n [img]http://z3.ifrm.com/349/2/0/p171243/Khanda_Lion_sig.png![/img]';
The Resource Board
Offline Profile Goto Top
 
slayer766 Jun 20 2009, 09:49 AM Post #26
Member Avatar
Hello all

Posts:
1,653
Group:
Distinguished Coder
Member
#12
Joined:
Jul 9, 2008
Coding language
PHP
Ha! I could never create something like this, and Viral you are quite smart dude. Nice job. :)


pm.toast

Hahahaha
Offline Profile Goto Top
 
Viral Jun 21 2009, 12:35 PM Post #27


Posts:
342
Group:
Dedicated
Member
#48
Joined:
Jul 17, 2008
Coding language
PHP
Thanks Slayer :O :) .

Posted Image
Offline Profile Goto Top
 
99mangoes Jul 21 2009, 01:01 PM Post #28


Posts:
11
Group:
Member
Member
#3,335
Joined:
Jul 20, 2009
Coding language
HTML/CSS
Hi I tried to install this code but it didn't work. Coupla questions.

1. Is there a limit to how long the body of the message can be and can we add links inside that message?

2. Right now, new registrants have to be approved by an admin. Do I have to change the settings to automatic approval to get this code to work?

Thanks for your help.
To Hell & Back
Offline Profile Goto Top
 
Viral Jul 21 2009, 01:46 PM Post #29


Posts:
342
Group:
Dedicated
Member
#48
Joined:
Jul 17, 2008
Coding language
PHP
If there is email/admin validation turned on, it won't work. There isn't any limit that I know about.

Posted Image
Offline Profile Goto Top
 
99mangoes Jul 21 2009, 02:29 PM Post #30


Posts:
11
Group:
Member
Member
#3,335
Joined:
Jul 20, 2009
Coding language
HTML/CSS
OK thanks for the info.
To Hell & Back
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