2006-08-28, 08:45 PM
2006-09-02, 08:06 AM
Tikitiki Wrote:Just for all of you that wanted to know, I've created a plugin that will allow you to show your news on the home page, with options like, what forum(s) to fetch it from, and how many to show. It will be release when MyBB 1.2 comes outAwesome, I am REALLY looking forward to this. Thanks in advance for the work, it's a great peice of news indeed.
2006-09-02, 06:28 PM
The code I stole from portal.php pre-1.2 is broke now, so im really awaiting this plugin
2006-09-02, 06:35 PM
Here is a beta of the Site News Plugin. Please test. Instructions are attached in the file.
Cheers
Cheers
2006-09-02, 07:27 PM
Looking awesome! http://www.gameserverinformer.com/
Thanks so much!
Thanks so much!
2007-05-04, 02:34 PM
hi! There is a way to show in thw news.php page only the first 150 characters on the topic?
2007-05-10, 11:28 AM
I dont understand how to install this plugin. The ReadMe file isn't very helpful.
Where do I put the news.php
and what do I have to change in the above code????
HELP!
Thanks.
Where do I put the news.php
<?php
define("IN_MYBB", 1);
define("KILL_GLOBALS", 1);
define("NO_ONLINE", 1);
// The Directory to the forum you are using this on.
// You do not need a beggining or trailing slash
$directory_to_forum = "";
require dirname(__FILE__)."/".$directory_to_forum."/global.php";
$plugins->run_hooks("site_news_plugin_run");
?>
and what do I have to change in the above code????
HELP!
Thanks.
2007-05-12, 02:01 PM
bumpety bump
2007-06-09, 08:42 PM
Lee69 Wrote:And the quote<?php ... $pattern = array( //[ul] '#\[list\](.*?)\[\/list\]#si', //[*] '#\[\*\](.*?)(\r\n|\r|\n|<br>|<br />|<br/>)#si', .... ?>
//quote
'#\[quote](.*?)\[\/quote\]#si',
'#\[quote=("|"|\'|)(.*?)\\1\](.*?)\[\/quote\]#si',
//quote
'<div class="quote_header">Wrote:</div><div class="quote_body">$1</div>',
'<div class="quote_header">$2 Wrote:</div><div class="quote_body">$3</div>',
in file .css
div.quote_header {
....
}
div.quote_body {
...
}