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

sachinstellen on "Site bandwidth issue increaing"

$
0
0

Hi,
Last month I had a bandwidth issue on my site. It consumed around 8GB in December month. I optimized the script and used security plugin wordfence. Now on the second day of month I have 220MB band width consumed. It would be a hack? I have checked all files and every possible way to optimize and reduce the bandwidth got but no results.

How to reduce this and how to know what is eating so much of bandwith.


FGHHGG on "error in plugin "paypal adaptive payments""

$
0
0

i have the plugin "paypal adaptive payments" in my wordpress , and in this plugin have all my personal details , like my API username , and that the customer buy product in the website of this wordpress , have to customer in the checkout page after that he click on "proceed to paypal" button this error - "An error has occurred while processing your payment, please try again. Or contact us for assistance." what the solution of this error?
the website - http://wow4u.co.il/

javad2000 on "Feature Request In Comments Template"

$
0
0

Hello
I use Subscribe to Comments Reloaded plugin, so to let the users subscribe to their favorite posts. I believe STCR is the best comment-subscription plugin, although it has failings too. I think Wordpress still lacks a sophisticated comment and post subscription system. There is a problem with STCR, which can not be solved by the plugin author. It should be modified by Wordpress team. When we activate the plugin, the subscription checkbox appears below comment "submit" button, while it is very illogic to put a checkbox below "submit" button. I say it is illogic, because for one thing, "submit" button must be the last element of every form, but also blind users like me can not see that option before clicking on "submit" button. Most of times, they forget to check or uncheck that option before clicking on "submit" button, because they don't read it before "submit" button.

In order to solve the above problem, I go to wp-includes, to "comment-templates.php" in Wordpress, and fine the following line:
<?php echo $args['comment_notes_after']; ?>

Then I change that line into:
<?php echo $args['comment_notes_after'];
if (function_exists('subscribe_reloaded_show')) subscribe_reloaded_show();

?>

This solves my problem and takes the checkbox to above the "submit" button, but whenever I upgrade Wordpress, that file gets replaced and the feature gets deactivated. I would like to wish 3 things:
1- Add the above code to "comment-template.php", so I won't have to add it manually every time after upgrading to a new version of WP. You can do the same thing for the subscription checkboxes of mail-poet, subscribe2 and other comment-subscription plugins as well.
2- Add STCR to the default plugins that come with Wordpress.
3- Create a sophisticated subscription system for Wordpress, which has the same features as the subscription system of VBulletin. I believe VBulletin has the best subscription system. I can explain the reasons if needed.

Thank you

m.jfarkariyan on "view the latest post"

$
0
0

hi
The code to view the latest content Want
tnx

CypherCo on "Custom login/logout field in menu bar is out of place and not functioning."

$
0
0

Hello everyone. The past two days I have been trying to learn how to add a nice login/logout/register field into the top menu bar of my site. I just recently began familiarizing myself with editor. I dug this code up here in stackoverflow. I like the way it looks and I'm hoping to tweek it a bit.

/* Custom Login Menu Field */
add_filter('wp_nav_menu_items', 'add_login_logout_link', 10, 2);

function add_login_logout_link($items, $args) {
// start buffering
ob_start();
// this is the actual form function
wp_login_form($args); // $args optional see below ..
// get buffering
$loginoutform = ob_get_contents();
// clean buffering
ob_end_clean();
$items .= $loginoutform ; // concatenate buffering with items ...
return $items;
}

What I would like to do is have the login field area centered horizontally in the middle of the top/main menu bar. As you can see it is currently all the way to the right and stretches out the whole thing. When I use it- it does log me in, but does not switch to a "logout" option when signed in.

If anyone has any knowledge in this area on how I could add or modify my starter code I would be very grateful. Best regards- Cypher.

Site: cypherbeats.com
Theme: Jarvis (latest)
Code was added into functions.php

ferminlira on "My site was hacked"

$
0
0

Hi all, I am writing because I'm having an issue with my wordpress site.

Some URLs have appeared on top of the header and I am not being able to find what is triggering them:

http://www.serindustria.com.ar/

Those unwanted URLs are:
"laser pointer pen
green laser pointers for sale
laser pointer
laser pointer pen
blue laser pointers pen
laser pointer for sale
red laser pointers pen
laser pointer
green laser pointer"

I have searched the database, have replaced the site files with a back-up I have through FTP, I have de-activated pug-ins, but the links are still there.

What could be the problem? How can I get rid of those links? Could anyone help?

Thanks a lot!
Fermín

