Page 5 of 6

Re: Popup on Birthday

Posted: Fri Jan 09, 2009 3:22 am
by DragonMaster1
I use a subsilver type called Divine Black and hate prosilver so I can’t help there

Re: Popup on Birthday

Posted: Sat Jan 10, 2009 12:47 pm
by lefty74
MoneyMagnets wrote:I can't get it to work on phpBB3 either but I'm using template prosilver SE - are there any special changes that need to be made for that template?

Thanks for any help.....
hi, i havent forgotten you, i will have a look at it this weekend ;)

Re: Popup on Birthday

Posted: Sun Feb 22, 2009 12:27 am
by bob4
DragonMaster1 wrote:I had found this too and added the code after:

garbage_collection();
exit_handler();
}
Seems to work right on my test board
I have these lines also.
Is it correct to add that edit after these entries?
also
Someone mentioned it took a few days to work. True ?

Re: Popup on Birthday

Posted: Sun Feb 22, 2009 1:35 am
by lefty74
lefty74 wrote:
MoneyMagnets wrote:I can't get it to work on phpBB3 either but I'm using template prosilver SE - are there any special changes that need to be made for that template?

Thanks for any help.....
hi, i havent forgotten you, i will have a look at it this weekend ;)
i, looks like did forget :(

i just looked through the code and i cant see a reason why it shouldnt work...
bob4 wrote:
DragonMaster1 wrote:I had found this too and added the code after:

garbage_collection();
exit_handler();
}
Seems to work right on my test board
I have these lines also.
Is it correct to add that edit after these entries?
also
Someone mentioned it took a few days to work. True ?
yes, that code must have changed since this mod was validated.

a few days? not when i try it to be honest.

Re: Popup on Birthday

Posted: Sun Feb 22, 2009 2:11 am
by bob4
Thanks for the quick reply. It's my first time trying a Mod, so no expert there. The SQL had no errors. I do think I can edit a note pad file but can't get this to work. I checked the rest of the edits twice now.
Any common errors possible ?

Re: Popup on Birthday

Posted: Sun Feb 22, 2009 11:00 am
by lefty74
i would not use notepad but a decent editor like e.g. notepad++ or pspad.

i just tested it on my testboard. i registered as a new user, logged in, changed my birthday in the ucp to today and got the popup.

Please note that once you received a popup a timestamp is recorded in the database to prevent getting popups all the time. if you want to keep testing it you would have to manually clear that timestamp (and purge cache) in the user table of the database.

i cant think of any common error issues to be honest except not having purged the cache and refreshed the templates or edit errors.

Re: Popup on Birthday

Posted: Sun Feb 22, 2009 12:47 pm
by bob4
Thanks again. I'll give it a try today.
One last question. Sorry if this seems silly . :roll:
I should follow these directions for each style I want it to work on also. Like subsilver?

Re: Popup on Birthday

Posted: Sun Feb 22, 2009 1:50 pm
by lefty74
hi, yes, you would need to make changes to subsilver2 as well. you can find them in the templates/subsilver2.xml file

Re: Popup on Birthday

Posted: Sat Mar 07, 2009 11:11 pm
by TMorph
Ok. Installed the mod works correctly on a template designed by me and does not affect the email birthday.
Thanks for the Mod Greetings :P

Re: Popup on Birthday

Posted: Sat Mar 14, 2009 10:35 pm
by Greylock3491
lefty74 wrote:that's what i meant, the first part of the sql was probably done when you accessed the module on the acp, try only the second one:

Code: Select all

ALTER TABLE phpbb_users ADD user_birthday_popup INT( 11 ) UNSIGNED NOT NULL DEFAULT '0';
dont forget to purge the cache afterwards.
Thanks Lefty74 - I ran into this using AutoMod - ran this sql (again?) and it's now working :D

Re: Popup on Birthday

Posted: Sun Mar 22, 2009 7:11 pm
by gsxfan
Hey lefty74,

are there any issues regarding the 3.0.4 version? I can't get this mod to work, no matter what I do. I've quadruple checked every change in the files and the SQL data, everything is in place. And no popup comes up, checked that with 3 test users with FF, IE and Opera. Other popups i.e. for new PN are shown.
Any idea?

Re: Popup on Birthday

Posted: Mon Mar 23, 2009 12:07 am
by lefty74
hi
no issues with 3.0.4 as far as i know. works fine on my board.

Please note that once you received a popup a timestamp is recorded in the database to prevent getting popups all the time. if you want to keep testing it you would have to manually clear that timestamp (and purge cache) in the user table of the database.

i cant think of any common error issues to be honest except not having purged the cache and refreshed the templates or edit errors.

Re: Popup on Birthday

Posted: Mon Mar 23, 2009 1:33 pm
by gsxfan
I know about purging cache and templates and I have checked the content of user_birthday_popup, be sure. With "SELECT * FROM `phpbb_users` where user_birthday_popup <> 0" users which already had a bday popup can easily be found.
Now it runs....after I changed the variable name inside the call in the overall_header.html. As far as I know a variable of this kind only lives inside a function, but this call is not a function and I have other other functions and calls of functions in this file which are using the variable "url". After changing that name to url_popup at definition and calling line the mod works.
Checked that with 3 test users in different browsers, the popup comes up and whenever I reset user_birthday_popup to zero, the popup comes up again with the next login.

Thanks for replying and your work.

Re: Popup on Birthday

Posted: Sun Apr 19, 2009 6:50 pm
by PÕQ~Hitman
Any way to make it a alert box instead of popup like in the alertbox pm mod?

Re: Popup on Birthday

Posted: Sun Apr 19, 2009 8:05 pm
by lefty74
PÕQ~Hitman wrote:Any way to make it a alert box instead of popup like in the alertbox pm mod?
i dont know that mod but probably. i dont have time to do this though, sorry.