Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
0 registered (), 41 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 08/07/07
Posts: 218
Top Posters (30 Days)
Ruben 45
Bert 26
Gizmo 18
Rob Provencher 12
Rimex 9
SD 8
sw55 7
Eugene 5
TCS1 4
Matthias1976 4
Latest Photos
Uhm...
Mayan End of World
Gas Station Disco Video Shoot
Test Pictures
Audrey Kate
Page 1 of 2 1 2 >
Topic Options
#250325 - 09/20/12 05:04 PM Auto-watch posted on threads
BellaOnline Offline

addict
Registered: 06/12/06
Posts: 666
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
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#250328 - 09/20/12 09:00 PM Re: Auto-watch posted on threads [Re: BellaOnline]
BellaOnline Offline

addict
Registered: 06/12/06
Posts: 666
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
Top
#250329 - 09/20/12 09:42 PM Re: Auto-watch posted on threads [Re: BellaOnline]
Gizmo Offline

Registered: 06/05/06
Posts: 15453
Loc: Portland, OR; USA
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 />


Edited by Gizmo (09/20/12 09:46 PM)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime Supporter, Beta Tester & Resident Post-A-Holic.
Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Top
#250330 - 09/21/12 01:26 AM Re: Auto-watch posted on threads [Re: BellaOnline]
BellaOnline Offline

addict
Registered: 06/12/06
Posts: 666
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
Top
#250331 - 09/21/12 01:32 AM Re: Auto-watch posted on threads [Re: BellaOnline]
BellaOnline Offline

addict
Registered: 06/12/06
Posts: 666
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
Top
#250332 - 09/21/12 08:54 AM Re: Auto-watch posted on threads [Re: BellaOnline]
Gizmo Offline

Registered: 06/05/06
Posts: 15453
Loc: Portland, OR; USA
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.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime Supporter, Beta Tester & Resident Post-A-Holic.
Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Top
#250355 - 09/22/12 03:32 PM Re: Auto-watch posted on threads [Re: BellaOnline]
BellaOnline Offline

addict
Registered: 06/12/06
Posts: 666
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
Top
#250364 - 09/22/12 10:29 PM Re: Auto-watch posted on threads [Re: BellaOnline]
Gizmo Offline

Registered: 06/05/06
Posts: 15453
Loc: Portland, OR; USA
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.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime Supporter, Beta Tester & Resident Post-A-Holic.
Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Top
#250378 - 09/23/12 09:31 PM Re: Auto-watch posted on threads [Re: BellaOnline]
BellaOnline Offline

addict
Registered: 06/12/06
Posts: 666
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
Top
#250379 - 09/23/12 09:31 PM Re: Auto-watch posted on threads [Re: BellaOnline]
BellaOnline Offline

addict
Registered: 06/12/06
Posts: 666
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
Top
Page 1 of 2 1 2 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Express hosting.
by Ruben
05/16/13 03:54 PM
Level of detail in new user registration emails
by Mitch P.
05/15/13 10:20 PM
Approving users
by Bert
05/15/13 09:22 PM
Users randomly added to other group
by Bert
05/15/13 09:15 PM
Posting and other problems with 7.5.7
by Matthias1976
05/15/13 02:58 PM
Forum Stats
10965 Members
36 Forums
33957 Topics
183405 Posts

Max Online: 978 @ 06/24/07 10:19 PM
Random Image