Forum Replies Created

Viewing 15 replies - 1 through 15 (of 133 total)
  • Thread Starter Rodeo Imagination

    (@shiroujune)

    Mhhh… I was looking for in settings where I could edit that %type% you say, but there isn’t… (?)

    Anyway it just prints class=”category” and that’s not of much help as every link will be the same and I want to set a different icon for each category. Really there’s no workaround? someplace I can edit something to achieve a cat-slug? or add any line to functions?

    Thread Starter Rodeo Imagination

    (@shiroujune)

    Thanks for answering I did that all but nothing worked, I deactivated the theme and it worked!, so I found out functions.php was the problem.

    I tried erasing the functions one by one, but I jumped to a page where it said that the blank lines caused functions.php to break down any page.

    I erased all space lines and all was ok and working again.

    Someone should do something about that functions.php file of hell :/

    Thread Starter Rodeo Imagination

    (@shiroujune)

    I saw that each plugin creates a new table in the database, unfortunately wp plugin of importing/exporting doesn’t have us covered in this plugins trouble issues.

    The way I solved it was: directly entering to my hosting dashboard panel, opening the phpMyAdmin or the MySQL options to manage the databases, once you find where aaaaallll the wp_tables are stored (wp_comments/wp_gigs/wp_users/etc), just then, you make the export (Directly from the MySQL or phpMyAdmin) you’ll get a .sql file (double check for utf-8)

    In your new host: you have to enter to phpMyAdmin and directly import the whole .sql file you just exported. (double check for the upload limit some hosting has) (double check for utf-8)

    With this method you have saved all the information of every existing plugin, your configuration, your passwords, your users, your media library info, everything as you have it installed in your prev host. Even if you created a new password in the new install, it will be overrided by the .sql import which is good (y).

    Good luck!

    Thanks a lot!!! This quick fix helped me out. Hope the author does fix this soon!!!
    Kind regards!!!

    Hello, well I deleted a post by mistake, I still dunno how it happened, it just was gone, as I never before erased a post…

    Anyway… I updated to wp 2.9.2 and there isn’t the Trash option… where’s it? I recover the post trough the firefox cache tip I read in a blog, also checked and the post is still in my database… but I’d like to recover that post with its comments…

    any ideas? ??

    Thread Starter Rodeo Imagination

    (@shiroujune)

    noone?… also there is this problem of settling the links to target=”_blank”

    Thread Starter Rodeo Imagination

    (@shiroujune)

    Found my way through it. It was easier than thought…

    <?php $mydiscslug = get_post_meta($post->ID, "disc", $single=true); ?>
    
    <?php query_posts('name=' . $mydiscslug); ?>

    These two lines made the trick. Some conditionals… and it works like a charm: https://www.siamshade-everlasting.com/en/lyrics/binecks_lyrics/2009/kimi-ga-tooku-te/

    Used to retrieve all the content in the “Song Info” stored in another post.

    Hope it helps someone outhere!!!

    Regards!

    Thread Starter Rodeo Imagination

    (@shiroujune)

    Did too. I believe it’s a programming issue… I saw somewhere a code to store information in a variable that could be used later but can’t find it…

    Thread Starter Rodeo Imagination

    (@shiroujune)

    Already did… it was from there that I picked:

    Post & Page Parameters

    Retrieve a single post or page.

    * ‘p’ => 27 – use the post ID to show that post
    * ‘name’ => ‘about-my-life’ – query for a particular post that has this Post Slug

    here: https://codex.www.ads-software.com/Template_Tags/query_posts#Post_.26_Page_Parameters

    It works… I just need to find how to retrieve that value from a custom field…

    Thread Starter Rodeo Imagination

    (@shiroujune)

    No… I meant… the function is

    query_posts('name=post-slug');

    so name= should remain there, while post-slug should be defined by my custom field key that is equal to a value…

    I am clueless on php… so forgive the raw example…

    but it should be something like:

    query_posts('name=$mypostslug');

    where

    $mypostslug =
    
    <?php if ( get_post_meta($post->ID, 'mykeyslug', true) ) { ?>
    <?php _e("My value: "); echo get_post_meta($post->ID, "mykeyslug", $single=true); } ?>

    something like that… though I know the $ cannot be readable because of the single quotes…

    Forum: Plugins
    In reply to: How to edit my RSS Feed?
    Thread Starter Rodeo Imagination

    (@shiroujune)

    Thanks! Everything seems to be ok.

    @levislibra post translation:

    So you can limit the number of posts of all users, to let’s say N posts, I did this:

    I edited the file post-new.php this way:

    <?php
    /**
    * New Post Administration Panel.
    *
    * @package WordPress
    * @subpackage Administration
    */
    
    /** Load WordPress Administration Bootstrap */
    require_once('admin.php');
    $title = __('Add New Post');
    $parent_file = 'edit.php';
    $editing = true;
    wp_enqueue_script('autosave');
    wp_enqueue_script('post');
    if ( user_can_richedit() )
    wp_enqueue_script('editor');
    add_thickbox();
    wp_enqueue_script('media-upload');
    wp_enqueue_script('word-count');
    
    if ( ! current_user_can('edit_posts') ) {
    require_once ('./admin-header.php'); ?>
    <div class="wrap">
    <p><?php printf(__('Since you’re a newcomer, you’ll have to wait for an admin to add the edit_posts capability to your user, in order to be authorized to post.
    You can also e-mail the admin to ask for a promotion.
    When you’re promoted, just reload this page and you’ll be able to blog. :)'), get_option('admin_email')); ?>
    </p>
    </div>
    <?php
    include('admin-footer.php');
    exit();
    }
    //limit the quantity to N posts
    $N = 20; max 20 posts por usuario
    $count_posts = count(get_posts(array('author'=>$user_ID)));// returns the quantity of written posts by current user to $user_ID
    if ($count_posts >= N){
    Header("Location: index.php");//redirects to dashboard, where it should point the user that he cannot create a new post
    }
    //end of modification
    
    // Show post form.
    $post = get_default_post_to_edit();
    include('edit-form-advanced.php');
    
    include('admin-footer.php');
    ?>

    To limit different number of posts for each user, it would be needed to change the N in the above code to an specific field that would belong to each user…
    I am working on that…

    Thread Starter Rodeo Imagination

    (@shiroujune)

    OK Another problem… the show starts at 24:30 hrs.
    time goes from 1 to 23… what am I suppossed to do?…

    Thread Starter Rodeo Imagination

    (@shiroujune)

    *bump*

    oh! I see your problem, very sorry, you need to set an IF ELSE conditionals to do so in your template page, the plugin has nothing to do with it. I’ll paste the code I use for those cases:

    <?php if ( get_post_meta($post->ID, 'yourkey', true) ) { ?>
    <?php echo "[ print your value example: "; echo get_post_meta($post->ID, 'yourkey', $single=true); echo " ]"; ?>
    <?php } ?>

    Hope it clears your way ;D I am not a php genius but I am learning to work with it step by step. This conditional tells the web to display the custom value for a custom key only if it has something in it. Otherwise it won’t print a thing.

Viewing 15 replies - 1 through 15 (of 133 total)