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

AndreiBR on "get_category_link without the /category/ in the URL"

$
0
0

Hi guys,

I could really use some help! I need to make a button which points to a page containing posts from one category (e.g. Mobile, IT). That button should be near the posts titles, so on home page the button should link to every post's category . That button should have the text "More" (e.g.) not the category name - just to understand the problem. I used the code below to do that, but this points me to an URL like 'www.example.com/category/mobile' . Is there any way to point it directly to 'www.example.com/mobile', which displays the same thing as 'www.example.com/category/mobile'.

<?php $cat = get_the_category(); $cat = $cat[0]; echo get_category_link($cat->cat_ID); ?>

Any help would be appreciated! :)


Lesley Ward on "Brute Force Attack"

$
0
0

I appear to be under attack by someone trying to hack my website. :-(

I've put in a really complicated password which WP thinks is strong but I'm wondering if there's anything else I can do to stop these attacks?

I saw somewhere that you can install a plug in to limit the number of incorrect login attempts but the link was very out of date.

Does anyone have a more up to date plug in or any more suggestions?

Thanks for your help.

axiaer on "Possible attack - Redirecting every link to external unknown website"

$
0
0

Hey,
I've couple of websites and today i've observed that the websites are under attack by some sort of virus/bug/hack. The problem is whenever i try to click ANY link of the site, it redirects me to some external unknwon website until this morning the redirect was to "http://medicskrh.ru""
And now its "http://doctorsro.com"

This has virtually crashed all the website as none of the content is accessible, i still can login in Admin though.

The website is
http://carpetsnrugs.co.uk/
http://essayandreportwriting.com/
Internal link page

I've tried reinstalling a fresh copy of the backup but it has actually made things worse as i can't even access the homepage and is automatically redirects to the target website.

The link is http://indulgebeautystudio.co.uk

Can anyone please please guide me what to do with this and resolve this issue.

Thanks.

ivendo on "Free Shipping only shipping method"

$
0
0

Hi, how can i make FREE SHIPPING the only visible shipping method when an order had the right vaules for free shipping?

vgramlich on "wp_editor, allow guests to upload images?"

$
0
0

In the wp_editor codex, it says you can enable to media button for the editor using media_buttons => true.
I have enabled it for my editor and it works well if you are logged in. However, to guests, the button does not show up.
How can I allow guests to upload images in their user submitted posts, within the content?

miguelc on "Remove password for subscribers only"

$
0
0

I would like to remove the password option on the front end of my website for subscribers that registred on the site. I understand this is a security hole but its a one day event and the client is requesting for it. Email only login.

MichaelNi on "wp_enqueue_style() with php file and css styles (php functions do not work)"

$
0
0

I'm just developing my first own plugin; I enqueued a .css.php file and used <?php header("Content-type: text/css"); ?> to specify that the content is CSS via wp_enqueue_style(). However, the wordpress PHP functions do not seem to work. I have two files, both are quit with the following errors:

<b>Fatal error</b>: Call to undefined function plugins_url() in <b>/(...)/wp-content/plugins/simple-self-stylable-popup/ssspu_admin_css.php</b> on line <b>27</b><br />

<b>Fatal error</b>: Call to undefined function get_option() in <b>/(...)/wp-content/plugins/simple-self-stylable-popup/ssspu_css.php</b> on line <b>5</b><br />

I tried googeling, but can't find any usable answers.

Michael on "plugin saving options crashes apache with xampp"

$
0
0

Hi,
I'm currently working on a plugin, and whenever I go to save its options apache on xampp crashes. I can't really test my option saving method any other way, so I was wondering if anyone had run across this or might be able to look at my code (it's not much, yet) to see what could possibly be causing it? If not, can someone recommend a good way to debug what line of php is causing it to crash -- the only thing in the error log is it segfaulting. For reference, when I save options from a normal wordpress default page, it doesn't crash, only when I save options from my plugin.
Thanks,
-Michael.
P.S. almost forgot... dropbox link: https://www.dropbox.com/s/jhhrv5f1wf4zo8v/2mb-autocode.zip?dl=0


gezelligenleuk on "Serious site hack attack"

$
0
0

Specs:
website:www.gezelligenleuk.nl
wordpress: 3.9.2
theme: Studiopress Genesis with News-Pro childtheme

Hello,

My website has been hacked. My website is about art, but someone added 6 pages to my site linking to casino- and gambling websites.
Webmasters Tools shows that 55.000 (!!!) casino-websites are linking to my site. Needless to say that this is disastrous for my ranking in Google.

I tried everything to get rid of the links. The strange thing is, there are 6 pages added but I can NOT see them in my Wordpress-admin, as if they don't
exist. They all look like this: /?p=online-casino-uk

This is what I've tried so far:

- Re-installed Wordpress, I even bought a total new fresh copy of the Studiopress News-Pro childtheme.
- Changed all passwords
- Deleted and re-installed all plugins
- Wrote a robot-txt file to tell Google not to index the 6 casino-pages
- Sent a request to Google to ignore the 55.000 links
- Found and removed at least 1 malicious file in php-admin (could not find more)
- Installed and tried many security plugins like WordFence (they could not find anything)

Some of these actions were successfull, but everytime the casino links keep coming back. What I find very strange is that I completely removed my old
version of the New-Pro theme and installed a fresh copy which I just purchased. How can the links come back?
It's as if this virus operates from outside.

Is there somebody here who knows the answer to this problem? Anyone having the same experiences?

These are the links:
/?p=online-gambling
/?p=casino-bonus
/?p=online-casino-uk
/?p=online-casinos
/?p=online-casino-usa
/?p=mobile-casino

Paul

arekusandoro on "Help with WordPress Permalink 301 Redirect via .htaccess"

$
0
0

Hello,

I don't know why but my permalink move :
/%category%/%postname%/

to

/%year%/%monthnum%/%day%/%postname%/

and I have many many 404 in Google webmaster tools...

I know it's possible to have RedirectMatch 301...but i don't know how

this link https://yoast.com/wp-content/permalink-helper.php help me...but not with /%year%/%monthnum%/%day%/%postname%/

Can someone help me ?

Thanks

Tjoe70s on "Convert a PHP Nuke Module"

$
0
0

Hello,

I saw one other thread (closed) about this and it only pointed to an existing plugin that didn't get the customer what they were looking for. I'm hoping that this reaches the eyes of some knowledgeable coder that may be able to help me.

For almost 10 years, I've had a PHP-Nuke forum for the sole purpose of running one particular module - ClearChat. There is NO OTHER chat system anywhere that can beat this for customization and for ease of use for both admin and user. It's only drawback is that it was written solely for Nuke. I have talked with the developer (an online friend) and he has no plans for writing another chat program in another platform. He also has no problem with me porting this over to something else.

My web host really wants me to dump Nuke. They keep claiming that the code is so old that it must be the reason that they are getting hacked. They won't look at the actual code, just the revision date, so they can't tell for sure. About every 6 months this comes up and I have to promise them that I'll find another way to run this chat.

Being a php-nuke module, it is integrated with the forum logon system, and then the chat comments are integrated into the dbase log as they are validated with the user's account. If I can have the same functionality of this code but in a different database (like wordpress or some other system?) then I'd be willing to pay someone to port the code for me.

Any thoughts?

Any

ksimpson1986 on "routing file upload info to checkout button"

$
0
0

Hi! I'm creating an audio transcription site. I'm stuck on the most important part of the website. the site needs to charge per minute of the audio to be transcribed. when the client uploads the mp3 file in the file uploader, it needs to look at how long the file is, and instantly add that charge to the cart. I'm charging $1.00 per minute, so if the audio file is 10 minutes, $10 should pop into the cart. there are other websites that do this. http://www.rev.com is one of the few. if anybody could at least point me in the direction of a plugin or script to make this happen, it would be greatly appreciated!! I'm completely lost!

dannydanny on "Google Webmaster Errors -- Theme Twenty Twelve"

$
0
0

Part 1 (part 2 below)

I'm using the theme Twenty Twelve and I have searched high and low across the Internet for the solution to my problem. I'm getting this error in google webmaster tools:

Error: Missing required field "updated".
Error: Missing required hCard "author".

My site is a site with hundreds of static PAGES, not posts. I do have a blog that goes along with the site, but I don't even have those posts indexed. I only care about the pages.

I have implemented the "entry-date updated" fix I've seen all over the place in the functions.php file (line 375; latest version of Twenty Tweleve; version 1.4). I still am getting the errors for all my static pages.

I have the message that authorship is working for the page.

However, in the "extracted structured data" section, I get the above-mentioned errors for all my site's pages.

As I said, I have authorship working. My google+ account is successfully linked with my site.

So, is there any obvious, simple fix to this problem that I'm missing?

Any help would be appreciated. I know there are multiple posts about this on the Internet and on these forums, but I can't find the fix for my specific problem.

My site: http://truthsaves.org/

Part 2 (a few days later)
I'm still working on the problem. Any assistance would be greatly appreciated. I've solved half of it.

I found this line in the content-page.php file:

<h1 class="entry-title"><?php the_title(); ?></h1>

and I changed it to this:

<h1 class="entry-title updated"><?php the_title(); ?></h1>

I just added the word updated.

Now the updated error that I posted in my original post is gone. Remember this is for the theme "twenty twelve" pages, not posts.

I still have the following error and not even sure it can be fixed! I'm sure it can. But maybe twenty twelve doesn't have any support for author markup in pages. I don't know.

Error: Missing required hCard "author".

Any help? Would love it if someone could help.

Kya on "Getting random users"

$
0
0

I have a website that I use as a comment exchange. Right now a lot of the work has to be done manually, because I can't quite work out how to make it do the following below.

I want to be able to generate a set number of random users for a user to comment on and have that emailed at a set time. I also want to be able to include who that user is also going to get comments from.

For example, if there was custom fields, that could somehow pull a random number of users every set time (say weekly or whatever) and then I could mass email users. While, it also could detect if the first user had been selected by other people and have it as the comment from..

At the moment I have members managed as users, and have to use excel to generate them randomly, then search, copy and paste who they have comments from.

Nothing like this really exists so if anyone has any ideas that would be awesome. :D

eng.b.ch on "major defacment of 837 sites worlwide"

$
0
0

hi there ,
2 of my sites is being hacked by an Indonesian group , as far as i checked all of the sites were using wordpress , and most of them faced Defacement ,
is any one know about that and know whats their method to hack the sites ?
and how to prevent it in future ?


AFS_website on "Submitting pages via phpmyadmin import?"

$
0
0

I'm using WP3.9.2 as a base for a project I'm working on.

I also have the "Tag Pages" plugin installed to allow me to assign tags to pages.

What I want to do it to be able to create pages without using the admin panel. I figure it will be faster and more efficient for my purpose.

All I want is to be able to create a page with a title (but no content) and assign it tags. I want to be able to do this in a spreadsheet, then upload hundreds or thousands of these "pages" at once.

Can anyone think of the best way to achieve this? If I haven't made clear what I want to do please let me know!

EDIT for clarity: Obviously I'd like the tags to be created if they don't already exist.

Thanks a lot!

freeman2 on "Prevent Hackers"

$
0
0

my website name is holyhostdominion.org, Please how can i prevent this site from hackers not to hack it

shanebp on "wp_nav_menu_items - mobile problem"

$
0
0

I'm using the wp_nav_menu_items filter hook to add a subnav to the main navigation for this site: http://www.newspebbles.com
It uses a child theme for 2013

function new_nav_menu_items($items) {
	global $wpdb; 

	$localities_links = '';

	$query = //etc
	$localities = //etc

	if( $localities ) {	

	    foreach( $localities AS $locality ) {

		$localities_links .= '<li id="menu-item" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.newspebbles.com/' . $locality->locality_slug . '/">' . $locality->locality_name . '</a></li>';	

	    }

	    $items = str_replace('<a>Localities</a></li>', '<a>Localities</a><ul class="sub-menu">'.$localities_links.'</ul></li>', $items);
	}

    return $items;
}
add_filter( 'wp_nav_menu_items', 'new_nav_menu_items' );

The 'Localities' link ( and all the other links ) was created via Appearance > Menus.
This works properly on laptops.
But on mobile devices the links do not work.
On iOS, the 'Localities' link does not work.
On Android, the 'Localities' link shows the subnav, but the subnav links do not work.

What is the recommended solution re main nav on mobile?
Will I have to use wp_nav_menu to create the whole nav menu via code?
And / or a custom walker?

Hube2 on "Custom Taxonomy"

$
0
0

I need to create a custom taxonomy.
I need to have the (mostly normal) taxonomy select box appear when editing a post but I need the taxonomy to be hidden in all other ways.
So, someone can select a term in the taxonomy, like they would select a category but, there is no admin UI, they cannot add or remove terms.
I need to use the standard select box because this will interact with Advanced Custom Fields to allow the display of custom field groups based on the term selected. The actual terms that are added will be controlled by the plugin.

I've found plenty of things about custom taxonomies and moving the box, but nothing that will do what I need done. show_ui set to false hides everything and then I need to build it myself, building my own select box means that it will not interact with other standard things like the standard box will unless I also custom build all that interaction.

It seems like this should be possible through the register_taxonomy() function. However, there seems to be a very narrow view of the way taxonomies should work.

Can anyone help me do this without needing to reinvent the wheel?

gonewylde on "How to hack your own site?"

$
0
0

Hi guys,

Not sure how to name this but here's the deal:

I have a client that was supposed to pay me $6,000 to finish their new website (a LOT of content). I've been their webmaster for 2 years and the current site was designed by me.
It was agreed that they would pay me in 4 instalments of $ 1,500 for this job, but before the first payment I had to move overseas. They said they trusted me and that I could keep working on it from wherever i wanted. But now, for no good reason, just after the first payment (I was paid $1,500) they asked me to handover my job to the "IT team". I said that was not the agreement and that I wouldn't do it. Their IT team is useless, but they do have admin access to the domain and hosting info.
I had the passwords, but they changed them before all this happened and at the time I didn't actually care.
Now, I'm trying to talk to them nicely, they won't reply to my emails. They knew that one of the reasons I moved overseas was because I could count on this $$ as an initial support. I'm willing to take their site down if they keep bullshitting me. Some of you may think it is wrong, but I have the new website almost done and I just can't afford not being paid for it. This is the only way I may get their attention.

So well, to the question: How can I take it down if my admin access and ftp is revoked? it hasn't been (they trust me too much, they would never expect me to do this) and I still have ftp access. Is there a php file or something like this that can help me hack it?

Viewing all 8245 articles
Browse latest View live




Latest Images