|
Feeds
- Downloads
- FAQ
- News
- Tutorials
|
|
|
View previous topic :: View next topic |
Author |
Message |
zeromechanic webmaster
Joined: Mar 12, 2006 Posts: 9 Location: Netherlands
|
Posted: Mon Apr 17, 2006 3:27 pm Post subject: WYSIWYG in phpnuke PHPBB forum |
|
|
How to enable the editor for the forums in phpnuke.
tried several things, but not working.(adding to template file, adding in the assign vars).
Got it showing up, but not in the right place.
it shows up above the posting form.
please some advice. |
|
Back to top |
|
|
kguske Site Admin
Joined: May 12, 2005 Posts: 876
|
Posted: Mon Apr 17, 2006 5:38 pm Post subject: Re: WYSIWYG in phpnuke PHPBB forum |
|
|
It's not advisable to try this in the forums, since the forums use bbcode, rather than HTML. The changes to support this would be pretty extensive. |
|
Back to top |
|
|
zeromechanic
|
Posted: Fri Apr 21, 2006 2:15 pm Post subject: Re: WYSIWYG in phpnuke PHPBB forum |
|
|
thnx for reply,
to bad, like the editor. |
|
Back to top |
|
|
montego webmaster
Joined: Dec 26, 2005 Posts: 254
|
Posted: Sun Apr 30, 2006 1:39 pm Post subject: Re: WYSIWYG in phpnuke PHPBB forum |
|
|
zeromechanic, you would have this same issue with any editor. phpBB is not WYSIWYG "editor friendly". |
|
Back to top |
|
|
Aseitz webmaster
Joined: Jun 28, 2006 Posts: 26 Location: Portland, Or
|
Posted: Wed Jun 28, 2006 11:07 am Post subject: Re: WYSIWYG in phpnuke PHPBB forum |
|
|
Why hasn't anyone made a bbcode capable wysiwyg editor? |
|
Back to top |
|
|
kguske
|
Posted: Wed Jun 28, 2006 2:48 pm Post subject: Re: WYSIWYG in phpnuke PHPBB forum |
|
|
I've seen some efforts to do that for certain modules, but HTML is much more universal (i.e. you can paste from other websides, Word documents, etc.). Can't do that with bbcode, which is also much more limited than HTML. |
|
Back to top |
|
|
Aseitz
|
Posted: Wed Jun 28, 2006 4:36 pm Post subject: Re: WYSIWYG in phpnuke PHPBB forum |
|
|
kguske wrote: | I've seen some efforts to do that for certain modules, but HTML is much more universal (i.e. you can paste from other websides, Word documents, etc.). Can't do that with bbcode, which is also much more limited than HTML. |
right right, it just seems to me that a wysiwyg editor ought to be able to preform multiple types of "languages" and additionaly it ought to manipulate css to create fonts... or atleast that's my 2 cents
-- edit --
Ok ... so it does manupulate css to make fonts ... |
|
Back to top |
|
|
sdmeier Newbie
Joined: Mar 23, 2006 Posts: 2
|
Posted: Fri Jul 21, 2006 11:56 pm Post subject: Re: WYSIWYG in phpnuke PHPBB forum |
|
|
I would like to add this to the newsletter, messages and any other Mod that only Admins have access to.
I am getting this error
Code:Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /homepages/14/d121901235/htdocs/digi/admin/modules/newsletter.php on line 63
|
I changed
Code:function newsletter() {
global $prefix, $user_prefix, $db, $sitename, $admin_file;
include("header.php");
GraphicAdmin();
$srow = $db->sql_numrows($db->sql_query("select * from " . $user_prefix . "_users where newsletter='1'"));
$urow = $db->sql_numrows($db->sql_query("select * from " . $user_prefix . "_users"));
$urow--;
OpenTable();
echo "<center><font class=\"title\"><b>" . _NEWSLETTER . "</b></font></center>";
CloseTable();
echo "<br>";
OpenTable();
echo "<center><font class=\"content\"><b>" . _NEWSLETTER . "</b></font></center>"
."<br><br>"
."<form method=\"post\" action=\"".$admin_file.".php\">"
."<b>From:</b> $sitename"
."<br><br>"
."<b>" . _SUBJECT . ":</b><br><input type=\"text\" name=\"subject\" size=\"50\">"
."<br><br>"
."<b>" . _CONTENT . ":</b><br><textarea name=\"content\" cols=\"50\" rows=\"10\"></textarea>"
."<br><br>"
."<b>" . _WHATTODO . "</b><br>"
."<input type=\"radio\" name=\"type\" value=\"newsletter\" checked> " . _ANEWSLETTER . " ($srow " . _SUBSCRIBEDUSERS . ")<br>"
."<input type=\"radio\" name=\"type\" value=\"massmail\"> " . _MASSMAIL . " ($urow " . _USERS . ")"
."<br><br>"
."<input type=\"hidden\" name=\"op\" value=\"check_type\">"
."<input type=\"submit\" value=\"" . _PREVIEW . "\">"
."</form>";
CloseTable();
include("footer.php");
}
|
to this
Code:function newsletter() {
global $prefix, $user_prefix, $db, $sitename, $admin_file;
include("header.php");
GraphicAdmin();
$srow = $db->sql_numrows($db->sql_query("select * from " . $user_prefix . "_users where newsletter='1'"));
$urow = $db->sql_numrows($db->sql_query("select * from " . $user_prefix . "_users"));
$urow--;
OpenTable();
echo "<center><font class=\"title\"><b>" . _NEWSLETTER . "</b></font></center>";
CloseTable();
echo "<br>";
OpenTable();
echo "<center><font class=\"content\"><b>" . _NEWSLETTER . "</b></font></center>"
."<br><br>"
."<form method=\"post\" action=\"".$admin_file.".php\">"
."<b>From:</b> $sitename"
."<br><br>"
."<b>" . _SUBJECT . ":</b><br><input type=\"text\" name=\"subject\" size=\"50\">"
."<br><br>"
# ."<b>" . _CONTENT . ":</b><br><textarea name=\"content\" cols=\"50\" rows=\"10\"></textarea>"
wysiwyg_textarea("story", "", "NukeUser", "50", "10");
."<br><br>"
."<b>" . _WHATTODO . "</b><br>"
."<input type=\"radio\" name=\"type\" value=\"newsletter\" checked> " . _ANEWSLETTER . " ($srow " . _SUBSCRIBEDUSERS . ")<br>"
."<input type=\"radio\" name=\"type\" value=\"massmail\"> " . _MASSMAIL . " ($urow " . _USERS . ")"
."<br><br>"
."<input type=\"hidden\" name=\"op\" value=\"check_type\">"
."<input type=\"submit\" value=\"" . _PREVIEW . "\">"
."</form>";
CloseTable();
include("footer.php");
}
|
|
|
Back to top |
|
|
Dauthus Newbie
Joined: Feb 19, 2006 Posts: 2
|
Posted: Sat Jul 22, 2006 12:10 am Post subject: Re: WYSIWYG in phpnuke PHPBB forum |
|
|
try this:
Code:function newsletter() {
global $prefix, $user_prefix, $db, $sitename, $admin_file;
include("header.php");
GraphicAdmin();
$srow = $db->sql_numrows($db->sql_query("select * from " . $user_prefix . "_users where newsletter='1'"));
$urow = $db->sql_numrows($db->sql_query("select * from " . $user_prefix . "_users"));
$urow--;
OpenTable();
echo "<center><font class=\"title\"><b>" . _NEWSLETTER . "</b></font></center>";
CloseTable();
echo "<br>";
OpenTable();
echo "<center><font class=\"content\"><b>" . _NEWSLETTER . "</b></font></center>"
."<br><br>"
."<form method=\"post\" action=\"".$admin_file.".php\">"
."<b>From:</b> $sitename"
."<br><br>"
."<b>" . _SUBJECT . ":</b><br><input type=\"text\" name=\"subject\" size=\"50\">"
."<br><br>"
."<b>" . _CONTENT . ":</b><br>";
// <textarea name=\"content\" cols=\"50\" rows=\"10\"></textarea>"
wysiwyg_textarea("content", "", "NukeUser", "50", "10");
echo "<br><br>"
."<b>" . _WHATTODO . "</b><br>"
."<input type=\"radio\" name=\"type\" value=\"newsletter\" checked> " . _ANEWSLETTER . " ($srow " . _SUBSCRIBEDUSERS . ")<br>"
."<input type=\"radio\" name=\"type\" value=\"massmail\"> " . _MASSMAIL . " ($urow " . _USERS . ")"
."<br><br>"
."<input type=\"hidden\" name=\"op\" value=\"check_type\">"
."<input type=\"submit\" value=\"" . _PREVIEW . "\">"
."</form>";
CloseTable();
include("footer.php");
}
|
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|