Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • I’m facing the same problem , HTTP Error Uploading Images…, any fix is welcome thx!

    WOW that was fast 😀 and efficient ! no more errors and it display’s search results, THANK YOU !

    it 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

    I 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 ?

    Thread Starter ShokAIM

    (@shokaim)

    i have the following url:
    http://my-domain.com/thumb/timthumb.php?src=http://other-domain.com/123.jpg

    and with .htaccess I try to achieve this:
    http://my-domain.com/cdn-thumb/src=http://other-domain.com/123.jpg
    and doesn’t work , i only get
    http://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 “?”

    Thread Starter ShokAIM

    (@shokaim)

    nope, doesn’t help at all

    delete the plugin via ftp & delete the mysql tables created by the plugin (if any)

    Thread Starter ShokAIM

    (@shokaim)

    yesss ! Thank You alchymyth problem fixed !

    Thread Starter ShokAIM

    (@shokaim)

    yes, i get the same result

    Thread Starter ShokAIM

    (@shokaim)

    ok 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 ?

    Thread Starter ShokAIM

    (@shokaim)

    yes 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; ?>

    Thread Starter ShokAIM

    (@shokaim)

    hi, 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 ?

    Thread Starter ShokAIM

    (@shokaim)

    i see now , i made the changes but i didn’t save the file before
    Thank you !

    Thread Starter ShokAIM

    (@shokaim)

    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 !

    Thread Starter ShokAIM

    (@shokaim)

    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

Viewing 15 replies - 1 through 15 (of 20 total)