Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: No center content  (Read 4654 times)

alain

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 59
No center content
« on: October 15, 2007, 04:05:19 pm »

can anyone help me sort out this problem?

i configured sNewsMU localy and it works OK, but when i upload it to my web server, it displays everything , exept the center content, and therefore i cant even log in to edit thge site or even see my contact page. i double checked all codes, made sure there's no slash missing or anything like that.

but i cant still see the center content, copied the file from my web server to the local server. its OK!

what could be wrong? i also cant see the users and guests online.

please help!  ???
Logged
Do not judge a book by its cover

alain

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 59
Re: No center content
« Reply #1 on: October 16, 2007, 08:48:06 am »

if you check now, i've uploaded the original sNewsMU index.php file, also recreated the database tables and uploaded the original sNewsMU.php file, but i still get the same problem. even with the original files i downloaded from this site.

So the problem is probablt somewere else.



Anyway this is my index.php source code.

Code: [Select]
<?php session_start(); include('snewsMU.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php title(); ?>
<link href="css/style.css" type="text/css" rel="stylesheet" />
</head>

<body>
<div id="page_wrapper">
<div id="header_wrapper">
<div id="header">
<img src="img/logo.gif">
<h2>&nbsp;&nbsp;&nbsp;Do you know what love is?</h2>
</div>
<div id="navcontainer">
<ul id="navlist">
<?php pages(); ?>
</ul>
</div>
</div>

<!--------End header------------->
<div id="left_side">
<h3>Categories:</h3>
<ul>
<?php categories(); ?>
</ul>
<h3>New Articles:</h3>
<ul>
<?php menu_articles(0,3); ?>
</ul>
<?php extra(); ?>

<!--------Google ads------------->
****************************************
<!--------End Google ads------------->
</div>
<div id="right_side">
<h3>Search this site</h3>
<p>
<?php searchform(); ?>
</p>
<h3>Login/Register</h3>
<div class='featurebox_side'>
<?php login2(); ?></div>
<div class='featurebox_side'>
<img src="img/ppl.gif">
<br>Get the best advice about men here.
</div>
<h3>Check this!</h3>
<div class='featurebox_side'>
Do you want to advertise on this space???
well just send us a request to <b>ads@firstlove.co.za</b>
</div>
</div>

<!--------Center Content------------->
<div id="content">
<?php center(); ?>

<h3>New comments:</h3>
<div class='featurebox_side'>
<?php new_comments(330); ?>
</div>

</div>
<div id="footer">
<a href="http://www.designsbydarren.com" target="new">Site temp</a> | <a href="http://www.snewscms.com" target="new">powered by sNews(CMS)</a> |
<?php login_link(); ?>

<!--------Counter------------->
<br />
<p><?php users_online(); ?><br /><?php guests_online(); ?></p>
</div>
</div>
</body>
</html>

« Last Edit: October 16, 2007, 09:07:40 am by alain »
Logged
Do not judge a book by its cover

alain

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 59
Re: No center content
« Reply #2 on: October 16, 2007, 02:57:41 pm »

but if you check my site now, i have the original index.php and the original sNewsMU.php , with out modifying it, i still get the same problem, you can check for yourself!
Logged
Do not judge a book by its cover

alain

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 59
Re: No center content
« Reply #3 on: October 16, 2007, 04:43:02 pm »

WELL IT SAYS

Quote
Fatal error: Call to undefined function guests_online() in /home/firstlov/public_html/index.php on line 61

i took out that line, but still couldnt see the center!
Logged
Do not judge a book by its cover

alain

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 59
Re: No center content
« Reply #4 on: October 16, 2007, 04:50:50 pm »

Well its 17h00 here in south africa, i got 2 go, i hope you'll have some answers for me 2moro when i come in the office

thanks for the effort i apreciate it... ;)
Logged
Do not judge a book by its cover

alain

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 59
Re: No center content
« Reply #5 on: October 16, 2007, 04:52:33 pm »

let me try!
Logged
Do not judge a book by its cover

alain

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 59
Re: No center content
« Reply #6 on: October 16, 2007, 04:55:26 pm »

this is how it looks

Code: [Select]
error_reporting(1);

/*** CONFIGURATION VARIABLES ***/

// DATABASE VARIABLES
function db($variable) {
$db = array();
$db['website'] = 'http://www.sitename.co.za/';
$db['dbhost'] = 'localhost'; //MySQL Host
$db['dbname'] = '*prefix*_DBname'; //Database Name
$db['dbuname'] = '*prefix*_*Uname*'; //Database Username
$db['dbpass'] = '*******'; //Database password
$db['prefix'] = '*prefix*_'; //Database prefix
$db['dberror'] = '<strong>There was an error while connecting to the database.</strong> <br /> Check your database settings.'; //Database error message
return $db[$variable];
}

Y only the center content and not the others like the search function? or the pages?
« Last Edit: October 16, 2007, 04:57:20 pm by alain »
Logged
Do not judge a book by its cover

alain

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 59
Re: No center content
« Reply #7 on: October 16, 2007, 04:58:20 pm »

No they are not, but Why only the center content and not the others like the search function? or the pages?
Logged
Do not judge a book by its cover

alain

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 59
Re: No center content
« Reply #8 on: October 17, 2007, 10:55:40 am »

Thanks Bekercad,

It worked.
Logged
Do not judge a book by its cover