Forums

[resolved] Merging from another database (98 posts)

  1. t31os_
    Member
    Posted 4 months ago #

    There's an additional stylesheet call that should be removed firstly, i don't think i removed this before giving you a link, because i was unsure of it's use, but i can see now it shouldn't be there.

    Links the following file.
    http://straightpaths.mzbc.com/wp-content/themes/renoville/style_.css

    I removed it on the copy i have, but if i remember correctly it's above this line.
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    In regard to the sidebar issue, i hadn't noticed until you pointed it out, it indeed does the same for me with widgets.

    I'll make it function like the non-widget sidebar... will post back some code soon enough... :)

  2. t31os_
    Member
    Posted 4 months ago #

    Easy enough, just had to adjust the sidebar array..

    functions.php at the top, replace it with...

    if ( function_exists('register_sidebar') )
        register_sidebar(array(
            'before_widget' => '',
            'after_widget' => '</div>',
            'before_title' => '<div class="archives">',
            'after_title' => '</div><div class="archivesborderline">',
        ));

    So find this..

    if ( function_exists('register_sidebar') )
        register_sidebar(array(
            'before_widget' => '<li id="%1$s" class="widget %2$s">',
            'after_widget' => '</li>',
            'before_title' => '<h2 class="widgettitle">',
            'after_title' => '</h2>',
        ));

    and replace it with the first piece of code (making sure not to delete the <?php bit that is before the code)

    Is that better?

  3. jordan8201
    Member
    Posted 4 months ago #

    Beautiful! I just realized that the devotion is not correct. I realized when the devotion for today was the same as yesterday, even though the date is correct. The title, "Life Is Like a Vapor" is the first devotion in the database. It was working, so I did not notice when it stopped working so we could know exactly what change caused it to stop pulling from the correct entry in the database.

  4. t31os_
    Member
    Posted 4 months ago #

    Check this line in the devotions file.
    WHERE RecordNum != '.$n.' LIMIT 1

    I use the ! for testing, i've been careful to change this before providing any code but it may have slipped through...

    If it matches above, change to..
    WHERE RecordNum = '.$n.' LIMIT 1
    ..basically just removing the !

  5. jordan8201
    Member
    Posted 4 months ago #

    That was it! I guess I am not going to be able to stump you. Can I keep you on speed dial?? :)

  6. t31os_
    Member
    Posted 4 months ago #

    I had a sneeking feeling i'd make that mistake at one point or another, i'm just thankful it was that simple... :)

    Feel free to mark the topic resolved if you're satisfied... :)

    If you get stuck with a future problem and you don't get any responses, you're welcome to give me a shout on my site, just click on my name for the link.

    ;-)

  7. jordan8201
    Member
    Posted 4 months ago #

    It is bookmarked! Thank you so much for all of your help! You are a very patient person! I really appreciate it!

  8. t31os_
    Member
    Posted 4 months ago #

    No worries, you're welcome.. :)

Reply

You must log in to post.

About this Topic

Tags

No tags yet.