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, 53 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - custom messages for each category? [ ]
 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
benk
Private
Private


Joined: Jul 16, 2005
Posts: 37


PostPosted: Thu Apr 13, 2006 6:50 am Reply with quoteBack to top

Hi all, I'm using PHPNuke 7.6 with patches.

I have a couple different categories for news items, such as Articles, Podcasts, Editorials. For each category, I want to display a different message (the type that you can show using the Messages Administration). Can somebody point me to the code that displays these messages?

All I want to add is something like:

if ($catid == "2")
{
echo "custom message for this category";
}

Should be pretty easy, I just can't find where the messages code can be found. I've looked through theme.php and found code that has:

$public_msg = public_message();
echo "$public_msg<br>";

Where is the public_message() function found?
Find all posts by benkView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12403


PostPosted: Thu Apr 13, 2006 8:38 am Reply with quoteBack to top

public_message is in the mainfile.php

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
gettopreacherman
Lieutenant
Lieutenant


Joined: Jan 13, 2005
Posts: 262


PostPosted: Thu Apr 13, 2006 9:51 am Reply with quoteBack to top

Secret to all those who make changes to files witin PHPnuke...check at the top of the function or even the .php file...look for "include" it will give you the file that has the "mystery" function you have no idea where it's coming from...
Find all posts by gettopreachermanView 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.160 Seconds - 281 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::