News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Back to the index

Started by NanoSector, November 28, 2011, 12:39:21 PM

Previous topic - Next topic

NanoSector

Link to Mod

Back to the index
If you need to report a bug, please do so on GitHub!

This mod allows you to add a button to the menu with a customized title/text, URL and position (either on the end or the start of the menu), and the option to open the link in a new tab.

Features:
- You can enter a custom title,
- You can also enter a custom link/URL,
- Can be put either at the start or at the end of the menu,
- Can open the link in a new tab.

Settings found in:
Admin > Configuration > Modification Settings > Miscellaneous

How to install:
The Package Manager should work in most cases.

Languages:
- English
- English UTF8
- Dutch
- Dutch UTF8
- Polish (by phantomm) - INCOMPLETE
- Polish UTF8 (also by phantomm) - INCOMPLETE

Translations are welcome!

Changelog:
v0.4.2:
- Fixes a parse error in the Dutch language

v0.4.1:
- Reorganised bits of code

v0.4:
- Added option to open the link in a new tab
- Code cleanup
- Bug fixes

v0.3:
- Now uses hooks
- Is now compatible with portals
- Code cleanup

v0.2.1:
- Smacked some bugs

v0.2:
- Added Polish translation (thanks phantomm!)
- Added option to change menu position (also thanks phantomm!)

v0.1:
- Initial release

License:
This mod is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported license.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Adrek

If it's for home page (I think that) this should be before forum Home tab :)

Here's polish lang:
ISO:

$txt['backtotheindex_enabled'] = 'Wł±cz modyfikację "Wróć do indeksu"';
$txt['backtotheindex_title'] = 'Tytuł przycisku "Wróć do indeksu" w menu';
$txt['backtotheindex_href'] = 'Adres URL przycisku "Wróć do indeksu"';


UTF8:

$txt['backtotheindex_enabled'] = 'Włącz modyfikację "Wróć do indeksu"';
$txt['backtotheindex_title'] = 'Tytuł przycisku "Wróć do indeksu" w menu';
$txt['backtotheindex_href'] = 'Adres URL przycisku "Wróć do indeksu"';

Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

NanoSector

#2
Quote from: phantomm on November 28, 2011, 02:21:46 PM
If it's for home page (I think that) this should be before forum Home tab :)

Here's polish lang:
ISO:

$txt['backtotheindex_enabled'] = 'Wł±cz modyfikację "Wróć do indeksu"';
$txt['backtotheindex_title'] = 'Tytuł przycisku "Wróć do indeksu" w menu';
$txt['backtotheindex_href'] = 'Adres URL przycisku "Wróć do indeksu"';


UTF8:

$txt['backtotheindex_enabled'] = 'Włącz modyfikację "Wróć do indeksu"';
$txt['backtotheindex_title'] = 'Tytuł przycisku "Wróć do indeksu" w menu';
$txt['backtotheindex_href'] = 'Adres URL przycisku "Wróć do indeksu"';

I will add that to my Thoughts list, an option to add it at the beginning or at the end of the menu :)

If you could translate these pieces of text, I am able to add a full Polish translation into the mod for version 0.2:


$txt['backtotheindex_position'] = 'Position of the Back to the index button';
$txt['backtotheindex_beginofmenu'] = 'At the beginning of the menu (before Home button)';
$txt['backtotheindex_endofmenu'] = 'At the end of the menu (after Logout/Register button)';


Thanks :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Adrek

ISO:

$txt['backtotheindex_position'] = 'Pozycja przycisku "Wróć do indeksu"';
$txt['backtotheindex_beginofmenu'] = 'Na pocz±tku menu (przed przyciskiem Strona główna)';
$txt['backtotheindex_endofmenu'] = 'Na końcu menu (po przycisku Wyloguj się/Rejestracja)';

UTF8:

$txt['backtotheindex_position'] = 'Pozycja przycisku "Wróć do indeksu"';
$txt['backtotheindex_beginofmenu'] = 'Na początku menu (przed przyciskiem Strona główna)';
$txt['backtotheindex_endofmenu'] = 'Na końcu menu (po przycisku Wyloguj się/Rejestracja)';


;)
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

NanoSector

#4
Thanks a lot :)

Updating the mod & uploading it in a while.

Updated. When updating your installation, just uninstall the old version and install the newer one.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

I just found out that the mod doesn't like portals damn well.

That's going to kick in for a manual installation for a while I suppose (unless you aren't looking for an installation with the button at the beginning of the menu) :-\

Adding to my to-do list: Make BTTI compatible with portals.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

ryanknoll

Just the mod I was looking for.  Thank you.

NanoSector

Fixed a few bugs, version 0.2.1 is uploaded (now compatible with SMF 2.0.2)!

Uninstall the old package before you begin though (I'm sorry if you lose any data), it's not upgrade-proof.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NekoJonez

No offence but to my opinion this mod is completely useless since it doesn't add a thing.
Since you can use in this case for example.. "Simple Machines Community Forum » Customizing SMF » Modifications and Packages"

To get back easily to the index.
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

NanoSector

Quote from: JonezJeA on June 07, 2012, 04:19:25 AM
No offence but to my opinion this mod is completely useless since it doesn't add a thing.
Since you can use in this case for example.. "Simple Machines Community Forum » Customizing SMF » Modifications and Packages"

To get back easily to the index.
Not if you have a forum on lessay http://lol.com/forum and need a button that goes back to http://lol.com...
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

Mod works with 2.0.3 as-is.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

Mod updated to 0.3, now uses hooks and fixes the issue that occured with portals. Happy buttoning! :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

gatorfan59

Installed and working great... One question, is there anyway to have the link open in a new window? Can I add a target=_blank somewhere in the script? Thanks!

NanoSector

Quote from: gatorfan59 on January 12, 2013, 10:30:02 AM
Installed and working great... One question, is there anyway to have the link open in a new window? Can I add a target=_blank somewhere in the script? Thanks!
Hmm, I will look into creating a switch for this, thanks for reporting :)

(shouldn't be too hard - just a couple of lines)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

Updated - version 0.4 should provide the feature you wanted :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Shambles

This mod is called "Back to the index", but why is that?

Post #1 in this thread doesn't say what the mod actually does, and the mod download page says it's about adding a customisable button...

QuoteAdds a custom button on the button row. The button this mod adds is completely customizable, with a custom URL, name, and the option to place it at the beginning and the end of the menu

So, why does it have the name it does?

Just askin'

NanoSector

Quote from: ®Shambles on January 12, 2013, 12:26:57 PM
This mod is called "Back to the index", but why is that?

Post #1 in this thread doesn't say what the mod actually does, and the mod download page says it's about adding a customisable button...

QuoteAdds a custom button on the button row. The button this mod adds is completely customizable, with a custom URL, name, and the option to place it at the beginning and the end of the menu

So, why does it have the name it does?

Just askin'
The button is customizable the way you like it with your own text and URL and such.

It is called Back to the index, because it is a button which should bring you, well, Back to the index ;)

If you want me to rewrite the description, I'll be more than glad to do so :)
EDIT: Oh wow I didn't enter a description at all... :-[
* Yoshi2889 is horrible with descriptions
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Shambles

Quote
It is called Back to the index, because it is a button which should bring you, well, Back to the index ;)
Meh, I don't buy that :P

If the sole objective of the modification is to create a custom button in a customisable position on the button row, to contains customisable content, surely the mod should be "Create Custom Button"...?


Hey, it's your mod but I was just curious that's all...

NanoSector

Quote from: ®Shambles on January 12, 2013, 01:26:41 PM
Quote
It is called Back to the index, because it is a button which should bring you, well, Back to the index ;)
Meh, I don't buy that :P

If the sole objective of the modification is to create a custom button in a customisable position on the button row, to contains customisable content, surely the mod should be "Create Custom Button"...?
Yeah, but I wanted to be original! :P
Search "Custom button" on the mod site and you're bombarded with mods :P
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

gatorfan59

Perfect! Thanks for the quick update!

Advertisement: