Custom Linktree

Started by Bulakbol, May 02, 2009, 05:04:38 PM

Previous topic - Next topic

Bulakbol

Link to Mod

Author: Bulakbol   Mod Name: Custom Linktree   Version: 1.0
Tested: Freshly installed SMF 2.0 RC1


Custom Linktree

  • This is only for the default Theme. The inline linktree can now be disabled.
  • This modification will customize your linktree. It will also add a bottom linktree to all pages.
  • It will remove all lines from template files that call the linktree function.
  • It will add Help, Profile and other pages to the linktree.
  • Also changes the css id to class to clear an XHTML error.
  • Options can be disabled by navigating to Admin => Features and Options => General,
    Do not use custom linktree and Do not show bottom linktree check boxes.
  • Do not forget to hard-refresh your screen by holding down CTRL key and then hit F5 (Function key 5).
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines


Bulakbol

Thanks. The sample image is not attractive tho.  :D
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Sudhakar Arjunan

#3
Thanks for this useful mod Author.

--- Update.

Got error on member list page @ 2.0.RC1

Replace     ./Themes/default/Memberlist.template.php     Test failed

// Show the link tree. echo ' <div style="padding: 3px;">', theme_linktree(), '</div>';

Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Bulakbol

You probably edited that line before. It should look like this.
// Show the link tree.
echo '
<div style="padding: 3px;">', theme_linktree(), '</div>';


You can do the manual edit anyway. Only 2 lines to get rid of.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Sudhakar Arjunan

Quote from: Bulakbol on May 05, 2009, 10:36:40 PM
You probably edited that line before. It should look like this.
// Show the link tree.
echo '
<div style="padding: 3px;">', theme_linktree(), '</div>';


You can do the manual edit anyway. Only 2 lines to get rid of.

Yes you are right.

Only two lines, which i could take. But i wanted to just know, why it had happened. So everyone who installs need to edit it manually.

I am sure i could do it , but just for making it so easier to install and uninstall. I have asked this question.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Bulakbol

Grab the RC1 package, unzip the file and check the original file. Your current file was probably edited/changed by a mod you installed. When I create a mod, I use untouched original files.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Naveeddil


Bulakbol

Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Naveeddil

i think it wants manual installation
because
whenever i try it from Package Manager it says

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF. "


Bulakbol

@Naveeddil
Do you get that error only when installing this mod?
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

smokester

Would it be difficult to install this in a custom theme?

Thanks

PalmBeachPreps

#12
I'm using 2.0 RC1.2.  I installed it and it failed this step:
./Themes/default/Memberlist.template.php
[b]Find:[/b] [Select]

// Show the link tree.
echo '
<div style="padding: 3px;">', theme_linktree(), '</div>';

[b]Replace With:[/b] [Select]

// Show the link tree.

and then it threw this error:Parse error: syntax error, unexpected T_VARIABLE in /home/content/p/a/l/palmbeachpreps/html/Themes/default/languages/Modifications.english.php on line 406[/s]Disregard, I found the problem.  User error.  ;D

Great mod! 


PalmBeachPreps

Quote from: smokester on October 28, 2009, 08:42:24 PM
Would it be difficult to install this in a custom theme?

Thanks
Wasn't for me.

Question: How would I change the color of the border?

smokester

Quote from: PalmBeachPreps on October 29, 2009, 01:27:42 AM
Quote from: smokester on October 28, 2009, 08:42:24 PM
Would it be difficult to install this in a custom theme?

Thanks
Wasn't for me.


Was it just a case of manually editing the theme's index_template?

PalmBeachPreps

Quote from: smokester on October 29, 2009, 01:55:41 PM
Quote from: PalmBeachPreps on October 29, 2009, 01:27:42 AM
Quote from: smokester on October 28, 2009, 08:42:24 PM
Would it be difficult to install this in a custom theme?

Thanks
Wasn't for me.


Was it just a case of manually editing the theme's index_template?
Yes.

smokester

Quote from: PalmBeachPreps on October 30, 2009, 01:10:14 AM
Quote from: smokester on October 29, 2009, 01:55:41 PM
Quote from: PalmBeachPreps on October 29, 2009, 01:27:42 AM
Quote from: smokester on October 28, 2009, 08:42:24 PM
Would it be difficult to install this in a custom theme?

Thanks
Wasn't for me.


Was it just a case of manually editing the theme's index_template?
Yes.

Tried that and it spat errors out at me.  Could you be more precise as to exactly what had to be changed/

Thanks

smokester

Well I have found this to be impossible to get to work in my theme, and mine is only Speedlight by Crip which is super light and easy to modify.

Don't know why I bothered anyhow, as it was just as easy to copy the linktree to the bottom of the theme without worrying about "Enable inline links" problem with 2.0 RC1 and RC1.2.

I am interested to know how you got this to work with a theme though, as after I think I got the code right in the index.template.php. other files from like "load.php" started to spit errors out at me?

Advertisement: