mhhenn
Forum Replies Created
-
Forum: Plugins
In reply to: [Quick Post Widget] Choose default post template@diogo15 Thank you Diogo, I really appreciate you taking the time to let us know that.
I am going to check the link later on today. Thanks!
Forum: Plugins
In reply to: [Photosmash] [Plugin: PhotoSmash Galleries] Farewell for PhotoSmashHey Byron, is that a way to maybe put you back on photosmash? The person that gave rating 1 for sure didn’t spend much time with PS. Amazing plugin and by far the best forum master I ever crossed. Fast and kind with your replies. When I made my first question and you replied in the next hour, I thought I had been lucky, but when it kept happening all the time, with me and others, then I knew for sure that you weren’t an ordinary plugin developer. If you need some help on the forums I bet people would definitely help you. Myself being one of them.
Anyway, was if a pain in my heart that I read the farewell news, and as a good dreamer I still keep hopping that you may will keep doing your fantastic work with PS and the forum.
Good night and all the best.
Forum: Plugins
In reply to: Send email on attachment pageHelp please!
Forum: Hacks
In reply to: plugin to send email on attachment pageI can not believe that no one knows the answer…I have seem too many smart people around to believe on that.
Please can anyone help?
Thanks
Forum: Plugins
In reply to: Send email on attachment pageMore info:
If I the add_action inside the function and then call the function in the attachment file, it works but doesn’t get the $comment_ID, what is really important…
function notify($comment_id) { $user_email = '[email protected]'; $subject = $comment_id . get_option('blogname'); $t1 = 'Someone commented on a your picture'; $t2 = "click here to see the comment"; text = $t1 . $t2; wp_mail( $user_email, $subject, $text ); add_action('comment_post', 'notify'); } Ideas?
Forum: Plugins
In reply to: set my own variablesFor the record. If you have a variable that you want to use in the other file themes you can put something like that in your functions.php:
function car_id( $car = '2320' ) { return $car; } function airplane_id( air$plaine = '2321' ) { return $airplane; }
To call the variable in some other theme file just use:
car_id() airplane_id()
to accesses it.
to display use:
echo car_id() echo airplane_id()
Forum: Fixing WordPress
In reply to: exclude_tree wp_list_categories not workingThank you again Michael. I had kind of lost all my hopes on this one. Unfortunately is quite late now for me, so I will have to test it tomorrow.
Thank you for your time.
Forum: Plugins
In reply to: set my own variablesHi Michael. Just saw your message. Will now read the links that you sent.
Again thank you for your fast replies.
Forum: Plugins
In reply to: set my own variablesMichael I really appreciate your attention, but I have to ask you to be a little more specific. I have tried to find material on the net on how to set variables on functions, but I could not find anything. I did some try and error as well, again no luck, that is why I came to the forum.
Will that work?
function cats_ids(){ $car_id = get_cat_ID('car'); $airplaine_id = get_cat_ID('airplane'); } and get the variable using that on the other's theme files: cats_ids(); if ( post_is_in_descendant_category( $car_id ) ) {}
Thank you
Forum: Plugins
In reply to: set my own variablesOkay, so if I set this code on functions.php, could I later call it on the other theme files? for example when I use:
if ( post_is_in_descendant_category( $car_id ) ) {}
Or I have to declare it in every theme file?
Thanks for the quickly reply.
Forum: Fixing WordPress
In reply to: exclude_tree wp_list_categories not workingAnyone?
Forum: Fixing WordPress
In reply to: get commetns by comment-meta-dataAny ideas?