Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN News
Author Message
NoFantasy
Worker
Worker



Joined: Apr 26, 2005
Posts: 114

PostPosted: Sun Aug 20, 2006 1:19 pm Reply with quote

phpNuke 7.6, chatserv patched 3.1 and nsn-news 200rc2_70-79

News module are set to be home module. 10 articles are showing up just fine with the text i've set to be the welcome-to-my-site message on top with a google ad block center block. However, the message is showing up in nearly all the pages where news/topics/stories-archive are involved.

How do i tweak the function message box() to only show at the ../index.php page and not ../index.php?op=NETopicMain ../index.php?op=NEArchive ..index.php?op=NEArticle&sid=xx etc etc
 
View user's profile Send private message
NoFantasy







PostPosted: Sun Aug 20, 2006 3:37 pm Reply with quote

Maybe this will give a better view of what the problem is. It appears all (well, most of them that is) news-related files are considered to be HOME_FILEs and the apperance is defined in header.php
Code:
online();

head();
include("includes/counter.php");
include("includes/cblocks2.php");
blocks("Center");
if(defined('HOME_FILE')) {
   message_box();
   //blocks("Center");
include("includes/cblocks1.php");
}

A bit different from the original patched files since i use centerblocks add-on, but in any case, this might be the place to define where i want the message_box to show (or not to show). If index.php, then show, else not?
 
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Sun Aug 20, 2006 6:14 pm Reply with quote

It seems you are also using NSN Center Blocks. One of the center block settings causes it to display on every page. Another causes it only to appear on the main page.

But your messages should only be displayed on the home page.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
NoFantasy







PostPosted: Sun Aug 20, 2006 9:05 pm Reply with quote

That would be correct, yes... One center block showing with a marquee on every page, and one center google-ad showing below the message_box. Above the message_box a regular center block. Problem seems to be that they all show up in every article, archive page etc...
Have a look, if i make myself unclear: www.webfrik.com vs www.webfrik.com/nyhetsartikkel-100.html and www.webfrik.com/nyhetsarkiv.html
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN News

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©