Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • The file is stored in the view map of the nextGEN gallery plugin.

    Regards,
    Jason
    JSS Online

    Hi Sheona,

    Maybe helps this you further.

    <?php foreach ( $images as $image ) : ?>

    Place the code below in the gallery.php file after the line above.

    <?php
    // BEGIN HACK
    
      // Case if description present
      if ( strlen($image->description) > 1 )
      { 
    
        // NEW EXIF hack  (11.19.10)
           require_once(NGGALLERY_ABSPATH . '/lib/meta.php');
           $meta = array();
           $pdata = new nggMeta($image->path);
        // End EXIF hack 
    
        $newdesc = "<b>" . $image->alttext .
        "</b>" . " :: " . $image->description;
    
       // 11.19.10 -- append some EXIF data
         $newdesc .= " (" . substr($pdata->get_date_time(),0,10) . ")";
       // end append EXIF
    
      } 
    
      // Case if no description
      else {
        $newdesc = "<b>" . $image->alttext . "</b>";
      }
    
    // END HACK
    ?>

    and change the code below
    <a href="<?php echo $image->imageURL ?>" title="<?php echo $image->alttext ?>" <?php echo $image->thumbcode ?>

    To:
    <a href="<?php echo $image->imageURL ?>" title="<?php echo $image->alttext ?><br><?php echo $image->description ?>" <?php echo $image->thumbcode ?>

    and now you will get the title and description below the lightbox.

    Good luck!

    Regards,
    Jason
    JSS Online

    Thread Starter jssonline

    (@jssonline)

    no that is an another one.

    Here below is the plugin link.
    https://www.ads-software.com/extend/plugins/simple-social-sharing-widgets-icons/

    Jason

    Thread Starter jssonline

    (@jssonline)

    function simple_social_css() {
    echo '<style type="text/css">div.simplesocial{margin-left:auto;}a.simplesocial{float:left;display:block;}a.simplesocial{margin-right:5px;width:'.get_option('ss_iconsize',32).'px;height:'.get_option('ss_iconsize',32).'px}a.simplesocial:hover{margin-top:0px}</style>
    <script language="javascript">function simplesocial(t,w,h){
    window.open(t.href, \'simplesocial\', \'scrollbars=1,menubar=0,width=\'+w+\',height=\'+h+\',resizable=1,toolbar=0,location=0,status=0,left=\'+(screen.width-w)/2+\',top=\'+(screen.height-h)/3);
    return false;}</script>' . "\n";
    }

    This is the only pice where css is coded. I can’t see some alignment.

    Thanks for your help!

    Jason

    Thread Starter jssonline

    (@jssonline)

    The code has been removed. The url is https://www.missfashionnews.com/2011/07/17/aifw-frank-ss12/

    Thanks for you response.

    Regards,
    Jason

    Thread Starter jssonline

    (@jssonline)

    Thanks!

    You helped me a lot!!

    Thread Starter jssonline

    (@jssonline)

    I mean the ten-line-of-code rule. Can you compress the code to ten lines with multiple functions on one line?

    Thread Starter jssonline

    (@jssonline)

    Can you set multiple functions on one line?

    But the problem is solved!!

    Thanks a lot!!!

    Jason

    Thread Starter jssonline

    (@jssonline)

    No, I don’t have it. Where do I set this code. My function.php looks like this:

    <?php
    
    if (function_exists('register_sidebar'))
    {
        register_sidebar(array(
            'before_widget' => '<li id="%1$s" class="widget %2$s">',
            'after_widget' => '</li>',
            'before_title' => '<h2 class="widgettitle">',
            'after_title' => '</h2>',
        ));
    }
    function new_excerpt_length($length) {
    	return 100;
    }
    add_filter('excerpt_length', 'new_excerpt_length');
    
    function new_excerpt_more($more) {
           global $post;
    	return '... &nbsp;<a href="'. get_permalink($post->ID) . '">Read more.</a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');
    if (class_exists('MultiPostThumbnails')) {
        $types = array('post', 'page', 'my_post_type');
        foreach($types as $type) {
            $thumb = new MultiPostThumbnails(array(
                'label' => 'Secondary Image',
                'id' => 'secondary-image',
                'post_type' => $type
                )
            );
        }
    }
    set_post_thumbnail_size( 250, 250, true ); // default post thumbnail size with a hard crop
    // use "false" for soft crop, or box resize mode
    
    function register_my_menus() {
      register_nav_menus(
        array('header-menu' => __( 'Header Menu' ) )
      );
    }
    add_action( 'init', 'register_my_menus' );

    I really appreciate it.

    Jason

    Thread Starter jssonline

    (@jssonline)

    I use version 3.13. Do I need a different code format?

    Thread Starter jssonline

    (@jssonline)

    Thanks!!

    It helps a lot but I have a new message:

    Fatal error: Call to undefined function has_post_thumbnail() in /home2/missfas1/public_html/wp-content/themes/missfashionnews/index.php on line 25

    Here is the link: https://www.missfashionnews.com/

    Jason

    Thread Starter jssonline

    (@jssonline)

    This is the whole function.php file. I don’t see something wrong in it and this theme works on my own server correctly.

    <?php
    
    if (function_exists('register_sidebar'))
    {
        register_sidebar(array(
            'before_widget' => '<li id="%1$s" class="widget %2$s">',
            'after_widget' => '</li>',
            'before_title' => '<h2 class="widgettitle">',
            'after_title' => '</h2>',
        ));
    }
    
    ?>
    <?php
    function new_excerpt_length($length) {
    	return 100;
    }
    add_filter('excerpt_length', 'new_excerpt_length');
    ?>
    <?php
    function new_excerpt_more($more) {
           global $post;
    	return '... &nbsp;<a href="'. get_permalink($post->ID) . '">Read more.</a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');
    ?>
    <?php
    if (class_exists('MultiPostThumbnails')) {
        $types = array('post', 'page', 'my_post_type');
        foreach($types as $type) {
            $thumb = new MultiPostThumbnails(array(
                'label' => 'Secondary Image',
                'id' => 'secondary-image',
                'post_type' => $type
                )
            );
        }
    }
    ?>
    <?php
    set_post_thumbnail_size( 250, 250, true ); // default post thumbnail size with a hard crop
    // use "false" for soft crop, or box resize mode
    ?>
    <?php
    function register_my_menus() {
      register_nav_menus(
        array('header-menu' => __( 'Header Menu' ) )
      );
    }
    ?>
    <?php
    add_action( 'init', 'register_my_menus' );
    ?>

    Thank for your quick help!

    Jason

    Thread Starter jssonline

    (@jssonline)

    Thanks!

    I’ve changed it to a variable menu. Now it is solved.

    Jason

    Thread Starter jssonline

    (@jssonline)

    No only all the images. I have installed a max for the caracters.

    Let’s say there are 3 images in the blog and now only does it only show the featured image. But I want all 3 images to be shown on the index-page.

    Thank for your fast reaction!

    Regards,
    Jason

    Forum: Themes and Templates
    In reply to: image in blog.
    Thread Starter jssonline

    (@jssonline)

    Hi,

    Thanks this is exactly what I was looking for.
    I really appreciate this.

    Regards,
    Jason

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