Log in

View Full Version : Cutenews Help - Simple :P



Icarus
23-09-2007, 08:30 AM
Does anyone know how to get a full story link to open in another part of the site to where the link is located?

- Like in the updates box on Clubhabbo where you click it and it opens in the main Iframe.
Does anyone know how that is done? I can only get it to open in the same area as the link!?

:Edzy
23-09-2007, 08:54 AM
you can't i dont think because you cant give it a target :s

Chippiewill
23-09-2007, 08:59 AM
you can change it. It's just very hard, and it involves looking through loads of code.

Icarus
23-09-2007, 08:59 AM
Clubhabbo have done it.. Check there Updates box/Iframe When you click a link (which is the fullstory link) It opens in the main content area

Chippiewill
23-09-2007, 09:03 AM
it might not be cutenews. I'll look through the coding to see if it's easy to change. ;o.

ScottDiamond.
23-09-2007, 09:05 AM
Clubhabbo have done it.. Check there Updates box/Iframe When you click a link (which is the fullstory link) It opens in the main content area

They just have <body target="frame"> in their index file?

Doesn't involve thousands of code. If you put that in your index file it should work. (It makes all links without a target open in 'frame').

Note: Replace frame with the name of your main content iFrame.

:Edzy
23-09-2007, 09:06 AM
if u mean the clubhabbo latest, it might not even be cutenews but i dunno

sorry

ScottDiamond.
23-09-2007, 09:07 AM
if u mean the clubhabbo latest, it might not even be cutenews but i dunno

sorry

It is cutenews. I've posted in it before lol.

Icarus
23-09-2007, 09:11 AM
Thanks Scott, I'll try that if it doesn't work I'll tell you on MSN - If anyone has any other ideas please post though!

Chippiewill
23-09-2007, 09:13 AM
OK i have found it it is in the functions file shortly after the duck joke bit

"And the duck flys home or sumin"


It's in the:
replace_comments section

oh damn it someone go to a solution first :(


ah well it had a few solutions to sumin i wanted to change anyway

Icarus
23-09-2007, 09:14 AM
What is it then? Lol

Invent
23-09-2007, 09:51 AM
It's simple.

Open inc/shows.inc.php or something.

Then find the [full-story] links or w/e and just add target="iframe" to the ahref.

RedCrisps
23-09-2007, 09:59 AM
put this straight after <title></title>

<base target="content">

make a seperate file called headlines.php and add the following code

<?php
$number = "5"; // This shows how many headliners you wish to display
$template = "Headlines"; // This is the template you wish to be used for your headlines
include('/home/CPANELNAME/public_html/cutenews/show_news.php'); // This is the URL of your cutenews news display
?>

where you want the updates add this php code

<?php include('http://www.SITENAME.com/headlines.php'); ?>

now you must remember to make your index file .php or this will not work!
Also go onto cutenews, then templates. edit the template "Headlines" to this in active news

<p>{title}<br />
<i>{short-story} - {date}</i></p>
you can edit that round if you want =]

Eccentric
23-09-2007, 10:04 AM
It's simple.

Open inc/shows.inc.php or something.

Then find the [full-story] links or w/e and just add target="iframe" to the ahref.


put this straight after <title></title>

<base target="content">make a seperate file called headlines.php and add the following code

<?php
$number = "5"; // This shows how many headliners you wish to display
$template = "Headlines"; // This is the template you wish to be used for your headlines
include('/home/CPANELNAME/public_html/cutenews/show_news.php'); // This is the URL of your cutenews news display
?> where you want the updates add this php code

<?php include('http://www.SITENAME.com/headlines.php'); ?> now you must remember to make your index file .php or this will not work!
Also go onto cutenews, then templates. edit the template "Headlines" to this in active news

<p>{title}<br />
<i>{short-story} - {date}</i></p>you can edit that round if you want =]

i would prefer to use simons as its alot simpilar unless your not using an iframe etc.

RedCrisps
23-09-2007, 10:14 AM
i would prefer to use simons as its alot simpilar unless your not using an iframe etc.
owell xD

Icarus
23-09-2007, 10:22 AM
put this straight after <title></title>

<base target="content">make a seperate file called headlines.php and add the following code

<?php
$number = "5"; // This shows how many headliners you wish to display
$template = "Headlines"; // This is the template you wish to be used for your headlines
include('/home/CPANELNAME/public_html/cutenews/show_news.php'); // This is the URL of your cutenews news display
?> where you want the updates add this php code

<?php include('http://www.SITENAME.com/headlines.php'); ?> now you must remember to make your index file .php or this will not work!
Also go onto cutenews, then templates. edit the template "Headlines" to this in active news

<p>{title}<br />
<i>{short-story} - {date}</i></p>you can edit that round if you want =]


On the <base target="content"> Do I need to change content to the name of a relevant Iframe or div ?

Eccentric
23-09-2007, 10:23 AM
si. (yes)

RedCrisps
23-09-2007, 10:25 AM
On the <base target="content"> Do I need to change content to the name of a relevant Iframe or div ?
yeh, although i think it only works with iframes i dunno just try ;D

Icarus
23-09-2007, 10:27 AM
Ok, If I do this will It show the "Linked News" as default in main content or can I still have welcome to the site blah... etc


Sorry for being noobish today :P

RedCrisps
23-09-2007, 10:29 AM
Ok, If I do this will It show the "Linked News" as default in main content or can I still have welcome to the site blah... etc


Sorry for being noobish today :P
yeh you still have your intro thingy page :D

Want to hide these adverts? Register an account for free!