Sandbach Transport Festival

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Mark.B
    vBulletin Support
    • Jun 2014
    • 33744
    • Leicester, UK

    #1

    Sandbach Transport Festival

    These were taken at the Sandbach Transport Festival, in Sandbach, UK, in April 2013.
    MARK.B | vBULLETIN SUPPORT
  • hkjacko
    Junior Member
    • Feb 2015
    • 1
    This reply by hkjacko has been deleted by Mark.B

    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
  • Mark.B
    vBulletin Support
    • Jun 2014
    • 33744
    • Leicester, UK
    This reply by Mark.B has been deleted by Mark.B

    Originally posted by hkjacko
    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
  • hkjacko
    Junior Member
    • Feb 2015
    • 1
    This reply by hkjacko has been deleted by Mark.B

    Mark.B - Many thanks... that was very helpful
  • hkjacko
    Junior Member
    • Feb 2015
    • 1
    This reply by hkjacko has been deleted by Mark.B

    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
  • Mark.B
    vBulletin Support
    • Jun 2014
    • 33744
    • Leicester, UK
    This reply by Mark.B has been deleted by Mark.B

    Originally posted by hkjacko
    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
  • hkjacko
    Junior Member
    • Feb 2015
    • 1
    This reply by hkjacko has been deleted by Mark.B

    Mark.B Thx again

Users Viewing This Thread

Collapse

There is currently 1 user online. 0 members and 1 guests.

Most users ever online was 3,870 at 04:30 on 11 Jun 2024.

Working...