vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Auto Welcome Member Mod (https://vborg.vbsupport.ru/showthread.php?t=286854)

SuperTaz 08-20-2012 02:33 AM

Auto Welcome Member Mod
 
Hello all,
I am wondering if someone can point me to a mod similar to this "Auto Welcome Members" mod from IPB:

http://community.invisionpower.com/f...lcome-members/

I would like to use it on my site, but, I can't seem to find one similar to it, when I searched,here on vb.org. Any help would be great. If I have to, I might just port the one, or make one from scratch, from ipb over to vb. Just figured I would ask first.

Thanks

Taz :)

ForceHSS 08-20-2012 03:01 AM

You already have the option in the admin panel options why don't you use that. And I am sure you can edit the auto pm it sends to your own personal message

Eosian 08-20-2012 11:02 AM

To elaborate on ForceHSS' answer;
https://www.vbulletin.com/docs/html/...group_register

See "Send Welcome Email" and "Welcome Private Message".
The templates for each are in phrases, welcomemail and welcomepm respectively.

Also, this from last week; https://vborg.vbsupport.ru/showthread.php?t=286719

SuperTaz 08-20-2012 05:11 PM

No, I want to modify it to post a new thread in a private forum and add a few features to check their IP's and use API's from other sites to check their status within PC games.

Eosian 08-20-2012 05:19 PM

1 Attachment(s)
That's substantially different from the mod you posted... As in not remotely related.

Is this more what you're actually looking for?

Attachment 140630

Pandemikk 08-20-2012 05:19 PM

Hi,

I'm currently in the process or updating this mod: https://vborg.vbsupport.ru/showthrea...hreadid=286522

The update will include the ability to welcome new members with a new thread in a forum(s) of your choosing.

SuperTaz 08-20-2012 05:26 PM

Quote:

Originally Posted by Eosian (Post 2358525)
That's substantially different from the mod you posted... As in not remotely related.

Is this more what you're actually looking for?

Attachment 140630

Yeah, kind of like that.

Eosian 08-20-2012 05:28 PM

Are you wanting the basic concept of how to do it, so you can modify it yourself, or do you actually want someone to do it for you? If the latter you'll need to explain in more detail what the differences you want are.

peugeot405 08-20-2012 07:32 PM

have a look at this mod.

SuperTaz 08-20-2012 08:55 PM

Quote:

Originally Posted by Eosian (Post 2358530)
Are you wanting the basic concept of how to do it, so you can modify it yourself, or do you actually want someone to do it for you? If the latter you'll need to explain in more detail what the differences you want are.

What I am looking for is when a new member registers, a new thread is created in a private forum with the ability to check the IP address of the member to make sure it is not a spam member and also to later add the functionality of checking members via other sites API systems to check if they have been banned or not from gaming, etc.

Quote:

Originally Posted by peugeot405 (Post 2358557)
have a look at this mod.

That is a good mod, however, it is for replies, not the initial post/thread creation that I am looking for.

peugeot405 08-20-2012 09:15 PM

Quote:

Originally Posted by SuperTaz (Post 2358578)
What I am looking for is when a new member registers, a new thread is created in a private forum with the ability to check the IP address of the member to make sure it is not a spam member and also to later add the functionality of checking members via other sites API systems to check if they have been banned or not from gaming, etc.



That is a good mod, however, it is for replies, not the initial post/thread creation that I am looking for.

sorry for the mix-up.
what about this?

Eosian 08-20-2012 09:57 PM

Read through the comments for ways to tweak/adjust and things you need to set.

Create prefixes named Registration_Mult & Registration_BAN
I use [MULT] and [BAN], you can use whatever you want.


**Note these were intended for use in a forum with a table mod, so if you don't have one you'll need to adjust them to some other style of conveying the same info, or install one.

Create templates:
registration_iplog_results
HTML Code:

<vb:if condition="$item[banned] == 'False'">[url="{vb:raw vboptions.bburl}/member.php?u={vb:raw userid}"]{vb:raw username}[/url]|{vb:raw userid}|{vb:raw ipaddress}|{vb:raw firstuse}|{vb:raw lastuse}|{vb:raw banned}<vb:else />[url="{vb:raw vboptions.bburl}/member.php?u={vb:raw userid}"]{vb:raw username}[/url]|{vb:raw userid}|{vb:raw ipaddress}|{vb:raw firstuse}|{vb:raw lastuse}|[BG="RED"]{vb:raw banned}[/BG]</vb:if>
registration_iplog
HTML Code:

