2 tainted Jan 09, 2006 20:54

Your path to calendar.php is wrong, it should look somethink like :-
reuire dirname(__FILE__).'/blog/skins/<your skin name>/_calendar.php
¥
¥åßßå wrote:
Your path to calendar.php is wrong, it should look somethink like :-
reuire dirname(__FILE__).'/blog/skins/<your skin name>/_calendar.php
¥
Thanks for responding. I'm using the custom skin and just editting the file to get what I want.
I've changed the path to look like what you put:
<?php // -------------------------- CALENDAR INCLUDED HERE -----------------------------
require( dirname(__FILE__).'/blog/skins/custom/_calendar.php' );
// -------------------------------- END OF CALENDAR ---------------------------------- ?>
And when I view the page I get this message now:
Please, do not access this page directly.
I've been going to sleep and dreaming about php coding the last few days lol.
lol, I bet :p
Ok, you also need to include the bare bones of b2evo before you can use any of it's component parts.
Depending on your version (the directory name and filname may differ slightly), you need something like this at the top of your page :-
require_once dirname(__FILE__).'/blog/evocore/_main.inc.php';
¥
¥åßßå wrote:
lol, I bet :p
Ok, you also need to include the bare bones of b2evo before you can use any of it's component parts.
Depending on your version (the directory name and filname may differ slightly), you need something like this at the top of your page :-
require_once dirname(__FILE__).'/blog/evocore/_main.inc.php';
¥
I thought I had it after getting a bunch of errors and the page finally loaded, BUT alas lol, it didn't work. I have the Dawn version on b2evo installed. I added:
<?php require_once( dirname(__FILE__).'/blog/b2evocore/_main.php' ); ?>
To the top of the page and in turn got:
MySQL error!
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1(Errno=1064)
Your query:
SELECT * FROM evo_blogs WHERE blog_ID =
I went into the admin and went to the blog tab. My default blog is Blog A (#2). I'm assuming something has to be done with that, but I really don't know much about php, so I'm probably wrong lol. This is fast becoming something I need to learn.
lol, never rains but it pours :p
Ok, got to "tad late at night" time here, and my brain kinda joins EdB's in a whiskey at this hour ( cos he's a lush and drinks anytime of day :| ), so I'm probably not the best one to ask for advice ;)
You might try turning debug mode on (urm... conf/config.php or summat) and seeing where the error occurs.
¥
¥åßßå wrote:
Ok, got to "tad late at night" time here, and my brain kinda joins EdB's in a whiskey at this hour ( cos he's a lush and drinks anytime of day :| ), so I'm probably not the best one to ask for advice ;)
HEY NOW! I only drink when I'm awake ;)
¥åßßå wrote:
lol, never rains but it pours :p
Ok, got to "tad late at night" time here, and my brain kinda joins EdB's in a whiskey at this hour ( cos he's a lush and drinks anytime of day :| ), so I'm probably not the best one to ask for advice ;)
You might try turning debug mode on (urm... conf/config.php or summat) and seeing where the error occurs.
¥
Where does it let me know where the error is? Sorry, I have no idea about this stuff lol.
Bumping...
Hi Tainted,
Sorry, I forgot all about this :P
2 things,
1/ change your code to this :-
<?php
$blog = 2;
require_once( dirname(__FILE__).'/blog/b2evocore/_main.php' );
?>
2/ add this to the end of your page :-
<?php debug_info(); ?>
Hopefully the first change will cure your problems, if not then the 2nd change should dump a load of info which may (or may not) help you track down the culprit.
¥
¥åßßå wrote:
Hi Tainted,
Sorry, I forgot all about this :P
2 things,
1/ change your code to this :-
<?php
$blog = 2;
require_once( dirname(__FILE__).'/blog/b2evocore/_main.php' );
?>2/ add this to the end of your page :-
<?php debug_info(); ?>
Hopefully the first change will cure your problems, if not then the 2nd change should dump a load of info which may (or may not) help you track down the culprit.
¥
88| It worked!!! Thank you sooo much. Now I can finally re-open my site lol. Thank you!
No problem ;)
¥
I've changed the subject hoping it would easily convey what it is I'm trying to do. Please if this is in the wrong place, move it. I'd like to have my site completely done before re-opening, and this is the only thing left holding it back.
Also, if you need me to clarify some more please let me know. I'd really like to get my site all up at one time. This is the only thing holding me back... and it's getting frustrating trying to figure it out and nothing is working.