Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Quote-Type
Not sure if this would be an addon or just a CSS modification, but I'm looking for assistance to do this. Basically, I use one of my installs as a client manager. Ideally, all of our clients would use Vanilla to send in work orders or troubleshooting requests, etc. Unfortunately, not all do or want to because they are a bit technologically limited/knowledgable. So, clients will still call or email with their requests.
BUT - We committed our staff to use Vanilla to keep track of all work order requests, etc. As it stands right now, if a client calls, we'll use BBCode, hit the quote button, and then insert the info that they provided either by copy/pasting the email or transcribing the main notes from the phone call. I'd like to organize it a bit better so that we aren't just quoting, as sometimes we also use the quote feature to reference to something also written in that specific discussion.
It gets confusing, but without the Annotation extension out yet, I'm wondering if this would be an easier add-on to create and it would definitely help me and my situation. This is what I'm thinking.
Basically, when you go to enter in a comment, you'd hit quote, and put the transcription or email into the quote area. But, you'd add another item to the quote tag:
When you do this, it would call to a CSS file, which would place the specific icon and enter in text which would be pulled from the dictionary (that is created in the default.php). Like this:
It would look exactly like the quote feature, except that it would say "Call From:" or "Email From:" and in some cases, "Notes from Meeting With:"
How difficult would this be to create? Any takers? What I see is that it would be a small CSS file that includes the types and their icons, a default.php that would add an effect to the BBCode extension and would build a few definitions.
BUT - We committed our staff to use Vanilla to keep track of all work order requests, etc. As it stands right now, if a client calls, we'll use BBCode, hit the quote button, and then insert the info that they provided either by copy/pasting the email or transcribing the main notes from the phone call. I'd like to organize it a bit better so that we aren't just quoting, as sometimes we also use the quote feature to reference to something also written in that specific discussion.
It gets confusing, but without the Annotation extension out yet, I'm wondering if this would be an easier add-on to create and it would definitely help me and my situation. This is what I'm thinking.
Basically, when you go to enter in a comment, you'd hit quote, and put the transcription or email into the quote area. But, you'd add another item to the quote tag:
When you do this, it would call to a CSS file, which would place the specific icon and enter in text which would be pulled from the dictionary (that is created in the default.php). Like this:
It would look exactly like the quote feature, except that it would say "Call From:" or "Email From:" and in some cases, "Notes from Meeting With:"
How difficult would this be to create? Any takers? What I see is that it would be a small CSS file that includes the types and their icons, a default.php that would add an effect to the BBCode extension and would build a few definitions.
0
This discussion has been closed.
Comments
As this is really extending the original parser, an additional extension would make the most sense in my eyes.
Thanks for the speedy replies, both of you.
in the BBCodeParser.php, either comment out or delete lines 140-143 ('quote' array index), change line 71 of default.php ($String = $parser->qparse($String);) to
$String = bbcode_quote($parser->qparse($String));
and then add in what I previously posted between the comment and class BetterBBCode... of default.php.<?php /* Extension Name: Better BB Code Extension Url: http://lussumo.com/community/discussion/2161 Description: A BBCode-to-HTML conversion tool for discussion comments Version: 1.0 Author: Joel Bernstein Author Url: http://pong.uwstout.edu/ */ require_once('BBCodeParser.php'); class BetterBBCodeFormatter extends StringFormatter { function Parse($String, $Object, $FormatPurpose) { $parser = new HTML_BBCodeParser(); if ($FormatPurpose == FORMAT_STRING_FOR_DISPLAY) { $String = $this->ProtectString($String); return $parser->qparse($String); } else return $String; } function ProtectString ($String) { $String = str_replace("<", "<", $String); $String = str_replace("\r\n", "<br />", $String); return $String; } } // Instantiate the bbcode object and add it to the string manipulation methods $BetterBBCodeFormatter = $Context->ObjectFactory->NewObject($Context, "BetterBBCodeFormatter"); $Context->StringManipulator->AddManipulator("BBCode", $BetterBBCodeFormatter); ?>
There are only 39 lines, and the line you said to change isn't in there. So I changed something that was similar and that caused it to not show anything. This is what I changed:{ $String = $this->ProtectString($String); return $parser->qparse($String); }
to{ $String = $this->ProtectString($String); return bbcode_quote($parser->qparse($String)); }
That obviously doesn't work. Am I working on the wrong file? I think I am.but yes, the line you changed is correct, now you need to add the code I posted above somewhere between the require_once('BBCodeParser.php'); and class BetterBBCodeFormatter ...
#Comments .CommentBody blockquote .Email { background-image: url(images/icon_email.jpg); background-repeat: no-repeat; padding-left: 25px }
Its not working though. Should I be calling for blockquote's email class differently? It doesn't seem to be effecting the blockquote at all.