Welcome Topic

Started by SMFHacks.com Team, May 07, 2007, 09:42:29 PM

Previous topic - Next topic

Sigyn

Quote from: Sigyn on June 28, 2014, 06:46:20 AM
Quote from: Shades. on June 20, 2014, 12:55:54 PM
Just installed on 2.0.8 and when a user registers it posts a welcome topic twice!? Help :o

I am also  having this problem - I have been manually deleting the duplicates but it's kinda annoying ><
The same thing as Shades. :) Double posting on 2.0.8 when a new member joins the forum. Just trying to get it resolved ^^

Sigyn


MarkJ

#642
I seem to have cured the 2x posting.

It happens if you set registration for email activation as it causes both sections of Welcome Topic Mod code to fire.  So I removed the lower one as the top one is only activated when a user clicks on their email activation link.

There are 2 entries in Sources/Register.php

    // Welcome Topic Mod

    if (empty($row['last_login']))
    {

        global $sourcedir;
        require_once($sourcedir . '/WelcomeTopic2.php');

        DoWelcomePost($row['member_name']);

    }

    // End Welcome Topic Mod

// Welcome Topic Mod
    global $sourcedir;
    require_once($sourcedir . '/WelcomeTopic2.php');
               
    DoWelcomePost($row['member_name']);
   
   
    // End Welcome Topic Mod

So I removed the bottom one, so I'm left with this ...

    // Welcome Topic Mod

    if (empty($row['last_login']))
    {

        global $sourcedir;
        require_once($sourcedir . '/WelcomeTopic2.php');

        DoWelcomePost($row['member_name']);

    }

    // End Welcome Topic Mod

Seems to have worked  :) .

Shambles

Quote from: MarkJ
I seem to have cured the 2x posting.

There are 2 entries in Sources/Register.php

Oh, the woes of installing a mod twice, eh? ;)

Shades.

Quote from: MarkJ on August 02, 2014, 12:38:56 PM
I seem to have cured the 2x posting.

It happens if you set registration for email activation as it causes both sections of Welcome Topic Mod code to fire.  So I removed the lower one as the top one is only activated when a user clicks on their email activation link.

There are 2 entries in Sources/Register.php

    // Welcome Topic Mod

    if (empty($row['last_login']))
    {

        global $sourcedir;
        require_once($sourcedir . '/WelcomeTopic2.php');

        DoWelcomePost($row['member_name']);

    }

    // End Welcome Topic Mod

// Welcome Topic Mod
    global $sourcedir;
    require_once($sourcedir . '/WelcomeTopic2.php');
               
    DoWelcomePost($row['member_name']);
   
   
    // End Welcome Topic Mod

So I removed the bottom one, so I'm left with this ...

    // Welcome Topic Mod

    if (empty($row['last_login']))
    {

        global $sourcedir;
        require_once($sourcedir . '/WelcomeTopic2.php');

        DoWelcomePost($row['member_name']);

    }

    // End Welcome Topic Mod

Seems to have worked <$1alt="" title="" onresizestart="return false;" id="smiley__$2" style="padding: 0 3px 0 3px;" /> .
Thank you, Thank you, Thank you! ;D 8)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Divaksh

I'm using this mod with the mention username mod but it doesn't mention the username in the thread.

All I want to do is sending mail to the user letting him know that a welcome with his name is created. So he check his welcome topic. And read further instructions written in the topic.

Thanks.

vbgamer45

Both of those options would need to be built into the mod and are not included.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Divaksh

Quote from: vbgamer45 on January 19, 2015, 03:58:41 PM
Both of those options would need to be built into the mod and are not included.

Sorry I couldn't explain it properly.

Actually I was talking about this www.simplemachines.org/community/index.php?topic=522005.0 to work with welcome topic mod.

Detailed info here
Quote from: Divaksh on January 19, 2015, 04:02:49 PM
I'm using the welcome topic mod which creates a new thread automatically when s user get registered.
Everything works fine in that mod, in this mod.

But if I want to mention newly registered member in that automatically created thread then this mod doesn't work.

I use @[username] in that thread to mention the newly registered member. [username] automatically gets replaced with the actual username but in that thread no users link appears(mention doesnt work)

Please help in solving this issue.
Thanks. :)

Thanks :)

vbgamer45

Yeah I haved used that mod but I would have to build support in for it
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Divaksh

 :'(
Quote from: vbgamer45 on January 19, 2015, 04:16:10 PM
Yeah I haved used that mod but I would have to build support in for it

Could you please give me idea what I need to change? I'll try to do myself if you have no plans to do that. :)

vbgamer45

The code that creates the post in welcometopic2.php find createpost call
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

snooks

vbgamer45 please could you help me i have installed this mod (see image) but for the life in me cannot get it to post a topic any idea what i am doing wrong please i am using [username] welcomeTopic2.2.zip and SMF 2.0.9
thank you

Shambles

Is "eL Capitan" a registered username on your forum?

snooks

Yes an admin i used the find members option typed in the email and selected the name below, also tried a different normal member as a test
thanks

Shambles

Anything related showing in your error logs?

It's such a simple mechanism that not much can really go wrong. I've using a modified version of this for a long while now :D

snooks

Yes it looked simple but just wont make a post lol no errors at all sadly i am totally lost

Shambles


snooks

Quote from: Shambles on March 17, 2015, 03:25:42 PM
What's in your post body content?

This, thanks again

Welcome to Bsa-Cuesports community forums [username]

Please take your time viewing posts and we do hope so see some interesting topics from yourself, we are here to assist you with any problems you may have within our boards so feel free to ask.
We hope you enjoy your stay here [username]


Bsa-Team

Shambles

Check your Sources/Register.php to make sure the mod edits have taken hold. There's a couple of other files affected but that one should ensure the mod application edits went through.

snooks

Quote from: Shambles on March 18, 2015, 09:06:48 AM
Check your Sources/Register.php to make sure the mod edits have taken hold. There's a couple of other files affected but that one should ensure the mod application edits went through.
I have looked in the sources/register.php and using textpad i searched the word welcome
This is all i found
   'send_welcome_email' => !empty($modSettings['send_welcomeEmail']),

Does that mean its not added it ?
thanks

Advertisement: