Forum Replies Created

Viewing 15 replies - 16 through 30 (of 91 total)
  • Thread Starter chaseman

    (@chaseman)

    Ok I have to correct myself, the path was NOT correct, I was using a path which is meant for local files only and not for a web friendly path, this one will work:

    function chase_admin_panel_stylesheet () {
    wp_enqueue_style ('admin_panel_css', get_stylesheet_directory_uri() . '/admin_panel_css.css');
    }

    SOLVED!

    Thread Starter chaseman

    (@chaseman)

    This does NOT work either:

    function chase_admin_panel_stylesheet () {
    wp_register_style ('admin_panel_css', TEMPLATEPATH . '/admin_panel_css.css');
    wp_enqueue_style ('admin_panel_css');
    }
    
    add_action ('admin_print_styles', 'chase_admin_panel_stylesheet');
    
    require_once (TEMPLATEPATH . '/blurb_panel.php');

    For the data field you can use:

    add_option, get_option, update_option. WordPress has its own options table where you can save and retrieve data. This is how admin panels for the themes specifically are made.

    Thread Starter chaseman

    (@chaseman)

    I solved this way.

    jQuery('img').click(function() {
    	jQuery('.post_content a').colorbox();
    	});

    This works.

    Thread Starter chaseman

    (@chaseman)

    Is there any way to tell jQuery ONLY to execute lightbox after an image tag has been clicked?

    For example:

    jQuery('img').click(function() {
    	jQuery('.blog_post_content a').colorbox();
    	});

    This will unfortunately open normal text links in lightbox as well.

    Thread Starter chaseman

    (@chaseman)

    I changed it to this, and I’m still having the same problem:

    jQuery(document).ready(function(){
    jQuery('.blog_post_content a img').colorbox();
    });

    The lightbox just keeps loading forever.

    What you’re saying is true, but in court the content of the website plays a deciding factor. In this case the content is strongly related to WordPress. If it was a website about words getting pressed into fortune cookies, you’d be correct and www.remarpro.com would have no right suing them.

    Lesson: Do extensive research before you build a business.

    Forum: Hacks
    In reply to: jQuery is Showing No Effect
    Thread Starter chaseman

    (@chaseman)

    Ok I got it to work, I had a misconfiguration.

    Thread Starter chaseman

    (@chaseman)

    Thank you A LOT, that worked!

    Thread Starter chaseman

    (@chaseman)

    There’s only one problem with the foreach version, when the database row is EMPTY, meaning there is no entry to begin with, then it will list the first post (post_id=1) for some reason.

    $blurb_title = explode (" ", get_option ('blurb3_titles'));				
    
    if ($blurb_title != ' ') {
    include ($post_title_path);
    } else {
    
    }

    The foreach loop is inside the included file.

    I tried to solve this with an if statement and I’ve tried all numerous possible options, !empty, isset, etc. they all don’t work as I expect it.

    I don’t really understand why the variable is simply not considered as empty (I guess because of the explode).
    When I echo out the variable I simply get “Array”.

    EDIT:

    What I know is that it’s NOT equal empty ( == ‘ ‘), but at the same time I don’t know with what it’s filled either. : /

    Thread Starter chaseman

    (@chaseman)

    Ok I just tried it, and it worked GREAT! Thank you a lot alchymyth, I realize there was no need to implode it, simply exploding by the space is enough.

    Thread Starter chaseman

    (@chaseman)

    To avoid confusion, yes they are separated by spaces.

    So are you saying, I should simply skip the part of imploding them and separating them by commas again? Just exploding is enough?

    Well I will try and see, but what you’re saying makes sense, because it is the explode that gives me the array with the variable. Not sure if I still have an array with the implode or if it’s just a string, never have tried it.

    Thread Starter chaseman

    (@chaseman)

    I couldn’t get either one to work.

    vinay, with your version it will simply fetch all the titles from the database, but not the ones I selected with the id’s.

    alchymyth, with your version it will give me an error saying that I supplied a wrong argument for the foreach statement.

    In both cases I didn’t exactly have an array like in your examples I rather had variables like these ones:

    $blurb1_title = explode (" ", get_option ('blurb1_titles'));
    $blurb_title_ids = implode (", ", $blurb1_title);

    This may be the reason why it didn’t work for me. But I have to somehow fetch the id’s from the database and separate them with commas.

    Thread Starter chaseman

    (@chaseman)

    ok I simply put this in front of wp_list_pages () and it works:

    <li><img src='<?php echo $dir; ?>/images/arrow.png' /></li>
    <li><a href=”<?php echo get_settings(‘home’); ?>”>Home</a></li>
Viewing 15 replies - 16 through 30 (of 91 total)