Posts by Shorti

34 posts
  • Sold between 50 000 and 100 000 dollars
  • Bought between 1 and 9 items
  • Referred between 10 and 49 users
  • United States
  • Exclusive Author
  • Has been a member for 1-2 years
Shorti says

Code it and it will be accepted. It looks much better than some of the ugly wedding templates that were approved lately, but it’s definitely not psd material, so this would be your only chance. And when you’re at in, work a bit on the typography.. And change the frame of the parent’s photos(it should be a circle, because that other shape is no good and you already have too many in your design).

^ (bingo)

34 posts
  • Sold between 50 000 and 100 000 dollars
  • Bought between 1 and 9 items
  • Referred between 10 and 49 users
  • United States
  • Exclusive Author
  • Has been a member for 1-2 years
Shorti says

I have not run into any limitations using the Options Framework by Devin. I built one of my themes around this framework .. very powerful and easy to customize the style of the admin to match brand.

Don’t have much experience with NHP.

34 posts
  • Sold between 50 000 and 100 000 dollars
  • Bought between 1 and 9 items
  • Referred between 10 and 49 users
  • United States
  • Exclusive Author
  • Has been a member for 1-2 years
Shorti says

I’m getting a notice and warning after saving a custom project post in a wordpress theme I’m building:

“Notice: Undefined index: si_project_bg_one_btn in /home4/divwrap1/public_html/democreadivs/flashback/wp-content/themes/flashback/functions/meta-projects.php on line 206”

“Warning: Cannot modify header information – headers already sent by (output started at /home4/divwrap1/public_html/democreadivs/flashback/wp-content/themes/flashback/functions/meta-projects.php:206) in /home4/divwrap1/public_html/democreadivs/flashback/wp-includes/pluggable.php on line 876”

Here is the code for the meta:


$prefix = 'si_';

// Meta fields
$project_meta = array(
    'id' => 'si-project-meta',
    'title' => __('Project Settings', 'shorti'),
    'page' => 'project',
    'context' => 'normal',
    'priority' => 'high',
    'fields' => array(
        array(
            'name' =>  __('Background Image #1', 'shorti'),
            'desc' => 'If left blank, featured image will be used.',
            'id' => $prefix.'project_bg_one',
            'type' => 'text',
            'std' => ''
        ),
        array(
            'id' => $prefix.'project_bg_one_btn',
            'type' => 'button',
            'std' => 'Browse'
        )
    ),

);

add_action('admin_menu', 'si_add_box_project');

// Add to edit page
function si_add_box_project() {
    global $project_meta;

    add_meta_box($project_meta['id'], $project_meta['title'], 'si_project_info', $project_meta['page'], $project_meta['context'], $project_meta['priority']);

}

// Callback function to show fields in meta box
function si_project_info() {
    global $project_meta, $post;

    echo '<input type="hidden" name="si-project-meta_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';

    echo '<table class="form-table">';

    foreach ($project_meta['fields'] as $field) {
        // get current post meta data
        $meta = get_post_meta($post->ID, $field['id'], true);
        switch ($field['type']) {

            // text  
            case 'text':

            echo '<tr style="border-top:1px solid #eeeeee;">',
                '<th style="width:25%"><label for="', $field['id'], '"><strong>', $field['name'], '</strong><span style=" display:block; color:#999; margin:5px 0 0 0; line-height: 18px;">'. $field['desc'].'</span></label></th>',
                '<td>';
            echo '<input type="text" name="', $field['id'], '" id="', $field['id'], '" value="', $meta ? $meta : stripslashes(htmlspecialchars(( $field['std']), ENT_QUOTES)), '" size="30" style="width:75%; margin-right: 20px; float:left;" />';

            break;

            // button    
            case 'button':
                echo '<input style="float: left;" type="button" class="button" name="', $field['id'], '" id="', $field['id'], '"value="', $meta ? $meta : $field['std'], '" />';
                echo     '</td>',
            '</tr>';

            break;

        }

    }

    echo '</table>';
}

add_action('save_post', 'si_save_data_project');

// Save data when post is edited
function si_save_data_project($post_id) {

    global $project_meta;

    // verify nonce
    if ( !isset($_POST['si-project-meta_nonce']) || !wp_verify_nonce($_POST['si-project-meta_nonce'], basename(__FILE__))) {
        return $post_id;
    }

    // check autosave
    if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
        return $post_id;
    }

    // check permissions
    if ('page' == $_POST['post_type']) {
        if (!current_user_can('edit_page', $post_id)) {
            return $post_id;
        }
    } elseif (!current_user_can('edit_post', $post_id)) {
        return $post_id;
    }

    foreach ($project_meta['fields'] as $field) {
        $old = get_post_meta($post_id, $field['id'], true);
        $new = $_POST[$field['id']];

        if ($new && $new != $old) {
            update_post_meta($post_id, $field['id'], stripslashes(htmlspecialchars($new)));
        } elseif ('' == $new && $old) {
            delete_post_meta($post_id, $field['id'], $old);
        }
    }
}

Is this warning occurring because I’m trying to verify a button? If so, how do I work around this?

34 posts
  • Sold between 50 000 and 100 000 dollars
  • Bought between 1 and 9 items
  • Referred between 10 and 49 users
  • United States
  • Exclusive Author
  • Has been a member for 1-2 years
Shorti says

I see I have puzzled you, sorry for the hints instead of direct explanation. But well, open your mind and you will understand what I mean.

The passage you quote is from the mouth of the Lord God Himself telling of the heritage that His servants will receive – which is peace – hence, “no weapon that is fashioned against you shall succeed”.

So, being a firm believer myself in the Word of God, I don’t quite understand how your comment helps anyone interpret this thread. :)

34 posts
  • Sold between 50 000 and 100 000 dollars
  • Bought between 1 and 9 items
  • Referred between 10 and 49 users
  • United States
  • Exclusive Author
  • Has been a member for 1-2 years
Shorti says

Reading the threads here, on the forum, I am often amazed how little the authors know about business in general and human/customer’s psychology in particular. ”...No weapon that is formed against thee shall prosper;...” – Yeshayahu 54

?

34 posts
  • Sold between 50 000 and 100 000 dollars
  • Bought between 1 and 9 items
  • Referred between 10 and 49 users
  • United States
  • Exclusive Author
  • Has been a member for 1-2 years
Shorti says

Perfect Jonathan!

34 posts
  • Sold between 50 000 and 100 000 dollars
  • Bought between 1 and 9 items
  • Referred between 10 and 49 users
  • United States
  • Exclusive Author
  • Has been a member for 1-2 years
Shorti says

It would be nice to have the option to have a sticky message at the top of the comments section for all users to see before they comment. For example, if I went on vacation for a week, I could say “Support unavailable until Feb 28. Author on vacation.”, or “Support comments will be answered withing 1-2 business days.”, or “Please email me through my profile if you have any support questions/requests” .... etc..

I think authors and buyers would both benefit greatly from this.

- Shorti

34 posts
  • Sold between 50 000 and 100 000 dollars
  • Bought between 1 and 9 items
  • Referred between 10 and 49 users
  • United States
  • Exclusive Author
  • Has been a member for 1-2 years
Shorti says

If i sounded too harsh in my previous posts .. i usually answer CSS questions or quick JS/PHP answers.. But nothing that would take me more than 1-2min to resolve.. :)

I understood you completely, and I agree. :)

34 posts
  • Sold between 50 000 and 100 000 dollars
  • Bought between 1 and 9 items
  • Referred between 10 and 49 users
  • United States
  • Exclusive Author
  • Has been a member for 1-2 years
Shorti says

Thanks Brandon, I consider this a friendly warning against what could end up being accurately labeled “shooting my self in the foot”.

Appreciate the explanation!

34 posts
  • Sold between 50 000 and 100 000 dollars
  • Bought between 1 and 9 items
  • Referred between 10 and 49 users
  • United States
  • Exclusive Author
  • Has been a member for 1-2 years
Shorti says

Thanks Dzinc! Yep I am aware of the permanence of deleting the item. :)

by
by
by
by
by
by