Golok
Forum Replies Created
-
Forum: Plugins
In reply to: [SpeakUp! Email Petitions] Petition are not sentSorry, there was misspellings from my side in my email addresses… This plugin is actually working perfectly! Thanks again for this great work.
There is a similar discussion on this topic, with at least one solution which worked for me:
Forum: Fixing WordPress
In reply to: New media page totally blank !There is a similar discussion on this topic, with at least one solution which worked for me:
Forum: Fixing WordPress
In reply to: Blank media window Mac uploadI face the same problem although my two domains are running on the same 5.3.3 PHP version, with the same host but on two different Linux machines. (I tested a third domain on PHP 5.2.13, hosted elsewhere, and all was fine.)
From Windows Vista everything is ok, but from Mac’s Snow Leopard, no matter which browser I’m using, the “Upload New Media” window is blank on one domain, perfectly fine on the other…
I checked the two servers configuration with phpinfo.php files. I could notice only two small differences (probably unrelated but I know nothing about server conf.): bz2 was not available on the “faulty” domain, and the post_max_size was configurated to 9M instead of 15M on the domain where everything is fine.
The phpinfo.php file of the “faulty” domain was however not displayed entirely and stopped abruptly after MYSQL_SOCKET /var/lib/mysql/mysql.sock (mysql block). Could this be related?
Note that apart contacting my host, I’ve tried all the tricks provided under these two topics — without any success:
Media Uploader missing options WP 3.0
Fatal error: Allowed memory size???The only thing working for me is Keesiemeijer’s above hack, though I only had to modify media.php file, no fresh Flash install.
Forum: Plugins
In reply to: [Plugin: Fast and Secure Contact Form] Great plugin!Great plug-in, thank you very much for your efforts!
Since I try to use it for a membership form, I wish to make some changes to the default settings. Can the following be implemented without editing the plug-in code?:
1) to replace the default “Name” by two fields “First Name” and “Last Name”.
2) to reorder fields so “E-mail” would be the last field before the “Submit” button.
Thank you in advance for your help.
If you use templates, it is pretty easy. The idea is to move the “Related Posts” title inside the first
<if>
statement and remove the subsequent<else>
:The following is based on the original “yarpp-template-example.php” file. Just copy the code below into a new file, save it with a different name (such as “yarpp-template-ifonly.php”) and upload it into your active theme folder.
<?php /* Ifonly template Author: mitcho (Michael Yoshitaka Erlewine) */ ?> <?php if ($related_query->have_posts()):?> <h3>Related Posts</h3> <ol> <?php while ($related_query->have_posts()) : $related_query->the_post(); ?> <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a><!-- (<?php the_score(); ?>)--></li> <?php endwhile; ?> </ol> <?php endif; ?>
Forum: Fixing WordPress
In reply to: Separate search results by categoryI managed to solve my problem. The array was empty because the ‘get_the_category’ function requires a post ID as the parameter, not a category ID.
The function to be used here in order to retrieve the category’s name is actually ‘get_cat_name’. Using the following works perfectly:
$the_cat = get_cat_name ( $cat_id );
Once again thanks a lot for your precious time.
Forum: Fixing WordPress
In reply to: Separate search results by categoryThanks a lot for your quick reply! Unfortunately this code only returns the following (page source):
<pre>Array ( ) </pre>
Forum: Fixing WordPress
In reply to: Display number of authors in a categoryThanks thousand times. Your code lists indeed all users and their number of posts.
Unfortunately, I have no clue how to join the two, i.e. displaying authors of a given category in alphabetical order. I tried different things but to no avail and my little knowledge of php gives me no hope.
Forum: Fixing WordPress
In reply to: Display number of authors in a categoryExcellent hack…! Thanks a lot!
Regarding your first piece of code, is there any way to sort authors by name rather than by number of posts?
Forum: Fixing WordPress
In reply to: Separate search results by categoryt31os_,
Thank you so much for your code. I tried it as it is and it worked perfectly. I just need to do some adjustments to get posts’ stuff display like previously, but this shouldn’t be a problem.
However, I can’t get the category name above each group of results. I’m not a coder, I rely usually on my common sense, but here I just can get what I want…
How — or rather where — exactly shall I use the $the_cat[0]->name? This is what I did, and obviously it doesn’t work:
. . . foreach( $category as $cat_id => $items ) { $the_cat = get_the_category ( $cat_id ); // $the_cat is now array of category objects ?> <div class="search-category-<?php echo $cat_id; ?>"> <?php echo $the_cat[0]->name; ?> <?php // For each item in this category array foreach( $items as $post ) : . . .
Once again thanks for your precious help