php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#217130 - 05/26/02 06:37 AM PM on moved thread hack
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
PM on moved thread hack <br /> <br />Sends a PM to the owner of a thread if it's moved to another forum. Admin/Mod can enter a reason (optional). <br />User gets a mail like: Your post (Subject) has been moved from (forum) to (newforum). The thread can be found here (link). <br /> <br />Any improvements are welcome. Next step would be to send a PM to all users who made a reply to the thread. Anyone? ;-)


Attachments
48191-pm_on_moved_thread_v1.txt (18 downloads)

_________________________
Running a community? -> Keep informed and take it to the next level

Top
#217131 - 05/26/02 06:39 AM Re: PM on moved Thread Hack [Re: -Fusion-]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Yes, I think this would be a good idea, to let the people interested of a thread know where it has gone.
_________________________
/Gardener | Complete list of my mods

Top
#217132 - 05/26/02 07:53 AM Re: PM on moved thread hack [Re: -Fusion-]
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
This will be real nice, its an often requested feature. <img src="/forum/images/icons/grin.gif" alt="" />
_________________________
Mateo Byler
CruceDeCaminos.com

Top
#217133 - 05/26/02 07:56 AM Re: PM on moved thread hack [Re: -Fusion-]
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
One thing that just came to my mind:<br />If you move a post and all its replies (not the original parent post), who does it PM to?
_________________________
Mateo Byler
CruceDeCaminos.com

