Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter billbab

    (@billbab)

    Yup, same magazine. I use firebug all the time (though it seems to make firefox a bit unstable on the mac). I’ll give that a try let you know what i find.

    I’ve build an online magazine using Revolution Magazine. It doesn’t meet your cost criteria, but i found it easy to use and it does a lot. My mag is at https://www.kenalu.com

    Forum: Plugins
    In reply to: Alternate Headers

    Here’s the pastebin url
    https://wordpress.pastebin.com/m40b03b6e

    Forum: Plugins
    In reply to: Alternate Headers

    Oh, and is there a book you recommend. I’m reading a number of online PHP and CSS references, but most seem to talk only about syntax. I dug into the W3C tutorials a lot before I asked the question and looked at a lot of sample code in the WordPress documentation. Didn’t really get close.

    The W3C examples seem particularly unhelpful and kind of ugly.

    Forum: Plugins
    In reply to: Alternate Headers

    Hey, it works, how cool is that. Somehow my formatting got hosed a little, but I’ll find that problem.

    I hadn’t enclosed the final curly bracket in a PHP statement as:
    <?php } ?>

    Thanks so much for putting up with my 101 question.

    One last question. why would one elect to use the
    echo ‘<div id=”bigfeat”>’; approach? It seems to be the common way to stuff html inside php

    Forum: Plugins
    In reply to: Alternate Headers

    Tried the change you suggested, got: Parse error: parse error, unexpected $ in /home/content/p/e/y/peyotebill/html/kenalu/wp-content/themes/revolution-magazine/header.php on line 91

    There are only 90 lines in header.php so I assume it’s looking at the next line of home.php after the function is called, no idea where it’s finding a ‘$’

    Forum: Plugins
    In reply to: Alternate Headers

    I pretty much suspected that, I thought that was why you wrap them in echo statements like:

    <?php
    if (is_home()) {
    echo ‘<div id=”bigfeat”>’;

    I’ll try your suggestion though.

    Forum: Plugins
    In reply to: Alternate Headers

    Really? I would thing the statement would have to be inside the PHP tag to execute.

    Forum: Plugins
    In reply to: Alternate Headers

    Thanks, I think you’ve put me on a better path. I probably should learn PHP more before I try to do this stuff, but I guess I’m learning by doing.
    Actually, while I was hoping for a response I found and tried to use a conditional with if (is_home()) like this:

    <?php
    if (is_home()) {
    <div id=”bigfeat”>
    <div class=”bigfeatleft”>
    <div class=”featured3″>
    <?php $recent = new WP_Query(“cat=26&showposts=1”); while($recent->have_posts()) : $recent->the_post();?>
    <h2>” rel=”bookmark”><?php the_title(); ?></h2>
    <?php the_content(__(‘Read the story »’));?><div style=”clear:both;”></div>
    <?php endwhile; ?>
    </div>
    </div>
    <div class=”bigfeatright”>
    <div class=”video”>
    <h2>Featured Video</h2>
    <object width=”425″ height=”355″><param name=”movie” value=”https://www.youtube.com/v/EfLXV5Iekxc&rel=1″></param><param name=”wmode” value=”transparent”></param><embed src=”https://www.youtube.com/v/EfLXV5Iekxc&rel=1&#8243; type=”application/x-shockwave-flash” wmode=”transparent” width=”300″ height=”216″></embed></object>
    </div>
    <div class=”newsletter”>
    <h2>eNews & Updates</h2>
    <p>Sign up to receive the latest breaking news, as well as all of your other favorite headlines!</p><form id=”searchform2″ action=”https://www.feedburner.com/fb/a/emailverify&#8221; method=”post” target=”popupwindow” onsubmit=”window.open(‘https://www.feedburner.com&#8217;, ‘popupwindow’, ‘scrollbars=yes,width=550,height=520’);return true”><p><input type=”text” value=”Enter your email address…” id=”s2″ onfocus=”if (this.value == ‘Enter your email address…’) {this.value = ”;}” onblur=”if (this.value == ”) {this.value = ‘Enter your email address…’;}” name=”email”/><input type=”hidden” value=”https://feeds.feedburner.com/~e?ffid=1396718&#8243; name=”url”/><input type=”hidden” value=”eNews Subscribe” name=”title”/><input type=”submit” value=”GO” id=”sbutt2″ /></p></form>
    </div>
    </div>
    </div> }
    ?>

    But that gave me a syntax error:

    Parse error: parse error, unexpected ‘<‘ in /home/content/p/e/y/peyotebill/html/kenalu/wp-content/themes/revolution-magazine/header.php on line 318

    So I looked at some other examples and realized that the HTML statements inside php code generally have echo statements. So I surrounded all the HTML with Echo’s, and got pretty much the same errors. I know you didn’t sign up to teach newbies PHP, but do you have any suggestions?

    Forum: Fixing WordPress
    In reply to: Stuck pages
    Thread Starter billbab

    (@billbab)

    Thank you, thank you. I switched to pretty permalinks and presto–all better.

    Forum: Fixing WordPress
    In reply to: Stuck pages
    Thread Starter billbab

    (@billbab)

    How does one do that?

Viewing 11 replies - 1 through 11 (of 11 total)