Title: halferdev's Replies | WordPress.org

---

# halferdev

  [  ](https://wordpress.org/support/users/halferdev/)

 *   [Profile](https://wordpress.org/support/users/halferdev/)
 *   [Topics Started](https://wordpress.org/support/users/halferdev/topics/)
 *   [Replies Created](https://wordpress.org/support/users/halferdev/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/halferdev/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/halferdev/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/halferdev/engagements/)
 *   [Favorites](https://wordpress.org/support/users/halferdev/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/users/halferdev/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/halferdev/replies/page/2/?output_format=md)

 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Could someone patch this file for me? Thank you](https://wordpress.org/support/topic/could-someone-patch-this-file-for-me-thank-you/)
 *  [halferdev](https://wordpress.org/support/users/halferdev/)
 * (@halferdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/could-someone-patch-this-file-for-me-thank-you/#post-3286733)
 * I think people don’t know what you want here. Can you explain what patch needs
   to be applied? What’s in the Dropbox?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unwanted link](https://wordpress.org/support/topic/unwanted-link-1/)
 *  [halferdev](https://wordpress.org/support/users/halferdev/)
 * (@halferdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/unwanted-link-1/#post-3292927)
 * Sounds like a malicious plugin. Have you disabled and removed it entirely?
 * Is this plugin available in the WordPress plugins repo? If so, this behaviour
   would violate the guidelines (imo) and should be notified to WP so they can remove
   it.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [My Site is Hacked . Please help me.](https://wordpress.org/support/topic/my-site-is-hacked-please-help-me/)
 *  [halferdev](https://wordpress.org/support/users/halferdev/)
 * (@halferdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/my-site-is-hacked-please-help-me/#post-3294307)
 * Several things you can do:
 * – Restore the site files from backup
    – Restore the site database from backup
 * If that’s not possible then:
 * – Log onto your server and see what files have changed recently. Then, download
   those and remove the hack – which is easy to spot, but hard to describe how to
   spot. In general, hackers modify files rather than the db, but you can’t rely
   on that.
 * You need to examine all your security, including FTP/SSH passwords, admin/user
   passwords, and possible security vulnerabilities. Do you have any custom work
   in your WP site?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unwanted link](https://wordpress.org/support/topic/unwanted-link-1/)
 *  [halferdev](https://wordpress.org/support/users/halferdev/)
 * (@halferdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/unwanted-link-1/#post-3292888)
 * (Off-topic: the plural word “FAQ’s” should be “FAQs” i.e. without an apostrophe.
   Apostrophes are only for contractions and ownership).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unwanted link](https://wordpress.org/support/topic/unwanted-link-1/)
 *  [halferdev](https://wordpress.org/support/users/halferdev/)
 * (@halferdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/unwanted-link-1/#post-3292886)
 * It seems it’s only affecting your home page. I would take a look at the index.
   php file in your theme to see if there’s anything at the end of that. You can
   see this in Appearance -> Editor -> Main Index Template (the last one may be 
   called something different, this might vary per theme).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unwanted link](https://wordpress.org/support/topic/unwanted-link-1/)
 *  [halferdev](https://wordpress.org/support/users/halferdev/)
 * (@halferdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/unwanted-link-1/#post-3292884)
 * Looks like it is outside of your theme footer. Have you (or your designer/developer)
   made any site changes recently?
 * If you have access to your web host (either by FTP or SSH) then take a look at
   the timestamps on the files (using `ls -l`) to see what has been most recently
   modified. Whilst unlikely, it could be someone who has cracked the security on
   your site; sadly it does happen a fair bit with WP, since it is a popular target!
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [IMG Tag hack, can someone point to the code in WP where it generates it?](https://wordpress.org/support/topic/img-tag-hack-can-someone-point-to-the-code-in-wp-where-it-generates-it/)
 *  [halferdev](https://wordpress.org/support/users/halferdev/)
 * (@halferdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/img-tag-hack-can-someone-point-to-the-code-in-wp-where-it-generates-it/#post-3289764)
 * Is this in the admin or one of the themes? Can you explain why you need this 
   tag ordering? – normally the order doesn’t make any difference. Is it a JS thing?
   There may be another way to achieve what you are doing.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [session problem using file_get_contents](https://wordpress.org/support/topic/session-problem-using-file_get_contents/)
 *  [halferdev](https://wordpress.org/support/users/halferdev/)
 * (@halferdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/session-problem-using-file_get_contents/#post-3264187)
 * Heh, yeah; you need to send _your_ cookie(s), not a random one called ‘foo’. 
   That’s just an example.
 * I would be inclined to send all cookies in $_COOKIE for the site, so you’ll need
   to loop through (`foreach ($_COOKIE as $key => $value)`) and send them all in
   one go. I think they are semicolon delimited, but the link should give you more
   info.
 * Drop the Accept-Language header, you probably don’t need it.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Pharma Hack – unique affecing only root URL](https://wordpress.org/support/topic/pharma-hack-unique-affecing-only-root-url/)
 *  [halferdev](https://wordpress.org/support/users/halferdev/)
 * (@halferdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/pharma-hack-unique-affecing-only-root-url/#post-3276661)
 * Couple of things you can try:
 * * Use the reinstall feature on your Update Admin page to install 3.4.2 completely
   *
   Check your .htaccess file, this is a common entry point for hacks * See if there
   is any JS on your home page relating to the hack, this might indicate that the
   theme has been modified
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [sorted posts](https://wordpress.org/support/topic/sorted-posts/)
 *  [halferdev](https://wordpress.org/support/users/halferdev/)
 * (@halferdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/sorted-posts/#post-3274596)
 * I agree with Tomontoast. Grab an event plugin that (a) does the closest to what
   you want, and (b) is well-written internally, and then start hacking! Make sure
   you use version control (Subversion, Git etc) so you can easily undo edits that
   don’t work.
 * There seems to be a view in this forum – though I am new here – that the flexibility
   of WP plugins is so infinite that programming is never needed. Unfortunately 
   I don’t think that’s true – there’s a point where one needs to start understanding
   the code and jump in to trying to modify it. It can be a big job to learn, but
   it is worth it, I promise 🙂
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Shouldn't wp_usermeta have unique (user_id,meta_key) ?](https://wordpress.org/support/topic/shouldnt-wp_usermeta-user_idmeta_key-be-unique/)
 *  [halferdev](https://wordpress.org/support/users/halferdev/)
 * (@halferdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/shouldnt-wp_usermeta-user_idmeta_key-be-unique/#post-3264956)
 * IMO, it’s not worth doing so. Certainly one would expect it not to fail, but 
   then what happens if a plugin adds two keys having the same values? It might 
   seem redundant to us when discussing it in the abstract, but it is possible there’s
   a use case for it.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [First plugin](https://wordpress.org/support/topic/first-plugin/)
 *  [halferdev](https://wordpress.org/support/users/halferdev/)
 * (@halferdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/first-plugin/#post-3274259)
 * Your plugin should be called only after that file is included, so you should 
   be able to use WP functions without including anything else. What function specifically
   do you want to use?
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [session problem using file_get_contents](https://wordpress.org/support/topic/session-problem-using-file_get_contents/)
 *  [halferdev](https://wordpress.org/support/users/halferdev/)
 * (@halferdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/session-problem-using-file_get_contents/#post-3264173)
 * This should get you started:
 * [http://stackoverflow.com/questions/3431160/php-send-cookie-with-file-get-contents](http://stackoverflow.com/questions/3431160/php-send-cookie-with-file-get-contents)
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [add_filter sometimes working, sometimes not working … simply replacing text](https://wordpress.org/support/topic/add_filter-sometimes-working-sometimes-not-working-simply-replacing-text/)
 *  [halferdev](https://wordpress.org/support/users/halferdev/)
 * (@halferdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/add_filter-sometimes-working-sometimes-not-working-simply-replacing-text/#post-3254270)
 * sepp88, what is the character set of the page, as defined by the HTTP header,
   and by any meta tags in the HTML <head>? Make sure this is UTF-8 for both.
 * I’m not an expert on character sets, but I would imagine that your files should
   be edited and saved in UTF-8 too.
 * If you’re of the opinion that you’re seeing an intermittent behaviour, then save
   the before and after of your replacements to a file, perhaps with a timestamp
   in the filename, so you can review what input your code is struggling with. You
   can do this with `file_put_contents()`.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Display the last thumbnail post with category link](https://wordpress.org/support/topic/display-the-last-thumbnail-post-with-category-link/)
 *  [halferdev](https://wordpress.org/support/users/halferdev/)
 * (@halferdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/display-the-last-thumbnail-post-with-category-link/#post-3270494)
 * Can you provide some more detail as to what you are trying to do?
 * It might be a good idea to offer some code so people can see what you have tried
   already, and where you might be getting stuck.

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/users/halferdev/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/halferdev/replies/page/2/?output_format=md)