Edition toolbar
Posted by Nicolas
|
Edition toolbar November 11, 2008 01:16PM |
Registered: 17 years ago Posts: 10 |
Hi,
I've just installed Phorum, and adapted the default theme for my needs. I would like to add a edition toolbar like here on message writing page. I have enabled Editor tools, BBcode et Smileys mods, but no results. How to do this ?
Thanks in anticipation (and sorry for my English faults),
Nicosmos
I've just installed Phorum, and adapted the default theme for my needs. I would like to add a edition toolbar like here on message writing page. I have enabled Editor tools, BBcode et Smileys mods, but no results. How to do this ?
Thanks in anticipation (and sorry for my English faults),
Nicosmos
|
Re: Edition toolbar November 11, 2008 01:59PM |
Admin Registered: 25 years ago Posts: 4,506 |
If you have enabled Editor Tools and BBCode, then you should see it. It is possible that when editing the template, you changed the name or structure of the post form in a way that the modules do not recognize.
Brian - Personal Blog
|
Re: Edition toolbar November 12, 2008 09:09AM |
Registered: 17 years ago Posts: 10 |
I believe no ... I've only modified the style of #forum and #footerplug in CSS, and move page info, user info and search into a new div. Here my forum : [goo.fr.free.fr]. Maybe it's because my template directory isn't "emerald" ?
|
Re: Edition toolbar November 12, 2008 10:18AM |
Registered: 21 years ago Posts: 340 |
|
Re: Edition toolbar November 12, 2008 10:28AM |
Registered: 19 years ago Posts: 1,301 |
I am seeing this error in the javascript.php file:
Warning: Cannot modify header information - headers already sent by (output started at /mnt/102/sda/6/3/goo.fr/forum/mods/spamhurdles/defaults.php:40)
It looks like some error related to the Spam Hurdles module. Try disabling that module and if the tools show up, that is the place to look (at line 40 of the defaults.php if I read your error correctly.)
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Warning: Cannot modify header information - headers already sent by (output started at /mnt/102/sda/6/3/goo.fr/forum/mods/spamhurdles/defaults.php:40)
It looks like some error related to the Spam Hurdles module. Try disabling that module and if the tools show up, that is the place to look (at line 40 of the defaults.php if I read your error correctly.)
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
|
Re: Edition toolbar November 12, 2008 10:39AM |
Admin Registered: 22 years ago Posts: 8,532 |
They should wrap, so that's not a problem :-)
@Nicosmos: try editing mods/spamhurdles/defaults.php. At the bottom you will find:
[code="php"]
foreach ($search as $path) {
if (file_exists("$path/flite")) {
[/code]
Change that to:
[code="php"]
foreach ($search as $path) {
if (@file_exists("$path/flite")) {
[/code]
(so add a "@" in front of "file_exists")
What also should help in this case (but I'd love to hear whether above solution works or not), is to go to the spam hurdles settings screen and saving the settings once (no changes required in the settings themselves).
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
@Nicosmos: try editing mods/spamhurdles/defaults.php. At the bottom you will find:
[code="php"]
foreach ($search as $path) {
if (file_exists("$path/flite")) {
[/code]
Change that to:
[code="php"]
foreach ($search as $path) {
if (@file_exists("$path/flite")) {
[/code]
(so add a "@" in front of "file_exists")
What also should help in this case (but I'd love to hear whether above solution works or not), is to go to the spam hurdles settings screen and saving the settings once (no changes required in the settings themselves).
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Edition toolbar November 12, 2008 10:51AM |
Registered: 17 years ago Posts: 10 |
Quote
One thing that you can try is to temporarily use the stock emerald template for one of your forums (setting the template from the administration page for one of your forums)
Yes ... When I use Emerald, The toolbar is here and works ! I've only edited a bit header.tpl, css.tpl, config.tpl and footer.tpl ...
Quote
It looks like some error related to the Spam Hurdles module. Try disabling that module and if the tools show up, that is the place to look (at line 40 of the defaults.php if I read your error correctly.)
Quote
@Nicosmos: try editing mods/spamhurdles/defaults.php.
Thanks, but Spam Hurdles is disabled ...
Edit> Hhm, the problem seems to become from French. When I set the forum in English, the bar appears. And when I choose French, it disappears ... I don't know how to correct that.
Edited 2 time(s). Last edit at 11/12/2008 11:00AM by Nicosmos.
|
Re: Edition toolbar November 12, 2008 11:18AM |
Registered: 19 years ago Posts: 1,301 |
I am still seeing the error from the spam hurdles mod. Could you:
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
- Implement Maurice's fix
- Enable the spam hurdles mod, then disable it again to make sure no hooks are still flagged.
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
|
Re: Edition toolbar November 12, 2008 11:35AM |
Registered: 17 years ago Posts: 10 |
|
Re: Edition toolbar November 12, 2008 11:43AM |
Registered: 19 years ago Posts: 1,301 |
Ok, lets try something a little more extreme and remove the spamhurdles folder from your server.
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
|
Re: Edition toolbar November 12, 2008 11:53AM |
Registered: 17 years ago Posts: 10 |
No change ... but the problem seems to become really from the French version of something (see my Edit higher) ...
And if I delete french.php files of bbcode, edition toolbar and smileys mods, also no change. A encode/charset problem ? I believe all is in utf-8.
Edited 1 time(s). Last edit at 11/12/2008 11:57AM by Nicosmos.
And if I delete french.php files of bbcode, edition toolbar and smileys mods, also no change. A encode/charset problem ? I believe all is in utf-8.
Edited 1 time(s). Last edit at 11/12/2008 11:57AM by Nicosmos.
|
Re: Edition toolbar November 12, 2008 01:32PM |
Admin Registered: 22 years ago Posts: 8,532 |
I think I found the problem. It's the smileys module that is generating the warning for you. Please delete the first line from mods/smileys/smileys_editor_tools.js.php. This line is not needed anymore in the code.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
<?php header("Content-Type: text/javascript") ?>
///////////////////////////////////////////////////////////////////////////////
// //
// Copyright (C) 2007 Phorum Development Team //
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Edition toolbar November 12, 2008 02:30PM |
Registered: 17 years ago Posts: 10 |
|
Re: Edition toolbar November 12, 2008 05:06PM |
Admin Registered: 22 years ago Posts: 8,532 |
No problem, you're welcome. The fix will be in the next release of Phorum too, so for future upgrades, you don't need to apply this hack yourself anymore.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Sorry, only registered users may post in this forum.