Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Short and Full story templates
Mattycat
Posted on 07 Jul 2009, 07:51:04

Access: Member
Total Posts: 42
Joined: 2008-06-25

Hi there,

Is there anyway to have a different template for displaying the full story from the short story? I'm using it for my online portfolio at www.mjd.co.nz/portfolio.php if you could help me out anyone?

Thanks heaps :grin:

Matt
#187
Mattycat
Posted on 08 Jul 2009, 23:14:10

Access: Member
Total Posts: 42
Joined: 2008-06-25

Is there anyway that this can be done? I really love using this script and this function would make it even better!

Or is there a way that I can create another index.php like index2.php that I could direct the [readmore][/readmore] link to, but just for a specific template?
#592
Chris
Posted on 09 Jul 2009, 01:30:48

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Hey Matt,

So basically you want to display a different template when viewing the full story/comments page?

If so download this file.
Extract it and rename it to index.php, then replace your own copy of index.php with this new one.

Then when including your news do this

Code:
<?php
$template 
= 'templatename'; #your normal template here
$fulltemplate = 'templatename'; #the name of the template you want to show on the readmore page
include 'news/index.php';
?>
#593
Mattycat
Posted on 09 Jul 2009, 02:01:55

Access: Member
Total Posts: 42
Joined: 2008-06-25

Thank you soooooo much Chris!!!

You're a legend!!

When I start getting business, I'll be sure to give you a donation(s):grin:
#594
Chris
Posted on 09 Jul 2009, 02:22:16

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Thanks, I'll be looking forward to it :tongue:
#595
Mattycat
Posted on 09 Jul 2009, 02:28:59

Access: Member
Total Posts: 42
Joined: 2008-06-25

It doesn't seem to be working :sad2:

Here is what I'm including:
Code:
<?php
$cat[] = 'Portfolio';
$template = 'PortfolioPage'; #your normal template here
$fulltemplate = 'PortfolioFull'; #the name of the template you want to show on the readmore page
include 'admin/index.php';
?>
And I replaced my index.php with the one you provided and created a new template called "PortfolioFull".
#596
Last edited by Mattycat at 2009-07-09 02:29:18 Reason:
Chris
Posted on 09 Jul 2009, 02:33:01

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

I'm testing this now, won't be long ;o
#597
Chris
Posted on 09 Jul 2009, 02:50:27

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Matt,

Try downloading the file again, should work fine now.
#598
Mattycat
Posted on 09 Jul 2009, 03:12:01

Access: Member
Total Posts: 42
Joined: 2008-06-25

Yes!!! It works perfectly!!!

www.mjd.co.nz/portfolio.php
#599
Network-13.com © 2013