php forum
php mysql forum
php mysql smarty
 
Topic Options
#250174 - 06/11/03 11:24 PM Beta-[6.2-6.3-6.4] PM Quote Original Message 1.3
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC

   Beta-[6.2-6.3-6.4] PM Quote Original Message 1.3 to Del.icio.us Add to del.icio.us
  Digg Beta-[6.2-6.3-6.4] PM Quote Original Message 1.3 Digg it
Mod Name / Version: PM Quote Original Message 1.3 <br /> <br />Description: Gives the user the option to quote the original message when replying to a PM. There is a checkbox to include the quote. Works similar to the way email works - helps to not get confused in alot of back and fourth PMs. Verified that this works with 6.3. <br /> <br />Working Under: UBB.Threads 6.2-6.3-6.4 <br /> <br />Mod Status: Beta <br /> <br />Any pre-requisites: none <br /> <br />Author(s): JoshPet <br /> <br />Date: 06/11/03 <br /> <br />Credits: maze and dimopoulos for suggesting it <br /> <br />Files Altered: mess_handler.php, mess_reply.php, mess_handler.tmpl, mess_reply.tmpl <br /> <br />New Files: none <br /> <br />Database Altered: none <br /> <br />Info/Instructions: <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /> <br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files. <br /> <br />


Attachments
84084-PMQuoteOrigMsg1.3.txt (133 downloads)



Edited by JoshPet (01/04/04 12:32 PM)
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#250175 - 08/13/03 06:45 PM Re: Beta-[6.2-6.3] PM Quote Original Message 1.3 [Re: Daine]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
I can't get this to work for me. I get this error when I click on "Reply to this message." This is the error I get:<br /><br />Parse error: parse error, unexpected $ in /home/laondal/public_html/foros/templates/default/mess_handler.tmpl on line 75<br /><br />The weird thing is there are only 74 lines in the entire file. I've attached the mess_handler.tmpl file.


Attachments
91871-mess_handler.tmpl (8 downloads)

_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#250176 - 08/13/03 09:12 PM Re: Beta-[6.2-6.3] PM Quote Original Message 1.3 [Re: luan]
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
Opened in UltraEdit and I actually see 75 lines, but line 75 is blank, which is after the ?><br /><br />Otherwise compared the code to my install and it's exactly the same. Could try double checking and deleting that line.

Top
#250177 - 09/13/03 08:39 PM Re: Beta-[6.2-6.3] PM Quote Original Message 1.3 [Re: ]
ST Offline
Junior Member

Registered: 08/03/03
Posts: 160
Is there a way to add the name of the sender in the quote area? <br /><br />Like the post quote name mod, so it syas something like<br />Quote: ST said... <br />and then the content<br />

Top
#250178 - 09/13/03 09:24 PM Re: Beta-[6.2-6.3] PM Quote Original Message 1.3 [Re: Brett_Northan]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Probably you'd have to rework things a bit.... when you are replying you're replying to a user number. Probably have to add a query somewhere to insert the name in to the quote stuff into the scripts.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#250179 - 01/04/04 11:35 AM Re: Beta-[6.2-6.3] PM Quote Original Message 1.3 [Re: Daine]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Hey Josh, does this one work under Threads 6.4?
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#250180 - 01/04/04 12:32 PM Re: Beta-[6.2-6.3] PM Quote Original Message 1.3 [Re: jacksonm99]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Yes, we are using it here, no problems. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#250181 - 04/29/04 03:02 AM Re: Beta-[6.2-6.3] PM Quote Original Message 1.3 [Re: Brett_Northan]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 439
Loc: SoCal
[]ST said: <br />Is there a way to add the name of the sender in the quote area? <br /> <br />Like the post quote name mod, so it syas something like <br />Quote: ST said... <br />and then the content <br /> [/] <br /> <br />Yes. It's really simple. (oops, forgot to mention it's mess_reply.php) <br /> <br /> [:"red"]Find:[/] <br />
Code:
 <br />// Grab the username of who we are sending this to <br />	$query = " <br />		SELECT U_Username <br />		FROM	 {$config['tbprefix']}Users <br />		WHERE  U_Number='$Sendto' <br />	"; <br />	$sth = $dbh -&gt; do_query($query); <br />	list($Sendtoname) = $dbh -&gt; fetch_array($sth); <br />
<br /> <br /> [:"red"]and move it above: [/] <br /> <br />
Code:
 <br />// #################################################################### <br />// preview_mess - Preview reply to this message <br />// #################################################################### <br />
<br /> <br />This will pull the query out of the preview, so it's shared by code outside that block (namely, where you want to know the username <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> ) <br /> <br />[:"red"]Then find (JoshPet's mod): [/] <br />
Code:
 <br />$Message .= "\n\n&lt;blockquote&gt;&lt;font class=\"small\"&gt;{$ubbt_lang['IN_REPLY']}:&lt;/font&gt;&lt;hr /&gt;&lt;br /&gt;"; <br />