Top
#217134 - 05/26/02 08:07 AM Re: PM on moved thread hack [Re: D_Wolfwood]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Nothing, it's only a hack for moving the hole thread.<br />Moving posts an an replies is handled via movepost.php...<br />
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#217135 - 05/26/02 03:01 PM Re: PM on moved thread hack [Re: -Fusion-]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
Nice one, thanks... very requested <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#217136 - 05/26/02 05:19 PM Re: PM on moved thread hack [Re: SurfMinister]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
Works great, thank you <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />A few minor changes had to be done though.<br /><br />Also I added a button here where I can select the language of the automatic message (I run a bi-language board).<br /><br />ALso a suggestion:<br />In your instructions, instead of using line numbers, please quote pieces of original code, wherafter the changes occur.<br />After hacks and such, linenumbers might change and this can cause misunderstandings. (the formbox belongs after the </select> which caused confusion here at first.<br /><br />Greetings<br /><br /><br /><br />
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#217137 - 05/28/02 09:15 AM Re: PM on moved thread hack [Re: -Fusion-]
Muhammad Offline
Kahuna

Registered: 09/26/99
Posts: 1289
Loc: Tucson, AZ
Very nice feature...<br /><br />Would be nice if it sent a PM to ALL posters in the thread, too.
_________________________
Muhammad

Top
#217138 - 05/28/02 09:43 AM Re: PM on moved thread hack [Re: paulj]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
Yes, good suggestion <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#217139 - 05/28/02 12:10 PM Re: PM on moved thread hack [Re: -Fusion-]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
How about an option to leave a "pointer" instead (or in addition)? Previously posted as a feature request.<br />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#217140 - 05/28/02 12:13 PM Re: PM on moved thread hack [Re: paulj]
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
Make it an option to PM the thread owner or everyone who has replied. Sometimes it wont make sense to notify everyone.<br /><br />Going further, though more complex. A Checkbox with the names of everyone who has replied to select the ones to notify. I can think of many situations where you´d only notify 4 out of 20.
_________________________
Mateo Byler
CruceDeCaminos.com

Top
#217141 - 05/28/02 12:15 PM Re: PM on moved thread hack [Re: D_Wolfwood]
Muhammad Offline
Kahuna

Registered: 09/26/99
Posts: 1289
Loc: Tucson, AZ
I always like your more complex ideas, Mateo. <img src="/forum/images/icons/wink.gif" alt="" />
_________________________
Muhammad

Top
#217142 - 06/02/02 11:36 PM Re: PM on moved thread hack [Re: joeuser]
Jim Osby Offline
Member

Registered: 11/08/99
Posts: 204
Loc: CT
"How about an option to leave a "pointer" instead (or in addition)?"<br /><br /><br />Absolutely. It's a wonderful hack, Astaran, but it leaves out those who participated in a thread (but didn't start it), who have just as much interest in hearing about a moved thread.<br /><br />And including them in the private message scheme (per Muhammad's suggestion) would help, but it still leaves out readers-along who ALSO wonder where a thread went.<br /><br />Leaving behind a pointer ("This thread has been moved to....") solves everything very simply and elegantly for all parties, IMO.<br /><br />JIM

Top
#217143 - 06/03/02 02:18 AM Re: PM on moved thread hack [Re: PFMoltres]
Jim Osby Offline
Member

Registered: 11/08/99
Posts: 204
Loc: CT
ps--if there's a "marker", it should probably automatically self destruct after a week or so, so as not to clutter the board.

Top
#217144 - 06/03/02 09:33 AM Re: PM on moved thread hack [Re: PFMoltres]
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
Yes, agreed, a pointer/marker/shortcut (choose your name!, haha) would probably be the best. Ideally you could set the expiration date on it when moving it.<br /><br />This would be especially beneficial when thread has been started by a newbie unregistered user.
_________________________
Mateo Byler
CruceDeCaminos.com

Top
#217145 - 06/03/02 01:25 PM Re: PM on moved thread hack [Re: D_Wolfwood]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
I updated the instructions for easier implementing.<br />No additional functions, yet.<br /><br />A pointer would be a nice feature, but it'll require some kind of cron job, that deletes the records after a certain time. I'm not able to implement that in the next weeks, sorry. Maybe someone else can do this?<br />But i would that make an additional option, but this function can produce much clutter on high traffic boards. In some situation you want to clean the forum with movíng threads. A pointer still occurs in the postlist, so that mods have no chance to clean forums up.<br /><br /> [] Going further, though more complex. A Checkbox with the names of everyone who has replied to select the ones to notify. I can think of many situations where you´d only notify 4 out of 20. [/] <br />Jepp, wan't to get this one in. Only have to think of a way to get the pm send only once to each user, even if they make several replies in one thread.
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#217146 - 06/03/02 03:09 PM Re: PM on moved thread hack [Re: -Fusion-]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Forgot the attachment. I'm getting old <img src="/forum/images/icons/wink.gif" alt="" />


Attachments
48661-PM_Moved_v1.1.txt (17 downloads)

_________________________
Running a community? -> Keep informed and take it to the next level

Top
#217147 - 06/03/02 04:27 PM Re: PM on moved thread hack [Re: -Fusion-]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
Hi Asteran,<br />thanks for the new version. It's getting pretty cool.<br /><br />You have some Denglish (German/English mix) in it, did you realize that? <img src="/forum/images/icons/wink.gif" alt="" /><br /><br />By the way, I tried to find a way to address a user in their language, as I am running a bi-langual website. In your code I changed this:<br /> [:"green"]<br />$Sender = $user['U_Username'];<br /> $To = $poster;<br /> <br /> //Hack in Hack, additionally: Language!<br /> If ($Sprache == "German") {<br /> <br /> if ($Reason != "") {<br /> $Message2 ="<br /><br />Anmerkung: <br><br> $Reason";<br /> }<br /> $Subject = "Dein Thread \"$mSubject\" wurde verschoben.";<br /> $mess = "Dein Thread \"$mSubject\" wurde von \"$boardin\" in's \"$boardm\" Board verchoben. Der Thread kann jetzt <br /> <a href=\"$config[phpurl]/showthreaded.php?Cat=$Cat&Board=$Keyword_q&Number=$number\">hier</a> gefunden werden.$Message2";<br /> <br /> } else {<br /> <br /> if ($Reason != "") {<br /> $Message2 ="<br /><br />Annotation: <br><br> $Reason";<br /> }<br /> $Subject = "Your thread \"$mSubject\" has been moved";<br /> $mess = "Your thread \"$mSubject\" has been moved from \"$boardin\" to \"$boardm\". The thread can be found<br /> <a href=\"$config[phpurl]/showthreaded.php?Cat=$Cat&Board=$Keyword_q&Number=$number\">here</a>.$Message2";<br /><br /> }<br /> // End Hack in Hack<br /> $html -> send_message ($Sender,$To,$Subject,$mess);<br /> [/]<br /><br />How to I get the variable $Sprache?<br />On the admin part, I added a selection. So the admin, while moving the thread, decides in what language he wants to address the user with the "reason":<br /><br /> [:"green"]<br /> echo "</br /></br /><br /> <p><b>Automatic Info-Message to the user who started the thread: </b></p><br /> <p> <br /> a) Choose language of the User: <i><input type=\"radio\" name=\"Sprache\" value=\"German\" checked=\"checked\" border=\"0\" />German <input type=\"radio\" name=\"Sprache\" value=\"English\" border=\"0\" />English</i><br /> </p><p> <br /> b) Give a reason (optional): <input type=\"text\" name=Reason size=\"24\" border=\"0\" class=\"formboxes\" /><br /> </p> <br /> "; <br /> [/]<br /><br /><br />But there is probably a better way: to pick the stored language-variable for each user from the database.<br />But I am not so good in MySQL so I did it the other way.<br /><br />If you like the idea, you will probably come up with a better solution, I'm sure <img src="/forum/images/icons/wink.gif" alt="" /><br /><br />
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#217148 - 06/03/02 05:25 PM Re: PM on moved thread hack [Re: rodrigo1]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Thanks for the info. Removed the german parts now.<br /><br />Yes, it would be more elegant to grab the user language from the users table. Should be easy. But i'll have to do this before the moderator can enter his annotations, cause he needs to now the language he has to use.<br />Hope to get that into the next update.


Attachments
48674-PM_Moved_v1.2.txt (24 downloads)

_________________________
Running a community? -> Keep informed and take it to the next level

Top
#217149 - 06/04/02 12:29 AM Re: PM on moved thread hack [Re: D_Wolfwood]
Jim Osby Offline
Member

Registered: 11/08/99
Posts: 204
Loc: CT
whoa, I just thought of something important.<br /><br />Hope this isn't a programming nightmare, but there's got to be a way to have a marker NOT left if a thread is moved to an invisible board!<br /><br />Otherwise...geez....we'd have markers telling the world that threads called "Extend Your Sexual Satisfaction" or "The People Running This Board Are Doody-Heads" have been moved to the Purgatory Board, etc etc.<br /><br />JIM

Top
Page 1 of 2 1 2 >


Who's Online
0 registered (), 26 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks