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

fried_eggz on "Plugin subfolders are not added to zip"


sundar0108 on "Table Shadow not appearing in Internet Explorer 11"

$
0
0

Hi Guys,

I want to implement shadow for my table so I used the below code

***************************************************************
<HTML><HEAD></HEAD><BODY>
<TABLE style="border: 3px solid #E2EDF7;"><TR><TD STYLE="box-shadow: 2px 2px 20px 2px #888888;" bgcolor="#FFFFFF" width="250px" height="250px">

My Name is.....

</TD></TR></TABLE>
</BODY>
</HTML>
***************************************************************
The above is just a test code. When I use the above code in a regular text editor (Notepad), it works perfect in all my browsers(ie, chrome, safari, opera, firefox). When I type the same code in the wordpress visual editor or text editor widget, it works perfect in all browsers except explorer 11. Internet Explorer 11 just shows a box without the shadow. Whenever I use the shadow feature through the wordpress, text or visual editor explorer 11 is not showing it up

What is wrong?

Please advice

Thanks

LjasonH on "Call plugin function from button and then forward"

$
0
0

Ello there.

I'm new to WordPress plugin development (new to Php in general) and I'm looking for my plugin to run some if checks and then forward to a new page after a submit/button was clicked.

I am currently running something like:

function plugin_run_function() {
    if (isset($_POST['button-name']))
        if (something == true) {
            header("Location: http://my.com/forumpage/");
        }
    }
}
add_action('init', 'plugin_run_function');

My questions are:
how can I call the function on a button click (does add_action('init', 'plugin_run_function') work)?
how can I redirect to a new page (wp_safe_redirect();)?

Currently I'm just learning so security and OOP style plugin will come later on.

Thanks in advance for the help.

Saif Ullah on "Create a default title based on post format status and or aside?"

$
0
0

Let me try ... I will let u know in some time ... First let me test drive it .

ullavik on "Strange page in Wordpress"

$
0
0

Running some pages in Wordpress, where a page has appeared at the top page, saying "I don't know". I cannot find this page in "Pages" and think there are some bug of a kind.

The blog address is:
http://www.biologiskfagutvalg.com

Thanks!

alicialaunchmarketing on "Unwanted Pop-ups"

$
0
0

The nav links on our homepage are opening extra windows to files.tweeterspy. Is this a hack? If not, what is it? No matter what it is, how do I get rid of it?

Our site: http://www.launch-marketing.com

heatherhodges on "Hack links on homepage"

$
0
0

I noticed there are hack links embedded in our homepage slider. How can I resolve this issue and prevent this in the future? Our website is exit137.org.

Thanks!

the_circle_pit on "Not found or invalid function error"

$
0
0

Hello,

I just checked my error_log file and found this warning over and over again.. I was hoping someone could explain it and possibility present a fix.

Thank you!

PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'improved_trim_excerpt' not found or invalid function name in /home/thecircl/public_html/wp-includes/plugin.php on line 214

function apply_filters( $tag, $value ) {
global $wp_filter, $merged_filters, $wp_current_filter;

$args = array();

// Do 'all' actions first.
if ( isset($wp_filter['all']) ) {
$wp_current_filter[] = $tag;
$args = func_get_args();
_wp_call_all_hook($args);
}

if ( !isset($wp_filter[$tag]) ) {
if ( isset($wp_filter['all']) )
array_pop($wp_current_filter);
return $value;
}

if ( !isset($wp_filter['all']) )
$wp_current_filter[] = $tag;

// Sort.
if ( !isset( $merged_filters[ $tag ] ) ) {
ksort($wp_filter[$tag]);
$merged_filters[ $tag ] = true;
}

reset( $wp_filter[ $tag ] );

if ( empty($args) )
$args = func_get_args();

do {
foreach( (array) current($wp_filter[$tag]) as $the_ )
if ( !is_null($the_['function']) ){
$args[1] = $value;
**LINE 214** $value = call_user_func_array($the_['function'], array_slice($args, 1, (int) $the_['accepted_args']));
}
} while ( next($wp_filter[$tag]) !== false );
array_pop( $wp_current_filter );
return $value;
}


anju_p on "Anonymous New Added New Posts to My Blog"

$
0
0

Hi

Today I got email saying "A new pingback on the post 'X' for your approval". Then only I realized some anonymous post in my blog. And that user had Administrator role as well.

Could you please put some light on what must have happened? I had installed User Role Editor plugin before that. Could that caused this vulnerability?

Please reply!.

localsitegroup on "limit amount of possible user adable too a wordpress system"

$
0
0

Hello is it possible to limit how many people can signup too a wordpress site at all, like have it hard coded into wordpress so like if the limit is 10,000 that is it not 10,001 at all

Thanks heaps

theArab on "CSS problems with plugin"

$
0
0

