View Full Version : Cutenews?
.-richie-.
02-03-2007, 10:00 PM
Hey I was wondering if anyone knows how to make my cutenews open the show full story link to open in the main Iframe on my website... I have seen other sites do it anyone that knows how please tell me =] Thanks. :)
Make sure the target is left blank as apposed to _blank
.-richie-.
02-03-2007, 10:06 PM
thats just going to make it open in a pop up..?
Invent
02-03-2007, 10:07 PM
Open inc/shows.inc.php
Find the code for [link] I think it is?
Then just add target="iframename" to the <a href="">
Change it so its
target=""> instead of <target="_blank">
Invent
02-03-2007, 10:10 PM
Dude he wants it to open in an iframe. Just doing target="" will do nothing.
You need the iframe name "/
I thought he was saying it is already in the iframe so he wouldnt need a target
.-richie-.
02-03-2007, 10:20 PM
when I add that I get the message Parse error: syntax error, unexpected T_STRING in /home/habbokp/public_html/news/inc/shows.inc.php on line 692
Invent
02-03-2007, 10:22 PM
you need to add '\' 's before any "
.-richie-.
02-03-2007, 10:35 PM
Its now saying:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/habbokp/public_html/news/inc/shows.inc.php on line 692
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/habbokp/public_html/news/inc/shows.inc.php on line 692
Invent
02-03-2007, 10:38 PM
Show code
.-richie-.
02-03-2007, 10:41 PM
This is some of it were the address is:
if(isset($start_from) and $start_from != ""){
if($i < $start_from){ $i++; continue; }
elseif($showed == $number){ break; }
}
if($my_names[$news_arr[1]]){ $my_author = $my_names[$news_arr[1]]; }
else{ $my_author = $news_arr[1]; }
$output = $template_active;
$output = str_replace("{title}", $news_arr[2], $output);
$output = str_replace("{author}", $my_author, $output);
if($news_arr[5] != ""){$output = str_replace("{avatar}", "<img alt=\"\" src=\"$news_arr[5]\" style=\"border: none;\" />", $output); }
else{ $output = str_replace("{avatar}", "", $output); }
$output = str_replace("{avatar-url}", "$news_arr[5]", $output);
$output = str_replace("","<a href=\"$PHP_SELF?subaction=showfull&id=$news_arr[0]&archive=$archive&start_from=$my_start_from&ucat=$ news_arr[6]&$user_query\">", $output);
$output = str_replace("","</a>", $output);
$output = str_replace("{comments-num}", countComments($news_arr[0], $archive), $output);
$output = str_replace("{short-story}", $news_arr[3], $output);
$output = str_replace("{full-story}", $news_arr[4], $output);
$output = str_replace("{category}", catid2name($news_arr[6]), $output);
$output = str_replace("{category-id}", $news_arr[6], $output);
if($cat_icon[$news_arr[6]] != ""){ $output = str_replace("{category-icon}", "<img alt=\"".$cat[$news_arr[6]]." icon\" style=\"border: none;\" src=\"".$cat_icon[$news_arr[6]]."\" />", $output); }
else{ $output = str_replace("{category-icon}", "", $output); }
$output = str_replace("{author-name}", $name_to_nick[$news_arr[1]], $output);
Invent
02-03-2007, 10:43 PM
that doesnt even have target="" in it?
.-richie-.
02-03-2007, 10:44 PM
I know I took it out it was giving me errors.
Invent
02-03-2007, 10:48 PM
if(isset($start_from) and $start_from != ""){
if($i < $start_from){ $i++; continue; }
elseif($showed == $number){ break; }
}
if($my_names[$news_arr[1]]){ $my_author = $my_names[$news_arr[1]]; }
else{ $my_author = $news_arr[1]; }
$output = $template_active;
$output = str_replace("{title}", $news_arr[2], $output);
$output = str_replace("{author}", $my_author, $output);
if($news_arr[5] != ""){$output = str_replace("{avatar}", "<img alt=\"\" src=\"$news_arr[5]\" style=\"border: none;\" />", $output); }
else{ $output = str_replace("{avatar}", "", $output); }
$output = str_replace("{avatar-url}", "$news_arr[5]", $output);
$output = str_replace("","<a href=\"$PHP_SELF?subaction=showfull&id=$news_a rr[0]&archive=$archive&start_from=$my_start_fro m&ucat=$news_arr[6]&$user_query\" target=\"iframename\" />", $output);
$output = str_replace("","</a>", $output);
$output = str_replace("{comments-num}", countComments($news_arr[0], $archive), $output);
$output = str_replace("{short-story}", $news_arr[3], $output);
$output = str_replace("{full-story}", $news_arr[4], $output);
$output = str_replace("{category}", catid2name($news_arr[6]), $output);
$output = str_replace("{category-id}", $news_arr[6], $output);
if($cat_icon[$news_arr[6]] != ""){ $output = str_replace("{category-icon}", "<img alt=\"".$cat[$news_arr[6]]." icon\" style=\"border: none;\" src=\"".$cat_icon[$news_arr[6]]."\" />", $output); }
else{ $output = str_replace("{category-icon}", "", $output); }
$output = str_replace("{author-name}", $name_to_nick[$news_arr[1]], $output);
Change to that altering the iframename
.-richie-.
02-03-2007, 11:06 PM
When I click read more it does not do anything and when I turn the open news in new window on cutenews it opens in new window :S
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2026 vBulletin Solutions Inc. All rights reserved.