We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
  • Pages:
  • 1
[ C ] Automatic "Welcome" thread?
Topic Started: May 22 2013, 10:38 PM (877 Views)
RichardInTN
Member Avatar
I believe in I.D.I.C.
[ *  *  * ]
Board Address: Great Escape
Board Software: ZetaBoards
Description: Requesting the improbable...

I don't know if this is possible or not, but I'm going to give it a shot anyway... Is it possible for a script (or some function of Zetaboard that I have yet to find) to generate a TOPIC in a specific FORUM or SUBFORUM (including generating the "Opening Post" in it's entirety), upon approval of a new member?
Offline Profile Goto Top
 
pacisangelo
Member Avatar
Member
[ *  * ]
Try this code:

http://if.invisionfree.com/topic/5154613/1/
Offline Profile Goto Top
 
RichardInTN
Member Avatar
I believe in I.D.I.C.
[ *  *  * ]
That's a good code, but it just directs to an existing page. I need (if possible) some way to create a "Welcome {new Member}" thread that existing members can post on welcoming the new Member.

As it sits now, everytime I approve someone I manually generate a "Welcome to {new Member}" thread that has as the OP a basic welcome greeting ("We're glad you joined, look around, see what's to see, et cetera")... then, once that's started, other members can welcome the new Member in individual posts.

It also serves as a way to "announce" the new Member to the group.
Offline Profile Goto Top
 
welshtony
Member Avatar
www.f6oc.co.uk
[ *  *  * ]
Interesting idea.

What I do is lock areas of the forum that I don't want them to see and have redirect forums within categories saying "Post and introduction thread to see this area"
Once they post they auto change group and can see more of the forum.

But if your idea is possible I would use it.

Maybe make it so once the user validates their email it will redirect to a new topic page where they can fill in a thread.
Maybe also above that have a welcome message that only new users can see, something like
Quote:
 
welcome to ********, Thank you for taking time to register, All we now ask of you is to give us a quick introduction of yourself

well something like that.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
It's possible, but the user that registered will have to be the one that automatically creates the topic instead of the administrator.
Offline Profile Goto Top
 
welshtony
Member Avatar
www.f6oc.co.uk
[ *  *  * ]
Cory
May 22 2013, 11:52 PM
It's possible, but the user that registered will have to be the one that automatically creates the topic instead of the administrator.
For me that would be perfect but this isn't my request.
Offline Profile Goto Top
 
RichardInTN
Member Avatar
I believe in I.D.I.C.
[ *  *  * ]
Cory
May 22 2013, 11:52 PM
It's possible, but the user that registered will have to be the one that automatically creates the topic instead of the administrator.
What do you mean they would automatically create it? Their first sign on after approval would generate it?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Basically, when a users registration is complete and they are on the next page after registration AJAX will automatically create the introduction topic for them.
Offline Profile Goto Top
 
RichardInTN
Member Avatar
I believe in I.D.I.C.
[ *  *  * ]
That could work. Is there a code for it?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
//<![CDATA[
$(function () {
var fID = 'FORUM_ID';
var username = $('#top_info strong a').text();
var title = username + '\'s Introduction';
var message = 'Hi, my name is ' + username + ' and I\'m new here.';

$('table.register').closest('form').submit(function () {
window.name += window.name.length ? '&reg=2' : 'reg=2';
});

if (window.name.match('reg=2') && $.zb.logged_in === true) {
$.get(main_url + 'post/?type=1&mode=1&f=' + fID + '&force_ads', function (data) {
var ast = $('input[name="ast"]', data).val();
var xc = $('input[name="xc"]', data).val();

$.post(main_url + 'post/?type=1&mode=1&f=' + fID + '&force_ads', {
mode: '1',
type: '1',
ast: ast,
f: fID,
xc: xc,
sd: '1',
title: title,
post: message
});
});

window.name = window.name.replace(/[&|,]?reg=2/g, '');
}
});
//]]>
</script>
Change FORUM_ID to the Forum ID of your introduction forum.
Offline Profile Goto Top
 
RichardInTN
Member Avatar
I believe in I.D.I.C.
[ *  *  * ]
Looks good.

One question. Does it just open a "new thread" that the new person can fill in (or close without submitting)... or does it create a thread without the option of editing the comment section?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
The title and message variables can be changed to whatever you like, for example:
Code:
 
var title = 'Topic Title';
var message = 'Post Content';
Code:
 
var title = username;
var message = username;
Code:
 
var title = 'Introduction for: ' + username;
var message = 'Yo, my name is ' + username + ' and I\'m new here. Welcome me.';
The code uses AJAX to post the new topic, so the new topic is submitted in the background and the user views the board as they normally would after they register.
Offline Profile Goto Top
 
RichardInTN
Member Avatar
I believe in I.D.I.C.
[ *  *  * ]
Cool!
I was getting ready to edit the "message" and I thought of something. How do you include a blank line between two separate paragraphs in one string command?

Basically I want the message to say:
Quote:
 
Welcome {Member name},

Look around and see what there is to see! You probably know a lot of our members already, but there may be some you don't know. If you have any questions about how anything works here, please feel free to ask and someone will be glad to help!

I hope you enjoy being a Member here!


Also, who is the Thread attributed to, since it's generated automatically?


I appreciate your efforts on this Cory.
Edited by RichardInTN, May 23 2013, 06:48 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
var message = 'Welcome ' + username + ', \n \n Look around and see what there is to see! You probably know a lot of our members already, but there may be some you don\'t know. If you have any questions about how anything works here, please feel free to ask and someone will be glad to help! \n \n I hope you enjoy being a Member here!';
Try that.

The topic starter will be the user that registered.
Offline Profile Goto Top
 
RichardInTN
Member Avatar
I believe in I.D.I.C.
[ *  *  * ]
By "FORUM_ID" you mean the "3450889" in the following URL to the forum... right?

http://w11.zetaboards.com/Great_Escape/forum/3450889/
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Closed Requests · Next Topic »
Locked Topic
  • Pages:
  • 1