<br /> <br />[:"red"]and replace with:[/] <br />
Code:
 <br />$Message .= "\n\n&lt;blockquote&gt;&lt;font class=\"small\"&gt;$Sendtoname sent:&lt;/font&gt;&lt;hr /&gt;&lt;br /&gt;"; <br />
<br /> <br />Note: this works fine on 6.4, btw.
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

Top
#250182 - 04/29/04 06:12 PM Re: Beta-[6.2-6.3-6.4] PM Quote Original Message 1.3 [Re: Daine]
Pilgrim Offline
Enthusiast

Registered: 06/17/00
Posts: 325
Loc: Canada
Josh, <br /> <br />Thanks for this great little hack. However, we would prefer to have the quote appear at the top of the reply rather than below the reply. Can this be done? <br /> <br />Edit: One other thing.... as it is now, the "Quote original PM" is checked by default. Can this be changed so it is NOT checked by default? <br /> <br />Jeff


Edited by Pilgrim (04/29/04 06:31 PM)

Top
#250183 - 04/30/04 02:11 AM Re: Beta-[6.2-6.3-6.4] PM Quote Original Message 1.3 [Re: Tachyon]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Make it not checked by default:<br />Look at the instructions:<br />
Code:
<br />&lt;!--Quote original message hack by JoshPet --&gt;<br />&lt;input type="checkbox" name="QuoteOrig" value="1" checked="checked" class="formboxes" /&gt;<br />I want to Quote the Original Message in my Reply<br />&lt;br /&gt;<br />&lt;br /&gt;<br />
<br /><br />change to:<br />
Code:
<br />&lt;!--Quote original message hack by JoshPet --&gt;<br />&lt;input type="checkbox" name="QuoteOrig" value="1" class="formboxes" /&gt;<br />I want to Quote the Original Message in my Reply<br />&lt;br /&gt;<br />&lt;br /&gt;<br />
<br /><br />Original Message on top:<br /><br />Change:<br />
Code:
	   if ($QuoteOrig) {<br />	      $Message .= "\n\n&lt;blockquote&gt;&lt;font class=\"small\"&gt;{$ubbt_lang['IN_REPLY']}:&lt;/font&gt;&lt;hr /&gt;&lt;br /&gt;";<br />	      $Message .= $OrigMessage;<br />	      $Message .= "&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;/blockquote&gt;";<br />	   } 
<br /><br />to<br /><br />
Code:
	   if ($QuoteOrig) {<br />	      $Message = "\n\n&lt;blockquote&gt;&lt;font class=\"small\"&gt;{$ubbt_lang['IN_REPLY']}:&lt;/font&gt;&lt;hr /&gt;&lt;br /&gt; . $OrigMessage . "&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;/blockquote&gt;" . $Message";<br />	     <br />	   } 
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#250184 - 04/30/04 02:18 PM Re: Beta-[6.2-6.3-6.4] PM Quote Original Message 1.3 [Re: -Fusion-]
Pilgrim Offline
Enthusiast

Registered: 06/17/00
Posts: 325
Loc: Canada
Astaran,<br /><br />Thanks for the help. The first part which unchecks the box by default works fine. But the second modification to put the "quote" at the top of the reply returns a parse error. Are you sure your coding is 100% correct? Not knowing myself, I have to rely upon your expertise. <img src="http://www.ubbdev.com/forum/images/graemlins/grin.gif" alt="" /><br /><br />This is what my section looks like before replacing it with your mod:<br /><br />
Code:
if ($QuoteOrig) {<br />	      $Message .= "\n\n&lt;blockquote&gt;&lt;font class=\"small\"&gt;$Sendtoname sent:&lt;/font&gt;&lt;hr /&gt;&lt;br /&gt;";<br />	      $Message .= $OrigMessage;<br />	      $Message .= "&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;/blockquote&gt;";<br />	   }
<br /><br />Jeff

Top
#250185 - 04/30/04 07:15 PM Re: Beta-[6.2-6.3-6.4] PM Quote Original Message 1.3 [Re: Tachyon]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Try this instead:<br /><br />
Code:
<br />   if ($QuoteOrig) {<br />	      $Message = "\n\n&lt;blockquote&gt;&lt;font class=\"small\"&gt;{$ubbt_lang['IN_REPLY']}:&lt;/font&gt;&lt;hr /&gt;&lt;br /&gt;" . $OrigMessage . "&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;/blockquote&gt;" . $Message;<br />	     <br />	   } <br />
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#250186 - 04/30/04 10:05 PM Re: Beta-[6.2-6.3-6.4] PM Quote Original Message 1.3 [Re: -Fusion-]
Pilgrim Offline
Enthusiast

Registered: 06/17/00
Posts: 325
Loc: Canada
Thanks.... this one works perfectly!! []http://www.the-highway.com/Smileys/boing.gif[/]

Top


Moderator:  Ian_W 
Top Posters Last 30 Days
AllenAyres 12
Gizmo 10
S7ARBVCK 2
Cambridge 1
Murphdog 1
MattUK 1
Kevin H 1
Who's Online
0 Registered (), 32 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
BeyondCompare v3.00
by blaaskaak
Yesterday at 02:46 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks