Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter kevinj003

    (@kevinj003)

    I have resolved this issue ??

    Thread Starter kevinj003

    (@kevinj003)

    Hi GF,

    I’m afraid I’m not getting very far with your advice – I think it might be a little beyong my knowledge level right now.

    I just inserted the following code inside the <div id=”bannerWrapper”> </div> section at the bottom of sidebar-right.php in my theme:

    <?php
    	$localizedGroup = &quot;aark_sponsors_&quot; . qtrans_getLanguage();
    	wp_bannerize( &quot;random=1&limit=10&group=&quot; . $localizedGroup ) );
    	?>;

    However, this created the error “Parse error: syntax error, unexpected ‘;’, expecting T_PAAMAYIM_NEKUDOTAYIM in /home/amphibia/public_html/wp-content/themes/amphibian-ark/sidebar-right.php on line 163” when I loaded the site, so I removed it again.

    I also added the following code at the top of functions.php in my theme:

    /**
     * Shorthand per qTranslate
     *
     * @param  $a
     * @param  $b
     * @param  $c
     * @param  $d
     * @return string|void
     */
    function __qtrans_getLanguage($a,$b) {
        return __("<!--:en-->$a<!--:--><!--:es-->$b<!--:--><!--:de-->$c<!--:--><!--:pt-->$d<!--:-->");
    }

    I currently have 4 jpg images, called aark_sponsors_en.jpg, aark_sponsors_es.jpg, aark_sponsors_de.jpg and aark_sponsors_pt.jpg All of the images are located in the /wp-content/uploads/2010/08 folder

    Should I be replacing the $a, $b etc. above with aark_sponsors_en.jpg, aark_sponsors_es.jpg etc?

    In wpBannerize I currently have a banner called AArk staff sponsors with the key right_sidebar, and it currently links to the aark_sponsors_en.jpg file

    However, the part of your instructions that I’n mot quite sure about is:

    So you could use the “group key” parameter to separate the different banner.

    1) Add your “English” banner in “adv-en” group
    2) Add your “Spanish” banner in “adv-es” group

    How do I use the group key parameter? If I switch from the widget method to the function method, will I need to have functions for all the banners I use? If so, I think this might become too problematic for me.

    I really appreciate your help and I’m happy to give you a temporary access to my server if that would help. If you email me at [email protected], I’ll send you a temporary login.

    Thanks again,

    Kevin

    Thread Starter kevinj003

    (@kevinj003)

    Hi GF,

    Thanks for your reply to my question. I’m glad to know that it can be done, but I’m a newbie to php coding, so I’m not fully sure I understand exactly what to add to which files. I’ll have a play with this, and might ask for further help if I get stuck.

    Best wishes,

    Kevin

    Hi Russell,

    I just installed ver 1.4, and there was definitely changes, but not what we were expecting. See https://www.amphibianark.org/index.php/education/videos/

    In the first section, Messages from our Patrons, I placed the first 5 videos in one row of a table, and the last patron video in the next row. For the remaining sections, I’ve left all videos in each section in one row, hoping that the flv player would wrap them correctly, but it doesn’t seem to be doing this.

    Please email me at [email protected] if you need the actual html code I’ve used.

    btw. I modified flvgallery.php to include div align=left and <h4> for the title text, to match the rest of my site.

    Thanks for your help,

    Kevin

    Hi Russell,

    Have you had a chance to have a look at the table layout problem I’m having?

    Many thanks,

    Kevin

    Thanks for following this up Russell – I appreciate any help you can offer, as it has me stumped!

    I love this plugin – it’s one of the best viddeo galleries I’ve seen ?? I’m having 2 small problems though:

    1. I sometimes get Error #2905 when I try to play videos, and this appears to be related to the file size of the video. Is this correct, and is there a work around for this?

    2. I have installed the gallery on a new web site which is still under construction. I wanted to list 5 categories of videos, so I created a table with 10 rows, with the category names in every second row, and the flv-galley code in the rows in between. The table kind of works, but there a1re large gaps showing up between some of the rows on screen – see https://www.amphibianark.org/index.php/education/videos/ I’ve checked for extra <p> codes in the html code, but it all looks ok to me – any ideas on how I can resolve this to tidy the page up?

    Many thanks in advance,

    Kevin

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