php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#218169 - 06/07/02 01:50 PM [6.0] AutoQuote v2.0
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA

   [6.0] AutoQuote v2.0 to Del.icio.us Add to del.icio.us
  Digg [6.0] AutoQuote v2.0 Digg it
Name: AutoQuote v2.0<br /><br />Description: Allow your users to reply to a message while quoting someone. Lets the user just click on a link/icon and it will automatically put the tags around the body of the message that they want to quote. <br /><br />Updates: Moved all HTML into templates. Modified code to be XHTML compliant.<br /><br />Example: http://www.terranbbs.com/testboard/ubbthreads.php (Username: test / Password: test) <br /><br />Link: http://www.terranbbs.com/ubb/mods/6.0/AutoQuote.txt <br /><br />Special Thanks: AllenAyers, poil, and razvan for getting me started, and JustDave for helping me with the bug fixes.

Top
#218170 - 06/07/02 01:53 PM Re: [6.0] AutoQuote v2.0 [Re: SDS]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Just a note... I believe the <hr> tags need to be <hr /> to be xhtml compliant too. <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#218171 - 06/07/02 02:09 PM Re: [6.0] AutoQuote v2.0 [Re: sjsaunders]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
Yep, missed that one. I've fixed the instructions file.

Top
#218172 - 06/07/02 06:07 PM Re: [6.0] AutoQuote v2.0 [Re: SDS]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
good job. But what I don't understand is why this isn't a standard feature for threads?

Top
#218173 - 06/07/02 06:09 PM Re: [6.0] AutoQuote v2.0 [Re: palmen]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
Believe me, that's a question I've been asking for quite some time. Especially since it's a feature in UBB.classic<br /><br />*shrug*<br /><br />Only Scream can answer that one.

Top
#218174 - 06/09/02 02:54 PM Re: [6.0] AutoQuote v2.0 [Re: SDS]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2574
Loc: England
Thanks for this. Works great...<br /><br />Ian.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#218175 - 06/09/02 11:06 PM Re: [6.0] AutoQuote v2.0 [Re: Gorlum]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25432
Loc: Texas
<blockquote><font class="small">Writes canvey:</font><hr> Thanks for this. Works great...<br /><br />Ian. <hr /></blockquote><br /><br />I agree <img src="/forum/images/icons/tongue.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#218176 - 06/09/02 11:38 PM Re: [6.0] AutoQuote v2.0 [Re: SurfMinister]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
Glad 'ya both like it. <img src="/forum/images/icons/smile.gif" alt="" /> One of my few actual contributions to the software. <img src="/forum/images/icons/laugh.gif" alt="" />

Top
#218177 - 06/10/02 10:03 AM Re: [6.0] AutoQuote v2.0 [Re: SDS]
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
Originally Posted By: WrĊith
Name: AutoQuote v2.0<br /><br />Description: Allow your users to reply to a message while quoting someone. Lets the user just click on a link/icon and it will automatically put the tags around the body of the message that they want to quote.
<br /><br />As you can see, there is a problem with it as it is right now: Its not language dependent.<br />You should be using [:"red"]{$ubbt_lang['TEXT_QUOTE']}[/] instead of hardcoded "<br /> [:"blue"] quote [/] .<br /><br />For example, though I havent tested it, I think: <br /> [:"blue"] $quote = "
Originally Posted By: $ResUsername
$Body2
"; [/] <br />should be changed to:<br /> [:"red"] $quote = "[{$ubbt_lang['TEXT_QUOTE']}=$ResUsername] $Body2 [/{$ubbt_lang['TEXT_QUOTE']}]"; [/] <br /><br />
_________________________
Mateo Byler
CruceDeCaminos.com

Top
#218178 - 06/10/02 10:21 AM Re: [6.0] AutoQuote v2.0 [Re: D_Wolfwood]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
That should work. I'll test it out later this afternoon when I'm at home and I have access to my computer.

Top
#218179 - 06/11/02 12:16 AM Re: [6.0] AutoQuote v2.0 [Re: D_Wolfwood]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
Seems to work just fine. I've updated the instructions accordingly.

Top
#218180 - 06/12/02 08:32 PM Re: [6.0] AutoQuote v2.0 [Re: SDS]
stanmo Offline
Junior Member

Registered: 02/27/02
Posts: 23
Hi,<br /><br />I've obtained the autoquote from http://www.terranbbs.com/ubb/mods/6.0/AutoQuote.txt. However, there seems to be a problem. In part seven, you're supposed to open ubbt.inc.php and edit the ///quote markup. However, I can't find the exact lines in my ubbt.inc.php. Could anyone please help me? Anyone else have this problem? Thanks!

