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

The Bean on "Modern Tribe The Events Calendar"

0
0

After a LONG period of procrastination, I decided to upgrade to the current release of The Events Calendar (Modern Tribe.) I am WAY, behind but it looks great and is working so I wasn't too worried.

I struggled a couple times in the past to upgrade but surrendered.

My issue is with the font size of the heading and the links within the calendar (they're WAY too large.) Also the headings are now Monday (vs Mon), Tuesday (vs Tue), etc.

I just spent half a day trying to get this resolved (trying to edit various css files) to no avail. I suspect I made css changes in the past to get the font size I wanted but I'm unable to re-create that change.

I found many discussions/solutions, tried each of the fixes but have failed miserably.

Can someone point me to the .css file that needs to be changed and where the change is to be made?

This looks just the way I want it (old, old, old release of TEC) http://www.npscolorado.com/events/month/ and I want to keep the font size looking this way.

Many thanks in advance.


agoren on "I get the error my plugin."

0
0

Hi.

I'm newbie for plugin development.

I tried wrote the plugin but i get the error.

If activated plug-in running no problem but can't show blog's images and stats bar.

My Code. Where is the error? Sorry for my bad english:

<?php
//defined('ABSPATH') or die("No script kiddies please!");
/*
Plugin Name: Download Buttons
Plugin URI: http://blog.aligoren.net
Description: Download Buttons
Version: 0.1
Author: Ali GOREN
License: GPLv2
Author URI: http://blog.aligoren.net
*/

//Download Button
function dwn_button( $atts ) {

	// Attributes
	extract( shortcode_atts(
		array(
			'color' => 'red', // default red
			'link' => '', // default empty
			'target' => 'blank', // default target blank.
			'alt' => '', // default empty
			'title' => '', // default empty
			'lang' => 'en' // default english
		), $atts )
	);

	// plugins directory
	$directory_plugins = '/wp-content/plugins/download_button/images/';

	// colors array
	$colors = array('blue', 'crimson', 'red', 'wellread', 'green', 'aqua', 'silver',
	'gray', 'orange', 'azure', 'pink', 'purple', 'yellow', 'icecold', 'ghost',
	'eclipse', 'cyprus', 'chocolate', 'celtic', 'apache');

	// Return code
	//English Translate
	if($lang == 'en')
	{
		if(in_array(strtolower($color), $colors))
		{
			if($color == $color)
			{
				$rtn = '<a alt="'.$alt.'" title="'.$title.'" href='.$link.' target="_'.$target.'"><img src="'.$directory_plugins.''.$lang.'/'.$color.'.png"></a>';
				return $rtn;
			}
		}
		else
		{
			$rtn = '<a alt="'.$alt.'" title="'.$title.'" href='.$link.' target="_'.$target.'"><img src="'.$directory_plugins.''.$lang.'/crimson.png"></a>';
			return $rtn;
		}
	}

	//Turkish Translate
	else if($lang == 'tr')
	{
		if(in_array(strtolower($color), $colors))
		{
			if($color == $color)
			{
				$rtn = '<a alt="'.$alt.'" title="'.$title.'" href='.$link.' target="_'.$target.'"><img src="'.$directory_plugins.''.$lang.'/'.$color.'.png"></a>';
				return $rtn;
			}
		}
		else
		{
			$rtn = '<a alt="'.$alt.'" title="'.$title.'" href='.$link.' target="_'.$target.'"><img src="'.$directory_plugins.''.$lang.'/crimson.png"></a>';
			return $rtn;
		}
	}
}
add_shortcode( 'download', 'dwn_button' );

add_action('admin_menu', 'dwn_button_help_tab');
function dwn_button_help_tab() {
    $dwn_help_page = add_options_page(__('Download Button Help', 'dwn_help'), __('Download Button Help', 'dwn_help'), 'manage_options', 'dwn_help', 'dwn_help_admin_page');
	add_action('load-'.$dwn_help_page, 'dwn_add_help_tab');
}

function dwn_add_help_tab() {
    global $dwn_help_page;
    $dwn_screen = get_current_screen();

    $dwn_screen->add_help_tab( array(
        'id'	=> 'dwn_help_tab',
        'title'	=> __('Screenshot'),
        'content'	=> '
' . __( '<h3>Screenshoot</h3><img src="'.plugin_dir_url('download_button').'/download_button/images/screenshot.png">' ) . '
',
    ) );

	$dwn_screen->add_help_tab( array(
        'id'	=> 'dwn_about_tab',
        'title'	=> __('About'),
        'content'	=> '
' . __( '<h3>About Plug-in Author</h3>Ali GOREN<h3>Author Website:</h3><a href="http://blog.aligoren.net" target="_blank">http://blog.aligoren.net</a>
		<h3>Contact:</h3><a href="mailto:goren.ali@yandex.com">goren.ali@yandex.com</a>
' ) . '
',
    ) );
}

function dwn_help_admin_page() {
	if(get_locale() == 'tr_TR')
	{
		$usage = file_get_contents(plugin_dir_url('download_button').'/download_button/help.tr.html');
		printf('<h3>Nasıl Kullanılır?</h3><br>');
		printf('<b>Açıklama:</b> Bu eklenti ile dosya indirme linklerini butona çevirebilirsiniz.
		Eklenti 20 kadar renk desteği sağlamaktadır. Ve gerekli olan a, title, alt gibi tagleri desteklemektedir.
		Bunun yanında ek olarak açıklamak gerekirse, varsayılan renk olarak KIRMIZI kullanılmaktadır. Varsayılan dil İngilizcedir.
		Basit kullanım örneğindeki gibi bir kullanımda link yeni sekmede açılmaktadır. Ancak isteğe göre _self, _top, _parent seçenekleri kullanılabilir.
		Ayrıca ekran görüntüsüne yukarıda sağ taraftaki Ekran Görüntüsü bölümünden ulaşabiliriniz.<br><br>');
		printf($usage);
	}
	else if(get_locale() == 'en-US')
	{
		$usage = file_get_contents(plugin_dir_url('download_button').'/download_button/help.html');
		printf('<h3>How To Using?</h3><br>');
		printf($usage);
	}
	else if(get_locale() == 'en_GB')
	{
		$usage = file_get_contents(plugin_dir_url('download_button').'/download_button/help.html');
		printf('<h3>How To Using?</h3><br>');
		printf($usage);
	}
	else
	{
		printf("Not Supported");
	}

}

function dwn_button_now_activate() {
	add_option('dwn_button_now_activated', true);
}
register_activation_hook(__FILE__, 'dwn_button_now_activate');

function dwn_button_now_activated() {

	if(get_locale() == 'tr_TR')
	{
		if(get_option('dwn_button_now_activated', false)) {
			delete_option('dwn_button_now_activated');
			add_action('admin_notices', create_function('', 'echo
			\'<div class="updated fade"><p><strong>Download Button</strong> aktif, eğer istersen, <a href="./options-general.php?page=dwn_help">Yardım Dökümanı</a> sana yardımcı olabilir.</div>\';'));
			}
		echo '<style>div#message.updated{ display: none; }</style>';
	}
	else if(get_locale() == 'en-US')
	{
		if(get_option('dwn_button_now_activated', false)) {
			delete_option('dwn_button_now_activated');
			add_action('admin_notices', create_function('', 'echo
			\'<div class="updated fade"><p><strong>Download Button</strong> is active, if you want to help, you can <a href="./options-general.php?page=dwn_help">Look Help Document </a></div>\';'));
		}
		echo '<style>div#message.updated{ display: none; }</style>';
	}
	else if(get_locale() == 'en_GB')
	{
		if(get_option('dwn_button_now_activated', false)) {
			delete_option('dwn_button_now_activated');
			add_action('admin_notices', create_function('', 'echo
			\'<div class="updated fade"><p><strong>Download Button</strong> is active, if you want to help, you can <a href="./options-general.php?page=dwn_help">Look Help Document </a></div>\';'));
		}
		echo '<style>div#message.updated{ display: none; }</style>';
	}
}
add_action('admin_init', 'dwn_button_now_activated');
?>

Michael on "error: options page not found"

0
0

Hi,
I am trying to code a (at the moment) relatively simple plugin. I've got to the point of saving options, and now when I press submit it says error options page not found. I've checked and checked and checked the names I've entered in all the functions to make sure they seem right (at least what I think is right, as I'm a little confused about the settings API), but can't find anything.
So my question:

Is there a way to see what options it tried to save, etc? I turned on wp_debug as well as wp_debug_log, but nothing is generated other than the error I mentioned.
I'd give out my code (I plan to release it eventually once it's in a moderately finished state), but the code is extremely messy (I don't indent by habit, as I'm blind and it's just not something I have done from the beginning of my coding career -- bad, I know, and I'm trying to fix it-- and there are no comments to speak of). I'm trying to learn wordpress plugin coding first, then make it presentable later. xD.
Thanks,
-Michael.

arvgta on "Disabling 404 handling completely"

0
0

Hello all,

my site:

http://4nf.org/

...uses the newest version of WP and some plugins such as W3 Total Cache.

My aim, just for testing purposes is to disable 404 error handling completely, i.e. to revert to "naked" 404 handling, which really throws a hard 404 error instead of handling it softly.

I've tried deleting the 404.php file in the theme and also disabling the W3 Total Cache page cache in vain.

I've also researched the web and the usual question seems to be the opposite, i.e. how to handle the 404 error "softly".

Any help is greatly appreciated!

Thanks in advance!

janeen2 on "Warning: Cannot modify header information"

0
0

I tried to use the Easy Slide plugin. Now I am getting these errors and and cannot log in at all.

Warning: Cannot modify header information - headers already sent by (output started at /home/nnmstechops/jstmane.nnms.org/wp-content/plugins/wordpress-easy-slides/wp_easy_slides.php:1) in /home/nnmstechops/jstmane.nnms.org/wp-login.php on line 426

millerguide on "Rename "Name" and "Email" fields in comment field."

0
0

Theme: Customizr
I am using the standard Wordpres comments option. How can I change the text of the "Name" and "Email" fields? Also, the text is NOT in my comments.php file: I already looked. Thank you!

marmarr on "How to display full blog post in categories"

0
0

My blog posts do not have a parent page. The menu has 5 menu items which are the blog categories. The blogs show up on their assigned category page. So I can’t make it display the full blog posts from the admin panel as far as I know.

I copied the archive.php file from the attituse theme and put in my code and put it in my attitude child theme folder.

The code I tried is

<?php the_content(); ?>

as suggested here http://codex.wordpress.org/Category_Templates

and

<?php
global $more;    // Declare global $more (before the loop).
$more = 1;       // Set (inside the loop) to display all content, including text below more.
the_content();
?>

as suggested here http://codex.wordpress.org/Template_Tags/the_content

It did not work… I put the code in the beginning of the file. I named the file the same “archive.php” and put it in the child theme.

What do you think I am doing wrong?

edow on "How to show nearby locations with latitude and longitude"

0
0

Hi,

My website has multiple (custom) posts types. Right now they're activities, accommodations and restaurants but in the future there will be more. Every post has a custom field with the latitude/longitude. I also have a custom field with the full address.

When I'm for example on a activity page I would like to show 5 nearby accommodations and 5 nearby restaurants within 10 kilometers from the location of the activity. And vice versa.

Is this possible and if so, how should I do this? I would like to do this without a plugin if possible. Hopefully someone can get me started with this.


gerald123 on "After installed security plugins, can't login to admin area"

0
0

I have installed a few security plugins after got hacked.
But now I also can't login to the admin area.
I don't know which plugin that create this issue.
How should I do it now?
If I deleted all the plugins, I am worried with the hackers.

Perhaps is there any other way to post articles without login to the wp-admin?

rghollenbeck on "featured image to override header image?"

0
0

When I post to Facebook, my header logo appears as a thumbnail. The image has the wrong shape and size to function that way. I have an older version (much smaller 180x180) logo that I used to use which could work nicely as a thumbnail for Facebook posts. I don't want to use it as the header logo.

How can I make this the "featured" image as far as Facebook is concerned while continuing to use my existing header image?

By "Featured," I do NOT mean that I want this image to be displayed in the page. I only want it as the default thumbnail image for things like Facebook posts, etc.

Thanks.

website: http://www.scripturequizzer.com

thumbnail: http://www.scripturequizzer.com/wp-content/uploads/2014/07/scripturequizzer-180x180.png

elliottprice on "Loading more posts on front page (Custom theme)"

0
0

I have a custom theme that I created, and on the frontpage I want to load the most recent 10 posts, but then have a "Read More" or a way to load more posts. Is there an easy way in the index.php page using PHP to load more posts? I tried a plugin, but it didn't work on my theme. I'm using the standard PHP loop code to load the posts.

My thought is to have a button that will change the parameter or variable that defines how many posts are loaded on the front page, but I can't find any documentation online to do this.

Thanks in advance!

LexxisueDesigns on "List posts in random order"

0
0

Hello! On a website I am an administrator for, I have a list of all the posts on my front page and also a category with all the same posts. I want to randomize the order of the posts in the category section. So the front page is a list of them all but when they click on the category in the menu is becomes a new list of pots. Searched and searched for a plugin with no luck. Any way I can do this? Please talk to me like I'm five, I am still generally new at this.

THANKS!

