php forum
php mysql forum
php mysql smarty
 
Topic Options
#221972 - 08/04/02 01:56 PM PM-Reply 1.1 beta1 (for 6.1.0)
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala

   PM-Reply 1.1 beta1 (for 6.1.0) to Del.icio.us Add to del.icio.us
  Digg PM-Reply 1.1 beta1 (for 6.1.0) Digg it
Mod Name / Version PM-Reply 1.1 beta1<br />Description Adds a new post extra function to make a reply to the post in a PM.<br />Working under UBB.threads 6.1.0<br />Any pre-requisites None<br />Author(s) Gardener<br />Credits None<br />Demo None<br />Files Altered ubbt.inc.php, showthreaded.php, showflat.php, sendprivate.php, sendmessage.php, templates/default/showthreaded.tmpl, templates/default/showflat.tmpl, templates/default/sendmessage.tmpl, templates/default/sendprivat.tmpl languages/generic.php<br />Database Altered No<br />New Files showpost.php<br />Any other info None<br /><br /><br />CHANGES<br />PM-Reply 1.1 beta1 includes a link to the link to the post that the PM is in reply to in the PM.<br /><br />This post is updated with the newest version of this script.


Attachments
53558-PM-Reply-1_1beta1.zip (49 downloads)



Edited by Gardener (11/20/02 11:27 PM)
_________________________
/Gardener | Complete list of my mods

Top
#221973 - 08/04/02 02:28 PM Re: PM-Reply 1.0beta (for 6.0.2) [Re: c0bra]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25406
Loc: Texas
Cool idea gardener <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#221974 - 08/04/02 02:47 PM Re: PM-Reply 1.0beta (for 6.0.2) [Re: c0bra]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I like this idea... very nice! <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#221975 - 08/12/02 07:16 PM Re: PM-Reply 1.0beta (for 6.0.2) [Re: c0bra]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
Hey Gardener:<br /><br />In your instructions you have the following:<br /><br /><pre><font class="small">code:</font><hr>Step 3<br />Open up the file showflat.php and find these lines (at ~876):<br /> $postrow[$i]['notifylinkstart'] = "<a href=\"{$config['phpurl']}/notifymod.php?Cat=$Cat&amp;Board=$Board&amp;Number=$Number&amp;page=$page&amp;view=$view&amp;sb=$sb&amp;o=$o&amp;vc=1&amp;fpart=$fpart&amp;what=showflat\">";<br /> $postrow[$i]['notifylinkstop'] = "</a>";<br /><br />Add these lines AFTER:<br /> $postrow[$i]['sendpmlinkstart'] = "<a href=\"{$config['phpurl']}/sendprivate.php?Cat=$Cat&amp;User=$EUsername\">";<br /> $postrow[$i]['sendpmlinkstop'] = "</A>";</pre><hr><br /><br />Assuming you wish to have the subject of the private message response be the same as a reply to the post, you should change the instructions to read as follows:<br /><br /><pre><font class="small">code:</font><hr>Step 3<br />Open up the file showflat.php and find these lines (at ~876):<br /> $postrow[$i]['notifylinkstart'] = "<a href=\"{$config['phpurl']}/notifymod.php?Cat=$Cat&amp;Board=$Board&amp;Number=$Number&amp;page=$page&amp;view=$view&amp;sb=$sb&amp;o=$o&amp;vc=1&amp;fpart=$fpart&amp;what=showflat\">";<br /> $postrow[$i]['notifylinkstop'] = "</a>";<br /><br />Add these lines AFTER:<br /> $postrow[$i]['sendpmlinkstart'] = "<a href=\"{$config['phpurl']}/sendprivate.php?Cat=$Cat&amp;User=$EUsername&amp;Subject=Re: $tsubject\">";<br /> $postrow[$i]['sendpmlinkstop'] = "</A>";</pre><hr><br /><br />Basically I just added the &amp;Subject=Re: $tsubject to the first part so it will pass the subject through. Otherwise, good hack! I know it will be appreciated by my members.

Top
#221976 - 08/12/02 08:17 PM Re: PM-Reply 1.0beta (for 6.0.2) [Re: SDS]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Thanks for the fix, I don't use Flat mode that often so I didn't see that the subject was missing in the link there. I will add this to the instructions before I release it as a finished mod.
_________________________
/Gardener | Complete list of my mods

Top
#221977 - 09/18/02 09:16 AM Re: PM-Reply 1.0beta (for 6.0.2) [Re: c0bra]
spiffy Offline
Member

Registered: 03/28/00
Posts: 91
I installed this in 6.0.3 and it seemed to work, but when I tried to send the PM I got the error that <br /><br />"We have no record for the Username that you are trying to send this message to."<br /><br />even though the correct Username had been automatically entered into the form textbox.<br /><br />Anyone any ideas please?

Top
#221978 - 09/18/02 10:01 AM Re: PM-Reply 1.0beta (for 6.0.2) [Re: maksimum]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Are there any strange characters in the user name? Is it not working for any username at all?
_________________________
/Gardener | Complete list of my mods

Top
#221979 - 09/18/02 01:45 PM Re: PM-Reply 1.0beta (for 6.0.2) [Re: c0bra]
spiffy Offline
Member

Registered: 03/28/00
Posts: 91
Hi, Gardener, yes I've got the 'Allow special characters in usernames' option enabled because as a legacy I had to allow '.' full-stops in the usernames. Is there any way round this that you know of? (e.g. my username is VLE.Tech)<br /><br />thanks for your help.

Top
#221980 - 09/19/02 10:55 AM Re: PM-Reply 1.0beta (for 6.0.2) [Re: maksimum]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
That might be the problem, although I haven't checked it yet, I will try to find the problem as soon as I get the time.<br /><br />If you could try with some other usernames in the meantime that would be great. It will be much easier to track down if I know if it is the same all the time for you or if only for a few usernames.
_________________________
/Gardener | Complete list of my mods

Top
#221981 - 09/23/02 10:32 AM Re: PM-Reply 1.0beta (for 6.0.2) [Re: c0bra]
spiffy Offline
Member

Registered: 03/28/00
Posts: 91
Please ignore my point above re the hack not working on my boards. This was due to a silly mistake I made when editing the template.<br /><br />Sorry and thanks for your help.

Top
#221982 - 09/23/02 11:08 AM Re: PM-Reply 1.0beta (for 6.0.2) [Re: maksimum]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Thanks, that's good to know.
_________________________
/Gardener | Complete list of my mods

Top
#221983 - 11/12/02 07:11 PM Re: PM-Reply 1.0beta3 (for 6.1.0) [Re: c0bra]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
The instructions for this hack has been updated to work with threads v6.1.0. It should probably work with 6.1.1 as well.
_________________________
/Gardener | Complete list of my mods

Top
#221984 - 11/17/02 07:52 PM Re: PM-Reply 1.0beta3 (for 6.1.0) [Re: c0bra]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Just installed this on someone's board. <br /><br />Very nice! Thanks Gardener! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#221985 - 11/20/02 11:28 PM Re: PM-Reply 1.1 beta1 (for 6.1.0) [Re: c0bra]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
I've updated this script, it now adds a link back to the post which the PM is in reply to. The new version is attached to the first post of this thread.
_________________________
/Gardener | Complete list of my mods

Top
#221986 - 07/23/04 02:46 PM Re: PM-Reply 1.1 beta1 (for 6.1.0) [Re: c0bra]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
with a bit of hacking, i got this to work for my 6.2/6.5 hybrid board..... but I wouldn't suggest any newB attempt it.<br /><br />I really like this idea! and took it a step further, now all the fields in the PM form are automatically filled-in with the forum info<br /><br />Thanks for the templates Gardner - awesome work!!

Top
#221987 - 07/23/04 07:15 PM Re: PM-Reply 1.1 beta1 (for 6.1.0) [Re: VickiSmith]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Glad you like it!
_________________________
/Gardener | Complete list of my mods

Top


Top Posters Last 30 Days
AllenAyres 18
Gizmo 10
sirdude 7
GEN 3
blaaskaak 2
willing 2
Philipp 2
Who's Online
0 Registered (), 32 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
[7.3.x] ubb.links
by AllenAyres
Yesterday at 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
[7.2.1] - Naked shoutbox
by Iann128
08/22/08 07:27 PM
Nice Ajax Chat
by M4D
08/21/08 10:02 PM
Team UBBDev Rides Again!
by AllenAyres
08/21/08 01:02 AM
51-card NVIDIA folding rig cranks out 265,200 ppd
by AllenAyres
08/13/08 10:10 PM
Custom island in the middle row
by Kevin H
08/12/08 05:24 PM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.x] AddThis - Social Networking
by Gizmo
08/01/08 01:30 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
Newest Members
welcomeback1, Paug, Tim Keating, anscers, Murphdog
13324 Registered Users

 

 

 
fusionbb message board php hacks