Hi.
Thanks a lot for this wonderfull program !
Would it be possible to use BBcode in the news ?
I can put HTML here (to call a picture), but no BBcode.
Thanks again.
News and BBcode
Moderator: Thorsten
I made it myself for version 1.3.8 
In admin/news.php replace line 113 by :
In admin/news.php replace line 144 and line 161 by :
In inc/functions.php replace line 175 by :
Now you have BBcode working for the news.
Next step : adding the BBcode editor to the news (just like a FAQ artikel).

In admin/news.php replace line 113 by :
Code: Select all
<td><textarea name="artikel" rows="5" cols="45"><?php print parseUBB($row->artikel); ?></textarea></td>
Code: Select all
$artikel = addslashes($_REQUEST["artikel"]);
Code: Select all
$output .= "<p><b class=\"header\">".$row->header."</b><br>\n".nl2br(parseUBB($row->artikel))."\n";
Next step : adding the BBcode editor to the news (just like a FAQ artikel).
Hi,
great idea! I'll add this to the development branch.
bye
Thorsten
great idea! I'll add this to the development branch.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
I made a mistake : line 113 in admin/news.php should be :
Is there an easy way (as fast as this little patch) to be able to use the full BBcode Editor (from the artikel) to the news ?
Code: Select all
<td><textarea name="artikel" rows="5" cols="45"><?php print stripslashes($row->artikel); ?></textarea></td>
Hi,
phpMyFAQ 1.3.9 RC1 will support BBCode in the News module.
bye
Thorsten
phpMyFAQ 1.3.9 RC1 will support BBCode in the News module.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
I can confirm this bug. It is fixed in phpMyFAQ 1.3.9 RC3 which will be released next week.
Thanks!
bye
Thorsten
I can confirm this bug. It is fixed in phpMyFAQ 1.3.9 RC3 which will be released next week.
Thanks!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist