You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 60 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Latest Forum Posts [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Johnny_Thunder
Sergeant
Sergeant


Joined: May 22, 2004
Posts: 111

Location: U.K

PostPosted: Sat Jul 17, 2004 7:57 am Reply with quoteBack to top

Got a problem here Guys, I will do my best to explain.
When I activate the block-forums(the scrolling one with the last 20 posts), all appears to be OK on the homepage.
When I then try to go to Forums, or even Member List for that matter, what I am getting is, all the blocks on the left side of the homepage, in the centre of the screen. The forum, or the Memberlist,(whichever link is clicked), is actually scrolling inside the Latest forum posts block???????
I hope someone understands what I am trying to say.
If not, I can activate the block again so you can see for yourselves....
Please help guys.
Thank you.
Johnny.
Find all posts by Johnny_ThunderView user's profileSend private messageVisit poster's websiteMSN Messenger
Johnny_Thunder
Sergeant
Sergeant


Joined: May 22, 2004
Posts: 111

Location: U.K

PostPosted: Sat Jul 17, 2004 8:06 am Reply with quoteBack to top

An update:
When I reposition this block to the "right", the problem disappears.
Are there certain blocks whose functionality depends upon positioning on the homepage. Question Question Question Question
Find all posts by Johnny_ThunderView user's profileSend private messageVisit poster's websiteMSN Messenger
Johnny_Thunder
Sergeant
Sergeant


Joined: May 22, 2004
Posts: 111

Location: U.K

PostPosted: Sat Jul 17, 2004 8:16 am Reply with quoteBack to top

Another update:
Crying or Very sad The posts placed in the forum are not appearing in the block.
Should I just give up and download a new block, have I got a dodgy download???
Find all posts by Johnny_ThunderView user's profileSend private messageVisit poster's websiteMSN Messenger
eak
Sergeant
Sergeant


Joined: Oct 08, 2004
Posts: 90


PostPosted: Thu Dec 09, 2004 8:43 am Reply with quoteBack to top

Johnny_Thunder wrote:
Another update:
Crying or Very sad The posts placed in the forum are not appearing in the block.
Should I just give up and download a new block, have I got a dodgy download???


Im having problems with my block as well. It displays 20 posts and scrolls, but it doesn't seem to be refreshing the block. New posts are made but it doesn't refresh the block.

Anyone have any suggestions?

Heres the block:
Code:

[root@www blocks]# cat block-Forums.php
<?php

/************************************************************************/
/* Forums Block for phpBB 2.0.0 port to PHP Nuke 6.5b6+                 */
/* ====================================================                 */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com)         */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* Version 1, modified by Séstien Vaast                               */
/* http://membres.lycos.fr/projectpluto/                                */
/*                                                                      */
/* Updated by Tom Nitzschner 22/06/2002 to add the scrolling text       */
/*                                                                      */
/* Updated by Paul Laudanski 14 Jan 2003                                */
/* NukeCops.com  |  ComputerCops.biz                                    */
/*                                                                      */
/* Last Edited - 13 Jan 2004 by James A. Decker From www.the-echelon.net*/
/* klar@the-echelon.net                                                 */
/* I've added code to remove posts from list that the user should not   */
/* have access to read                                                  */
/*                                                                      */
/* This Block shows the last 10 topics where a message was posted,      */
/* along with the username of the last poster and the day and time      */
/* of the post.                                                         */
/* It will also show smileys in the topic titles thanks to the          */
/* smileys.php file found in Leo Tan Block Forums version               */
/* (http://www.cybercomp.d2g.com).                                      */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("block-Forums.php", $PHP_SELF)) {
    Header("Location: index.php");
    die();
}

/* include_once ('blocks/smileys.php'); */

global $prefix, $dbi, $sitename, $user, $cookie, $group_id;
cookiedecode($user);
$uname = $cookie[1];
$result10 = sql_query("SELECT u.user_id FROM ".$prefix."_users u where username = '$uname'", $dbi);
list($user_id)=sql_fetch_row($result10, $dbi);
$userid = $user_id;
$count = 1;

$content = "<A name= \"scrollingCode\"></A>";
$content .="<MARQUEE behavior= \"scroll\" align= \"center\" direction= \"up\" height=\"220\" scrollamount= \"2\" scrolldelay= \"20\" onmouseover='this.stop()' onmouseout='this.start()'>";
$content .="<center> <STYLE=\"text-decoration: none\"><font color=\"#666666\"><b>Last 20 Forum Messages</b></center>";