UserName : {vb:raw username}
Member Link: [URL="{vb:raw memberlink}"]{vb:raw memberlink}[/URL]
Email Address : {vb:raw email}
IP Address: {vb:raw ipaddress}
Proxy For: {vb:raw proxyfor}

[table="head;"]UserName|UserID|IPAddress|FirstUse|LatestUse|CurrentlyBanned
{vb:raw resultlist}
[/table]

Create a plugin
Hook: register_addmember_complete

PHP Code:

$ipaddress IPADDRESS;
// Declaritive proxy?
$proxyfor $_SERVER['HTTP_X_FORWARDED_FOR'];

$memberlink fetch_seo_url('member|nosession', array('userid' => $userid'username' => htmlspecialchars_uni($vbulletin->GPC['username'])));
$memberlink $vbulletin->options['bburl'] . $memberlink;

$db->hide_errors();

// This query may be slow if you do not have an index on ipaddress in both users and posts.
$query "select u.username, l.userid, l.ipaddress, min(l.firstuse) firstuse, max(l.lastuse) lastuse, case COALESCE((select min(liftdate) from userban where userid = u.userid and (  UNIX_TIMESTAMP() between bandate and liftdate OR liftdate = 0 ) ),1) when 1 then 'False' when 0 then 'Perma' else 'True' end as banned from (select userid, ipaddress, min(joindate) firstuse, max(joindate) lastuse from user group by userid, ipaddress UNION ALL select userid, ipaddress, min(dateline) firstuse, max(dateline) lastuse from post group by userid, ipaddress ) l  left outer join user u on l.userid = u.userid where l.IpAddress = '$ipaddress' group by u.username, l.userid, l.ipaddress order by max(lastuse) desc";

$result $vbulletin->db->query_read$query );
$prefix '';

// Loop through all results
while ($item $vbulletin->db->fetch_array($result))
{
    if ( 
$item[banned] != 'False')
      
$prefix 'Registrations_BAN';

    if (
$prefix == '')
      
$prefix 'Registration_Mult';

    
// Generate Variables to be used
    
$templater vB_Template::create('registration_iplog_results');

    
$templater->register('username'$item[username]);
    
$templater->register('userid'$item[userid]);
    
$templater->register('ipaddress'$item[ipaddress]);
    
$templater->register('firstuse'$item[firstuse]);
    
$templater->register('lastuse'$item[lastuse]);
    
$templater->register('banned'$item[banned]);
    
$resultlist .= $templater->render();
}

// Unset the row returned.
unset($item);

// free the resultset
$db->free_result($result);


$templater vB_Template::create('registration_iplog');
$templater->register_page_templates();
$templater->register('username'$username);
$templater->register('memberlink'$memberlink);
$templater->register('email'$email);
$templater->register('ipaddress'$ipaddress);
$templater->register('proxyfor'$proxyfor);
$templater->register('resultlist'$resultlist);
$postmessage $templater->render();

// The forum you wish to post threads to 
$forumid 9999;
$foruminfo fetch_foruminfo$forumid );

$dataman =& datamanager_init('Thread_FirstPost'$vbulletinERRTYPE_SILENT'threadpost');
$dataman->set_info('forum'$foruminfo);
$dataman->set_info('is_automated'true);
$dataman->set('showsignature'true);
$dataman->set_info('mark_thread_read'true);
$dataman->set('allowsmilie'true);


// We're making them post as themselves to avoid IPs being attributed to the bot in this example

// Uncomment this and assign it to a user id you wish these to show up as being by if you don't want them to show up as the user.
//$posterid = 3;

$dataman->setr('userid'$userid);
$dataman->set('title'$username);
$dataman->setr('pagetext'$postmessage);
$dataman->set('prefixid'$prefix);
// Uncomment this if you want to use a static account instead of the registering account.
//$dataman->set('ipaddress', '127.0.0.1');

$dataman->setr('forumid'$foruminfo['forumid']);
$dataman->set('visible'true);
$threadid $dataman->save(); 


SuperTaz 08-20-2012 11:48 PM

Hmmm...I'll have to give them a try on my test site and see what it looks like.


All times are GMT. The time now is 10:14 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01495 seconds
  • Memory Usage 1,800KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete