1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Film Strips for Movie Sites

Discussion in 'Add-on Releases [Archive]' started by yilmaz, Nov 12, 2010.

  1. yilmaz

    yilmaz Active Member

    What does this addon do?

    This add-on pulls the first image of a post which is using the [ IMG ] tag and shows it in a movie strip.

    How To Install:
    • Unzip the archive and upload the folders js and library, which are located inside the MoviesPosters folder, to your forum's root.
    • Rotate to Admin > Plugin Install
    • Import the product addon_yilmaz_movies_posters.xml
    Template Modification:

    Search for the template forum_list and find this code :

    HTML:
    <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>
    and add after, this:

    HTML:
    <xen:if is="{$Yilmaz_MoviesPosters}"><xen:include template="yilmaz_movies_posters" /></xen:if>
    Add-On Configuration
    • Go to the option page which you can find via Admin > Options > Home > [Yilmaz] Movies Ribbon
    • Write down the forum ID's. Threads located in these forums will have their first image shown in the film strip block. Seperate each forum ID using a comma (,). Example: 3, 6, 34
    • Define the total amount of imges to be shown or in another word 'rotated'.
    • Define how many images will be shown in a single row before rotating. Standard value is 6 but some themes need a less value. You can of course increase this value at your liking.
    Changelog

    08.03.2011

    • Addon written from the scrach. Many bug fixes, speed improvements
    • No longer BBCODE problems with the addon.
    • JQuery conflicts resolved.
    • New option. Be able to define how many images to be shown in one row.
     

    Attached Files:

    F@ROZ, aligon, CGSTUDYO and 25 others like this.
  2. Tilkißey

    Tilkißey Well-Known Member

    good job yilmaz =)
    1st like and 1st message =)
     
    yilmaz likes this.
  3. yavuz

    yavuz Well-Known Member

    Was loking forward to see this. Thank you yılmaz. :)
     
    yilmaz likes this.
  4. Shelley

    Shelley Well-Known Member

    Very nice. I'm sure this would be very beneficial for people wanting to show off previews of they're resources. Nice job yilmaz keep up the good work. I'll install this later and check it out.
     
    yilmaz likes this.
  5. Phases

    Phases Active Member

    Looks fantastic.
     
    yilmaz likes this.
  6. CyberAP

    CyberAP Well-Known Member

    Very nice plugin!
    Also I'm looking for a movie forums plugin which will add a new type of node - movie discussion and review with custom fields and review system! :)
     
    yilmaz likes this.
  7. yavuz

    yavuz Well-Known Member

    Yılmaz said it gets problematic when the first image of the post has a previous tag used for instance CENTER or bold etc. I tried on my board and yes it does. Can anyone fix that, have an Idea how to fix that ? :)
     
    yilmaz likes this.
  8. arabic

    arabic Member

    Thank you for the excellent work [​IMG]
     
    yilmaz likes this.
  9. Indigo

    Indigo Active Member

    I messed around and wrote a basic bbcode formatter that pulls the first image out of the text:
    PHP:
    class Testing_GetFirstImageFormatter extends XenForo_BbCode_Formatter_Base
    {
        protected 
    $_firstImage;

        public function 
    renderTagImage(array $tag, array $rendererStates)
        {
            
    $imgCode parent::renderTagImage($tag$rendererStates);
            if ( 
    $this->_firstImage === null ) {
                
    $this->_firstImage $imgCode;
            }
            return 
    $imgCode;
        }

        public function 
    getFirstImage()
        {
            return 
    $this->_firstImage;
        }
    }
    If all you need is the image, you should be able to replace the bbcode/message processing with this:
    PHP:
    $formatter XenForo_BbCode_Formatter_Base::create('Testing_GetFirstImageFormatter');
    $bbCodeParser = new XenForo_BbCode_Parser($formatter);
    $FILM['message'] = substr($FILM['message'], 0$options->yilmaz_mp_of_character) . "...";
    $bbCodeParser->render($FILM['message']);

    // will contain the <img ... /> code for the first image of the post, or null if no image exists.
    $FILM['message'] = $formatter->getFirstImage();
     
    Ccriminal, yilmaz and laztrix like this.
  10. yavuz

    yavuz Well-Known Member

    Indigo, thanks for the feedback. I'll try it on my board and get back here. One of the problems with the plugin is that does interfere with TagiaChat when enabled, in Internet Explorer. Any insight how to fix that ?
     
    yilmaz likes this.
  11. Indigo

    Indigo Active Member

    Unfortunately, that sounds like a style issue, and I'm not quite as well-versed in that area. At least, not well-versed enough to answer it off the top of my head.

    One thing I forgot to mention, though, if you swap out the code, remove the </iframe></noscript> from the yilmaz_movies_posters template, since my code won't generate those.
     
    yilmaz and laztrix like this.
  12. yilmaz

    yilmaz Active Member

    @Indigo, suggestions, very useful, have to try.
    Thank you for your contributions.
     
    Ccriminal and Perspektif like this.
  13. Jethro

    Jethro Well-Known Member

    And an Aussie indie movie in the image strip :) Thanks for the mod yilmaz, will include in our next update to scaryminds.com
     
  14. Perspektif

    Perspektif Active Member

    thanks good job :)
     
    Ccriminal likes this.
  15. yilmaz

    yilmaz Active Member

    Last update 08.03.2011

     
    shenmuee likes this.
  16. yavuz

    yavuz Well-Known Member

    Installed, great add-on. Everything works perfectly now, thanks for the hard work yilmaz.
     
    Ccriminal and yilmaz like this.
  17. ArucarD

    ArucarD Member

    How can you change the color of the film strip from white? [For those with dark themes etc]
     
  18. Mike Law

    Mike Law Active Member

    So this can be used for books and tv-shows as well I guess?
     
  19. cynthetiq

    cynthetiq Member

    I get this error on my FORUM tab.

     
  20. yavuz

    yavuz Well-Known Member

    Hi Yılmaz, is there a way to show up this addon in xenporta?

    I'm having some problems with the add-on:

    - When a thread gets soft deleted I'm getting this error when I return to the forum :

    Code:
    Undefined index: library/Yilmaz/MoviesPosters/Model/MoviePoster.php:49
    
    #0 /home/...../public_html/library/Yilmaz/MoviesPosters/Model/MoviePoster.php(49): XenForo_Application::handlePhpError()
    #1 /home/...../public_html/library/Yilmaz/MoviesPosters/Controller/Public.php(10): Yilmaz_MoviesPosters_Model_MoviePoster::Yilmaz_MoviesPostersArray()
    #2 /home/...../public_html/library/XenForo/FrontController.php(303): Yilmaz_MoviesPosters_Controller_Public->actionIndex(Object(XenForo_RouteMatch))
    #3 /home/...../public_html/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch()
    #4 /home/...../public_html/index.php(15): XenForo_FrontController->run()
    #5 {main}
    
    array(3) {
    ["url"] => string(26) "http://www......com/"
    ["_GET"] => array(0) {
    }
    ["_POST"] => array(0) {
    }
    } 
    Let me remind you that I've been using XenPorta with the index controller feature.
     

Share This Page