| Author |
Message |
borgata20
Sergeant


Joined: Jun 13, 2003
Posts: 118
Location: North Jersey
|
Posted:
Tue Jun 17, 2003 1:48 pm |
  |
I just downloaded Scrolling Forum Block. It says that is used for phpBB2. I have Splatt Forum running on PHPNuke 6.0. I was wondering if anyone knew if this block will work with splatt forum and if not, is there a block like this for Splatt forum. Thanks everyone!!
Ralph  |
|
|
    |
 |
KrewZen
Nuke Cadet


Joined: Jun 18, 2003
Posts: 9
|
Posted:
Mon Jun 23, 2003 11:18 am |
  |
Ralph,
I'm working on that now... very much a newbie at php/mySQL but it looks straightforward enough. I'll share if I get mine working.... please let me know if you find one in the meanwhile!
Thanks,
David |
|
|
    |
 |
KrewZen
Nuke Cadet


Joined: Jun 18, 2003
Posts: 9
|
Posted:
Wed Jun 25, 2003 5:29 am |
  |
Ralph,
There may be a better forum scroll block out there for 6.0w/Splatt, but I couldn't find it. Here is what I came up with - I called it "block-ForumScroll.php" and it resulted from an edit of the non-scrolling block provided in the yahoo installation package:
| Code: |
<?php
########################################################
# Modulo Splatt Forum per PHP-NUKE ver.5.6
#-------------------------
# BLOCCO FORUM
#-------------------------
# Versione: 3.2
#
# Copyright (c) 2002 by:
#
# Giorgio Ciranni (~Splatt~)
# (http://www.splatt.it)
# (webmaster@splatt.it)
#
# Scroll function added by David Peters (support@pceo.us ########################################################
if (eregi("block-ForumScroll.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
require_once("mainfile.php");
get_lang(Forums);
global $prefix, $dbi, $sitename;
$result = sql_query("SELECT t1.topic_id,t1.topic_title,t1.topic_time,t1.forum_id FROM ${prefix}_forums t0,${prefix}_forumtopics t1 WHERE t0.forum_type=0 AND t0.forum_id=t1.forum_id ORDER BY t1.topic_time DESC LIMIT 0, 10", $dbi);
while(list($topic_id, $topic_title, $topic_time, $forum_id) = sql_fetch_row($result, $dbi)) {
$res = sql_query("select image from ".$prefix."_posts where topic_id='$topic_id'", $dbi);
list ($image) = sql_fetch_row($res, $dbi);
if($image == "") {
$image= "icon33.gif";
}
$title2 = ereg_replace("_", " ", $topic_title);
$title2 = stripslashes($title2);
$title3 = substr("$title2", 0,18);
$show .= "<tr><td width=\"25\"><img src=\"images/forum/subject/$image\" alt=\"$title2 - $topic_time\"></td><td><a href=\"modules.php?name=Forums&file=viewtopic&topic=$topic_id&forum=$forum_id \"> $title3...</a></td></tr>";
}
$content = " <A name= \"scrollingCode\"></A>
<MARQUEE behavior= \"scroll\" align= \"center\" direction= \"up\" height=\"120\" scrollamount= \"2\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'><table width=\"100%\">";
$content .= "<i>"._FULTM."</i></center><br>$show</table><br><center><hr width=\"50%\"><a href=\"modules.php?name=Forums\" target=\"_blank\">$sitename Forum</a></center>";
?> |
You can check it out at http://portal.pceo.us but there is (virtually) nothing in the fourm yet (site isn't live yet)... big change from earlier site though phpnuke has really been great.
BTW: are you on yahoo web hosting? They supplied an automated install of phpnuke 6.0 with Splatt forums. It has had lots of problems... I still have one to go that no one has responded to on this site. |
|
|
    |
 |
borgata20
Sergeant


Joined: Jun 13, 2003
Posts: 118
Location: North Jersey
|
Posted:
Wed Jun 25, 2003 5:47 am |
  |
I will have to check in to this. I am hosting my own php site on a sun box. I added a block and messed up my site so it is being worked on now. I want to get to this but I am going to replicate my site first before I do anything. i will check this all out. Do I have to be using Yahoo in order for it to work??
Thanks!
Ralph |
|
|
    |
 |
borgata20
Sergeant


Joined: Jun 13, 2003
Posts: 118
Location: North Jersey
|
Posted:
Wed Jun 25, 2003 5:47 am |
  |
I will have to check in to this. I am hosting my own php site on a sun box. I added a block and messed up my site so it is being worked on now. I want to get to this but I am going to replicate my site first before I do anything. i will check this all out. Do I have to be using Yahoo in order for it to work??
Thanks!
Ralph |
|
|
    |
 |
borgata20
Sergeant


Joined: Jun 13, 2003
Posts: 118
Location: North Jersey
|
Posted:
Wed Jun 25, 2003 5:48 am |
  |
I will have to check in to this. I am hosting my own php site on a sun box. I added a block and messed up my site so it is being worked on now. I want to get to this but I am going to replicate my site first before I do anything. i will check this all out. Do I have to be using Yahoo in order for it to work??
Thanks!
Ralph |
|
|
    |
 |
borgata20
Sergeant


Joined: Jun 13, 2003
Posts: 118
Location: North Jersey
|
Posted:
Wed Jun 25, 2003 5:48 am |
  |
I will have to check in to this. I am hosting my own php site on a sun box. I added a block and messed up my site so it is being worked on now. I want to get to this but I am going to replicate my site first before I do anything. i will check this all out. Do I have to be using Yahoo in order for it to work??
Thanks!
Ralph |
|
|
    |
 |
borgata20
Sergeant


Joined: Jun 13, 2003
Posts: 118
Location: North Jersey
|
Posted:
Wed Jun 25, 2003 5:49 am |
  |
I will have to check in to this. I am hosting my own php site on a sun box. I added a block and messed up my site so it is being worked on now. I want to get to this but I am going to replicate my site first before I do anything. i will check this all out. Do I have to be using Yahoo in order for it to work??
Thanks!
Ralph |
|
|
    |
 |
KrewZen
Nuke Cadet


Joined: Jun 18, 2003
Posts: 9
|
Posted:
Wed Jun 25, 2003 7:42 am |
  |
should work anywhere... but i haven't tested it.
good luck - and please let me know the result.
david |
|
|
    |
 |
|
|