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
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 (10 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: 442
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.
_________________________

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: 326
Loc: NH, USA
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: 326
Loc: NH, USA
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: 326
Loc: NH, USA
Thanks.... this one works perfectly!! []http://www.the-highway.com/Smileys/boing.gif[/]

Top


Moderator:  Ian_W 
Who's Online
0 registered (), 23 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Today at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
Yesterday at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
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
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks