Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Hj Ahmad Rasyid Hj Ismail on July 22, 2014, 12:58:55 AM

Title: MDLT: Manage Default Linktree
Post by: Hj Ahmad Rasyid Hj Ismail on July 22, 2014, 12:58:55 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3899)

MDLT: Manage Default Linktree

1. Please do your own backup though every installation is backed up automatically.
2. This mod will help you modify your linktree as follows:
   (a) Remove the line above linktree;
   (b) Put the linktree in a square box overiding the above;
   (c) Put the linktree in a round box overiding all of the above;
   (d) Hide the forum name in the linktree;
   (e) Hide the category name in the linktree.
   (f) Hide the top linktree in the message index only;
   (g) Hide the top linktree in the post / display only;
   (h) Hide the top linktree in all pages overriding all of the above.
   (i) Hide the bottom linktree in message index only;
   (j) Hide the bottom linktree in post / display only;
   (k) Hide the whole linktree in index / frontpage only;
   (l) Hide the whole linktree everywhere completelyoverriding all of the above.
3. You will be directed to its settings page immediately upon its successful installation.
4. There is nothing fancy about this mod but just to accommodate those who need it for their own reasons.
5. You can test it in lower SMF 2.0 version too as IMO it should work just fine. ;)


Thank you for using/testing it.


Yours friendly,
Abu Fahim Ismail.

BSD License. Feel free to modify accordingly but keep author's link if it is in there somewhere. ;)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fvalidator.w3.org%2Fimages%2Fvalid_icons%2Fvalid-xhtml10&hash=f3694497572838dc55641db875ff57107ebabaed)  (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fjigsaw.w3.org%2Fcss-validator%2Fimages%2Fvcss&hash=710d7530f8727db53c62cb8f44abbef39967e693)
Title: Re: MDLT: Manage Default Linktree
Post by: Hj Ahmad Rasyid Hj Ismail on July 24, 2014, 04:06:03 AM
Updated in response to this topic: How do I Remove Tree Link on Top (http://www.simplemachines.org/community/index.php?topic=525570.0).
Title: Re: MDLT: Manage Default Linktree
Post by: beanflying on December 11, 2014, 06:22:28 PM
 8) Two thumbs up. Just saved me a bunch of code bashing unlike the last forum I set up.
Title: Re: MDLT: Manage Default Linktree
Post by: roshaoar on May 01, 2015, 09:57:16 PM
Lovely mod... but I get 1000s of entries in the error logs with it in 2.0.10:

Quotehttp://extreme-macro.co.uk/forums/index.php?
8: Undefined index: mlt_hide_message
File: /home/plat-linnas01/e/extreme-macro.co.uk/user/htdocs/forums/Themes/default/index.template.php
Line: 371

same with mlt_hide_alltop

Anyone know how to solve this?

Thank you for your time,

-Johan
Title: Re: MDLT: Manage Default Linktree
Post by: Hj Ahmad Rasyid Hj Ismail on May 02, 2015, 08:40:27 PM
This mod haven't been look into for quite sometimes and I am quite sure that there is no error reported earlier. Undefined means that the said mod settings are not defined properly. But they supposedly has already been defined in Modifications.english.php. First, check the said, if the modification made by this mod is already defined in there. If not, please uninstall and reinstall the mod. Report, if the error still persists.
Title: Re: MDLT: Manage Default Linktree
Post by: roshaoar on May 03, 2015, 05:42:41 AM
Thanks ahrasis - yes, the error persists. But I'm thinking it maybe because I've installed English.british as the default language...
Title: Re: MDLT: Manage Default Linktree
Post by: roshaoar on May 03, 2015, 05:52:42 AM
update - wasn't it. I replaced the contents of \Modifications.english_british.php with the contents of \Modifications.english.php but same error. Weird because they're definitely in \Modifications.english_british.php
Title: Re: MDLT: Manage Default Linktree
Post by: Hj Ahmad Rasyid Hj Ismail on May 03, 2015, 08:46:32 AM
Ok then. I will try to look into it and see whether this error can be replicated and fixed.
Title: Re: MDLT: Manage Default Linktree
Post by: roshaoar on May 03, 2015, 09:16:00 AM
Thank you ahrasis , good man!
Title: Re: MDLT: Manage Default Linktree
Post by: Hj Ahmad Rasyid Hj Ismail on May 04, 2015, 09:39:31 PM
There is a missing !empty right before ($modSettings['mlt_hide_message']) and ($modSettings['mlt_hide_alltop']) in the modification for index.template.php. Change that to !empty($modSettings['mlt_hide_message']) and !empty($modSettings['mlt_hide_alltop']) (altogether 4 occurences, two each) and the error should be gone.
Title: Re: MDLT: Manage Default Linktree
Post by: roshaoar on May 05, 2015, 01:55:19 AM
Thank you Ahraris!!!!
Title: Re: MDLT: Manage Default Linktree
Post by: Hj Ahmad Rasyid Hj Ismail on May 07, 2015, 02:07:38 PM
No problem. I might not be fixing current package as it was a non hook mod. Instead I may upgrade it to hook version in the near future.

Plus, SMF linktree is too "humble" in its stylings. A few smart look for users to choose may be a good mod to create.