UBB.Dev
Posted By: WrÅith [6.0] AutoQuote v2.0 - 06/07/2002 8:50 PM
Name: AutoQuote v2.0

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.

Updates: Moved all HTML into templates. Modified code to be XHTML compliant.

Example: http://www.terranbbs.com/testboard/ubbthreads.php (Username: test / Password: test)

Link: http://www.terranbbs.com/ubb/mods/6.0/AutoQuote.txt

Special Thanks: AllenAyers, poil, and razvan for getting me started, and JustDave for helping me with the bug fixes.
Posted By: JustDave Re: [6.0] AutoQuote v2.0 - 06/07/2002 8:53 PM
Just a note... I believe the <hr> tags need to be <hr /> to be xhtml compliant too.
Posted By: WrÅith Re: [6.0] AutoQuote v2.0 - 06/07/2002 9:09 PM
Yep, missed that one. I've fixed the instructions file.
Posted By: msula Re: [6.0] AutoQuote v2.0 - 06/08/2002 1:07 AM
good job. But what I don't understand is why this isn't a standard feature for threads?
Posted By: WrÅith Re: [6.0] AutoQuote v2.0 - 06/08/2002 1:09 AM
Believe me, that's a question I've been asking for quite some time. Especially since it's a feature in UBB.classic

*shrug*

Only Scream can answer that one.
Posted By: Ian_W Re: [6.0] AutoQuote v2.0 - 06/09/2002 9:54 PM
Thanks for this. Works great...

Ian.
Posted By: AllenAyres Re: [6.0] AutoQuote v2.0 - 06/10/2002 6:06 AM
Writes canvey:
Thanks for this. Works great...

Ian.


I agree
Posted By: WrÅith Re: [6.0] AutoQuote v2.0 - 06/10/2002 6:38 AM
Glad 'ya both like it. One of my few actual contributions to the software.
Posted By: MTO Re: [6.0] AutoQuote v2.0 - 06/10/2002 5:03 PM
Originally Posted by WrÅith
Name: AutoQuote v2.0

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.


As you can see, there is a problem with it as it is right now: Its not language dependent.
You should be using [:"red"]{$ubbt_lang['TEXT_QUOTE']}[/] instead of hardcoded "
[:"blue"] quote [/] .

For example, though I havent tested it, I think:
[:"blue"] $quote = "
Originally Posted by $ResUsername
$Body2
"; [/]
should be changed to:
[:"red"] $quote = "[{$ubbt_lang['TEXT_QUOTE']}=$ResUsername] $Body2 [/{$ubbt_lang['TEXT_QUOTE']}]"; [/]

Posted By: WrÅith Re: [6.0] AutoQuote v2.0 - 06/10/2002 5:21 PM
That should work. I'll test it out later this afternoon when I'm at home and I have access to my computer.
Posted By: WrÅith Re: [6.0] AutoQuote v2.0 - 06/11/2002 7:16 AM
Seems to work just fine. I've updated the instructions accordingly.
Posted By: stanmo Re: [6.0] AutoQuote v2.0 - 06/13/2002 3:32 AM
Hi,

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!
Posted By: AllenAyres Re: [6.0] AutoQuote v2.0 - 06/13/2002 5:00 AM
Unless you are using the v6 final code, your lines will be different, they changed from the last beta to the final coding.
Posted By: stanmo Re: [6.0] AutoQuote v2.0 - 06/13/2002 5:33 AM
umm.. yeah, i'm using the final code... dunno why!
Posted By: stanmo Re: [6.0] AutoQuote v2.0 - 06/13/2002 6:02 AM
fixed that..
what does this supposed to mean?

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/www/e46toronto/forum/newreply.php on line 253
Posted By: Lisa_P Re: [6.0] AutoQuote v2.0 - 06/13/2002 6:13 AM
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.)
Posted By: WrÅith Re: [6.0] AutoQuote v2.0 - 06/13/2002 6:15 AM
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?
Posted By: Lisa_P Re: [6.0] AutoQuote v2.0 - 06/13/2002 6:42 AM
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.
Posted By: WrÅith Re: [6.0] AutoQuote v2.0 - 06/13/2002 8:00 PM
In a clean ubbt.inc.php file the quote markup sections are found beginning at lines 569 and 661.
Posted By: stanmo Re: [6.0] AutoQuote v2.0 - 06/13/2002 11:47 PM
Writes WrÅith:
In a clean ubbt.inc.php file the quote markup sections are found beginning at lines 569 and 661.


Could you please tell me how you added those lines to ubbt.inc.php when you have MarkUpHack installed? Thanks!
Posted By: WrÅith Re: [6.0] AutoQuote v2.0 - 06/13/2002 11:53 PM
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.
Posted By: WrÅith Re: [6.0] AutoQuote v2.0 - 06/14/2002 12:03 AM
Writes stanmo:
Could you please tell me how you added those lines to ubbt.inc.php when you have MarkUpHack installed? Thanks!
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.

Can you explain a little bit about the steps you've taken so far?
Posted By: stanmo Re: [6.0] AutoQuote v2.0 - 06/14/2002 12:40 AM
Oh, actually Lisa and I are talking about MarkUpHack not MarkAllRead! hehehe..
Posted By: WrÅith Re: [6.0] AutoQuote v2.0 - 06/14/2002 12:54 AM
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.

Okay, what I would do is look for the following line :

code:
function do_markup($Body="") {


Add the lines from Part Seven - Step 2b after that.

Then, look for this line :

code:
function undo_markup($Body="") {


Add the lines from Part Seven - Step 3b after that.
Posted By: stanmo Re: [6.0] AutoQuote v2.0 - 06/14/2002 2:21 AM
Can you please tell me how should I fix this?

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/www/e46toronto/forum/newreply.php on line 253

The first line is my 250...

code:
// ------------------------------------
// No options, we use the board default
else {
if ( ($HTML == "Off") && ($Markup == "On") ) {
$markupselect = "<input type="hidden" name="convert" value="markup" />";
}
elseif ( ($HTML == "On") && ($Markup == "On") ) {
$markupselect ="<input type="hidden" name="convert" value="both" />";
}
elseif ( ($HTML == "Off") && ($Markup == "Off") ) {
$markupselect ="<input type="hidden" name="convert" value="none" />";
}
else {
$markupselect = "<input type="hidden" name="convert" value="html" />";
}
}

if ($quote) {
$Body2 = ereg_replace(""",""",$Body);
$Body2 = ereg_replace("<br />","\n",$Body2);
$Body2 = $html -> undo_markup($Body2);
$quote = "[{$ubbt_lang['TEXT_QUOTE']}=$ResUsername]$Body2[/{$ubbt_lang['TEXT_QUOTE']}]";
}

if ($postername != $ubbt_lang['ANON_TEXT']) {
$emailselect = "
<input type="checkbox" name="mail" value="1" $Eselected class="formboxes" />
{$ubbt_lang['DO_EMAIL']}
<br /><br />



Thank you again!!!
Posted By: AllenAyres Re: [6.0] AutoQuote v2.0 - 06/18/2002 4:50 AM
posted by WrÅith:
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.




yes, that will do it
Posted By: msula Re: [6.0] AutoQuote v2.0 - 06/18/2002 11:57 PM
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:

$quote = "[{$ubbt_lang['TEXT_QUOTE']}=$ResUsername]$Body2[/{$ubbt_lang['TEXT_QUOTE']}]";
Posted By: WrÅith Re: [6.0] AutoQuote v2.0 - 06/19/2002 12:19 AM
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.
Posted By: Goshik Re: [6.0] AutoQuote v2.0 - 06/19/2002 11:00 AM
posted by msula:


$quote = "[{$ubbt_lang['TEXT_QUOTE']}=$ResUsername]$Body2[/{$ubbt_lang['TEXT_QUOTE']}]";


Try to put a blank before and after $Body2
Posted By: WrÅith Re: [6.0] AutoQuote v2.0 - 06/19/2002 9:03 PM
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
Posted By: Gardener Re: [6.0] AutoQuote v2.0 - 06/19/2002 9:09 PM
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.

The new hack can be found in this thread.
Posted By: WrÅith Re: [6.0] AutoQuote v2.0 - 06/21/2002 4:08 AM
Instructions have been updated to reflect correct spacing. They can be downloaded at the link in the first post.
Posted By: WrÅith Re: [6.0] AutoQuote v2.0 - 06/23/2002 6:29 AM
This mod has been moved to the finished forum at this location. Please close this thread.
© UBB.Developers