ShokAIM
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: HTTP Error Uploading ImagesI’m facing the same problem , HTTP Error Uploading Images…, any fix is welcome thx!
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Not working in WP 3.7WOW that was fast ?? and efficient ! no more errors and it display’s search results, THANK YOU !
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Not working in WP 3.7it generates entries in error_log like
WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) ORDER BY tf DESC LIMIT 60' at line 3 for query SELECT *, title * 5 + content + comment * 0 + tag * 2 + link * 0 + author + category * 2 + excerpt + taxonomy + customfield + mysqlcolumn AS tf FROM wp_relevanssi WHERE term = 'small' AND doc IN (SELECT DISTINCT(ID) FROM wp_posts
doesn’t work
Forum: Plugins
In reply to: [BJ Lazy Load] Add BJ Lazy Load on Post Meta ImagesI have the same question… and adding the filter like
<?php $img = '<img src="<?php $values = get_post_custom_values("thumbnail"); echo $values[0]; ?>" style="width:190px;height:125px" border="0" alt="" />'; if ( class_exists( 'BJLL' ) ) { $img = BJLL::filter( $img ); } echo $img; ?>
dosent work , any other way ?
Forum: Fixing WordPress
In reply to: .htaccess & timthumb i need helpi have the following url:
https://my-domain.com/thumb/timthumb.php?src=https://other-domain.com/123.jpg
and with .htaccess I try to achieve this:
https://my-domain.com/cdn-thumb/src=https://other-domain.com/123.jpg
and doesn’t work , i only get
https://my-domain.com/cdn-thumb/src=http:/other-domain.com/123.jpg
it strips one slash / from the external image url how can i make the .htaccess to leave that slash… ? or any other option to achieve a clean url without “?”Forum: Fixing WordPress
In reply to: .htaccess & timthumb i need helpnope, doesn’t help at all
Forum: Fixing WordPress
In reply to: Fatal Error, Preventing me from logging into my Admin area.delete the plugin via ftp & delete the mysql tables created by the plugin (if any)
Forum: Fixing WordPress
In reply to: Sort posts alphabeticallyyesss ! Thank You alchymyth problem fixed !
Forum: Fixing WordPress
In reply to: Sort posts alphabeticallyyes, i get the same result
Forum: Fixing WordPress
In reply to: Sort posts alphabeticallyok using
<?php global $query_string; query_posts( $query_string . '&orderby=title&order=ASC' ); ?>
i got some result but it’s not right, i mean i have the following posts in my category sorted by date ( WP default ):X-MEN (2000)
Elizabeth (1998)
Elizabeth: The Golden Age (2007)
The Other Boleyn Girl (2008)
The Duchess (2008)
A Royal Affair (2012)
Titanic (1997)
One Piece (1999)
101 Dalmatians (1996)
Hello world!and after adding the above code i get :
Elizabeth: The Golden Age (2007)
The Duchess (2008)
The Other Boleyn Girl (2008)
101 Dalmatians (1996)
A Royal Affair (2012)
Elizabeth (1998)
Hello world!
One Piece (1999)
Titanic (1997)
X-MEN (2000)that’s wrong … any clue how to fix it ?
Forum: Fixing WordPress
In reply to: Sort posts alphabeticallyyes i need it to work for Uncategorized category
yes the uncategorized category is still shown sorted by date
i’m using a modified theme, nothing to fancy here is the code for category.php
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post"> <h2 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?> </a></h2> <div class="storycontent"> <?php the_excerpt(); ?> </div> </div> <div class="meta"> <span class="cat"><?php the_category(',') ?> <?php edit_post_link(__('Edit This')); ?></span> <span class="more"><a href="<?php the_permalink() ?>" title="View More">View More</a></span> </div> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?>
Forum: Fixing WordPress
In reply to: Sort posts alphabeticallyhi, thanks for the quick replay , i tried adding the code to functions.php but nothing happens, no change and i’ve tried over 10 solutions to display posts sorted by title and I get the same result, nothing, any idea ?
Forum: Fixing WordPress
In reply to: Limit post title length (contains special characters)i see now , i made the changes but i didn’t save the file before
Thank you !Forum: Fixing WordPress
In reply to: Limit post title length (contains special characters)WOW Worked !
here’s the full code just in case someone needs it
functions.php
// Limit Post Title by amount of characters function short_title() { $mytitleorig = get_the_title(); $title = html_entity_decode($mytitleorig, ENT_QUOTES, "UTF-8"); $limit = "40"; $pad="..."; if(strlen($title) >= ($limit+3)) { $title = mb_substr($title, 0, $limit) . $pad; } echo $title; }
Thank You vadims00 !
Forum: Fixing WordPress
In reply to: Limit post title length (contains special characters)how exactly … i’m no php expert …
function short_title() { $mytitleorig = get_the_title(); $title = mb_substr($mytitleorig, "UTF-8"); $limit = "40"; $pad="..."; if(strlen($title) >= ($limit+3)) { $title = substr($title, 0, $limit) . $pad; } echo $title; }
doesn’t do anything