andrewf12 on "Move Comment Section on Page"

$
0
0

Hi,

I would like to know if it is possible to move the default WordPress comment section from the bottom of the page to a column within the page.

Does anyone know how to create a shortcode for the comment section so I can paste it into the page column and hide the comment section found at the bottom of the page so it's not duplicated?

Thanks!

[closed as duplicate of https://wordpress.org/support/topic/move-comment-section-on-page?replies=3 - please continue with that original topic]

JanWest on "Navbar not displaying correctly while scrolling"

$
0
0

Hi guys,

I have gotten my navigation bar to display the way I want before I start scrolling but when I scroll everything goes out of whack.

Here are images of the navbar

And here is the code I used in Siteorigin CSS.

.site-header .home-link img {
  max-height: 140px;
  max-width: 208px;
  padding: 5px;
 }

 #navbar .navbar {
  padding-top: 25px;
 }

 #masthead.site-header.fixeddiv {
  max-width: 90%;
  left: 5%;
  right: 5%;
  padding: 0px;
 }

 .site-header.fixeddiv .home-link img {
  max-height: 140px;
  max-width: 208px;
  padding: 5px;
 }

 #navbar .fixeddiv .navbar {
  max-height: 140px;
  max-width: 208px;
 }

Any help will be welcome. Thank you.


bateman5150 on "Using an external link for the static (home) page"

$
0
0

I am having trouble find a plugin, or the correct file/code to set the static home page to an external link.

I need to link the hompage to a subdomain for an online store, that is outside of wordpress (example: shop.domain.com).

Is there a place where I can manually add the external link?

If so can someone please provide the file, section, and code to write?

Thank you for your help,

Max

SiriusBlack on "paginate_links working incorrectly on low pages"

$
0
0

Hey there,

I'm currently creating a custom theme, yet for some reason my pagination code is acting weird

Here's the PHP code i'm running:

echo '<div class="text-center">';
echo '<ul class="pagination">';
$pagination = paginate_links( array(
        'base'               => '%_%',
        'format'             => '?paged=%#%',
        'current'            => max( 1, get_query_var('paged') ),
        'end_size'           => '2',
        'mid_size'           => '2',
        'prev_next'          => 'true',
        'prev_text'          => '«',
        'next_text'          => '»',
        'type'               => 'array',
        'add_args'           => False,
        'add_fragment'       => '',
        'before_page_number' => '',
        'after_page_number'  => ''
));
foreach ($pagination as $link)
{
    if (strpos($link,'span') !== false)
        echo '<li class="active">' . str_replace(array("<span class='page-numbers current'>",'</span>'),array('<a href="#">','</a>'),$link) . '</li>';
    else
        echo '<li>' . $link . '</li>';
}
echo '</ul>';
echo '</div>';

and here's the HTML which that PHP code produces

<div class="text-center">
    <ul class="pagination">
        <li><a class="prev page-numbers" href="">«</a></li>
        <li><a class='page-numbers' href=''>1</a></li>
        <li class="active"><a href="#">2</a></li>
        <li><a class='page-numbers' href='?paged=3'>3</a></li>
        <li><a class="next page-numbers" href="?paged=3">»</a></li>
    </ul>
</div>

here's the website i'm working on: http://www.mohairmetflair.nl/blog/?paged=2

as you can see, i'm currently on page 2, and while navigating to page 3 works fine, the buttons for "previous page" and page 1 contain no URL in their href from when the pagination is created
not only that, but the HTML seems to be swapping between using single and double quotes at random

Thanks in advance for any help you're able to provide on this issue

Anderspin on "wpdb->get_results doesn't return all rows"

$
0
0

Hello!
I'm having trouble with my custom tables. When I use wpdb->get_results() it returns on row too few, every time. That is: one row doesn't show up in the result.
Counting the entrys in the table with get_var() works fine.

Has anybody had the same problem and is there a solution?
Is there perhaps some sort of limit or offset value that I don't know about?

When I know there are four rows to be returned with get_results it returns three.

Anybody?

AnotherChance on "Ajax Request"

$
0
0

Good afternoon, I am trying to update my custom table via Ajax but I am getting no joy. I have checked the network responses and the .js file has a 304 status and my .php file has received a 200 status. This leaves me to believe that the code in the PHP File is not right. I canot understand why because when I submit manually without Ajax it updates the database. Please help.

<?php
	if (!empty($_POST)) {
		global $wpdb;
		$table = 'ac_purchases';
		$mc_data = array(
			'purchase_post_id' = $_POST['REFERENCE'],
			'days_purchased' = $_POST['dext'],
			'purchase_date' = $_POST['TRANSACTION_DATE'],
			'purchase_amount' = $_POST['total_due'],
			'purchase_status' = 'pending',
			);
			array('%s', '%s', '%s', '%s', '%s');

			$wpdb -> insert($table, $mc_data);

			$response = array('my_hidden_field' => 'this is now filled in');

			echo json_encode($response);
	}
?>

alicebyron on "Unauthorised links - help"

$
0
0

Could someone please advise: I'm new to WordPress, have recently noticed some strange spam links (to movie torrent sites) on my lifestyle blog. When clicking on the spam links and categories listed, nothing comes up. Strangely, this appears differently depending on how my site is reached.

When coming to the site via a Google search: i.e. just searching my name "alice byron", or my site "alicebyron.com", they appear as recent posts, among my actual lifestyle posts. But when reaching my site by typing the actual http://www.alicebyron.com web address into your top browser, they only appear at the bottom of my actual posts, as links to spam "previous" and "next" posts. Feel free to search to get an idea!

Would really appreciate someone's help on this. Have searched forums to try and fix and struggling with all the coding language used as I'm a bit of a novice, and not sure if I've been hacked a lot. Have started by changing password to a stronger one. Help in more basic terms would be wonderful.

sofia_b on "A link redirecting to ask.com appeared in my footer!"

$
0
0

Hi,

I don't know if I have been hacked or not but since yesterday I have adverts appearing in my WP dashboards and links pointing towards different websites.
Most important in the homepage of my website, precisely in the footer, a link appeared pointing to ask.com

Anyone having a suggestion to solve my problem.

Many thanks.

NextGen_User_SH on "[Plugin NextGen] code to remove border/padding from lightbox?"

$
0
0

Re NextGen, how to remove border/padding from lightbox? I already removed from thumbnails with this:

.ngg-gallery-thumbnail img {
background-color:transparent!important;
border:none!important;
padding: 0px;
}

but once clicking on any image, the lightbox pops up and the white ugly padding surrounding the image is still there!
Thanks for enlighting me.
Rgds.


smarta-brett on "woo commerce field problem"

techkid6 on "Getting a GD image from WP_Image_Editor"

$
0
0

Hey there. I'm trying to do some image manipulation for a custom plugin, and some of it requires a bit more than the WP_Image_Editor really provides (Like making new images), and part of my requirements is to manipulate a WP_Image_Editor image in GD, and I'd rather not deal with files.

I tried using the WP_Image_Editor::stream function, but it seems to always return 1 when I put that output into the error_log.

My code is here:

function wpToGD($image_wp){
    error_log(print_r($image_wp->stream()));
    return imagecreatefromstring($image_wp->stream());
}

Is there something I'm missing here? Thanks.

leandro_S on "wp_set_post_categories does nothing"

$
0
0

I have a class to add a list of terms to a post when it turns from draft to publish. The function is correctly triggered and the code (now, because I have commented almost all lines) is as simple as this:

class setCategoriesRight
{
    public function __construct()
	{
        add_action( 'draft_to_publish', array( $this, 'publish_post' ) );
    }

    public function publish_post($post)
	{
        if('myposttype' == $post->post_type) //Si pertenece al custom post type agencia o experto
		{
			$post_id = $post->ID;
			$categories = array(11, 12, 13, 14, 15);
			wp_set_post_categories( $post_id, $categories, true);
		}
	}
}
new setCategoriesRight;

After the function is fired, the wp_term_relationship table is completely unaltered.
What I'm doing wrong?

ArtimisK on "How to setup post expire automatically"

$
0
0

Hello I have a this website ofertasuksesi.net and it is a directory/listing theme. I purchased this theme but what does this theme not have is: EXPIRING MODULE. I want my listings (my posts) to expire automatically for example after 13 days, I need those posts deleted automatically from my server or why not even in trash folder.

schoelje on "Donate while downloading page - does it exist?"

$
0
0

I couldn't find any plugin that could do this (but perhaps I didn't use the right keywords to search).

I've tried "Easy Media Download", but those pages are static and do not download the file when it's loaded. The user still needs to hit the download button. I would want the page to download a given file and present a donation form while the file is being downloaded.

So, in short this is what I need:

    Users can download a file (.iso).
    The link directs to a page that downloads the actual file.
    This page shows a donation form (while the file is downloading).

Does anybody know of such a plugin or do I have to build the page myself?

Viewing all 8245 articles
Browse latest View live




Latest Images