All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Alper

Pages: [1]
1
WP-PostRatings / Re: Sort blog-entries by rating
« on: 20 November 2010, 22:49 »
This is related to your Theme and index.php (or single.php/page.php) file(s) but, there is a way to do that with Custom fields.
You can read it in there:
http://wordpress.stackexchange.com/questions/1014/sorting-wordpress-posts-via-custom-field-values

2
Firstly, you have forgotten some parenthesis in the code.. It should be:
Code: [Select]
if(!in_array(get_the_id(), explode(',', $noprint_list)) && (function_exists('wp_print'))) { print_link(); } ?>But even so it won't work because explode should be used in loop to separate each item (like $exploded=explode(',', $noprint_list) and using as $exploded[0],$exploded[1],....) and it returns a text 'Array'

3
Suppose you don't want to place shortcode of Wp-Print because you want to place it in your title part of your page(s)/post(s) but if you do that Wp-Print icon is showed in all pages/posts.
I've solved this like that:
Replace
<?php print_link(); ?>
 code with this:
<?php
$noprint="1,2,10,25";
$noprint_list = preg_split("/[\,]+/", $noprint);
$thePostID = $post->ID;
if (! in_array($thePostID,$noprint_list)){if(function_exists('wp_print')) { print_link(); }}?>

Note 1: 1,2,10,25 (with comma(,) without space(s)) are the posts/pages that you don't want to Wp-Print icon shown..

Note 2: if you change if (! in_array.... line to if ( in_array..... (i mean delete ! sign) then 1,2,10,25 become posts/pages that you want to Wp-Print icon shown..

Best Regards...

4
I have the same problem and i am using AddToAny plugin and i solved like this:
Find (224.line on updated version(2.5))
Code: [Select]
$content = str_replace(']]>', ']]&gt;', $content);
after this line add these lines:
Code: [Select]
$konum = strpos($content,'<div class="addtoany_share_save_container">',0);
$konum2 = strpos($content,'</div>',$konum);
$degis = substr($content, $konum, ($konum2 - $konum));
$content = str_replace($degis, '', $content);
these codes shoud be placed in between
Code: [Select]
$content = str_replace(']]>', ']]&gt;', $content);and
Code: [Select]
if(!print_can('images')) {You have to change '<div class="addtoany_share_save_container">' with your social bookmark plugin's starting div class..

So in my print page, there is no any AddToAny social link(s)...

NOTE: This method is useful if your social plugin covered <div> tags and it shouldn't have any <div> tag inline part of it..
NOTE 2: This method also can be used for stripping any div tags (again it shouldn't have any inner div tag)..
E.g.
if you use it for below code, this method will cause wrong action..
<div class="class1">Some text<div class="class2"> some text </div></div>

But it will work for:
<div class="class1">Some text<p>dsfsdfsdfs</p><br/><img...></img></div>

5
WP-Print / Re: Print This Post Opens in New Window
« on: 23 June 2009, 03:01 »
Ha ha, this is a joke for me..
I've worked about 1 hour and add an option to plugin for opening in new page and i saw this subject.. :o
All events are experience in the world.. My last lesson: Do seach before improve anything..  :-\

Pages: [1]