issy-m
Forum Replies Created
-
Forum: Plugins
In reply to: [Easy Invitation Codes] Case bug in back-end.phpHello,
I need to know how to fix this. When I create custom codes, it saves them in lowercase and when user goes to use code to register they get “Error, wrong invitation code”. It seems that the registration form “code” filed requires UPPERCASE? “strtoupper”Please advise.
Forum: Fixing WordPress
In reply to: Video embedding in wordpressThe result was; no border just the video.
[embed]http://www.youtube.com/watch?v=YFxZo4pB_ZE&border=1&color1=0x5d1719&color2=0xcd311b[/embed]Any other suggestions?
Thank you
Forum: Fixing WordPress
In reply to: Video embedding in wordpressHow about if I want to add a frame to the video? what files do I need to edit to achieve this?
[embed border="1" color1="0x5d1719" color2="0xcd311b"]Youtube video[/embed]
this is the original code from youtube:
http://www.youtube.com/v/cOWC8Fq2aNU&border=1&color1=0x5d1719&color2=0xcd311bThank you
Forum: Plugins
In reply to: [Plugin: Wordtube] video shortcode in custom fieldtake a look at this post here for solution.
http://wordpress.org/support/topic/238643?replies=3Forum: Plugins
In reply to: [Plugin: Custom Field Template] shortcodeI forgot to mention about the shortcode, it would be something like this in your custom field.
[playlist id=1]Have fun…
Forum: Plugins
In reply to: [Plugin: Custom Field Template] shortcodeSure you can
Here’s what you have to do.
place this in your functions.php file
<?php$new_meta_boxes =
array
(
“contact_wp_info” =>
array
(
“name” => “Video”,
“std” => “”,
“title” => “Featured Youtube Video”,
“description” => “”
)
);function new_meta_boxes()
{
global $post, $new_meta_boxes;
$wpcm_tab_index = 1000;
foreach($new_meta_boxes as $meta_box)
{
$meta_box_value = get_post_meta($post->ID, $meta_box[‘name’].’_wpcm_value’, true);
if($meta_box_value == “”)
$meta_box_value = $meta_box[‘std’];
echo'<input type=”hidden” name=”‘.$meta_box[‘name’].’_noncename” id=”‘.$meta_box[‘name’].’_noncename” value=”‘.wp_create_nonce( plugin_basename(__FILE__) ).'” />’;
echo'<p><label style=”letter-spacing:1px; text-transform:uppercase; color:#777;” for=”‘.$meta_box[‘name’].’_wpcm_value”>’.$meta_box[‘title’].'</label>
‘;
echo'<input style=”padding:4px; font-weight:normal; border-top:1px solid #ccc; border-right:1px solid #ddd; border-bottom:1px solid #ddd; border-left:1px solid #ccc;” type=”text” name=”‘.$meta_box[‘name’].’_wpcm_value” value=”‘.$meta_box_value.'” size=”55″ tabindex=”‘.$wpcm_tab_index.'” /></p>’;
$wpcm_tab_index++;
}
}function create_meta_box()
{
global $theme_name;
if ( function_exists(‘add_meta_box’) )
{
add_meta_box(‘new-meta-boxes’, ‘Media Information’, ‘new_meta_boxes’, ‘post’, ‘normal’, ‘high’);
}
}function save_postdata( $post_id )
{
global $post, $new_meta_boxes;
foreach($new_meta_boxes as $meta_box)
{
// Verify
if ( !wp_verify_nonce( $_POST[$meta_box[‘name’].’_noncename’], plugin_basename(__FILE__) ))
{
return $post_id;
}
if ( ‘page’ == $_POST[‘post_type’] )
{
if ( !current_user_can( ‘edit_page’, $post_id ))
return $post_id;
}
else
{
if ( !current_user_can( ‘edit_post’, $post_id ))
return $post_id;
}$data = $_POST[$meta_box[‘name’].’_wpcm_value’];
if(get_post_meta($post_id, $meta_box[‘name’].’_wpcm_value’) == “”)
add_post_meta($post_id, $meta_box[‘name’].’_wpcm_value’, $data, true);
elseif($data != get_post_meta($post_id, $meta_box[‘name’].’_wpcm_value’, true))
update_post_meta($post_id, $meta_box[‘name’].’_wpcm_value’, $data);
elseif($data == “”)
delete_post_meta($post_id, $meta_box[‘name’].’_wpcm_value’, get_post_meta($post_id, $meta_box[‘name’].’_wpcm_value’, true));
}
}add_action(‘admin_menu’, ‘create_meta_box’);
add_action(‘save_post’, ‘save_postdata’);?>
Then in your single.php file place the following.
<div class=”video”>
<?php $videos = get_post_meta($post->ID, ‘videos_wpcm_value’, true); ?>
<?php
$galx = $videos;
$galx = apply_filters(‘the_content’, $galx );
echo $galx;
?>
</div>Hope this works for you
Happy coding…
Forum: Fixing WordPress
In reply to: Single quotes replaced with double quotesYou can also add this to your .htaccess file
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
php_value magic_quotes_gpc 0
php_flag magic_quotes_runtime 0
</IfModule>
# END WordPressThis worked for me!
Forum: Fixing WordPress
In reply to: Dropdown Posts ListWhat if I just wanted to display all posts under one specific category (i.e. hacks).
Thank you
Forum: Fixing WordPress
In reply to: Failure Installation with “I’m getting a similar error on fresh install on PHP over IIS
PHP Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with that of Walker::start_lvl() in C:\Inetpub\wwwroot\test.hostwhacker.com\wp-includes\classes.php on line 1199Any help is greatly appreciate it!!!
Thank you
Forum: Installing WordPress
In reply to: “Sorry, that key does not appear to be valid.”Otto42,
that hack was a life saver!!Thank you
Forum: Plugins
In reply to: You do not have sufficient permissions to access this pageHere’s the fix, make sure you back up your DB!!!
happy coding
http://markjaquith.wordpress.com/2006/03/28/wordpress-error-you-do-not-have-sufficient-permissions-to-access-this-page/Here’s the fix, make sure yo back up your DB!!!
This fixed the issue on my site
Happy codingForum: Plugins
In reply to: [Plugin: Register Plus] Editors may edit unverified usersExcelente!!
Thank you
Forum: Plugins
In reply to: Lightbox 2 & JW FLV Player ?You can try this awesome script.
mediaboxAdvanced
Based on Slimbox and the Mootools javascript library, mediaboxAdvanced can handle your images, videos, animations, social video sites, inline elements, and external pages with ease.http://iaian7.com/webcode/mediaboxAdvanced
Have fun…
Forum: Fixing WordPress
In reply to: Error in deleting (posts, images, categories)MNguyen,
Your suggestion worked for me!!
I can delete all posts…Thanks