View Full Version : open cutenews headlines
Colin-Roberts
19-05-2007, 11:57 AM
hey
http://warogaming.com/
on there when you click on latest news i want it to open in myframe1
how do i do that?
it's using cutenews 1.3.6
RNelson
19-05-2007, 11:59 AM
target="myframe1"
Colin-Roberts
19-05-2007, 12:03 PM
target="myframe1"
uh how. all it says in cutenews is ,
Sunny.
19-05-2007, 12:04 PM
^^
Said it all, Hyper link >> Page >> Target [What frames called] in ur case myframe1
RNelson
19-05-2007, 12:04 PM
Not in cutenews in the navigator,
Post the navigator code please.
uh how. all it says in cutenews is ,
Colin-Roberts
19-05-2007, 12:07 PM
<?PHP
$number="5";
$category = "2";
$template = "Headlines";
include("/mounted-storage/home10/sub002/sc16051-AGLV/warogaming.com/news/show_news.php");
?>
is the code used in navi.
RNelson
19-05-2007, 12:08 PM
The navigation code not cutenews ;]
<?PHP
$number="5";
$category = "2";
$template = "Headlines";
include("/mounted-storage/home10/sub002/sc16051-AGLV/warogaming.com/news/show_news.php");
?>
is the code used in navi.
To make it go to an iframe, you will have to edit a inc file or mdu I dont know, ill check what one
Ok, now I trust that you are using [full-link] on your headlines right?
Well, open up inc/shows.inc.php in your cutenews folder, find:
$output = preg_replace("/\\[full-link\\]/","<a href=\"$config_http_script_dir/show_news.php?subaction=showfull&id=$news_arr[0]&archive=$archive&template=$template\" return false;\">", $output);
}else{
$output = str_replace("[full-link]","<a href=\"$PHP_SELF?subaction=showfull&id=$news_arr[0]&archive=$archive&start_from=$my_start_from&ucat=$ news_arr[6]&$user_query\">", $output);
Now replace with
$output = preg_replace("/\\[full-link\\]/","<a target=\"myframe1\" href=\"$config_http_script_dir/show_news.php?subaction=showfull&id=$news_arr[0]&archive=$archive&template=$template\" return false;\">", $output);
}else{
$output = str_replace("[full-link]","<a target=\"myframe1\" href=\"$PHP_SELF?subaction=showfull&id=$news_arr[0]&archive=$archive&start_from=$my_start_from&ucat=$ news_arr[6]&$user_query\">", $output);
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.