• i’m working on customizing a new theme for my site and everything was working just fine and dandy until i started adding my php includes to my ‘online now’ and ‘counter’. when i add any includes, actually, in my side bar… it makes my blog screw up.

    like, when i add my php include for my ‘online now’ it makes my comment plugger, ‘previous posts’ and archives not show up over in my blog.

    http://action.nu/index2.php is what i’m working on right now. if anyone can help me figure out what’s going on that’d be great.

Viewing 12 replies - 16 through 27 (of 27 total)
  • Okay, that isn’t working . . . *sigh* since I imagine line 59 of sidebar.php is exactly where you put that include call. Can you post the sidebar code exactly as it is when it causes that error?

    Oh, and you can try this.

    <?php include ('includes/current.php'); ?>

    Thread Starter jennaction

    (@jennaction)


    <div class="shwa">
    <h1>jenna lee</h1>
    <img src="http://action.nu/wp/wp-content/themes/shwa/images/girlie.jpg" align="left" style="border:1px solid #666666;"> <b>Jenna.</b> Seattle, WA. 19 years <i>young</i>. In <a href="http://myspace.com/emattox" title="eric's myspace">love</a>. Irish. Redhead, blue eyes & fair skin. Web design & <a href="http://last.fm/user/jennaish" title="my last.fm, jennaish">music</a>. Insomniac. Shy as <i>hell</i>. Completely mental. Computer geek. <b><3</b>'s the color <b><font style="color:#88A053;">green</font></b>. Watches American Idol! & The OC like a madwoman.<br>
    <table width="100%" border="0" style="margin:0; padding:0;">
    <tr>
    <td style="margin:0; padding:0;"><a href="http://action.nu/index2.php/jenna/cam" title="webcam remote"><img src="http://action.nu/wp/wp-content/themes/shwa/images/folder.gif" border="0"> cam remote</a></td>
    <td width="35%" style="margin:0; padding:0; text-align:right;">... <a href="http://action.nu/index2.php/jenna" title="about me">more?</a></td>
    </tr>
    </table>
    </div>

    <div class="shwa">
    <h1>site</h1>
    <b>ACTION!</b> Personal site; debuted on 6/21/05. Best viewed in <a href="http://mozilla.com&quot; title="mozilla firefox kicks the hell out of shiternet explorer">Mozilla</a> w/higher resolutions. <i>Version 07</i>; feat. me (Jenna Jackson). Made by me (<a href="http://whatiscopyright.org&quot; title="i'm a dumbass, what is copyright?">�</a>) in PS7. <a href="http://remixx.net/rated/in.php?site=1110864401&quot; title="r rated topsties">01</a> <a href="http://disastermb.org/topsites/in.php?site=1140109362&quot; title="disaster mb topsites">02</a> <a href="http://eon-blue.org/top/index.php?a=in&u=Jenna&quot; title="eon-blue topsites">03</a> <a href="http://broken.nu/topsites/index.php?a=in&u=action&quot; title="broken topsites">04</a> <a href="http://helloalice.org/flightpath/in.php?site=1134031232&quot; title="flightpath topsites">05</a><br>
    <table width="100%" border="0" style="margin:0; padding:0;">
    <tr>
    <td style="margin:0; padding:0;"><a href="http://action.nu/index2.php/action/credits&quot; title="site credits"><img src="http://action.nu/wp/wp-content/themes/shwa/images/folder.gif&quot; border="0"> credits</a></td>
    <td width="35%" style="margin:0; padding:0; text-align:right;">... <a href="http://action.nu/index2.php/action&quot; title="about action!">more?</a></td>
    </tr>
    </table>
    </div>

    <div class="shwa">
    <h1>navigate</h1>
    <a href="http://action.nu/index2.php&quot; title="blog/home"><img src="http://action.nu/wp/wp-content/themes/shwa/images/folder.gif&quot; border="0"> blog</a>
    <a href="http://action.nu/index2.php/jenna&quot; title="about me"><img src="http://action.nu/wp/wp-content/themes/shwa/images/folder.gif&quot; border="0"> jenna</a>
    <a href="http://action.nu/index2.php/action&quot; title="about action!"><img src="http://action.nu/wp/wp-content/themes/shwa/images/folder.gif&quot; border="0"> action!</a>
    <a href="http://action.nu/index2.php/links&quot; title="links"><img src="http://action.nu/wp/wp-content/themes/shwa/images/folder.gif&quot; border="0"> links</a>
    <a href="#" title="ask me a question"><img src="http://action.nu/wp/wp-content/themes/shwa/images/folder.gif&quot; border="0"> faq</a>
    </div>

    <div class="shwa">
    <h1>dailies</h1>
    <a href="http://themurderfad.com/ashleymeows&quot; title="themurderfad.com/ashleymeows">Ashley</a>,
    <a href="http://broken.nu&quot; title="broken.nu">Erin</a>,
    <a href="http://enraptura.net&quot; title="enraptura.net">JC</a>,
    <a href="http://xoxo.nu&quot; title="xoxo.nu">Jenn</a>,
    <a href="http://action.nu/johna&quot; title="action.nu/johna">Johna</a>*,
    <a href="http://action.nu/attack&quot; title="action.nu/attack">Kaye</a>*,
    <a href="http://bituwin.org&quot; title="bituwin.org">Lai</a>,
    <a href="http://funeralparade.org/fighttheory&quot; title="funeralparade.org/fighttheory">Lynn</a>,
    <a href="http://ghostanatomy.org&quot; title="ghostanatomy.org">Malene</a>,
    <a href="http://funeralparade.org&quot; title="funeralparade.org">Nikole</a>,
    <a href="http://dropthegun.nu&quot; title="dropthegun.nu">Sarah</a>
    </div>

    <div class="shwa">
    <h1>make a friend</h1>
    <i>mail</i> girl@action.nu<br>
    <i>aim</i> gosh jenna<br>
    <i>lj</i> fuckyea! jenna<br>
    <i>last.fm</i> jennaish<br>
    <a href="http://disastermb.org&quot; title="join disaster mb (& say Jenna referred you) because it's cooler than your mom!">dmb</a> Jenna
    </div>

    <div class="shwa">
    <h1>stats</h1>
    <?php cypher_sitestats(); ?><br>
    <b>Online</b> <?php include ('/home/action/public_html/!/usersonline.php'); ?>
    </div>

    <div class="shwa">
    <h1>disclaimer</h1>
    If you steal anything from this site I will find out & I <i>won't</i> be nice about it. Everything on this site is <a href="http://whatiscopyright.org&quot; title="i'm a dumbass, what is copyright?">�</a> to me unless otherwise stated. Feel free to <i>view</i> my coding, we all learn that way. I have a little Right, it's called <b>Freedom of Speech</b>. If you see something in my blog/site that offends you, <i>tough shit, sucka!</i> 'Cuz I don't give a fuck.
    </div>

    that’s it, exactly as it is in my sidebar file…
    oi, and i forgot… i’m not trying to get my ‘current’ to include anymore i ended up putting that on another page. i’m trying to get my online now counter to show. and it does… but it’s messing everything else up. ergh.
    i might just try another counter code. i know there’s a plugin for wordpress that does counters…

    but i’d like to be able to do php includes in my sidebar. rofl. so ergh. i dunno. i’d like to get this figured out, but if it comes down to it i could always try that plugin.

    The back tick. Enclose in back ticks- that’s that thing next to the 1 on your keyboard.

    Try this first though.

    <?php include ('includes/current.php'); ?>

    Thread Starter jennaction

    (@jennaction)

    jdaskl;ghdlaskgh. nevermind. haha. i get what you’re saying i saw it below this box ‘backtick’ haha. nevermind.

    and yeah, that php include didn’t work. it’s still doing the same thing.

    erghhhh. i’m gunna try the plugin for wordpress… that has the counters. i’ll see if that works. i’ll just try to stay away from doing includes in my sidebar for now.

    thanks so much for all your help though. i really appreciate it.

    If you want to post code on the forum you put a backtick first (that thing to the left of the 1 on your keyboard) then the code, then another backtick.

    And if you wanna really learn, drop me a line at bj at kickasswebdesign dot com. You need to keep doing this, you’ve got a fun vision, but you need to clean up the code a bit to do it well. I can maybe give you a few steers as to how you can do that. I’m totally self taught too.

    Is the counter a javascript??? that might be the problem. javascripts are problematical in 2.0. So it might be that rather than anything you or I did or didn’t do!

    Thread Starter jennaction

    (@jennaction)

    yeah, i know my codes a mess. i’ve JUST started messing with wordpress, in fact when i get this layout up as my main layout on my page, it’ll be my first layout run by wordpress. i’ve been using b2 for years and i’ve just never updated from it because i liked b2. it was simple.
    but i figured i could benefit from upgrading… and so far i really like how it can run my whole site. it’s nice. but yeah… the coding is something i need to get used to.

    i code a mess, but if it works, it works… and so far it works to basically what i want. haha.

    but yeah. thanks for all your help. 🙂 i’ll write down your email.
    thanks so much.

    Thread Starter jennaction

    (@jennaction)

    it was a php run users online script.

    I have a feeling it’s the script. good luck!

    Thread Starter jennaction

    (@jennaction)

    the currently script and that script both weren’t working. it’s like… any include. haha. i dunno. whatever. i just won’t use includes in my sidebar.

    i just installed wordpress counterize plugin and it’s working great. so i’ll just use that.

    I’m glad you got something working . . . 🙂

Viewing 12 replies - 16 through 27 (of 27 total)

The topic ‘php includes making blog elements disappear…’ is closed to new replies.