annoying

Author Topic: Replace Board Title With Image v1.3  (Read 278 times)

dougiefresh

  • Adminstrator
  • Expert Member
  • *****
  • Posts: 253
Replace Board Title With Image v1.3
« on: Nov 18, 2017, 10:45:18 AM »

REPLACE BOARD TITLE WITH IMAGE v1.3
By Dougiefresh -> Link to Mod


Introduction
The idea for this mod came from a topic titled A Neat Way To Enhance A Board!, which wrote about a way to use an image in place of the board title.  This mod attempts to accomplish this objective with a minimum of changes to the forum software.

Please note that at this time, there is no automated way to upload images to the server.  You must upload them to a location underneath the forum folder and refer to them as relative paths.  In other words, if you upload it to /forum/Themes/default/images/duh.png, then you would type Themes/default/images/duh.png into the board image field.

Admin Settings
In Admin => Forum => Boards, there is a new field when modifying the boards:
o Replacement Board Title image

Compatibility Notes
This mod was tested on SMF 2.0.14 and SMF 2.1 Beta 3, but should work on SMF 2.0 and up.  SMF 1.x is not and will not be supported.

This mod does not require the SVG As Image Attachment mod to be installed prior or after this mod.  Rather, if the mod has been installed, it will try to use the functions from that mod (as opposed to the built-in getimagesize function).

Related Discussions
o A Neat Way To Enhance A Board!
o Will it wreak havoc to use an image here?

Changelog
The changelog has been removed and can be seen at XPtsp.com.

License
Quote
Copyright (c) 2017, Douglas Orend
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
« Last Edit: Dec 01, 2017, 10:26:02 AM by dougiefresh »

dougiefresh

  • Adminstrator
  • Expert Member
  • *****
  • Posts: 253
Re: [A] Replace Board Title With Image v1.0
« Reply #1 on: Nov 18, 2017, 10:46:07 AM »

Download Mod


FileName: Replace_Board_Title_With_Image_v1.3.zip
Size: 8 kb (8,045 bytes)
MD5: db07e0ff73bc0cb5490080281c065a72
Built: Jan 06, 2018, 08:54:08 AM
Downloaded 2 times

Changelog

Uploaded v1.3 - January 2nd, 2018
o Resolved incompatability with Board color and icons mod.

Uploaded v1.2 - December 29th, 2017
o Fixed coding error that fails to properly get image sizes.
o SMF 2.1: Fixed syntax error in Sources/Subs-Boards.php.

Uploaded v1.1 - November 29th, 2017
o Added support for SMF 2.1 Beta 3.
o Added support for the SVG As Image Attachment mod.
o Added Spanish Latin translation, courtsey of Rock Lee!
o Added file exists check so that missing images won't cause boards to become inaccessable.

Uploaded v1.0.2 - November 26th, 2017
o Second attempt to add sanitization code for the new relative URL field.

Uploaded v1.0.1 - November 23rd, 2017
o Added forgotten sanitization code for the new relative URL field.

Uploaded v1.0 - November 17th, 2017
o Initial release to the public

lurkalot

  • Newbie
  • Posts: 1
Re: [A] Replace Board Title With Image v1.0
« Reply #2 on: Nov 18, 2017, 01:13:42 PM »
When I click download it gives me,

Fatal error: Call to undefined function Website_GetFilename() in /hsphere/local/home/bbbmtgi/xptsp.com/get.php on line 37

dougiefresh

  • Adminstrator
  • Expert Member
  • *****
  • Posts: 253
Re: [A] Replace Board Title With Image v1.0
« Reply #3 on: Nov 18, 2017, 04:59:26 PM »
It's been fixed.  Thank you for reporting the bug in the forum!