Banned from the local store: you cant say “God” and “Mother Fucker” in the same phrase

Posted by shadow_of__soul | Posted in Uncategorized | Posted on 31-01-2009

0

Hi,

this entry dont involve any code, tutorial or tip, only i want to relate something what happened to me 2 days ago.

Like a normal shopping day, i was buy some stuff in my local store (sugar, meat etc..), i know the owners (i’m in a small town) and the people working there, are like 10 employees in total, are really nice people, very kind and the attention it’s good. also have good prices :P . all of that people go 3 days of the week, to a evangelic church, where the owner of the store are the reverend.

well, after i get all the necessary elements, i go to the registration box to pay the bill, and i always start some chat with the employee, and i dont know why we started to talk about religion. i have a some special conception of god and that stuff, i dont see important go to the church, pray and that thing, i think it’s better waste my time making something for the others, like help some necesitated person, make a donation etc.. so, the chat continue and she invited me to the church, and i answer the same what i have say in the phare before. then he told me i going to go to the  hell for that, and i whiteout thinking i say:

if god going to send me to the hell why i dont go to the church, he’s a mother fucker

my internal thinking a second after: *SHIT*

my really intention was say god should make the judgement about me in base on my bad and good actions, no if i go to the church or not. of course, i dont choose the correct words to say that, and after 3 seconds of say that i have apologize to the people like how i expresed.

i always can talk with the people about politics, religion and sports, in a good manner and whiteout hurting the feelings of anyone, i dont know what happened in that moment.

today i was again to the same shop and the people inside dont talk to me, of course i understand how he feel and i feel a little guilty of how i expresed, the reverend has been close to me today, and he want to told me something, but he can’t :P

well, it’s a normal history, really nothing important, maybe in a 3-4 years i can come back to the store, for now i going to buy in other place why i get banned from there :P

from here, i want to apologize with that people, not was mi intention to hurt anyone, and really i dont thinked how i expresed what i think.

Regards,

Shadow

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

get a co.cc domain for free

Posted by shadow_of__soul | Posted in Uncategorized | Posted on 28-01-2009

0

Hi,

this it’s not a scam, you can get a co.cc domain for free.

ok it’s not a top level domain but if you dont have money and want to upload some site, it’s the best resource :D

you can manage the DNS and transfer the domain if you want.

register the domain from here CO.CC:Free Domain

also, if you do a donation, you can register more than 100 domain for free. (that it’s $0.10 per domain !)

i hope you find this useful :D

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

5 tip to make a wordpress plugin

Posted by shadow_of__soul | Posted in Uncategorized | Posted on 28-01-2009

0

Hi,

this days i’m making a wordpress plugin for a client and i have to search some things in google.so i want to make this tips for you to make the things more easy.

1)how to make a widget for your plugin

this it’s something hard to find the right solution, i implemented this code in my plugin:

function widget_init() {
// Check for required functions
if (function_exists(‘register_sidebar_widget’)){
register_sidebar_widget(‘Simple Widget’,’simple_widget’);
}
}

function simple_widget($args) {

extract($args);

echo $before_widget;
echo $before_title
. ‘Simple Widget’
. $after_title.$after_widget;

}

add_action(“plugins_loaded”, “widget_init”);
add_action(‘widgets_init’, ‘widget_init’);

2)how to create your own plugin pages in the frontend

if you need to show the content of your plugin in a separated page, the best solution its to create a page for it.

$sql =”INSERT INTO “.$wpdb->posts.”
(post_author, post_date, post_date_gmt, post_content, post_content_filtered, post_title, post_excerpt,  post_status, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_type)
VALUES
(‘1′, ‘$post_date’, ‘$post_date_gmt’, ‘[PLUGIN PAGE DONT DELETE THIS]‘, ”, ‘–plugin page’, ”, ‘publish’, ‘closed’, ‘closed’, ”, ‘[PLUGIN PAGE DONT DELETE THIS]‘, ”, ”, ‘$post_date’, ‘$post_date_gmt’, ‘$post_parent’, ‘0′, ‘page’)”;
$wpdb->query($sql);
add_option(‘plugin_page_id’,$wpdb->insert_id);

with this you are creating a page in the DB, then you add the hook and function to filter the content:

add_filter(‘the_posts’,'cmfrontend’);
function cmfrontend($posts){

$id=get_option(‘plugin_page_id’);

if($id==$_GET['page_id']){

$newpost[0]=$posts[0];
$newpost[0]->post_content=”your plugin page content”;
$newpost[0]->post_title=”Your plugin page title”;

}

}

and it’s done :D

3)remember to add the uninstall hook

to avoid future problems, in WP versions and DB updates, always add the deactivation hook, to erase (or clean) the DB and options. if the data it’s important, you can add a message warning this :D .

register_deactivation_hook(__FILE__,’uninstallfunction’);

4)use a external css for the styles

when you make the style for the frontend of the plugin, do it assigning classes or id and save it using an external css file. this give you the feature for the future users/designer/programer change the style, colors and size whiteout touching your plugin code and avoiding he break something :D

you can do it setting a wp_head hook and in the function printing the import of the css file:

add_action(‘wp_head’,'echohead’);

function echohead(){
echo ‘<link rel=”stylesheet” href=”wp-content/plugins/yourpluginname/style.css” type=”text/css” />’;

}

5)keep a clean code

dont harcode the plugin, if you need to do something, search on the web, you going to find some hook or filter to make what you need. if everthing fails, then, make what you need and try to keep the compatiblity.

good places where find wodpress hooks and filters:

http://wphooks.flatearth.org/

i hope you find this useful :D

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

$300 in facebook ads

Posted by shadow_of__soul | Posted in Uncategorized | Posted on 11-01-2009

0

Hi,

i have founded this info to get $300 in facebook ads for free:

1) add this app http://www.facebook.com/apps/applica  …id=24249628048 (remove the dots and complete the url to work :D

2) use this coupon codes:

9F15-7KWJ-M23F-22N2
053K-H148-T1PE-98NC
8CH1-5VW1-Y96N-2P94
EXEX-4P47-38JX-4W20
21VT-RRNM-8RWN-2X1C
1652-YMF5-23XX-CM66
EVCT-54YH-K1V8-EKE1
XXWW-7JVC-3FH6-R61T

thanks for this thread for the info http://forums.digitalpoint.com/showthread.php?p=1031347

it works great :D

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]