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 if i try to activate dynamic url i get erros
Evollution
Posted on 10 Jul 2010, 20:19:46

Access: Member
Total Posts: 16
Joined: 2010-07-10

http://fifago.com/



Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/fifagoc1/public_html/theme/fmd/html.php on line 57

Warning: require_once(http://fifago.com/news/db.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/fifagoc1/public_html/theme/fmd/html.php on line 57

Fatal error: require_once() [function.require]: Failed opening required 'http://fifago.com/news/db.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fifagoc1/public_html/theme/fmd/html.php on line 57
#2656
Chris
Posted on 10 Jul 2010, 20:37:25

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

Instead of this

Code:
require_once('http://fifago.com/news/db.php');


Do this

Code:
require_once('news/db.php')
#2657
Evollution
Posted on 10 Jul 2010, 20:42:21

Access: Member
Total Posts: 16
Joined: 2010-07-10

http://fifago.com/news/4-0-GALERIE-FOTO-Iubita-lui-Ronaldo-face-parada-modei-prin-New-York.html

other error :(

news appears above the logo

code:
<?php
require_once('news/db.php');
require_once('news/config.php');

if(FRIENDLY){
$id = $url['0'];
}else{
$id = $_GET['id'];
}
$headerinfo = DataAccess::fetch(sprintf("SELECT title, shortstory AS summary, story AS article FROM %s WHERE id = ?", NEWS_ARTICLES), $id);
$title = $headerinfo['0']['title'];
$summary = $headerinfo['0']['summary'];
if(!$id || count($headerinfo) < 1){
// not viewing a full article or article doesn't exist so display your normal title
echo '<title>example</title>';
echo '<meta name="title" content="example.com" />';
echo '<meta name="description" content="example.com - description" />';
}else{
// Viewing a full article so display the title of that article + description meta tags
echo sprintf("<title>%s</title>", $title);
echo sprintf('<meta name="title" content="%s" />', $title);
echo sprintf('<meta name="description" content="%s" />', $summary);

}
?>
#2658
Chris
Posted on 10 Jul 2010, 20:46:02

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

Change this

Code:
$summary    = $headerinfo['0']['summary'];


To this

Code:
$summary    = strip_tags($headerinfo['0']['summary']);
#2659
Chris
Posted on 10 Jul 2010, 20:49:33

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

Or better yet, this

Code:
$summary    = str_replace("\"", "", strip_tags($headerinfo['0']['summary']));
#2660
Network-13.com © 2013