News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Welcome Topic

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

Previous topic - Next topic

ftab4me

I have not been able to get this mod to work. I decided to use the Manual Install Instructions for SMF 2.0.6

I have found a conflict in the following code:

./Sources/Register.php

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


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

Find: [Select]
SELECT id_member, validation_code, member_name, real_name, email_address, is_activated, passwd, lngfile
Add After: [Select]
, last_login

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


   // Welcome Topic Mod

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

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

      DoWelcomePost($row['member_name']);

   }

   // End Welcome Topic Mod


Since there is only one intance of;
// Let the integration know that they've been activated!
   call_integration_hook('integrate_activate', array($row['member_name']));

Which of the Welcome mods is used and if both which one is first?

I would really like to get this mod to work on my site.

Thanks

ftab4me

The answer to my previous post is none of the above. To the author, I am running 2.0.6 and for whatever reason the install used "WelcomeTopic2rc4.xml". This file appears to be quite different than the previous install files. To get this to work, I manually used the instructions in "WelcomeTopic2.xml". The one change is in "$sourcedir/Register.php" Look for

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

instead of

Let the integration know that they've been activated!
   if (isset($modSettings['integrate_activate']) && function_exists($modSettings['integrate_activate']))
      call_user_func($modSettings['integrate_activate'], $row['member_name']);

For those of you attempting to use the "WelcomeTopic2.xml" as a guide as I did to get this mod to work, rememmber that when the code says before it means paste the code after the found search string and after means paste the code before the found search string.

Good luck!
   

Arantor

That's because this code:
Let the integration know that they've been activated!
   if (isset($modSettings['integrate_activate']) && function_exists($modSettings['integrate_activate']))
      call_user_func($modSettings['integrate_activate'], $row['member_name']);


used to exist in SMF 2.0 RC3 and below and was changed in 2.0 RC4 to the code you see now.

The install likely used the wrong version if you set it to 'emulate 2.0 RC3' or lower through Admin > Main > Packages > Browse Packages (advanced link at the bottom of the page)

ftab4me

Arantor,

Thank you for the reply. I just looked where you suggested and it says;

Emulate Version: SMF 2.0.6

All I know is that the manual install instructions in the package download and WelcomeTopic2rc4.xml match and do not appear to work at all. When I did the manual changes using  WelcomeTopic2.xml as a template, the mod is now working. Just thought the author and  other users would want to know what worked for me.

vbgamer45

WelcomeTopic2.xml is for 2.0.x the other RC4 version is for older SMF 2.0 RC versions

Best way to always be sure is check the package-info.xml and find the one that matches the right 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

Surgical

Installed this mod: http://custom.simplemachines.org/mods/index.php?mod=789

And I create the message it needs to make in threads.
It does that, but instead of the name of the user who registers, it just keeps it as {welcome} and it doesnt replace the tags with the name of the user who just registered. What am I doing wrong?

This is what it gives me when it creates a thread when someone registers...


vbgamer45

I belive in SMF 2.0 you need to change it to [username] instead of {username}
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

Surgical

Quote from: vbgamer45 on March 10, 2014, 04:38:33 PM
I belive in SMF 2.0 you need to change it to [username] instead of {username}

I will try this. Thanks

sangham.net

Dear Mod-Team and Supporter,

yesterday I had the case that a member (long time registered, before the mod was created as well) changed his email address and after that a automatically "Welcome message" was created.

He felt understandable a little curious, maybe even controlled. Not sure if such is normal and usual caused by the function of the mod or a special case.

Its not that dramatically, but thought that if would be no failure to report such phenomena, maybe solve it or make use of it further, since it is actually nice if older members have the chance to get welcomed if the enter some kind anew.

Thanks, if telling, if there is any I should take care of. And lot of gratitude for your mod, we appreciate it very much.

GravuTrad

On a toujours besoin d'un plus petit que soi! (Petit!Petit!)


Think about Search function before posting.
Pensez à la fonction Recherche avant de poster.

vbgamer45

That will happen currently anytime you reconfirm.
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

GravuTrad

On a toujours besoin d'un plus petit que soi! (Petit!Petit!)


Think about Search function before posting.
Pensez à la fonction Recherche avant de poster.

vbgamer45

That's how it is coded at the moment.
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

GravuTrad

On a toujours besoin d'un plus petit que soi! (Petit!Petit!)


Think about Search function before posting.
Pensez à la fonction Recherche avant de poster.

vbgamer45

Probably I would have to look into it though.
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

GravuTrad

On a toujours besoin d'un plus petit que soi! (Petit!Petit!)


Think about Search function before posting.
Pensez à la fonction Recherche avant de poster.

sangham.net

Somehow nice, reconfirm is like to enter a new.  :) Thanks for your info and care!

sangham.net


FireDitto

I wondered if it might be possible to include a Message Icon choice in the settings page of this mod?
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

fapencio

Hi, great mod, thanks

add this:

WelcomeTopic.spanish_es-utf8
WelcomeTopic.spanish_latin-utf8

in attachments.

regards.
My smf forum is 2.0.10 version
my theme is default
language spanish es utf8

Advertisement: