h4x3d.com

- h4x3d.com

Archive
Wordpress

This article saved me quite some headache – also this is the cleanest solution of all. For several other workarounds, see Stackoverflow here.

The solution that works was:

mysqldump -h (your ip) -u (your username) -p  --opt --quote-names \
--skip-set-charset --default-character-set=latin1 (your db name) > (your db name)-dump.sql
mysql -h (your ip) -u (your username) -p \
--default-character-set=utf8 (your db name) < (your db name)-dump.sql

delete the brackets, dont fill in the brackets (your ip) = 127.0.0.1 for instance

Read More

I am not discussing whether it should be done or not, but just saying where to do it.
W3 Total Cache is a great plugin and they surely deserve some SEO juice / kudos for their work, but I have seen questions unanswered on the net of people not knowing where to delete pieces of comments that are inserted into their pages. Again, I am not touching the ethics of removing credits, but just offer the tools. Use as liked.

/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php

and uncomment/change as desired.

from

/wp-content/plugins/w3-total-cache/w3-total-cache.php

you can find the lead (the references to the above mentioned file).
find the lines using the search for the html comment…

Read More

I am not discussing whether it should be done or not, but just saying where to do it.
W3 Total Cache is a great plugin and they surely deserve some SEO juice / kudos for their work, but I have seen questions unanswered on the net of people not knowing where to delete pieces of comments that are inserted into their pages. Again, I am not touching the ethics of removing credits, but just offer the tools. Use as liked.

/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php

and uncomment/change as desired.

from

/wp-content/plugins/w3-total-cache/w3-total-cache.php

you can find the lead (the references to the above mentioned file).
find the lines using the search for the html comment…

Read More

As regular visitors may have noticed there were only few (or no) updates to the site in the past few weeks (or months).
This was primarily due to the fact that most of my time was soaked up with finishing my diploma thesis.
I have now successfully graduated from university and will be entering “business” in October this year.
In the meantime I plan to simplify this site and update most of the 700 posts.
My advertisement revenue is down from previous 900 $ USD to a laughable 11 $ USD a month, while the number of visitors has just slightly declined from 10,500 (daily) to 5,000 (okay that’s a 50% drop, but still). The drop in ad revenue is also explained with the new theme that I introduced in December 2009. It is, as I may have to admit, too confusing and too colourful/image heavy.
Many preferred the white theme before (2007 to 2009). In that sense I will try to do a good job in coming up with a real simple and user-friendly design. After all this site is not primarily for me, but for you. Also, I need to fix the download links and generally links that link-out. I will pay more attention to comments. For all the trouble and lack of updates I am sorry. Stay posted and keep the comments coming.

Read More

As regular visitors may have noticed there were only few (or no) updates to the site in the past few weeks (or months).
This was primarily due to the fact that most of my time was soaked up with finishing my diploma thesis.
I have now successfully graduated from university and will be entering “business” in October this year.
In the meantime I plan to simplify this site and update most of the 700 posts.
My advertisement revenue is down from previous 900 $ USD to a laughable 11 $ USD a month, while the number of visitors has just slightly declined from 10,500 (daily) to 5,000 (okay that’s a 50% drop, but still). The drop in ad revenue is also explained with the new theme that I introduced in December 2009. It is, as I may have to admit, too confusing and too colourful/image heavy.
Many preferred the white theme before (2007 to 2009). In that sense I will try to do a good job in coming up with a real simple and user-friendly design. After all this site is not primarily for me, but for you. Also, I need to fix the download links and generally links that link-out. I will pay more attention to comments. For all the trouble and lack of updates I am sorry. Stay posted and keep the comments coming.

Read More

Today I wanted to publish a real quick post about how to embed a paypal button into your wordpress post. A topic that has been covered many times elsewhere (if you consult google), but yet many paypal buttons failed to hide the merchant’s email address which would result in evil spam to be sent. Anyhow, I thought posting this quick article would take max 5 minutes or so, but it turned out to be more difficult: WordPress MU for security purposes does not allow specific HTML code to be included in posts or pages.
This is for security reasons, as mentioned before, because in a multi-blog environment people could post all sorts of crap to compromise your site, server and work, ultimately driving you nuts and causing all sorts of havoc.

After some Googling I found several interesting articles, most of them repeated themselves and said “well.. edit the ksas.php file in wp-includes” and then stated a long-list with many interesting HTML pieces. This works, but a plugin is more fancy I thought: so I googled on and found a plugin called “unfiltered” content WordPress MU, released by the WordPress guys. This is in so far cool, as you can either stick it in the mu-plugins folder and have it sidewide, or in the regular plugins folder and just activate it on a blog by blog basis. Since I am running this WordPress MU installation on my own and do not have posts to monitor for “havoc causing script includes”, I decided to go for the plugin and enable it side-wide. This way I can upgrade my wordpress mu next time a new version comes out and keep my sanity (because by then I would probably have forgotten about the includes folder and the php file that I need to update every time…)

Hope this helps,
best,
jez

Read More

update: f§*king wordpress mu won’t let me enter tags in my posts. I have tried the wordpress RAW plugin and other filters, but still. more updates on this tomorrow -> solution

There are different approaches to doing this (adding a paypal button to your wordpress page, or any html or php website):

You can copy&paste the code you find on most pages and wonder why you get really a lot of spam emails
or you can use the “secure merchant id” code from paypal
or you can grab a plugin at wordpress.org

To explain the first (revealing code)

<form name=”_xclick” action=”https://www.paypal.com/cgi-bin/webscr” method=”post”>
<input type=”hidden” name=”cmd” value=”_xclick”/>
<input type=”hidden” name=”business” value=”user@spam-me-please.com”/>
<input type=”hidden” name=”item_name” value=”Customer Service”/>
<input type=”hidden” name=”currency_code” value=”USD”/>
<input type=”hidden” name=”amount” value=”1.00″/>
<input type=”image” src=”http://www.paypal.com/en_US/i/btn/btn_donate_LG.gif” border=”0″ name=”submit” alt=”Make payments with PayPal - it’s fast, free and secure!”/>
</form>

While this has its advantages: you can easily specify the parameters, it also has the problem that your email address is very likely to be scraped and spammed by bots. So next time you receive one of those fake paypal “you need to click here to reactivate your account” emails… guess why you are receiving it.

I use the second version, the paypal secured id, because I am not too keen to exposing (any) email address to spam bots. The code below will generate a paypal button with my id in it. To change that or to get your code you need to login to paypal and get it from the merchant tab. Or you can enter “paypal button” in the search field top right of the page.

2) Click on Merchant services.
3) Click on websites payment standards.
4) Click on accept contributions.
5) Click on get donation button.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick"/>
<input type="hidden" name="hosted_button_id" value="10155388"/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" style="width: 100px; float: right;" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
</form>

And now to the fun part actually: you will not be able to copy and paste the code(s) mentioned above, because wordpress will strip the input fields and nothing will display. So unless you are putting this code into your template (e.g. by including it in a separate php file), it won’t work, I believe.

You can however grab a wordpress plugin, like this paypal plugin to help you out.

Also of help – this support post at wordpress

hope this helps anyone,
best,
jez

Read More

This week I have been extensively working with WordPressMU and buddypress.org, pretty much
setting up your own community sites with WordPress. Highly recommended (however
I do dig their logo that much)

My site(s) are hosted by SolarVPS and their friendly “can do attitude” is why I recommend them. This was posted via email

Read More

I am in the midst of changing all my themes over to GPL -
particularly interesting is the WTFPL license – http://sam.zoy.org/wtfpl/COPYING

which states:

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.

I am almost tempted to use this one, because if GPL is boilt down to its core, this is basically what (as I understand) is meant by it. People, companies, evil can do whatever the crap they like with the work GPL’ed.

If those are the conditions to get my 10 something themes re-listed on the themeviewer for the community, so be it. My PR dropped recently from 6 to 5 anyway, so I am clearly not in for the link juice anyway.

WTF PL’ed themes mean you can also remove the footer link/change whatever you like as desired.
It would be nice however to retain it to show some appreciation.

Keep you posted,
jez

Read More

Is tomorrow today already (from UK perspective?) – too lazy to do the maths right now, but anyway – personally I do not like WordPress 2.7 too much right now, the new interface, even though it is slick, is a bit confusing. I have some sites running the nightly built with 2.7, and to my surprise most of the plugins works. However what I dislike is the new template engine. To be honest, for now, I will just be using the old tags… more news when appropriate

Read More