Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
full story different page

 
Reply to topic    Forum Index » Help View previous topic
View next topic
full story different page
Author Message
Partyism



Joined: 25 Sep 2007
Posts: 300

Post full story different page Reply with quote
So here i am again, kinda frustrated because i cant get "how to open full story in different page" working

I have a test.php file in my cuteru directory with the following code:
Code:
<?php include("artikelen/head.php"); ?>
<?php include("artikelen/loginbox.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="Partyism, Vrienden, Biertje, Korenmarkt, Arnhem-Zuid, Nieuws" />
<meta name="description" content="Partyism.nl is een website van een vriendengroep uit Arnhem. Deze vriendengroep zuipt voornamelijk en is vaak te vinden op de Korenmarkt in Arnhem. Op deze website komen allerlei feestjes aan het licht die wij organiseren of waar we aan deelgenomen hebben. Ook kan je hier foto's vinden en nieuws." />
<meta name="author" content="Partyism - info@partyism.nl" />
<meta name="publisher" content="Partyism - info@partyism.nl" />
<meta name="copyright" content="(c) Partyism.nl 2006-2008" />
<meta name="language" content="NL" />
<meta name="robots" content="index,follow" />
<title><?=cn_title('&nbsp;|&nbsp;'); ?></title>
<link href="http://feed s.feedburner.com/Partyismnl?format=xml" rel="alternate" type="application/rss+xml" title="Nieuws" />
<link href="/css/main.css" rel="stylesheet" type="text/css" />
<link href="/css/artikelen.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="/images/favicon.ico" />
<?=run_actions('additional_head_data'); ?>
</head>

<body>
<div id="container">
   <div id="header">
      <?php include ('includes/header.php'); ?>
   </div>
   <div id="menu">
      <?php include ('includes/menutop.php'); ?>
   </div>
   <div id="containerL">
      <div class="paragraph">
         Laatste Commentaar:
      </div>
      <div class="trackers" id="newstracker">
         <?php include ('includes/newstracker.php'); ?>
      </div>
      <div class="paragraph">
         Forum Tracker:
      </div>
      <div class="trackers" id="forumtracker">
         <?php include ('includes/forumtracker.php'); ?>
      </div>
   </div>
   <div id="containerM">
      <div id="NewsContent">
       <?php
         if ($do == 'users'){
            include $cutepath.'/show_users.php';
         } elseif ($do == 'archives'){
            echo cn_archives();
         } else {
            $number = "15";
            $template = "Default";
            $category = "13,14,15,16,18,19,20,21";
            include($cutepath.'/show_news.php');
         }
      ?>
      </div>
   </div>
   <div id="containerR">
      <div class="paragraph">
         Login:
      </div>
      <div class="containerBox">
         <div id="loginLeft">
            <?php include("artikelen/loginbox.php"); ?>
         </div>
         <div id="loginRight">
            <? if($is_logged_in){
                  echo $user_avatar[$member['username']];      }
            ?>
         </div>
      </div>
      <div class="clearLeft"></div>
      <div class="paragraph">
         Poll:
      </div>
      <?php include ('includes/poll.php'); ?>
               <div class="paragraph">
         Test:
      </div>
                <?php // ahora mostramos abajo los 5 encabezados dentro de la misma categoria
if ($id and $ucat){
   $static['template'] = 'Headlines';
   $static['number'] = 5;
   $static['skip'] = 3;
   $static['category'] = $ucat;
   include .'/show_news.php';
}
?>
   </div>
   <div id="footer">
   </div>
</div>
</body>
</html>


This is my default short story template
Code:
<div class="article">
   <div class="title"><h1><a href="{link=test/post}">{title}</a></h1></div>
        <p class="authorinfo">Gepost door: <span class="authorcolor"><a href="{link=home/user}" title="Bekijk {author}'s profiel">{author}</a></span> op {date} - {views}x bekeken[ifcf:Bron] - Bron: <a href="{cf:Bron}" target="_blank">{cf:Bron}</a>[/ifcf:Bron]</p>
     <hr />
     <p><a href="{link=test/post}">{avatar}</a>{short-story} [full-link]<a href="{link=test/post}">Lees meer</a>
         [/full-link]</p>
</div>


and in options > rufus in url.ini i enter
Code:

[test]
post = "{category}/{id}/{title}.html"


So WT*@#!*$ is causing the problem that my different page/layout isnt beeing showed? It loads the default layout.
Sorry for language
Fri Sep 12, 2008 1:21 pm View user's profile Send private message
Guest








Please login to hide the ads.

FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2857
Location: Germany

Post Reply with quote
You are telling the script to show the default layout, aren't you:
Quote:
<div id="NewsContent">
<?php
if ($do == 'users'){
include $cutepath.'/show_users.php';
} elseif ($do == 'archives'){
echo cn_archives();
} else {
$number = "15";
$template = "Default";
$category = "13,14,15,16,18,19,20,21";
include($cutepath.'/show_news.php');
}
?>
</div>

Fri Sep 12, 2008 1:31 pm View user's profile Send private message
Partyism



Joined: 25 Sep 2007
Posts: 300

Post Reply with quote
yes thats true, but in test.php i have a extra field on the right side with this include:

Code:
<?php
if ($id and $ucat){
   $static['template'] = 'Headlines';
   $static['number'] = 5;
   $static['skip'] = 3;
   $static['category'] = $ucat;
   include .'/show_news.php';
}
?>


which isnt on the index.php. So when you open a post youll get to see the related posts in the same category next to my news.

edit:

so this would be short story:


and this full story that youll have that extra field

Fri Sep 12, 2008 1:34 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2857
Location: Germany

Post Reply with quote
Ok, I can follow you so far. You have a page called index.php with "read more"-links leading to test.php. And in test.php you show related news. Now what's the problem?
Fri Sep 12, 2008 1:49 pm View user's profile Send private message
Partyism



Joined: 25 Sep 2007
Posts: 300

Post Reply with quote
that my fullstory isnt beeing opent in test.php Very Happy

Thats why i tried to use "open full story in different page" but doesnt work.
Where is the problem?
Fri Sep 12, 2008 1:51 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2857
Location: Germany

Post Reply with quote
I just tested it again with the example page and it's working great.

Try it yourself with the example page and if it's working then you know that something's wrong with your code.
Fri Sep 12, 2008 2:47 pm View user's profile Send private message
Partyism



Joined: 25 Sep 2007
Posts: 300

Post Reply with quote
i cant try with example because there is no test.php with the other layout.
but i will have a second look on it.. Crying or Very sad Neutral
Fri Sep 12, 2008 2:58 pm View user's profile Send private message
Partyism



Joined: 25 Sep 2007
Posts: 300

Post Reply with quote
Code:
# [newpage] post
RewriteRule ^(none|binnenlands|buitenlands|arnhem|algemeen|lachwekkend|schokkend|eredivisie|champions-league|ek-2008|ek-poule|download|column|foto|actie|playstation-3|videos|voetbal|update|evenement|video)/([0-9]+)/([_0-9a-z-]+).html(/?)+$ /artikelen/newpage.php?category=$1&id=$2&title=$3 [QSA,L]


This is the new line in my htacces. Is something wrong with this maybe!?
Mon Sep 15, 2008 11:05 am View user's profile Send private message
Partyism



Joined: 25 Sep 2007
Posts: 300

Post Reply with quote
ok, when i have
Code:
[newpage]
post = "{category}/{id}/{year}/{title}.html"

its working.

When i delete {year} its not working :s
Wed Sep 17, 2008 1:36 pm View user's profile Send private message
Partyism



Joined: 25 Sep 2007
Posts: 300

Post Reply with quote
I think i solved it...
Wed Sep 17, 2008 1:37 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
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 cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.