<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: shoutbox_panel.php
| Author: Nick Jones (Digitanium)
| Marquee Latest Shouts
| Author: Craig
| Site: http://www.phpfusionmods.co.uk
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
include_once INFUSIONS."shoutbox_panel/infusion_db.php";
opentable("Latest Shouts");
$result = dbquery(
"SELECT ts.shout_id, ts.shout_name, ts.shout_message, ts.shout_datestamp, tu.user_id, tu.user_name, tu.user_status, tu.user_lastvisit
FROM ".DB_SHOUTBOX." ts
LEFT JOIN ".DB_USERS." tu ON ts.shout_name=tu.user_id
WHERE shout_hidden='0'
ORDER BY ts.shout_datestamp DESC LIMIT 0,5"
);
if (dbrows($result)) {
echo"<marquee>";
while ($data = dbarray($result)) {
echo"".profile_link($data['shout_name'], $data['user_name'], $data['user_status'])." ".showdate("forumdate", $data['shout_datestamp'])." - ".parseubb(parsesmileys($data['shout_message']), "b|i|u|url|color")." - ";
}
echo"</marquee>";
}else{
echo"No Shouts";
}
closetable();
?>
Quote
Craig wrote:
Here I've knocked this quikly up for you.
Paste this into a center panel....
This does as you asked, displays latest 5 shouts using <marquee>.Code Download source<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: shoutbox_panel.php
| Author: Nick Jones (Digitanium)
| Marquee Latest Shouts
| Author: Craig
| Site: http://www.phpfusionmods.co.uk
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
include_once INFUSIONS."shoutbox_panel/infusion_db.php";
opentable("Latest Shouts");
$result = dbquery(
"SELECT ts.shout_id, ts.shout_name, ts.shout_message, ts.shout_datestamp, tu.user_id, tu.user_name, tu.user_status, tu.user_lastvisit
FROM ".DB_SHOUTBOX." ts
LEFT JOIN ".DB_USERS." tu ON ts.shout_name=tu.user_id
WHERE shout_hidden='0'
ORDER BY ts.shout_datestamp DESC LIMIT 0,5"
);
if (dbrows($result)) {
echo"<marquee>";
while ($data = dbarray($result)) {
echo"".profile_link($data['shout_name'], $data['user_name'], $data['user_status'])." ".showdate("forumdate", $data['shout_datestamp'])." - ".parseubb(parsesmileys($data['shout_message']), "b|i|u|url|color")." - ";
}
echo"</marquee>";
}else{
echo"No Shouts";
}
closetable();
?>
Category Forum
Panels and InfusionsLabels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions