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.
WrĊith
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.
WrĊith
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="" />
MTO
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 = "
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!
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 />
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.)
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.
<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!
WrĊith
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.
WrĊith
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?
WrĊith
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.
AllenAyres
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="" />
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']}]";
WrĊith
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.
<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
WrĊith
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
Gardener
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.