Top
#218181 - 06/12/02 10:00 PM Re: [6.0] AutoQuote v2.0 [Re: firdaus]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25432
Loc: Texas
Unless you are using the v6 final code, your lines will be different, they changed from the last beta to the final coding.
_________________________
- Allen wavey
- What Drives You?

Top
#218182 - 06/12/02 10:33 PM Re: [6.0] AutoQuote v2.0 [Re: SurfMinister]
stanmo Offline
Junior Member

Registered: 02/27/02
Posts: 23
umm.. yeah, i'm using the final code... dunno why!

Top
#218183 - 06/12/02 11:02 PM Re: [6.0] AutoQuote v2.0 [Re: firdaus]
stanmo Offline
Junior Member

Registered: 02/27/02
Posts: 23
fixed that..<br />what does this supposed to mean?<br /><br />Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/www/e46toronto/forum/newreply.php on line 253<br />

Top
#218184 - 06/12/02 11:13 PM Re: [6.0] AutoQuote v2.0 [Re: firdaus]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
Same problem here. My problem is that I installed the MarkUpHack, and that has you change the whole section from ubbt.inc.php that the autoquote hack also asks you to change. (That's why the lines aren't there.)
_________________________
[:"red"]Lisa[/]

Top
#218185 - 06/12/02 11:15 PM Re: [6.0] AutoQuote v2.0 [Re: JacquiL]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
I have both installed and haven't run into any problems. Can you show me what you put into your newreply.php at that line location?

Top
#218186 - 06/12/02 11:42 PM Re: [6.0] AutoQuote v2.0 [Re: SDS]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
<img src="/forum/images/icons/blush.gif" alt="" /> I was slow hitting the continue button after I typed that. Sorry! I actually meant I had the previous problem. I don't know where to put in the "Quote Markup" stuff because those lines are no longer in my ubbt.inc.php.
_________________________
[:"red"]Lisa[/]

Top
#218187 - 06/13/02 01:00 PM Re: [6.0] AutoQuote v2.0 [Re: JacquiL]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
In a clean ubbt.inc.php file the quote markup sections are found beginning at lines 569 and 661.

Top
#218188 - 06/13/02 04:47 PM Re: [6.0] AutoQuote v2.0 [Re: SDS]
stanmo Offline
Junior Member

Registered: 02/27/02
Posts: 23
<blockquote><font class="small">Writes WrĊith:</font><hr> In a clean ubbt.inc.php file the quote markup sections are found beginning at lines 569 and 661. <hr /></blockquote><br /><br />Could you please tell me how you added those lines to ubbt.inc.php when you have MarkUpHack installed? Thanks!

Top
#218189 - 06/13/02 04:53 PM Re: [6.0] AutoQuote v2.0 [Re: firdaus]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
I have the MarkAllRead hack installed that only works on an entire board basis. I haven't installed the second revision that will mark each forum as read individually. I'll take a look though and see If I can spot where they can be reconciled.

Top
#218190 - 06/13/02 05:03 PM Re: [6.0] AutoQuote v2.0 [Re: firdaus]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
<blockquote><font class="small">Writes stanmo:</font><hr>Could you please tell me how you added those lines to ubbt.inc.php when you have MarkUpHack installed? Thanks! <hr /></blockquote>Okay, maybe I'm missing something here, but I don't see where ubbt.inc.php is modified as part of the MarkAllRead hack. Either with v6.0 or v6.1. I'm not sure if I'm missing something here or not, but the lines that I instruct you to replace are there in the clean version of UBB.threads and I don't see anywhere in either v6.0 or v6.1 of the MarkAllRead hack that you're instructed to remove them or modify them.<br /><br />Can you explain a little bit about the steps you've taken so far?

Top
#218191 - 06/13/02 05:40 PM Re: [6.0] AutoQuote v2.0 [Re: SDS]
stanmo Offline
Junior Member

Registered: 02/27/02
Posts: 23
Oh, actually Lisa and I are talking about MarkUpHack not MarkAllRead! hehehe..

Top
#218192 - 06/13/02 05:54 PM Re: [6.0] AutoQuote v2.0 [Re: firdaus]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
Okay, that makes better sense. LOL, I really need to stop copying JustDave and quit staying up until 3:00 AM. It's starting to affect my brain. <img src="/forum/images/icons/laugh.gif" alt="" /><br /><br />Okay, what I would do is look for the following line :<br /><br /><pre><font class="small">code:</font><hr> function do_markup($Body="") {</pre><hr><br />Add the lines from Part Seven - Step 2b after that. <br /><br />Then, look for this line :<br /><br /><pre><font class="small">code:</font><hr> function undo_markup($Body="") {</pre><hr><br />Add the lines from Part Seven - Step 3b after that.

Top
#218193 - 06/13/02 07:21 PM Re: [6.0] AutoQuote v2.0 [Re: JacquiL]
stanmo Offline
Junior Member

Registered: 02/27/02
Posts: 23
Can you please tell me how should I fix this? <br /> <br />Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/www/e46toronto/forum/newreply.php on line 253 <br /> <br />The first line is my 250... <br /> <br /> <pre><font class="small">code:</font><hr> // ------------------------------------ <br />// No options, we use the board default <br /> else { <br /> if ( ($HTML == "Off") && ($Markup == "On") ) { <br /> $markupselect = "<input type=\"hidden\" name=\"convert\" value=\"markup\" />"; <br /> } <br /> elseif ( ($HTML == "On") && ($Markup == "On") ) { <br /> $markupselect ="<input type=\"hidden\" name=\"convert\" value=\"both\" />"; <br /> } <br /> elseif ( ($HTML == "Off") && ($Markup == "Off") ) { <br /> $markupselect ="<input type=\"hidden\" name=\"convert\" value=\"none\" />"; <br /> } <br /> else { <br /> $markupselect = "<input type=\"hidden\" name=\"convert\" value=\"html\" />"; <br /> } <br /> } <br /> <br /> if ($quote) { <br /> $Body2 = ereg_replace(""","\"",$Body); <br /> $Body2 = ereg_replace("<br />","\n",$Body2); <br /> $Body2 = $html -> undo_markup($Body2); <br /> $quote = "[{$ubbt_lang['TEXT_QUOTE']}=$ResUsername]$Body2[/{$ubbt_lang['TEXT_QUOTE']}]"; <br /> } <br /> <br /> if ($postername != $ubbt_lang['ANON_TEXT']) { <br /> $emailselect = " <br /> <input type=\"checkbox\" name=\"mail\" value=\"1\" $Eselected class=\"formboxes\" /> <br /> {$ubbt_lang['DO_EMAIL']} <br /> <br /><br /> <br /> </pre><hr> <br /> <br />Thank you again!!!


Edited by stanmo (06/13/02 07:26 PM)

Top
#218194 - 06/17/02 09:50 PM Re: [6.0] AutoQuote v2.0 [Re: SDS]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25432
Loc: Texas
<blockquote><font class="small">posted by WrĊith:</font><hr /> Okay, that makes better sense. LOL, I really need to stop copying JustDave and quit staying up until 3:00 AM. It's starting to affect my brain. <img src="/forum/images/icons/laugh.gif" alt="" /><br /><br /><hr /></blockquote><br /><br />yes, that will do it <img src="/forum/images/icons/crazy.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#218195 - 06/18/02 04:57 PM Re: [6.0] AutoQuote v2.0 [Re: SurfMinister]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
I am now having the same problem stano is having. After going to 6.0.1 and re-applying the hack its broken. Getting a parse error for this:<br /><br />$quote = "[{$ubbt_lang['TEXT_QUOTE']}=$ResUsername]$Body2[/{$ubbt_lang['TEXT_QUOTE']}]";

Top
#218196 - 06/18/02 05:19 PM Re: [6.0] AutoQuote v2.0 [Re: palmen]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
Weird. I upgraded to 6.0.1 without any problems. There isn't anything in that line that would be causing a parse error that I can see. I'll look into it some more and see if I can come up with anything.

Top
#218197 - 06/19/02 04:00 AM Re: [6.0] AutoQuote v2.0 [Re: palmen]
Goshik Offline
User

Registered: 03/28/01
Posts: 44
<blockquote><font class="small">posted by msula:</font><hr /> <br /><br />$quote = "[{$ubbt_lang['TEXT_QUOTE']}=$ResUsername]$Body2[/{$ubbt_lang['TEXT_QUOTE']}]"; <hr /></blockquote><br /><br />Try to put a blank before and after $Body2

Top
#218198 - 06/19/02 02:03 PM Re: [6.0] AutoQuote v2.0 [Re: xBlacky33]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
Ack, you're right. I didn't even notice that. I ran into the same problem when I first did it and I forgot to update the instructions. I'll fix them when I get home to include the spaces around $Body2

Top
#218199 - 06/19/02 02:09 PM Re: [6.0] AutoQuote v2.0 [Re: firdaus]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Just thought I'd make a note that the conflicting lines have been sorted out in the new version of my MarkupHack. The markup won't be exactly the same, but it should be adequate I think.<br /><br />The new hack can be found in this thread.
_________________________
/Gardener | Complete list of my mods

Top
#218200 - 06/20/02 09:08 PM Re: [6.0] AutoQuote v2.0 [Re: SDS]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
Instructions have been updated to reflect correct spacing. They can be downloaded at the link in the first post.

Top
#218201 - 06/22/02 11:29 PM Re: [6.0] AutoQuote v2.0 [Re: SDS]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
This mod has been moved to the finished forum at this location. Please close this thread.

Top
Page 1 of 2 1 2 >