Forum Replies Created

Viewing 15 replies - 61 through 75 (of 98 total)
  • Thread Starter Jaxia

    (@jaxia)

    I figured it out:

    I put this
    <img src=”<?php gravatar(“”, 20) ?>” alt=”” />

    below this line:
    <img class=”collapseicon” src=”<?=get_settings(“siteurl”)?>/wp-content/plugins/briansthreadedcomments.php?openedthreadimage=true” onclick=’collapseThread(“div-comment-<?php comment_ID() ?>”)’ />

    above this line:
    <?php comment_author_link() ?></cite> Says:

    You can see it here:
    https://www.stealtheblinds.net/2005/05/15/step-right-up/#comments

    Skippy – Thanks so much!
    I hope this helps someone else!

    Thread Starter Jaxia

    (@jaxia)

    I cannot find that loop within the comments file. I even did a “find” on it.

    Thread Starter Jaxia

    (@jaxia)

    <i>somewhere inside<i>

    Heh. That’s the problem. There is so much going on in the comments.php file for threaded comments that I cannot figure out what it takes. The if’s and else’s are more than my brain can figure out! ??

    Does the example use threaded comments, too? Thanks for posting it!

    This is kinda strange…

    My IE defaults to not maximized. When I entered your site, I max’d the window so I could see everything. I looked around, but when I hit back on the browser, it resized my window too! I’ve never had that happen before.

    Hmm. In order to associate a name with the image, I think you’d have to do something like I did:

    https://www.stealtheblinds.net/2005/05/13/stbquote
    (This only outputs one image)

    My php skills aren’t that great, but maybe I can combine the two plugins somehow…?

    Thread Starter Jaxia

    (@jaxia)

    Glad you like it ??
    If you have any suggestions, let me know!

    Forum: Plugins
    In reply to: array_rand help
    Thread Starter Jaxia

    (@jaxia)

    ColdForged, if you’re around — I got it! I did TWO explodes. I needed to explode by line, and then on the pipes.

    Thanks for telling me about var_dump — it helped a lot!

    Forum: Plugins
    In reply to: array_rand help
    Thread Starter Jaxia

    (@jaxia)

    hehe – Thank you.
    I will look at it some more tonight and see if I can figure it out. Right now, I have to go take a few finals.

    Thanks again!

    Forum: Plugins
    In reply to: array_rand help
    Thread Starter Jaxia

    (@jaxia)

    Oh! It says NULL. (Honestly, I didn’t understand what the var_dump was doing before)

    array_rand(): First argument has to be an array

    But I suppose the NULL explains that. I guess I don’t have my file defined right…?

    Forum: Plugins
    In reply to: array_rand help
    Thread Starter Jaxia

    (@jaxia)

    Ah. Okay. I moved them within the function. Now, it’s getting closer because it outputs the title, but I still get this error:

    First argument has to be an array

    I tried removing the var dump and adding the 1 back in and it didn’t help. Does this mean there is a problem with my txt file?

    Forum: Plugins
    In reply to: array_rand help
    Thread Starter Jaxia

    (@jaxia)

    Hmm

    When I do that, it only prints this:
    array(0) { }

    That’s it.

    This is what the whole thing looks like right now:

    $quotetitle=”Words of Wisdom”;
    $quotefile=”quotes.txt”;

    $dir=dirname($_SERVER[‘SCRIPT_FILENAME’]);
    $url=dirname($_SERVER[‘PHP_SELF’]);

    function STBquote() {
    if (file_exists($dir.”/”.$quotefile))
    $quote=file($dir.”/”.$quotefile);
    var_dump($quote);
    $rand_key=array_rand($quote);
    list($text, $author, $link, $linktext) = explode(“|”, trim($quote[$rand_key]));

    echo “<div>”;
    echo “<h2>”.$quotetitle.”</h2>”;
    if (isset($text) && $text!=””) { echo “<p class=\”pullquote\”>”.$text.””; }
    if (isset($author) && $author!=””) { echo “”.$author.””; }
    if (isset($link) && $link!=”” && isset($linktext) && $linktext!=””) { echo ““.$linktext.”“; }
    echo “</div>”;
    }

    ?>

    Ideas? I really appreciate your help!

    Forum: Plugins
    In reply to: array_rand help
    Thread Starter Jaxia

    (@jaxia)

    Sorry. I’m so new I don’t even know what’s important!

    $quotefile=”quotes.txt”;
    $dir=dirname($_SERVER[‘SCRIPT_FILENAME’]);
    $url=dirname($_SERVER[‘PHP_SELF’]);

    if (file_exists($dir.”/”.$quotefile))
    $quote=file($dir.”/”.$quotefile);

    And yes, the file has data in it.

    Thanks!

    Also, I’m confused about the header image call part that I’m supposed to put in the header. Why can’t I call my header image in each css like this:

    #header {
    background: url(‘category4.jpg’) no-repeat bottom;
    height: 185px;
    margin: 0 auto;
    width:700px;
    padding:0;

    That’s how I call my header image now…
    Thanks!

    We can use the is_category( ) tag

    Does anybody know what that would look like instead?

    Forum: Plugins
    In reply to: WP phpBB

    NativeMind — If I already have WP installed, I have to reinstall it to allow one login across WP and phpbb?

Viewing 15 replies - 61 through 75 (of 98 total)