By sgwealti on
The instructions for the BBcode formatting toolbar say:
3. Edit your theme to include the "modules/quick_reply.js" file on each page for
the formatting bar to work
What file do I edit and where do I put that line? That instruction is too vague for me to follow. Can I stick that line in anywhere. Does it have to be enclosed in some kind of tag or can I type it verbatim?
Comments
bbcode toolbar
I don't think step 3 is needed anymore. In the released version of bbcode_wysiwyg.module, it adds the quick_reply.js to page you need it on using:
drupal_set_html_head('<script type="text/javascript" src="modules/bbcode_wysiwyg/quick_reply.js"></script>')(which assumes you put the .js in a modules/bbcode_wysiwyg subdirectory)
At least for nodes. The function
bbcide_wysiwyg_nodeapiis the "_nodeapi" callback used for nodes to insert bbcode toolbar just above the text input form ("form pre").Unfortunately it is not so simple for comments - there is not yet similar callback. This is disussed other places like: http://drupal.org/node/13539 . I applied patch 9 from that post to my 4.6.3 (but changed "form" to "form post" and added a "form pre" callback up a few lines to the right place). Then I copied the bbcode_wysiwyg_nodeapi function into a new function called:
bbcode_wysiwyg_comment($op,$comment)(different function args, but same body)Anyway, it seems to work for me now... good luck.
(and it is really nice, thanks Pyro)
bbcode toolbar disappears for anonymous users
Thanks EPOIson for your explanation, I've got it work. But it remains one problem: the toolbar does not appear when posting as anonymous user. Is there a way to fix it?
just change this string in
just change this string in bbcode_wysiwyg.module
if ($user->uid && $form['#id'] == 'node-form') {to
if ($form['#id'] == 'node-form') {I think it must work
same problem
I have the same problem as the OP.
Installation
------------
1. Copy the bbcode_wysiwyg.module and quick_reply.js to the Drupal modules/ directory.
2. Go to the administration section, into "adminster > modules"
and enable the bbcode_wysiwyg module.
3. Edit your theme to include the "modules/quick_reply.js" file on each page for the formatting bar to work
I can't figure out how to do number 3 (I'm using Goofy theme). And If step 3 is not needed anymore. The bar still isn't working. It shows up on screen when trying to post a message, but is giving a javascript error whenever a button is clicked.
Anybody got this to work? How?
Thanks a lot in advance!
EDIT : Fixed it, just make sure you put your bbcode_wysiwyg files in a subdirectory in your module folder.
This doesn't seem to work
This doesn't seem to work with 4.7 yet, though I haven't done the step 3 yet (as the original poster, I'm not sure what exactly to add and where).
Am I missing something? Anyone has this working on Drupal 4.7?
Thanks alot
Daniel
In your theme's CSS file,
In your theme's CSS file, add this to the top:
@import url("/modules/bbcode_wysiwyg/quick_reply.js");At least, it seems to work for me. Wish it had a few more buttons though.
Anisa.
-----------------------------------------------------------
Kindness builds stronger bonds than necessity.
www.animecards.org - 16,000 card scans and counting!
-----------------------------------------------------------
perfect
thanks rivena, thats exactly what i needed to confirm.
worked perfectly!! and i agree, i wish it had a cpl of more options, but it still will make things easier for my site contributors.
hmm, edit. actually, all that did was make the format bar appear. the buttons dont do anything.
Is your browser javascript
Is your browser javascript enabled? Is the URL for the quick reply js file correct (you have it in a subfolder with that name?)
Anisa.
-----------------------------------------------------------
Kindness builds stronger bonds than necessity.
www.animecards.org - 16,000 card scans and counting!
-----------------------------------------------------------
yes, and yes. been working
yes, and yes.
been working on it , on and off for a cpl of hours, but the only thing i have determined is that bbcode input format will not work without the bbtoolbar, but the toolbar is non-functioning, but i can use bb tags.
im thinking i am going to have to disable and delete both those modules, and start again. i know i didnt install them incorrectly so im thinking it might be a compatability issue with something else..
btw, i visited ur site. how in the he|| do you keep it all organized!! good job
Thank you! ^.^ Keep what
Thank you! ^.^ Keep what organized? The now 18000 scans? It's not so bad really. I keep a file structure on my harddrive that looks pretty much like what's on the site. Each anime series/manga/manga compilation has a short code for it. I've started forgetting what the codes are, though, so I put text files in the folders with the proper name. Organization itself was never really a problem... making the site community oriented and user friendly has been really tough.
re: compatibility, I know the quicktags module sometimes does funny things with other modules, so that could be it.
Anisa.
-----------------------------------------------------------
Kindness builds stronger bonds than necessity.
www.animecards.org - 16,000 card scans and counting!
-----------------------------------------------------------