BOARDS

planetluc.com discussion board

all about the planetlu.com scripts

You are not logged in.

Announcement

I had to clean the boards due to massive spam. Actually i deleted everything /-one after 1st Oct 2008. It was the only way to get this spam out of the boards. So i'm sorry for all serious users who registered/posted meanwhile.

#1 28-10-2006 00:56:44

mousepad
New member
Registered: 28-10-2006
Posts: 2

News in NEW WINDOW

Hi I searched the posts but did not find any answer (only regarding the ADMIN - new window)
I have my news running down a table on the lsft side of home page (about 250px) I would like to have the "read more" open to a full page within a template I have built for the news stories. Then return to news would get them back to the home page headlines/teasers. Having the news open in that narrow table causes VERY long and ugly pages...

Thanks for any help!
Mike

Offline

 

#2 30-10-2006 16:34:16

sidtheduck
Moderator
From: down by the water
Registered: 14-07-2006
Posts: 515
Website

Re: News in NEW WINDOW

hey mousepad,

This can be done, but will require some code changes.  I may need to ask a few more configuration changes / options from you as well (see below):

1. Would you like the story to be opened in a new, separate window every time or would you like the stories to all be opened in the same new window?

2. Would you like the story to be opened in a new window or the same window as the teasers with a different webpage / template?

2. Do all of the stories have a "full story" associated with them?

3. Would you like the RSS feed associated with the "full story" template or a different one?


If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family anatidae on our hands.                ~Douglas Adams~

Offline

 

#3 30-10-2006 17:21:32

mousepad
New member
Registered: 28-10-2006
Posts: 2

Re: News in NEW WINDOW

Hi thanks for your reply - but I found another script that has "open in popup" built in. So I will be trying that one.

Offline

 

#4 09-11-2006 20:54:26

rudyt
New member
Registered: 09-11-2006
Posts: 1

Re: News in NEW WINDOW

Hi!!!
I also wanted to open news in a new window.

Actually I wanna open Edit, add, on new window too.

I just want the Teaser and date on the main window.

by new window i meant on same new window.

Rss is fine i think as is.


-------------------------
Can someone explain to me REPLACEMENT TAGS? is it php? asp? where is it mapped?

Offline

 

#5 10-11-2006 02:18:19

sidtheduck
Moderator
From: down by the water
Registered: 14-07-2006
Posts: 515
Website

Re: News in NEW WINDOW

Hi rudyt!

rudyt wrote:

Hi!!!
I also wanted to open news in a new window.

I'll let you know.  I need to check my code when I get home to let you know where to edit.

rudyt wrote:

Actually I wanna open Edit, add, on new window too.

I can let you know how to do this.  However, if you add or edit a post in a new window, it won't show up on the original window until you refresh it.  We could add a javascript refresh to refresh the original window after an add or edit.  Let me check the code for you.

rudyt wrote:

Can someone explain to me REPLACEMENT TAGS? is it php? asp? where is it mapped?

Do you mean the replacement tags in the template.inc.php file?  They are not exactly PHP or ASP, but are used for a "string replace" command in the '/forum/mynews.inc.html' file (i.e. the tags as they are set up are replaced by the actual information for that tag using the PHP function str_replace as seen in the '/forum/mynews.inc.html' file).


If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family anatidae on our hands.                ~Douglas Adams~

Offline

 

#6 05-02-2007 15:47:05

benbird3
New member
Registered: 01-02-2007
Posts: 3

Re: News in NEW WINDOW

did anyone ever discover a way to pop news into a new window?

Offline

 

#7 10-03-2007 16:05:36

peter1234
New member
Registered: 10-03-2007
Posts: 1

Re: News in NEW WINDOW

hi

these 3 points apply to my problem:

1. Would you like the story to be opened in a new, separate window every time or would you like the stories to all be opened in the same new window?

2. Would you like the story to be opened in a new window or the same window as the teasers with a different webpage / template?

2. Do all of the stories have a "full story" associated with them?

on the first page where the teasers are listed is a general description of the page. what you can find on it and so on.
when i klick on read more. this general description appears  on the new page as well.
how can i open the history in a new page without the general description?

thx in advance

Offline

 

#8 19-07-2010 11:16:05

kimcold
New member
Registered: 19-07-2010
Posts: 1

Re: News in NEW WINDOW

It is quite easy, if I understand your need right. With a basic knowledge of HTML, you know that <a href="blablalb.com>Read more</a> is a link. Then you can simple add target="_blank" to the form, then it will pop up in a new window. So go into the template file, look for

<? if("{urltofullstory}" != "") {?><br /> <br /> <a href="{urltofullstory}"> Read more</a><? }?></td>

And change the line to:  <? if("{urltofullstory}" != "") {?><br /> <br /> <a href="{urltofullstory}" target="_blank">Read more</a><? }?></td>

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

 
 
© 2003-2010 by planetluc.com · Bachtelstrasse 104 · CH-8400 Winterthur | Support | Login |