Hello, I'm new to the forum and pretty new to WordPress.
So please be kind to me!
I've recently built a plugin and for the most part it's working great.
Functionally it's working perfectly.
But I'm having a rather difficult time getting the style sheet of my plugin to work with a variety of themes.
It seems that with some themes, it looks perfect. :-)
Sadly, on others it is completely hideous! :-(
This is mostly on themes with a darker scheme, but it happens on some intricate ones too.
It looks like some themes override my style sheet completely.
I've looked all over for a solution, tried enqueing my style sheet as is suggested in the forum here.
But this never has any effect.
My style sheet is dynamic -- it allows the admin to pick from some pre-set color patterns.
So the CSS file is actually a PHP file that loads variables into the css.
I don't know if this is why enqueing does not work?
I AM able to override some themes styles by using "!important" on my own style sheet.
But I'm not happy with this because sometimes it totally bungs up the rest of the theme.
I'm sure there must be a solution to this that I just can't seem to figure out.
I'd absolutely LOVE to get this so that it works with the individual theme's settings.
Can anyone suggest anything or point me in the right direction of some quality reading?
Sometimes I just don't know the exact term I should use to search for and once I get there I can usually figure it out.
Anyhow, if anyone has any suggestions -- I humbly appreciate any help! Thank you!

Saif Ullah on "Website Hacked"

$
0
0

http://techleaks.us/ When ever i am loggin into my website admin panel, it says a notification at the top...... Your website is hacked by some name and email ...... I have been searching over google but unable to resolve that.. What should i need to do now ?

oshana on "warning/fatal error: website inoperable"

$
0
0

does this message look familiar?
my website is not operating, hosting company says its a problem with wordpress coding. i think ive been hacked! what shall i do to get my website up and running again?

Warning: require(/home/content/O/3/6/O3627919/html/shadotcom/wp-includes/session.php) [function.require]: failed to open stream: No such file or directory in /home/content/O/3/6/O3627919/html/shadotcom/wp-settings.php on line 122

Fatal error: require() [function.require]: Failed opening required '/home/content/O/3/6/O3627919/html/shadotcom/wp-includes/session.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/O/3/6/O3627919/html/shadotcom/wp-settings.php on line 122

IYBITWC on "Using update_post_meta inside of a function"

$
0
0

I can't seem to figure this one out. As a test, i'm using a single post ID, custom field key, and a value. Every time I use update_post_meta inside of a function it doesn't work. If I use update_post_meta outside of a function it works fine.

function article_init(){
	update_post_meta( 10123, 'phone-number', '8885551234');
}

My ultimate goal is to populate those three args using variables instead of constants. Which is the reason I'm trying to use this inside of a function. Any idea why this isn't working for me?

Thanks,
IYBITWC

Gone_is_my_name on "Adapt lenght of wordpress excerpt to screen width"

$
0
0

I'm making an WP theme, but I have a little problem. I want the length of excerpt (in carachters) to be adaptive to the screen width.

if screen width is bigger then 1000px, 20 characters
between 1000 and 700 it should be 5
between 700 and 640px, 20 chars
between 640 and 480, 5 chars
below 480px, 20 chars.
Hope that this makes sense. :)

I tried creating something in my functions.php. I used methods as:

function new_excerpt_length($length) {

if ((screen.width > 1024))
{
return 5;
}
else
{
return 15;
}
}
add_filter('excerpt_length', 'new_excerpt_length');

But that didn't work, it outputs the same number. CSS isn't a solution, has to be done in JS, in the functions.php file (no jQuery).


Pete on "How to automatically assign a specific author to a custom post type"

$
0
0

How would I automatically assign a specific author to all custom posts assigned to a specific custom post type?

Any help appreciated :)

Pete

LjasonH on "Can't restrict user access for pages"

$
0
0

Ello there.

I can restrict user access to pages that haven't had their template edited.
If I create a new custom php page that outputs content and then have a WordPress page that uses that as a template, it doesn't restrict the user access to it.

I have it identical to the page.php template just with additional content (mainly getting sessions and echoing).

Google didn't help much and nor did any other restriction plugins.

Dervila on "Need hook which fires when user hits "add new" button for custom post"

$
0
0

I want to run a function right after the user clicks on the "add new" button for a custom post. {$old_status}_{$new_status} won't help because those and their relations fire after the custom post is created. I need the function to run before the custom post is created.

Here's the detailed explanation: I have a list of members of a group, where the member custom post was created with the Pods plugin. My users are members of that group, and so have access to the list so they can create/modify/delete their data. Some of my users are barely computer literate, and easily confused. When a user hits the "add new" button, I want to be able to show them all the member names associated with their userid so they don't recreate an existing member.

I have looked all over the WordPress site, and even looked through the hooks listed for WordPress 3.9 on Adam Brown's site. I'm afraid I'm stuck.

SimonFernandes on "website hacked?"

$
0
0

Hello All,
This is my first post here and I have come looking for your help. A few days ago my wordfence for my website fullmoor.com sent me a warning saying someone had logged in as admin using: systemwpadmin. After some research I realized that there may have been some cross site contamination from some of my other websites that I had left dormant and not updated to current wp. Since my fullmoor site was fairly new and didn't have a lot of content on it yet I decided to just delete everything off my host and have my them install a fresh wp onto fullmoor and leave the other sites blank (actually, come to think of this is it bad to do that?). After that I set up wordfence and blocked all the IP's that I had been doing so previously (including the systemwpadmin IP). Then the very night I installed wp again I got this warning: WordPress core file modified: wp-config-sample.php

Wordfence shows this as the original:

/** Sets up WordPress vars and included files. */ 
require_once(ABSPATH . 'wp-settings.php'); 

And this as the changed version:

/** Sets up WordPress vars and included files. */ 
require_once(ABSPATH . 'wp-settings.php'); 

/** 
* Include tweaks requested by hosting providers. You can safely 
* remove either the file or comment out the lines below to get 
* to a vanilla state. 
*/ 
if (file_exists(ABSPATH . 'hosting_provider_filters.php')) { 
   include('hosting_provider_filters.php'); 
} 

I'm not really familiar with code and such and I don't know if this is some benign thing that my host has added to me wp (though I don't know why they would and I am waiting to hear back from them). Looking around online it would seem some people have had things like this happen when they are using different languages in wp, but I am in English.

Any help would be awesome. Thank you.
Simom

Pete on "Would this plugin be possible? Auto hooks"

$
0
0

Would it be possible to have a plugin that can automatically insert content in a hook like fashion at every standard WordPress content element and theme classes etc?

Viewing all 8245 articles
Browse latest View live




Latest Images