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 Open article in a popup window
Mikemardon
Posted on 30 Sep 2010, 12:23:57

Access: Member
Total Posts: 6
Joined: 2010-09-30

Is there a way to open a full article in a popup window if the 'Read More' link is clicked on? I am using the latest version of the software.

Thanks :)
#2895
Chris
Posted on 06 Oct 2010, 04:38:39

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

The read more link is basically the same as the view comments link, if you use the [comments]Read more[/comments] tags instead, in Options > System > Comments. There's an option that'll open the links in a new window.
#2903
Mikemardon
Posted on 06 Oct 2010, 08:39:21

Access: Member
Total Posts: 6
Joined: 2010-09-30

Thanks for the reply Chris

I tried your suggestion but still no joy I'm afraid.
I went into the OPTIONS>SYSTEM>COMMENTS section and set 'Show comments in new window:' to 'YES'
and here is my news template :


<div style="border-bottom:solid 1px #cccccc; float:left;margin:8px 0px 16px 0px;padding:0px 0px 8px 0px;font-family:Tahoma, Geneva, Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif;">
<span class="title_{oneortwo}" style="font-size: 1.4em; color: #333333;font-weight:bold;">{title}</span><br />


<div style="font-size: 1em">
{shortstory}
{story}
[comments]Read more[/comments]

[files] <br /><br />
<table style="border: 1px solid #EEEEEE">
<tr>
<td>Title</td><td>Filename</td><td>Filesize</td><td>Uploaded</td><td>Downloads</td><td>Uploader</td>
</tr>
{files}
</table>
[/files]
</div>
</div>
<br />

any ideas?

Thanks
Mike
#2906
Chris
Posted on 06 Oct 2010, 09:14:37

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

What you could do is create your own link instead, all you have to do is pass the id parameter via the url, so this should work

Code:
<a href="?id={id}" target="_NEW">Read More</a>
#2907
Mikemardon
Posted on 06 Oct 2010, 12:00:54

Access: Member
Total Posts: 6
Joined: 2010-09-30

thanks Chris

That kind of works, it opens in a new window but because I am using a master page template and including the news\index.php file it opens the page with the entire site navigation etc..

I would like it to open in a blank window so I created a new page outside of my template but I am unsure how to get it to show a single article?
I am using :

<?php
$cat[] = "Europlas Latest News";
include("news/index.php");
?>

in my main news file but I guess I need call an article based on the querystring id - how can I do this?

Thanks
Mike
#2908
Network-13.com © 2013