Welcome Topic

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

Previous topic - Next topic

vbgamer45

The only part would cause that would be duplicate code in the forums somewhere if you know the exact action we can narrow it down to a file.
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.

I'm not sure what you mean by "exact action" as the only "action" would be when the member activates their account or are approved for access they get a welcome message. Nothing has been added to the forum in ages except changing from Welcome Topic 2.1 to 2.2. 2.1 was uninstalled and deleted then 2.2 was uploaded and installed. Then it started to produce 2 welcome messages. So I uninstalled 2.2, deleted that and re-uploaded 2.2 and installed. Now it is producing 3 welcome messages. Not being a coder I have no idea what is duplicated nor where to find it.
Never argue with an Idiot like myself, they just drag you down to their level then beat you with experience.

sangham.net

1001 Thanks for this mod!

Just installed it. Great!

Just one thing, it happens that I get 2 Welcomeposts at the same time for the same new member. I am sure you can give a blind a good hint, what he did wrong.

Thanks a lot for your help!

vbgamer45

Do you know how they were activated? Or did the mod install twice?
How does registration work for forum and what SMF 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

sangham.net

Thanks a lot for your care and further questions, vbgamer45.

Do you know how they were activated?
The actual case activated via verification email and and was registered manual form the board before. 

Or did the mod install twice?
When viewing "Browse Packages" it show it only one time. Or is there another way to prove that?

How does registration work for forum
Nothings special. You can register and you would get a verification email. Once you approve the link in your email you are in.

what SMF version
2.04

Thanks a lot, and I hope I could give enough and the right info's.


Branko.

Sources/Profile-Actions.php
Find and remove double code
// Welcome Topic Mod


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

DoWelcomePost('',$memID);

// End Welcome Topic Mod
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

sangham.net

Thanks for your care Branko, just looked into and it seems to be the same code as you posted and it exists only once in this file

// Welcome Topic Mod


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

DoWelcomePost('',$memID);

// End Welcome Topic Mod

sangham.net

Does anybody have an alternative idea about this phenomena? Every hint more then welcome. Thanks!

Branko.

Try for all instances ... e.g. sourcedir/Register.php (somewhere has been added twice).
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Burke ♞ Knight

In the mod's settings, is there 1 or 2 topics set up?

sangham.net

Quote from: Branko. on September 12, 2013, 05:26:21 AM
Try for all instances ... e.g. sourcedir/Register.php (somewhere has been added twice).

Thanks a lot for your hint, Branko! There is something in this mentioned file what looks like this a little, althrough its not total identical. If that is the "bad" stuff, which part should be deleted? The 1st or the 2nd?
Thanks for advices!

// 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


Quote from: BurkeKnight on September 12, 2013, 05:34:19 AM
In the mod's settings, is there 1 or 2 topics set up?

Thanks a lot BurkeKnight for your care. Just one. But I can remember that I changed the "Forum" and so saved altogether the settings 2 times. Maybe that is the reason for this issue and the setting it self might be a kind of installation?

Branko.

Just remove this part  ;)
// Welcome Topic Mod

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

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

DoWelcomePost($row['member_name']);

}

// End Welcome Topic Mod
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

sangham.net

Thanks a lot Mr Branko, I will try that. Wonder how it came to be
:)

IcePhreak

I have a problem! I installed the mod and it doesn't work. I've registered with different usernames several times and it never post the topic!
Check out hBurn Radio
Click here for our forums.

Branko.

Welcome Topic Settings> use this form for username: [username]
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

IcePhreak

Quote from: Branko. on November 07, 2013, 07:17:00 PM
Welcome Topic Settings> use this form for username: [username]
In the spot where it asks which user to post as? If not, I already have it setup that way for the default post setting.
Check out hBurn Radio
Click here for our forums.

vbgamer45

No include that text in the SMF 2.0 version in the welcome post itself.
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

IcePhreak

Quote from: vbgamer45 on November 07, 2013, 09:26:49 PM
No include that text in the SMF 2.0 version in the welcome post itself.
I have still doesn't work
Check out hBurn Radio
Click here for our forums.

vbgamer45

Something is wrong then. make sure it is lowercase
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

MoreBloodWine

Since I first reported this I havent been able to figure out why it's not working but I have the latest version of this mod installed and am still not getting posts created for new members, like the one who signed up today. This is all I have installed for packages and none of them seem to be conflicting ;-/

1. Stop Spammer 2.3.9   [ Uninstall ] [ List Files ] [ Delete ] 
2. Activity in Profile 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
3. Join date and Location in Posts 1.3   [ Uninstall ] [ List Files ] [ Delete ] 
4. Add Facebook Like, Tweet, and Google +1 1.0.3a   [ Uninstall ] [ List Files ] [ Delete ] 
5. SMF 1.1.19 / 2.0.6 Update 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
6. Stop Forum Spam 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
7. Tapatalk SMF 2.0 RC5/Final Plugin 3.8.0   [ Uninstall ] [ List Files ] [ Delete ] 
8. Users Online Today 2.0.3   [ Uninstall ] [ List Files ] [ Delete ] 
9. Aeva ~ Auto-Embed Video & Audio 7.2   [ Uninstall ] [ List Files ] [ Delete ] 
10. TinyPortal 1.107   [ Uninstall ] [ List Files ] [ Delete ] 
11. Country Flags 2.1   [ Uninstall ] [ List Files ] [ Delete ] 
12. Sorted Package Manager Listing 1.0.2   [ Uninstall ] [ List Files ] [ Delete ] 
13. Birthday Posts 0.13 Beta   [ Uninstall ] [ List Files ] [ Delete ] 
14. Slashout Banned Members 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
15. Password Protect Boards 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
16. Welcome Topic Mod 2.2   [ Uninstall ] [ List Files ] [ Delete ] 
17. Activity Bar 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Advertisement: