vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - [OzzModz] Welcome Thread / Post For New Users (https://vborg.vbsupport.ru/showthread.php?t=305915)

john7911 07-27-2014 10:30 AM

Thank you ozzy47 :)

ozzy47 07-27-2014 10:49 AM

Quote:

Originally Posted by john7911 (Post 2508485)
Thank you ozzy47 :)

Don't forget to mark as installed. :)

ForceHSS 07-27-2014 12:30 PM

Quote:

Originally Posted by ozzy47 (Post 2508489)
Don't forget to mark as installed. :)

Do you see who has installed always wanted to know

ozzy47 07-27-2014 12:32 PM

Yes the developer of the mods can see if you marked it as installed or not. :)

This only applies if you replied in the thread.

Alan_SP 07-27-2014 01:07 PM

Quote:

Originally Posted by ozzy47 (Post 2508382)
You have seen it create threads for previously registered users?

Yes, I already reported this, but you obviously forgot it.

Anyway, I first reported it in this post:

Quote:

Originally Posted by Alan_SP (Post 2484038)
Just noticed that welcome thread is also created if an old user confirms new email address.

I just had one of the first users on my site to have problems with his email address, so I informed him about this. He changed email address and when he confirmed new email address, thread was created.

I use option that thread is created when they confirm email address, so this triggers new thread even when old user confirms new email address. :(

After some time, as there was no workaround, I suggested this:

Quote:

Originally Posted by Alan_SP (Post 2486974)
Well, I was thinking a bit. :D

You could:

- Create new field in user table, let's call it already welcomed on installation and make it boolean (logical, only Yes/No)
- Put 1 (Yes) in all already existing users fields, so there wouldn't be new welcome threads for old users.
- When there's new email confirmation, check also if already welcomed field for that user is set to Yes, or if it is still No (0). If still No, create new welcome thread.
- After you create welcome thread for user, change status of his already welcomed field to Yes (1).

This would prevent multiple welcome threads when old users confirm new email addresses.

It would be really great if old users don't get welcome thread when changing (actually, when confirming new) email addresses.

Quote:

Originally Posted by ForceHSS (Post 2508504)
Do you see who has installed always wanted to know

Starter of a thread in these sections see a bit more info in a postbit. You see if someone clicked install or not.

ForceHSS 07-27-2014 01:12 PM

upload a picture as I have this mod on my site wanted to make sure its the same

ozzy47 07-27-2014 01:14 PM

Quote:

Originally Posted by Alan_SP (Post 2508515)
Yes, I already reported this, but you obviously forgot it.

Anyway, I first reported it in this post:



After some time, as there was no workaround, I suggested this:



It would be really great if old users don't get welcome thread when changing (actually, when confirming new) email addresses.



Starter of a thread in these sections see a bit more info in a postbit. You see if someone clicked install or not.

Ok I will have to check it out, I guess I did forget about it, sorry. :(

ozzy47 07-27-2014 01:15 PM

Quote:

Originally Posted by ForceHSS (Post 2508516)
upload a picture as I have this mod on my site wanted to make sure its the same

Upload a picture of what?

ozzy47 07-27-2014 06:46 PM

Quote:

Originally Posted by Alan_SP (Post 2508515)
It would be really great if old users don't get welcome thread when changing (actually, when confirming new) email addresses.

I am unable to replicate this on my dev site, maybe you can PM me a admin account, and I can try and replicate it on your site.

CAG CheechDogg 07-27-2014 07:27 PM

Ok good stuff Ozzy ! ...works good now ...Quick question ... if I change all the instances in the new XML file of $username to $musername will that be enough to get the HTML markup of the usergroups?

ozzy47 07-27-2014 07:28 PM

Quote:

Originally Posted by CAG CheechDogg (Post 2508567)
Ok good stuff Ozzy ! ...works good now ...Quick question ... if I change all the instances in the new XML file of $username to $musername will that be enough to get the HTML markup of the usergroups?

It should be, but to be honest, I never tried musername.

CAG CheechDogg 07-27-2014 07:38 PM

Quote:

Originally Posted by ozzy47 (Post 2508568)
It should be, but to be honest, I never tried musername.

LOL! ... well isn't musername what is used in place of username to spit out the markup? Or do you mean you didn't try it on this mod? ....

CAG CheechDogg 07-27-2014 07:40 PM

Actually Ozzy...nm my Man ... it would be pointless to even add the markup since they don't belong to any other group except the default registered users group ...lol... wtf am I thinking! lol..

Thanks Ozzy the mod works fine my Man !!!

ozzy47 07-27-2014 07:42 PM

Yeah that's probably why I never tried it.

Glad it is all good now. :)

CAG CheechDogg 07-27-2014 07:51 PM

Yes ... A OH KAY ! :up:

Alan_SP 07-27-2014 08:14 PM

Quote:

Originally Posted by ozzy47 (Post 2508561)
I am unable to replicate this on my dev site, maybe you can PM me a admin account, and I can try and replicate it on your site.

Do you use email confirmation and create welcome thread only when email is confirmed? That's the part of the code that creates this problem.

If you create thread immediately when user registers, you wouldn't have this type of problem.

Just set it to create thread when user confirms email, it would get triggered for old users changing their email addresses and confirming them.

ozzy47 07-27-2014 08:18 PM

Ok gotcha, I will look into a work around for this.

CAG CheechDogg 07-27-2014 08:19 PM

Quote:

Originally Posted by Alan_SP (Post 2508578)
Do you use email confirmation and create welcome thread only when email is confirmed? That's the part of the code that creates this problem.

If you create thread immediately when user registers, you wouldn't have this type of problem.

Just set it to create thread when user confirms email, it would get triggered for old users changing their email addresses and confirming them.

I see what you are saying Alan ... I have it to create thread only after they confirm emails but I have not had this problem ... I understand why it would do that though as it is confirming a new email address and like you said it triggers the new thread creation ...

Alan_SP 07-28-2014 09:40 AM

Yes, this is a bit rare, as old users don't often change their old email addresses. So it need a bit of luck to be spotted, so to say.

mitch84 09-07-2014 01:33 PM

when a new welcome thread is create, the member's name can be clicked in the topic, which refers to their profile? thx

ozzy47 09-07-2014 01:42 PM

Quote:

Originally Posted by mitch84 (Post 2514053)
when a new welcome thread is create, the member's name can be clicked in the topic, which refers to their profile? thx

I can see about adding that in a future version, could you post that as a feature request on my site, in the mods thread so it gets recorded into my tracking system, http://ozzmodz.com/forumdisplay.php/...-For-New-Users

Alan_SP 09-11-2014 10:35 AM

I just noticed this thread: http://slobodni.net/t121097/

Actual user name is pandora&, but as you can see, in thread title it's pandora& and in thread content it's pandora&

It's a problem with this type of characters, obviously.

ozzy47 09-11-2014 10:41 AM

Hmmm, I'll have to see about parsing that.

CAG CheechDogg 09-11-2014 05:03 PM

Quote:

Originally Posted by Alan_SP (Post 2514660)
I just noticed this thread: http://slobodni.net/t121097/

Actual user name is pandora&, but as you can see, in thread title it's pandora& and in thread content it's pandora&

It's a problem with this type of characters, obviously.

Good eye Alan!

ozzy47 09-13-2014 10:39 AM

Quote:

Originally Posted by mitch84 (Post 2514053)
when a new welcome thread is create, the member's name can be clicked in the topic, which refers to their profile? thx

Ya know what, I forgot this was added in v1.1.0. If you look in the [OzzModz] Welcome Thread / Post For New Users Titles And Messages settings you will see what you have to add to the thread content for this to work. :)

Code:

[url="$url/member.php?u=$userid2"]$username[/url]

mitch84 09-13-2014 11:01 AM

ok, sorry I missed that! I added but old topics are not updated, thx

ozzy47 09-13-2014 11:14 AM

Quote:

Originally Posted by mitch84 (Post 2514989)
ok, sorry I missed that! I added but old topics are not updated, thx

Yeah old topics won't be updated, as that bit of code was not in the post when it was posted. :)

ozzy47 09-13-2014 05:30 PM

v1.2.0 (September 13, 2014)
- Existing users that change their email, and confirm the new email, will no longer trigger the mod to post a thread.
- Users that sign up with names that have special characters, like this, pandora& will now show up correctly, instead of showing like this, pandora&

CAG CheechDogg 09-13-2014 10:24 PM

JUICE DA' MAN OZZY! .... Once again Ozzy thanks for doing what you do best for us , I'm sure I speak for most people here on V.org when I say that we appreciate your work my Man ...THANK YOU!

ozzy47 09-13-2014 10:30 PM

Not a problem. :) Thanks for the kind words.

CAG CheechDogg 09-13-2014 10:50 PM

Hey Ozzy I sent you a PM my Man, can you check it out and let me know what you think?

Kat-2 09-23-2014 06:59 PM

What a fun mod! Works great. Thanks Ozzy..

ozzy47 09-23-2014 07:27 PM

Glad you like it, and thanks for marking as installed. :)

dknelson 11-04-2014 07:13 PM

Had this or something similar on my 3.8 board. I remembered doing a mod so that the new users username linked to their profile. Does this one do that? Guess I'll know soon anyway.

ozzy47 11-04-2014 07:23 PM

Yes it does, and thanks for marking as installed. :)

dknelson 11-04-2014 10:20 PM

Got my first new member since installing this a few minutes ago and got a Databae error. I'm not a coder so any help wold be appreciated.

Code:

Invalid SQL:

                                UPDATE user
                                SET ozzmodz_welcome_thread_welcomed = 1
                                WHERE userid =;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3
Error Number  : 1064
Request Date  : Tuesday, November 4th 2014 @ 06:08:35 PM
Error Date    : Tuesday, November 4th 2014 @ 06:08:35 PM
Script        : http://www.mysiteorg/forum/register.php?a=act&u=17520&i=5d3fd50bfdaaebf51b871712bb94a4bd0d7d5272
Referrer      :
IP Address    : 125.255.25.53
Username      : Jonathan Collins
Classname    : vB_Database_MySQLi
MySQL Version :


ozzy47 11-04-2014 10:28 PM

Strange, for some reason it did not get the userid. Did it post a thread, or did it do nothing?

dknelson 11-04-2014 10:35 PM

No, I just looked. It didn't post at all.

ozzy47 11-04-2014 10:35 PM

Hmmm, do you have the members verify email before they become members?

dknelson 11-04-2014 10:37 PM

By the way, I'm running 4.2.3 if that matters to you.


All times are GMT. The time now is 04:30 PM.

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.01797 seconds
  • Memory Usage 1,829KB
  • 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_code_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete