News:

Wondering if this will always be free?  See why free is better.

Main Menu

Welcome Topic

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

Previous topic - Next topic

Colin

Anything in the error log? If you register yourself is it working?
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

MoreBloodWine

Quote from: Colin on June 01, 2013, 07:25:59 PM
Anything in the error log? If you register yourself is it working?
Nothing, and I havent tried to reg an account myself not that I see how it would matter since for the last two users in diff locales the mod didnt make posts for.
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


GL700Wing

#542
Great mod - thanks!!

I've been using it on my SMF 1.1.x forum for the last few years and have just installed it on my new SMF 2.0.4 forum.

For my SMF 1.1.x forum I solved the problem of a Welcome Topic being created for members who re-activate their account after they change their email address by checking their last login time (it will only be empty for new members).

To manually apply this fix for SMF 2.0.4 make the following changes in ./Sources/Register.php

Find
SELECT id_member, validation_code, member_name, real_name, email_address, is_activated, passwd, lngfile
Replace
SELECT id_member, validation_code, member_name, real_name, email_address, is_activated, passwd, lngfile, last_login

Find
    // Let the integration know that they've been activated!
    call_integration_hook('integrate_activate', array($row['member_name']));
// Welcome Topic Mod
global $sourcedir;
require_once($sourcedir . '/WelcomeTopic2.php');

DoWelcomePost($row['member_name']);

// End Welcome Topic Mod

    // Let the integration know that they've been activated!
    call_integration_hook('integrate_activate', array($row['member_name']));

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



[Edit:  Removed my package file - please use official release]
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

vbgamer45

Awesome thanks so one bug in the package but posting update shorlty

<search position="before"><![CDATA[SELECT id_member, validation_code, member_name, real_name, email_address, is_activated, passwd, lngfil]]></search>

Should be

<search position="before"><![CDATA[SELECT id_member, validation_code, member_name, real_name, email_address, is_activated, passwd, lngfile]]></search>
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

SMFHacks.com Team

Update!
2.2
!SMF 2.0.x Solved the problem of a Welcome Topic being created for members who re-activate their account after they change their email address by checking their last login time (it will only be empty for new members). Requires uninstall of old version and install of new version
Thanks to GL700Wing
!Updated some style for the welcome topic area for SMF 2.0.x
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

GL700Wing

Quote from: vbgamer45 on June 02, 2013, 01:16:51 PMAwesome thanks
You're welcome!

Quoteso one bug in the package but posting update shortly
Oops - sorry about that.  I've removed the package file I attached to my previous message so that no one else gets caught out.
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

MoreBloodWine

So ya, even with the update intalled / old mod uninstalled first... this still didnt "pick up" on the last two signups and there's nothing in the error log. I have not installed any new mods for a while so I don't know what would be wrong. One day its working then the next its not.

Here though is a list of mods installed.

1. Users Online Today 2.0.3   [ Uninstall ] [ List Files ] [ Delete ] 
2. BK-SMF Sub-Board 1.5   [ Uninstall ] [ List Files ] [ Delete ] 
3. TinyPortal 1.107   [ Uninstall ] [ List Files ] [ Delete ] 
4. Board Viewers Mod 1.2.1.1b   [ Uninstall ] [ List Files ] [ Delete ] 
5. Tapatalk SMF 2.0 RC5/Final Plugin 3.5.0   [ Uninstall ] [ List Files ] [ Delete ] 
6. Redirect on Login and/or Logout mod 0.4   [ Uninstall ] [ List Files ] [ Delete ] 
7. Birthday Posts 0.13 Beta   [ Uninstall ] [ List Files ] [ Delete ] 
8. Aeva ~ Auto-Embed Video & Audio 7.2   [ Uninstall ] [ List Files ] [ Delete ] 
9. SMF 2.0.4 Update 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
10. Password Protect Boards 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
11. Last Active On MemberList 1.4   [ Uninstall ] [ List Files ] [ Delete ] 
12. Sorted Package Manager Listing 1.0.2   [ Uninstall ] [ List Files ] [ Delete ] 
13. AvatarSelect 1.2.1   [ Uninstall ] [ List Files ] [ Delete ] 
14. Slashout Banned Members 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
15. Join date and Location in Posts 1.3   [ Uninstall ] [ List Files ] [ Delete ] 
16. Stop Forum Spam 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
17. Ad Managment 3.0.1   [ Uninstall ] [ List Files ] [ Delete ] 
18. Activity in Profile 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
19. Stop Spammer 2.3.9   [ Uninstall ] [ List Files ] [ Delete ] 
20. SMF Gallery Lite 3.1.4   [ Uninstall ] [ List Files ] [ Delete ] 
21. Activity Bar 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
22. Welcome Topic Mod 2.2   [ Uninstall ] [ List Files ] [ Delete ] 
23. Country Flags 2.1   [ Uninstall ] [ List Files ] [ Delete ] 
24. Add Favicon.ico Support 1.101   [ Uninstall ] [ List Files ] [ Delete ] 
25. Pretty URLs 1.0   [ Uninstall ] [ List Files ] [ Delete ] 


Modification Packages — Installed - Not Uninstallable (no uninstall section for this version of SMF)  Mod Name Version 
1. Reason For Editing Mod 2.3.2   [ List Files ] [ Delete ] 
2. Double Check your Email in Registration by SmfSimple.com 1.0   [ List Files ] [ Delete ] 
3. Profile Moderator Management 2.0   [ List Files ] [ Delete ] 
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Burke ♞ Knight

vbgamer45  old friend, long time no talk. :)

Is there a way to set the new topic so it is posted by the new member?
I thought there used to be a mod that did that back in the day, but can not find it now.
Was just hoping you might be able to help edit this mod to do so. :)

GL700Wing

Quote from: BurkeKnight on June 15, 2013, 08:58:29 AM
Is there a way to set the new topic so it is posted by the new member?
Rather than do this I decided to have the new member's name link to their profile in the welcome message.

I find it handy to be able to see a new member's profile as I have some mandatory registration fields like location and country and many members update their profile the first time they login (I also have it set that guests cannot see any member profiles).

To implement this change do the following:

In the DoWelcomePost function of ./Sources/WelcomeTopic2.php

FIND
global $smcFunc, $modSettings, $sourcedir;



ADD AFTER
global $scripturl, $title;




FIND
$memberName = $memRow['real_name'];
}



REPLACE WITH
$memberName = $memRow['real_name'];
}
else
{
$result = $smcFunc['db_query']('',"
SELECT
id_member
FROM {db_prefix}members
WHERE REAL_NAME = '$memberName' LIMIT 1");
$memRow = $smcFunc['db_fetch_assoc']($result);
$smcFunc['db_free_result']($result);

$memberID = $memRow['id_member'];
}




FIND
'body' => str_replace("[username]",$memberName,$row2['welcomebody']),

REPLACE WITH
'body' => str_replace("[username]",'<a href="' . $scripturl . '?action=profile;u=' . $memberID . '"' . $title . '>' . $memberName . '</a>',$row2['welcomebody']),
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Burke ♞ Knight

Quote from: GL700Wing on June 18, 2013, 07:30:01 AM
Rather than do this I decided to have the new member's name link to their profile in the welcome message.

If topic is posted by the new member, then the poster name would be link to profile anyway, wont it?

GL700Wing

#550
Quote from: BurkeKnight on June 18, 2013, 07:54:46 AM
If topic is posted by the new member, then the poster name would be link to profile anyway, wont it?
Yes - and it would be easy enough to implement that but I wouldn't feel comfortable with attributing a post to someone who didn't actually make it.
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

deadhero

First sorry for bad English. Mod is working for long time but i noticed a new mod is not working for 1 weeks. Last topic is 16 June. I register but no topic created. I check all settings. I think 16 June i upgrade mod but I'm not sure. Please Help Me, I check files and no error i see. My Used Mods:

1.            NiceTooltips
2.   PM to New Members
3.   RSS Feed Icon
4.   Seo 4 SMF 2.0
5.   Cumulus Congestus
6.   SimplePortal
7.   Separate the sticky topics
8.   Member Color Link
9.   PmSpy
10.   Ad Managment   
11.   Profile like mybb
12.   ENotify    2.0.2
13.   Alternate Email   
14.   TopList ve Istatistikler PALAUDIS
15.   SA Facebook
16.   Welcome Back   
17.   Disable Subject Change   
18.   WYSIWYG Quick Reply
19.   Moderator and Administrator Comment Tags
20.   BoardColor
21.   Edit And Align Categories
22.   YouTube BBCode
23.   Multiple Stars   
24.   Speech Search   
25.   SimplePortal - Turkish
26.   PM Informer
27.   Be Square Smileys
28.   Profile Moderator Management
29.   New Topic Button
30.   Welcome Topic Mod
31.   Remove Help From Menu
32.   Ultimate Profile Extra
33.   Aligned and Bilateral Child Boards
34.   Google Tagged
35.   Seo Hhy
36.   Shiny Smiley Icons
37.   Hide Tag Special
38.   H1 Tags in link tree
39.   CSS Message Boxes
40.   SMFPacks Shoutbox
41.   SMFShop
42.   BBC Spoiler
43.   Slashout Banned Members
44.   Send Locked Topics To Bottom
45.   Mesaj Duzenleme Nedeni Modu
46.   Topic Rating Bar
47.   Google +1 Topics
48.   nCode Image Resizer

Road Rash Jr.

Since installing Welcome Topic Mod 2.2 replacing 2.1 I now get 2 identical welcome messages posted. Nothing shows in the error log. Any ideas on a fix?
Thanks, great mod by the way. ;)
Never argue with an Idiot like myself, they just drag you down to their level then beat you with experience.

vbgamer45

Did you uninstall the old version? If not uninstall the new version and then uninstall the old version. Then install the new version
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

Road Rash Jr.

Yes I uninstalled 2.1 then installed 2.2.
Never argue with an Idiot like myself, they just drag you down to their level then beat you with experience.

vbgamer45

Next try get the manual code install steps from http://custom.simplemachines.org/mods/index.php?mod=789

Check each file it edits and remove the duplicated code if it exists
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

Road Rash Jr.

 :o  Now I get 3 welcome messages  ???
Never argue with an Idiot like myself, they just drag you down to their level then beat you with experience.

vbgamer45

Did you double check all the code that was inserted?
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

Road Rash Jr.

Quote from: vbgamer45 on July 13, 2013, 12:20:06 PM
Did you double check all the code that was inserted?

Yes, double, triple, and quatriple checked.
Never argue with an Idiot like myself, they just drag you down to their level then beat you with experience.

Road Rash Jr.

Any ideas as to why it is showing triple welcomes and how to fix? ::)
Never argue with an Idiot like myself, they just drag you down to their level then beat you with experience.

Advertisement: