Previous Thread
Next Thread
Print Thread
Hop To
#250325 09/20/2012 6:04 PM
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
My forum traffic on my three forums I run has been steadily dying over the past year or so. When I watch the growth of my Faceboo pages, a key feature on FB seems to be that any time someone posts, I get popped an email. It lures me back.

In UBB I'd have to manually watch the forum / thread, then *also* tell the system to email me those notes. The vast majority of my users never do that. So they forget to check, and fade away.

I would like to alter the code so by default everyone is set to get email alerts on watched threads, and they can turn it off if they want. Also, I want it to have it auto-watch anything they create or reply to, which they can turn off.

Is that fairly easy? Looking at this posting form it appears at least for new posts that it should be easy to implement. Just check that box below. What is the code change to auto turn on the email option? Any thoughts?


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
Hmmm ok it's not quite easy. There's code in there that calls

{if $addtofav}
{$addtofav}<br />

but I can't find where that is. Any hints?


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
I've been pretty sick lately otherwise I'd try to be a little more helpful; but "addtofav" is defined in only the new post and new reply pages; i haven't even really looked at the code to look at it to see the difficulty but I did take and use grep to see where all it's listed for you...

Keep in mind that scripts do processing, templates do the display.

[root@ns1 forum]# grep -r "addtofav" *
scripts/newpost.inc.php: $addtofav = "";
scripts/newpost.inc.php: $addtofav = "
scripts/newpost.inc.php: "addtofav" => $addtofav,
scripts/newreply.inc.php: $addtofav = "";
scripts/newreply.inc.php: $addtofav = "
scripts/newreply.inc.php: "addtofav" => $addtofav,
templates/default/newpost.tpl:{if $addtofav}
templates/default/newpost.tpl:{$addtofav}<br />
templates/default/newreply.tpl:{if $addtofav}
templates/default/newreply.tpl:{$addtofav}<br />

Last edited by Gizmo; 09/20/2012 10:46 PM.

I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
Thanks Gizmo. My server is not working well - my search on it found nothing. I had to download my entire forums to my local hard drive to be able to look through it. I don't know why search doesn't work reliably. So I did find the two scripts and changed it there. I did that for the lisashea.com forum and that works for full adds and replies.

Any thoughts on how I could add it to a quick reply? I'd want to do it there as well.

Once that is done, how do I globally set all users to have these email them? I.e. what's the database setting that sets these watched forums to email by default? I'll go dig through the database myself to see if I can find it. I'll want to run a script to turn it on for everyone, and then change the code so all new users get it set by default. They can of course unset it if they want. But I think this is key to draw users back to posts they make.


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
OK in the ubbt_watch_lists it looks like they can have entries for watch_type t (thread) or u (user). And the notify_immediate is 0 or 1. So if set those all to 1 will it email them each time?

And then on the ubbt_user_profile do I set all the user_email_watchlists to 1 instead of 0?

Will that do it, do you think?


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
Originally Posted by BellaOnline
OK in the ubbt_watch_lists it looks like they can have entries for watch_type t (thread) or u (user). And the notify_immediate is 0 or 1. So if set those all to 1 will it email them each time?

And then on the ubbt_user_profile do I set all the user_email_watchlists to 1 instead of 0?
I believe so, yes.



I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
Dear Gizmo -

OK there still seems to be a hole here. If someone does a quick-reply, it doesn't watch. They have to do a full reply. Any thoughts on how to add an auto-watch code to the quick reply?


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
If you look at the form for the quick reply and the one from the full reply page you'll see that some variables on the full reply page aren't displayed on the quick reply page; you could try adding the inputs manually though and see if it'll work.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
OK I'll play with that and see what I can do. Thanks!


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
Also, just to check, if members are banned they don't get any messages, true? I want to make sure that banned members won't be inundated with messages and then get annoyed with me.


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
I don't believe so, but I'm not 100% certain; you could try a dummy account and see if mailings would go through if banned...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
OK it looks like banning a user stops the auto-watched mailings, that is great!


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
Hey I just noticed you registered 7 days before I did smile


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
Hehe, that's just on the re-created UBBCentral forums, the ones prior I was on... And then there where the Groupee/Infopop/Madrona Park forums... Oh my...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
The default email message going out to all members starts with the line

No need to reply to this email.

How do I remove that line?


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
Right I remember when they set those up and asked us all to come register. You must have been quicker than I was!


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
You can edit the languages/english/mailer.php file in the Language Editor


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
Great, thank you so much!


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
On the quickreply auto watching, the code goes here -

templates/default/quickreply.tpl -

add near the top:
<input type="hidden" name="dofav" value="1" />


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Upgraded to ver8 - now can't login
by phoenix011235 - 10/24/2024 8:50 AM
Who's Online Now
1 members (vscope), 384 guests, and 137 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)