Portal Themes, PHPnuke Themes and PostNuke themes Themes Home Page Profile Free Nuke theme Downloads Nuke theme Support Forums Nuke Themes Store
spacer image spacer image
Featured
Call of Duty 4 Nuke Theme

Call of Duty 4 Nuke Theme

Call of Duty 4 PHPNuke Theme, Call of Duty 4 PostNuke Theme, Call of Duty 4 Evo Theme, Call of Duty ...

$15.00
Enter Store ]
spacer image
Main Menu
spacer image
Site Status
spacer image Welcome Guest
Join us!
spacer image
spacer imagespacer imagespacer image
spacer image
Registration is free and gives full access to site
spacer image
spacer image Register
spacer image Login:
User:

spacer image
Password:

spacer image
Remember me
spacer image
spacer imageMembers:
Last: Today New:0
Last: Yesterday:0
Last: Total:7523
Last: Last:
LynnPlumbing
Members: Online
Members: Members:0
Guests: Guests:44
Total: Total:44
spacer image Online Members
No online members
spacer image
Past News
Older articles
spacer image


Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
GlueBeardOffline
Post subject: Latest Site News  PostPosted: Aug 27, 2004 - 11:23 AM
Pirate Critic


Joined: Aug 18, 2004
Posts: 347
Location: The Isle of GlueBeard
Status: Offline
What module or block is used for the Latest Site News section of the Portal Themes 2 theme?

Or is it simply the stories block from the default PostNuke software?

The reason that I ask is because I wish to emulate on my web site just having the titles of the stories, instead of the whole story, displayed on the front page of my site, in order to reduce information overload for the site visitor.

Thus, how do I go about doing this?
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject:   PostPosted: Aug 27, 2004 - 12:09 PM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
If you are using AutoTheme just remove everything from summary.html except <!--[posted-by] --> and <!-- [posted-date] -->

Wink
 
 View user's profile Send private message  
Reply with quote
GlueBeardOffline
Post subject:   PostPosted: Aug 27, 2004 - 12:36 PM
Pirate Critic


Joined: Aug 18, 2004
Posts: 347
Location: The Isle of GlueBeard
Status: Offline
Well, I'm not using AutoThemes.

Do you know if it is possible to do it using a standard PostNuke theme?
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject:   PostPosted: Aug 27, 2004 - 01:29 PM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
I'm sure it would be but hacking away at theme.php is not something I personally like to do.
You would have to find the summary part of it and remove everything but the above again.
 
 View user's profile Send private message  
Reply with quote
GlueBeardOffline
Post subject:   PostPosted: Aug 27, 2004 - 01:50 PM
Pirate Critic


Joined: Aug 18, 2004
Posts: 347
Location: The Isle of GlueBeard
Status: Offline
I don't mind hacking the theme.php file. I do that all of the time. I don't think that that is what will allow me to do what I want to do, though.

Do you happen to know which file contains the output of the stories in the default PostNuke modules or blocks?
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject:   PostPosted: Aug 27, 2004 - 02:44 PM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
It will definetely be in theme.php as it is part of the theme process.
 
 View user's profile Send private message  
Reply with quote
GlueBeardOffline
Post subject:   PostPosted: Aug 27, 2004 - 09:01 PM
Pirate Critic


Joined: Aug 18, 2004
Posts: 347
Location: The Isle of GlueBeard
Status: Offline
Problematic, though, is that "summary" is not in theme.php, at least not the one I am using.
 
 View user's profile Send private message  
Reply with quote
GlueBeardOffline
Post subject:   PostPosted: Aug 27, 2004 - 09:07 PM
Pirate Critic


Joined: Aug 18, 2004
Posts: 347
Location: The Isle of GlueBeard
Status: Offline
This is, I think, the stories part of my theme.php file. What needs editing in it, if you can tell?

/************************************************************/
/* Function themeindex() */
/* */
/* This function formats the stories on the Homepage */
/************************************************************/
function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
global $thename, $bgcolor1, $bgcolor2;
$anonymous = pnConfigGetVar('anonymous');
$tipath = pnConfigGetVar('tipath');
?>

<!----- Begin article ----->
<DIV class="ArticleBlock">
<DIV class="ArticleHead"><H4 class="storytitle"><?php echo $preformat['catandtitle'] ?></H4>
<DIV class="pn-sub" align="right"><SPAN class="pnleft"><?PHP echo _POSTEDBY.": ".$info['informant']." "._ON." ".$info['longdatetime'] ?></SPAN>
<?PHP echo $info['counter']." "._READS ?>
</DIV>
<?PHP // Edit link if user has Edit permission
if (pnSecAuthAction(0, 'Stories::', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_EDIT)) {
echo "<span class=\"sub\"> <nobr>[ <a href=\"admin.php?module=NS-AddStory&op=EditStory&sid=$info[sid]\">"._EDIT."</a>\n";
// Delete link if user has Delete permission
if (pnSecAuthAction(0, 'Stories::', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE)) {
echo "| <a href=\"admin.php?module=NS-AddStory&op=RemoveStory&sid=$info[sid]\">"._DELETE."</a> ]";
} else { echo "]";
} // end user delete
echo "</nobr></span><br />";
} // end user edit ?>
</DIV>
<DIV class="Article">
<DIV class="TopicImgLeft"><DIV class="clear"><?php echo $preformat['searchtopic'] ?><!--Spacer DIV fudge for Opera 7--></DIV></DIV>
<!-- To change picture from left to right, change "TopicImgLeft" to "TopicImgRight" -->
<?php echo $info['hometext'] ?><BR /><BR />
<DIV class="note"><?PHP echo $preformat['notes'] ?><BR /><BR /></DIV>
<DIV align="right" class="more"><?PHP echo $preformat['more'] ?></DIV>
</DIV>
</DIV>
<!----- End article ----->
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject:   PostPosted: Aug 27, 2004 - 09:15 PM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
That to me looks like the FULL article and not the summary.
On your site do you see the Edit-Delete links on stories on the home page?
 
 View user's profile Send private message  
Reply with quote
GlueBeardOffline
Post subject:   PostPosted: Aug 28, 2004 - 02:40 PM
Pirate Critic


Joined: Aug 18, 2004
Posts: 347
Location: The Isle of GlueBeard
Status: Offline
Well, having fiddled with my theme.php some more last night, just so that you will know for future reference, in case someone else asks again, the secction above, what you termed the "FULL article," is where the answer to my previous question lay.

I was able to figure out how to get just the title and the date to show, but then managed to stumble across a way to make the story outlines do something else which I liked the visual effect of, so I ended up keeping the stories displayed on the front page after all.

I only have one story up now, so you really can't tell, but when I have more than one story, it is like the newer story's box wraps around the existing stories, and after I added several test stories, just to see what it looked like, I decided that I liked the way that it looked, and would stick with that for a while.

Of course, I would caution anyone that is editing/hacking their theme.php file to keep a back-up working copy of their theme that they are using handy nearby, just in case they screw up their theme.php file, which I have done many times over the course of fiddiling with it, as I try to figure out how things work.
 
 View user's profile Send private message  
Reply with quote
Display posts from previous:     
Jump to:  
All times are GMT - 5 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits
spacer image spacer image

Welcome to www.PortalThemes.com, Your #1 Source for

Zikula Themes

,

PHP-Nuke themes

,

MD-Pro Themes

,

Nuke Evolution Themes

,

Platinum Nuke Themes

,

Xanthia Themes

,

AutoThemes and

Joomla Templates
World of Warcraft and Blizzard Entertainment are all trademarks or registered trademarks of Blizzard Entertainment in the United States and/or other countries. These terms and all related materials, logos, and images are copyright Blizzard Entertainment. This site is in no way associated with or endorsed by Blizzard Entertainment
SiteMap SiteMap 2 SiteMap 3