I think you can include these changes into the code of plugin.
replace this code:
copy($old_filename, $new_filename)
BY
download($old_filename, $new_filename)
AND
Insert this functions in any part of your plugin:
if (!function_exists('error_get_last')) {
function error_get_last(){
$__error_get_last_retval__ = array(
'type' => 'simulated',
'message' => 'simulated',
'file' => 'simulated',
'line' => 'simulated'
);
return $__error_get_last_retval__;
}
}
function download($url,$path){
$fp = fopen($path, 'w');
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_FILE, $fp);
$return = curl_exec($ch);
curl_close($ch);
fclose($fp);
return $return;
}
if (!function_exists('set_post_thumbnail')){
function set_post_thumbnail( $post, $thumbnail_id ) {
$post = get_post( $post );
$thumbnail_id = absint( $thumbnail_id );
if ( $post && $thumbnail_id && get_post( $thumbnail_id ) ) {
$thumbnail_html = wp_get_attachment_image( $thumbnail_id, 'thumbnail' );
if ( ! empty( $thumbnail_html ) ) {
return update_post_meta( $post->ID, '_thumbnail_id', $thumbnail_id );
}
}
return false;
}
}
https://www.ads-software.com/extend/plugins/fg-joomla-to-wordpress/
]]>The problem is that the blog page menu item is only assigned the class “current-menu-item” when currently clicked on it and WordPress is using the “index.php” file. Once a post is clicked and WordPress begins using the “single.php” file, that class no longer is assigned to the menu item, thereby not allowing it to be highlighted as the active menu item.
I’ve read plenty of solutions that use conditional statements to determine if a page is a child page or not, but the problem I’m facing is that I’m using the WordPress 3.0 menu option in the GUI, which means that my navigation is being dynamically created.
My question is this: How can I get the “blog” link to be the .current-menu-item when WordPress is using single.php, category.php, tag.php, etc. while still using the GUI menu system and not hardcoding in my navigation?
Any help would be greatly appreciated!
]]>So… now my question is… Will flutter continue to work if we upgrade to 3.1 or are we stuck at 3.0.5 until we replace Flutter’s functionality with WP-Custom-Posts or Magic Fields or Easy Post Types or…
Our site was built by a developer and it would cost more than we can budget to convert the site, so we’re hoping the answer is “yes”, or at least “yes, but…”
Any guidance would be helpful. We can set up a test domain to try it but don’t want to waste our time if “we can’t get there from here”.
]]>I have installed WordPress on my server on one of the domains.
I have to configure this for 4 domains. I have created multiple tables in single database. Now the issue is that multiple domains can be added but not able to see in Sites in superadmin.
PLZ help. I want to manage all the domains from one login. Do i need to install wordpress for all the four domains separately….
]]>I was wondering is there a plugin were you create a database and pre-set questions, where users can come and find the what they are looking for depending on the answers given.
Its abit like 20 questions where the user will answer X amount of questions till the database narrows it down to one answer.
Best Regards
Jai
thanks!
]]>In the side-bar I want to show the user (because the main horizontal menu is a dropdown menu) a second navigation list with on top the title of the current (one of the four) main parent menu items and underneath all the child pages of that specific parent menu item.
With wp_list_pages() it was pretty easy but I have no clue of fixing this thing with the new wp_nav_menu().
I used this link to get me started about making a custom walker.
https://www.kriesi.at/archives/improve-your-wordpress-navigation-menu-output
But I have no idea to move further.
Anybody some ideas or experience with this issue?
Thanks!
Marco
Currently I teach graphic design at the High School level and just started teaching a web 2.0 class at my district’s Middle School. I have created many websites using WordPress for clients and love how it can be set up to allow them to change information on the site themselves rather than calling me up every time. The question here is as follows…
I want to be able to set up a class website using a WordPress, that would allow students create their own blog. This way they can decide on what topic they would like to write about. I have tried some free blogging sites but they are either completely locked out and void of any kind of customization or they simply are one blog that allows students to post comments under that blog title.
I want to give the students the freedom to create their own custom blog while I can still administer them, read and comment on them from one dashboard location.
The research I have conducted has led me to WordPress MU but I believe that is now built into the WordPress 3.0.
Can anyone help me with creating something that would give me the abilities as stated above? Or at least shoot me in the right direction?
Right now we are using a site called gaggle.net. but the restraints on that site make it very hard to be creative and there is really no customization at all.
Thanks in advance for the help!
Mike
]]>