website is http://www.runitbare.com if you wanted to look and see what I meant

fredperes on "Filter content by taxonomy"

0
0

I'm developing a website with custom post fields (projects). The projects are organized by taxonomies (states). I need to create a drop down menu that the user selects which projects he would like to see, based on the state. But the challenge is: how to do this globally? When the user clicks in a internal page, the content remains filtered. Should I use cookies? How?

emmasmith on "Site Hacked due to host"

onirisweb on "Woocommerce : display product pic in cart page"

0
0

Hi,

I am using Woocommerce and would like to know if the is any way (plugin,m hack, tuto) to add in the shopping cart page an new column displaying the product picture.

I searched but couldn't have found any topic about that.

Thanks for your help ;)


Pepe Huerta on "HOW-TO: Embed **THE NEW** Google Maps without a plugin or shortcode"

0
0

Hi,

There are a lot of tutorials about embedding Google Maps in your posts, but after a long and painful research, I notice that every single tutorial was about embedding **THE OLD** Google Maps platform... the one with the url scheme 'maps.google.com'.

**THE NEW** Google Maps scheme (https://www.google.com/maps/place/) is completely different, and there almost no documentation on how to make it work in WordPress.

So, here is a quick tutorial on how to embed **THE NEW** Google Maps in WordPress posts without a plugin and just pasting the map url in the post body:

1. First, you need an API Key from Google. Follow the instructions at https://developers.google.com/maps/documentation/embed/guide#api_key.

2. Once you have your API Key, we can get into the code. In your favorite theme, open functions.php and add:

<?php
wp_embed_register_handler( 'googlemapsv1', '#https?://www.google.com/maps/place/(.*?)/#i', 'wpgm_embed_handler_googlemapsv1' );
function wpgm_embed_handler_googlemapsv1( $matches, $attr, $url, $rawattr ) {
	if ( ! empty( $rawattr['width'] ) && ! empty( $rawattr['height'] ) ) {
		$width  = (int) $rawattr['width'];
		$height = (int) $rawattr['height'];
	} else {
		list( $width, $height ) = wp_expand_dimensions( 425, 326, $attr['width'], $attr['height'] );
	}
	return apply_filters( 'embed_googlemapsv1', "<iframe width='{$width}' height='{$height}' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='https://www.google.com/maps/embed/v1/place?q=" . esc_attr($matches[1]) . "&key=***YOUR-API-KEY***'></iframe>" );
};
?>

Be sure to replace ***YOUR-API-KEY*** with your KEY. Save & close.

3. Test the new code by adding a new post and just pasting a google maps url like this one from The White House:

https://www.google.com/maps/place/The+White+House/@38.896278,-77.0306687,17z/data=!3m1!4b1!4m2!3m1!1s0x89b7b7bcdecbb1df:0x715969d86d0b76bf

That works the same way as just using:
https://www.google.com/maps/place/The+White+House/

The RegEx can be tweaked to allow different URL schemes for the four new modes, detailed here: https://developers.google.com/maps/documentation/embed/guide#modes.

This method only works for 'place' mode, but reading the documentation will get you on track to make the 'directions', 'search' and other modes working.

That's it. I hope it works for you guys (and excuse my english). Any contributions for the code will be appreciated.

Dave McHale on "New plugin disableMU looking for feedback"

0
0

http://wordpress.org/plugins/disablemu/

Hey all, I just had my first submitted plugin approved, and figured I would post here for feedback if anyone cares to take a look.

It's pretty straightforward: it simply writes a few lines to your wp-config.php on activation & removes them on deactivation, the purpose being to "hide" the /mu-plugins directory from WordPress to ensure no arbitrary code can be run from there.

Please be gentle ;) Thanks!

emmasmith on "Site Hacked HELP"

0
0

Hello to all i am in deep trouble. I was working on my new site Labor Day 2014 Activities hacked. I want to recover it tell me how to recover the password of it as i cannot login to my wordpress

Reply

timmeah on "How to remove the two icons in the upperleft"

0
0

I cannot find how to delete the 2 widgets (are they called widgets?) in the upperleft corner of my just created website.

The little folder-icon and the little icon with the 3 lines.

I tried removing all the widgets, but the 2 icons still remain there. If I click the folder-icon, I get a category, a meta-section and a search section, which are useless to me.

My website can be found at http://www.lataster.nl/website

If I could get this removed, I would be helped enormously. Thanks.

knssconsulting on "My wordpress site got hacked"

Viewing all 8245 articles
Browse latest View live




Latest Images