1 edb Dec 14, 2006 17:02
3 edb Dec 15, 2006 06:19
I hadn't thought of three column blogs, but I can't imagine why it would break the layout. What did your _something.php page end up looking like? The echo lines were in the sample only to be a sample. Same with the html stuff. You would, of course, replace all of it with whatever you wanted to display between posts. Do you have a place I can see it failing?
4 cslepage Dec 15, 2006 11:50
Here's the code:
<?php
/*
* This is a custom page that adds *something* or *something else* after the first or second post displayed on a page.
*
* Do NOT remove the "if ! defined ... " line unless you want hackers to eat your babies!!!
*/
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
?>
<div class="bPost">
<p><script src="http://feeds.feedburner.com/comiclistfeed?format=sigpro" type="text/javascript" ></script><noscript></p>
</div>
I removed the hack when it did not work as planned. But I'll try to get it up somewhere for you to see.
5 edb Dec 15, 2006 12:02
I wonder if having a <noscript> tag without having a </noscript> tag is an issue? I can't imagine how it could break your blog, but it's the only thing I see in your file that might be an issue.
More support tomorrow as it's way past my bedtime.
6 cslepage Dec 16, 2006 02:23
EdB wrote:
I wonder if having a <noscript> tag without having a </noscript> tag is an issue? I can't imagine how it could break your blog, but it's the only thing I see in your file that might be an issue.
Good call! I removed it and it works. It does produce the following "error log" entries, though:
[Fri Dec 15 19:29:38 2006] [error] PHP Notice: Undefined variable: first_post_done in /home/comlist/public_html/skins/Stockholm_remix/_main.php on line 571
[Fri Dec 15 19:29:29 2006] [error] PHP Notice: Undefined variable: second_post_done in /home/comlist/public_html/skins/Stockholm_remix/_main.php on line 574
7 edb Dec 16, 2006 02:49
I wondered if it was okay to "just assume" an undefined variable would not equal true. Perhaps it works but it's not the best way to do business eh? Let's try something and see if you continue to see that error entry. Again in your _main.php file way up at the top add another line:
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); // this line already exists
$first_post_done = $second_post_done = false;
This way we're officially stating that those variables exist and that they are false. I'm guessing this will stop those lines from showing up in your error log file. I just checked mine at ahga.org and don't see the same thing, so I can't really test this issue & solution myself.
8 cslepage Dec 16, 2006 02:57
That appears to have taken care of the errors.
html://www.comiclist.com
If you'd like to see your hack at work.
Now if I could just clear up the ministats and sideblog errors, I'd be curiously satisfied with my blog. :)
I tried this hack out.
First, I had to remove the "echo" lines, as they showed up on my blog.
Second, it did post something after the first post, but none of the other posts showed up, and the right column (I have a three column blog) appeared immediately after the "something," so, in essence, I now had a two column blog.