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

ASG1123 on "WooCommerce Modification"

$
0
0

I am working on a site which is WooCommerce based. The owner is getting into a business model where he wants to share some part of product price with the seller, and let the seller set the amount he wants to get per sale from the product page itself. And the amount which is set by the seller, is added to the final product price.

Is this possible by modifying WooCommerce files? Remember this is without giving the user any WP-admin access and from the product page itself.

There is a plugin which lets price modification to happen from front-end.

http://www.woothemes.com/products/name-your-price/

But, the price entered by the user in the plugin is final, and is not added to the already set price.

Any ideas how to go about it?


vasen on "media-new.php How to upload on different folders?"

$
0
0

Hello!
I use WP on web-sites that have many files.
Need help in solving problem.
How to make WP upload files in different folders that I can create and name as I want?
And how to insert images using file browser in theese folders?

Now I only can install CKeditor and use default file manager to create folders and upload one file at a moment. I want to use WP flash-loader with ability to create folders.
Thanks.

Sebastian on "Need help on localizing my plugin"

$
0
0

I'm the author of the Google+ Crossposting plugin. I can't figure out why localisation of the settings form of my plugin to German is not working.

I wrapped all strings in __() function, created the necessary pot, po, and mo files. I added

load_plugin_textdomain('g-crossposting', false, basename(dirname(__FILE__)).'/lang');

to my plugin so that it finds the language files.

Still, no success. The settings form is always in English.

I would really appreciate if anyone can take a look at the code and tell me what I'm missing. Thank you!

zapag on "LUIS VUITTON"

$
0
0

Hallo, someone can help me to clean my site from LuisVuitton malware?
I found a malware code base64 into a slide show plugin, and cancelled it, but the problem is'n not fix. When I look tha cache of my site, there is a long story about Angelina Jolie e luis vuitton bags.
I'm not a webmaster.

Thank you

GuardianAngel on "Custom link for image?"

$
0
0

Hi!

I have begun playing with writing plugins and widgets and I have a problem...

I want to create a plugin the let's me link an image with a URL but this URL is generated using information I must fill in (ie or affiliate links and the like).

I don't know how to go about this...

essentially I want to do something that let's me do something like this

<a href="bla bla bla"><img src="test.png"></a>

"bla bla bla" is generated from information I must fill in and, hopefully, I would like to see be able the preview the image wrapped in this "link" in the visual editor...

What should I look at to be able to do something like this? I don't know what's available in WordPress programming wise to do this...

Thank you!

Nick

msoftware on "Can you change search from "AND" to "OR""

$
0
0

It's not that easy. But you can look at se_get_search_terms from the search-everything plugin.

Find the sources at http://1br.de/1nua

rocke on "Link ( click on image open its details ) not working in Cell Phones"

$
0
0

On home page website link there is sliding celebrity Images : on click of any celebrity it takes to it resp. pages which is working on Desktop / laptop browser , i mean click - link working ... but same if i open in Any Cell Phones then sliding images is shown but images is not click able and it not going to resp. page of celebrity

I am using wp-roundabout-pro ( https://wordpress.org/plugins/wp-roundabout-pro/ ) plugin in my website ( WordPress 3.8.4 )

i know the plugin is not support to current version of my wordpress... but In Desktop / laptop browser all working prefect ..

any idea what is the issue

Rancca on "Custom authentication issue with wp 4.0"

$
0
0

Hi,

I have implemented a plugin that replaces the built-in authentication with checking authentication from another application I have.

I followed instructions from http://ben.lobaugh.net/blog/7175/wordpress-replace-built-in-user-authentication and basically the code I have is:

add_action( 'init', 'my_auth_init' );

function my_auth_init() {
    add_filter( 'authenticate', 'my_authentication', 10, 3 );
}

function my_authentication( $user, $username, $password ){
    /* Retrieve correct user ID  */
    $user = new WP_User($ID);
    if( $user->ID == 0 ) {
        $user = new WP_Error( 'denied', __("<strong>ERROR</strong>: Not a valid user for this system") );
    }
    return $user;
}

I got it to work with 3.8, so that the user did not see the login screen at all, when logged into the other system. But after upgrading to 4.0 it seems to force showing the login screen.

I've tried debugging this, and it seems to me that the function auth_redirect in wp-includes/pluggable.php sets the reauth parameter true when redirecting to wp-login.php. And wp-login.php gets the user my custom authentication returns in row 766 $user = wp_signon( '', $secure_cookie );. But after that, where I would expect it to redirect back to the page the user requested, it checks both the user and $reauth in row 791 if ( !is_wp_error($user) && !$reauth ) { and since reauth is set to true, it will not redirect, and instead shows the login form.

Am I missing something here? is there some filter I should set to disable the reauth, or to set the cookies before the redirection completely? Or does the user necessarily go to the login page?


kinrachid on "multi-vendor ecommerce wordpress"

$
0
0

Hello.

I am looking for a multi-vendor ecommerce wordpress plug-in.
Could someone let me know if they know any. I looked around the website using multiple keywords, but without success.

Please let me know.
Kin

funkynothing on "Beginner having trouble with filters"

$
0
0

Hi I am a WordPress and coding beginner and I am having trouble with hooking filters. This is the code in the parent theme:

'ajaxURL' => apply_filters( 'ae_ajax_url', admin_url( 'admin-ajax.php' ) ),

I want to hook that filter in such a way to replace the admin_url( 'admin-ajax.php' ) to admin_url( 'admin-ajax.php', is_ssl() ? 'admin' : 'http' ),

I tried many different ways and I cannot get it. Please help. This is one way I tried with no success:

add_filter( 'ae_ajax_url', 'admin_ajax_ssl' );
function admin_ajax_ssl() {
return admin_url( 'admin-ajax.php', is_ssl() ? 'admin' : 'http' );
}
?>

Thanks in advance.

Kerim on "Stripping Inline Width Style for wp_caption on Images"

kumarrai on "Sloane1.com: How can I preserve my wordpress website from hacks?"

$
0
0

Sloane1.com: Hey guys I just want to know how can I preserve my wordpress website from hacks?
Please let me know

sant527 on "add_filter not working"

$
0
0

Added the below apply_filters in a file in my theme

$videos_query = apply_filter('mars_main_widget_args',$videos_query,$this->id);
$wp_query = new WP_Query( $videos_query );

In the themes function file i have

if( !function_exists( 'mars_widget_post_ids' ) ){
    /**
     * @param array $query
     * @param string $widget_id
     */
    function mars_widget_post_ids( $query, $widget_id ) {
        if( $widget_id == 'mars-mainvideo-widgets-5' ){
            $query['post__in'] = array( 1,4,5,6 );
        }
        return $query;
    }
    add_filter( 'mars_main_widget_args' , 'mars_widget_post_ids',100,2);
}

The filter is not being applied any mistake

frankzitzman on "Password Entry Problem"

$
0
0

I recently posted the symptoms of my problem on the "Requests and Feedback" forum, but no answer was really helpful. I think I have an internal hacking problem.
I am unable to consistently get into the "Administration" section of my site due to an apparent corruption of my Password Entry. I was able to get in one time after resetting my password and found over 1600 spam messages. After deleting them and logging off the site I now cannot get in the "Administration" section.

In addition, each time I request a new password to be sent, my system is automatically flooded with spam "Please Moderate" messages.

Unfortunately, I don't know which WP version I have.

ghalox on "Sorting by most loved woocommerce products"

$
0
0

hi friends hope you are having a good weekend i'm looking for a function or a plugin or any tutorial or help to creat a new sorting on woocommerce product

the website on question is this one : http://www.udavinci.com/product-category/technology/programming/ so the product have the option to like i have a widget displaying the most loved wodget but i need a filter doing the same like the sort by popularity or rating

thank you for your help guys


Michael Mann on "Show events with start dates after today (Custom Post Type)"

$
0
0

I am trying to get events to show with a start date either today or in the future. I have the following code:

$today = getdate();
$args = array(
	'posts_per_page' => 15,
	'post_type' => $type,
	'post_status' => 'publish',
	'meta_key'=>'event_start_date',
	'orderby' => 'meta_value_num',
	'order' => 'DESC',
	'date_query' => array(
		'meta_key' => 'event_end_date',
		'column' => 'event_end_date',
		'after'  => array(
			'meta_key' => 'event_end_date',
			'year'  => $today['year'],
			'month' => $today['mon'],
			'day'   => $today['mday'],
		),
	'inclusive' => true,
	)
);

Yet it shows nothing. Any help is appreciated.

Quanticbyte on "Order problems insert code in the_content()"

$
0
0

I'm trying to create my first plugin for WP, the problem that I have is that when you want to insert the code in the text that captures the_content () I insert it in the beginning and not the end,for defect may insert it at first, as I can change the order and coming out at the end?

function wp_skin_home($text)
{
$pagines = pagines_inserir(); //array name valid pages
$pagina_actual = get_query_var('pagename');

if(in_array($pagina_actual,$pagines))
 {
  //add CSS
  wp_register_style('demo1_css_user',WP_PLUGIN_URL.'/demo1/user.css');
  wp_enqueue_style('demo1_css_user');
  //add Js
  wp_register_script('demo1_js_user',WP_PLUGIN_URL.'/demo1/user.js');
  wp_enqueue_script('demo1_js_user');

  $text2 = mostra_demo1_pagina($pagina_actual);
  return $text.$text2; //<------------------------- PROMLEM ORDER
 }
else { return $text; }
}

add_action('the_content','wp_skin_home');

function mostra_demo1_pagina($pagina_actual) return html code

tnks!

jmkovitz on "Symbols Like GreaterThan/Less Than in Shortcode Attributes"

$
0
0

Hi All:

I have been developing several shortcodes for a plugin I am working on, and one particular shortcode has been giving me trouble. One of my shortcodes should be able to handle inequalities like "2>0" as their attributes. Unfortunately, when I pass this as an attribute the quotes remain inside. Even worse is that when I pass a similar attribute with spaces inside the quotes, e.g. "5 > 0", it splits the the attribute into multiple attributes.

I have tried many tests with the shortcode_parse_atts() function to understand why the quotes are being passed into the $atts variable and why spaces are causing problems. It appears that Wordpress converts the quotes into curly quotes before the running the do_shortcode() command. The atts parser would then have trouble parsing the atts from the shortcode to this conversion. I have tested multiple themes (responsive and twenty-eleven) and I do not believe that it has anything to do with my configuration. Therefore it may be a bug in the wptexturize() function.

I have a MWE for those interested. The shortcode implementation in php is done in my main plugin php file. As an example, below is a shortcode function in which I use to observe this problem.

function my_code_function( $atts=null, $content=null ) {
	echo var_dump($atts);
}
add_shortcode('my_code','my_code_function');

The shortcode that appears to have problems is:

[my_code "1 > 0"]

The code gave me the output:

array(3) { [0]=> string(8) "“1" [1]=> string(1) ">" [2]=> string(8) "0″" }

However, the shortcode atts parser works correctly for the following variation

[my_code "1 GT 0"]

which gave me the output array(1) { [0]=> string(6) "1 GT 0" }

Thanks!

JLocke17 on "Malicious META refresh code."

$
0
0

Hello,

When I'm logged in I'm seeing this malicious META refresh code. I've not added. I believe my site was hacked recently.

However, when I'm not logged in, there is no such code. How do I find and fix it?

<META http-equiv="refresh" content="3;URL=http://adf.ly/xxxx/">

I'm thinking someone is making money out of my site by adding the code. It's not visible for public for some reasons. It just appears when I'm logged in.

Please help.

Thanks

rethinkable on "Problem with "excerpt_more" link"

$
0
0

Please help!

On the site wich I develop, on the page (and some other)
http://www.legeartis.rs/category/pravno-ekonomske-oblasti/kompanijsko-pravo/
problem can be seen.

I modified post excerpt that instead standard "[...]" at the end, now there is "...više >>" (more) with link to the full post page.

But, as a add that - post list was broke up, as you saw on first link.

I put this code

function new_excerpt_more($more) {
       global $post;
	return '<a href="'. get_permalink($post->ID) . '"> ...више » </a>';
}
add_filter('excerpt_more', 'new_excerpt_more');

in file functions.php

NOTE: If I put instead

'. get_permalink($post->ID) . '

some simple web adress, there is no problem. For example:
href="http://www.legeartis.rs"
Every post get nice link to that web page "...više >>" and everything cool.

Well, it's look that creating a links make problem. Also, some posts now dont have that link at all ( but evrey post have [...] at the end, without this change). On post where making link was unsuccessful next post look like "child" of that bad one before.

Can someone tell me how to solve this problem.

Sorry for my english.

Viewing all 8245 articles
Browse latest View live




Latest Images