$result1 = sql_query("SELECT DISTINCT t.topic_id, t.topic_last_post_id, t.topic_title, f.forum_name, f.forum_id, f.auth_read
        FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f,".$prefix."_bbuser_group a, ".$prefix."_bbauth_access b
                where   t.forum_id=f.forum_id and
                        f.forum_id=b.forum_id and
                        b.group_id=a.group_id and
                        (( a.user_id='$userid' and (b.auth_view = 1 or b.auth_mod = 1 )) OR f.auth_read = 0)
                ORDER BY t.topic_last_post_id DESC LIMIT 20", $dbi);

$content .= "<br>";

while(list($topic_id, $topic_last_post_id, $topic_title, $forum_name, $forum_id, $auth_read) = sql_fetch_row($result1, $dbi)) {

        $result2 = sql_query("SELECT topic_id, poster_id, FROM_UNIXTIME(post_time,'%b %d, %Y at %T') as post_time FROM ".$prefix."_bbposts where post_id='$topic_last_post_id'", $dbi);
        list($topic_id, $poster_id, $post_time)=sql_fetch_row($result2, $dbi);
        $result3 = sql_query("SELECT username, user_id FROM ".$prefix."_users where user_id='$poster_id'", $dbi);
        list($username, $user_id)=sql_fetch_row($result3, $dbi);

        //$topic_title=parseEmoticons($topic_title);
        // Remove the comment below to add the counter
        //$content .="<STYLE=\"text-decoration: none\"><font color=\"#666666\"><b>Message: $count<br></b>";
        $content .= "<img src=\"modules/Forums/templates/subSilver/images/icon_mini_message.gif\" border=\"0\" alt=\"\"><a href=\"modules.php?name=Forums&amp;file=viewtopic&amp;p=$topic_last_post_id#$topic_last_post_id\"STYLE=\"text-decoration: none\"><b> $topic_title </b></a><br><font color=\"#666666\"><i>Last post by <A HREF=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\"STYLE=\"text-decoration: none\"> $username </a> in <a href=\"modules.php?name=Forums&amp;file=viewforum&amp;f=$forum_id\">$forum_name</a> on $post_time</i></font><br><br>";
        $count = $count + 1;
}
$content .= "<br><center>[ <a href=\"modules.php?name=Forums\"STYLE=\"text-decoration: none\">$sitename ]</center>";
?>

_________________
EAK specs (OS / Apache / MySQL / PHP / PHPNuke)
FedoraCore2 2.6.5-1.358smp/httpd-2.0.50-2.1/mysql-3.23.58-9/PHP 4.3.8/PHPNuke7.5 (just upgraded)
Find all posts by eakView user's profileSend private messageVisit poster's websiteAIM AddressYahoo Messenger
manuctg
Nuke Soldier
Nuke Soldier


Joined: Feb 17, 2004
Posts: 18


PostPosted: Fri Jan 14, 2005 8:01 pm Reply with quoteBack to top

Johnny_Thunder wrote:
The forum, or the Memberlist,(whichever link is clicked), is actually scrolling inside the Latest forum posts block....

When I reposition this block to the "right", the problem disappears.


I have the same problem.

Anything to do?

_________________
Free Co-op Advertising Network - Weg Hosting - Links: www.ramosmartinez.com - http://dmoz.ramosmartinez.com
Find all posts by manuctgView user's profileSend private messageVisit poster's website
Existant
Private
Private


Joined: Oct 27, 2004
Posts: 44


PostPosted: Sun Apr 03, 2005 12:40 pm Reply with quoteBack to top

Same problem here, it shows the posts that were there when i first installed it, but does not show the new posts?

Did we find a solution to this?
Find all posts by ExistantView user's profileSend private messageVisit poster's websiteICQ Number
manuctg
Nuke Soldier
Nuke Soldier


Joined: Feb 17, 2004
Posts: 18


PostPosted: Sun Apr 03, 2005 2:32 pm Reply with quoteBack to top

Remove STYLE tags from block file!

Thanks to mikem

_________________
Free Co-op Advertising Network - Weg Hosting - Links: www.ramosmartinez.com - http://dmoz.ramosmartinez.com
Find all posts by manuctgView user's profileSend private messageVisit poster's website
Existant
Private
Private


Joined: Oct 27, 2004
Posts: 44


PostPosted: Sun Apr 03, 2005 3:11 pm Reply with quoteBack to top

tyvm, i will look at it, and hope it works
Find all posts by ExistantView user's profileSend private messageVisit poster's websiteICQ Number
manuctg
Nuke Soldier
Nuke Soldier


Joined: Feb 17, 2004
Posts: 18


PostPosted: Sun Apr 03, 2005 11:11 pm Reply with quoteBack to top

Existant wrote:
where do i remove the styles info from, and will that let the new posts show on the scrolling forum block?

Please and thank you


Remove all like this: <STYLE=\"text-decoration: none\">

_________________
Free Co-op Advertising Network - Weg Hosting - Links: www.ramosmartinez.com - http://dmoz.ramosmartinez.com
Find all posts by manuctgView user's profileSend private messageVisit poster's website
white8785
Nuke Soldier
Nuke Soldier


Joined: Sep 07, 2003
Posts: 19


PostPosted: Thu Apr 06, 2006 1:11 am Reply with quoteBack to top

i used that code in a block and positioned the block on the right side, and it works just fine for me. I'm running 7.9 with the patches (not sure which one's though). I just made a post and it refreshes too.

_________________
JR
LouisvilleRiders.com
Find all posts by white8785View user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.302 Seconds - 302 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::