Announcement

Collapse
No announcement yet.

Sandbach Transport Festival

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Sandbach Transport Festival

    These were taken at the Sandbach Transport Festival, in Sandbach, UK, in April 2013.
    MARK.B | vBULLETIN SUPPORT
    This topic by hkjacko has been deleted by Mark.B

    #1
    Mark... can you walk me through how you did that? From a user perspective I can only see how to upload 5 photos using the camera icon (above left) or the 'image' icon in the advanced editor which seems to do it one by one.

    thx
    This topic by Mark.B has been deleted by Mark.B

    #1
    Originally posted by hkjacko View Post
    Mark... can you walk me through how you did that? From a user perspective I can only see how to upload 5 photos using the camera icon (above left) or the 'image' icon in the advanced editor which seems to do it one by one.

    thx
    hkjacko

    Needs a file edit.

    First, change the usergroup permission "Maximum Attachments per Post" to 20. Needs doing for each usergroup.
    Then change the same permission in Channel Management > Channel Permissions. Change it on the forum channel and it should cascade down, unless you've customised any lower down the tree.

    Then, find the file: core/vb/library/content/gallery.php

    Find both instances of this:
    PHP Code:
    $contentInfo[$node]['photopreview'] = ($contentInfo[$node]['photocount'] > 3) ? array_slice($contentInfo[$node]['photo'], 03) : $contentInfo[$node]['photo']; 

    Change to:
    PHP Code:
    $contentInfo[$node]['photopreview'] = ($contentInfo[$node]['photocount'] > 20) ? array_slice($contentInfo[$node]['photo'], 020) : $contentInfo[$node]['photo']; 
    MARK.B | vBULLETIN SUPPORT
    This topic by hkjacko has been deleted by Mark.B

    #1
    Mark.B - Many thanks... that was very helpful
    This topic by hkjacko has been deleted by Mark.B

    #1
    Mark.B Sorry... follow up question. Why 20? Is there any reason why the site's default is just 5 photos? (performance?). Will upping this to 20 (or more) have a performance impact? Thx
    This topic by Mark.B has been deleted by Mark.B

    #1
    Originally posted by hkjacko View Post
    Mark.B Sorry... follow up question. Why 20? Is there any reason why the site's default is just 5 photos? (performance?). Will upping this to 20 (or more) have a performance impact? Thx
    hkjacko no it shouldn't impact performance. It's just a hard coded limit, I am not sure why it's there. There's a bug report somewhere to have it changed to respect the admincp settings as it should do.

    I chose 20 as it was just a better number to use if you want to create a Gallery like I've done.
    MARK.B | vBULLETIN SUPPORT
    This topic by hkjacko has been deleted by Mark.B

    #1
    Mark.B Thx again
Working...
X