Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: ^HeRaCLeS^ on July 01, 2011, 07:40:09 PM

Title: Menu Buttons
Post by: ^HeRaCLeS^ on July 01, 2011, 07:40:09 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=3075)

Menu Buttons

(http://www.smfpersonal.net/Adkmods/logo.png) (http://www.smfpersonal.net/)

(http://www.smfpersonal.net/famfamfam/user.png) Autores/Authors:
     ^HeRaCLeS^ (http://www.smfpersonal.net/profiles/heracles-u259.html)
     enik (http://www.smfpersonal.net/profiles/enik-u417.html)
    
(http://www.smfpersonal.net/famfamfam/page_white_flash.png) Características:

Este mod permite activar desde la administración una barra de botones extra.
Opciones:
        Activar/Desactivar el menu extra
        Activar/Desactivar botones (1 a 6)
        Ponerle nombre a los botones.
        Ingresar el link del los botones.
        Alinear los botones a la derecha.

Las opciones de este mod se encuentran en:
Admin -> Modificaciones

Copyright 2011 by SMF Personal @ visita www.smfpersonal.net (http://www.smfpersonal.net/) para soporte oficial.

Si tu quieres ayudarnos,por favor visita nuestra seccion de contribuciones: Contribuir (http://www.smfpersonal.net/about.html;sa=contritube-spanish)


(http://www.smfpersonal.net/famfamfam/page_white_flash.png) Features:

This mod allows enable from the administration an extra toolbar.
Options:
        Enable/disable the extra menu
        Enable/disable buttons (1 to 6)
        Write name buttons.
        Write link of the buttons.
        Align the buttons to the right.

The options of this mod are in:
Admin -> Modification Settings

Copyright 2011 by SMF Personal @ visit www.smfpersonal.net (http://www.smfpersonal.net/) for official support.

If you want help, please visit our contributions section: Contribute (http://www.smfpersonal.net/about.html;sa=contribute)



(http://www.smfpersonal.net/Themes/default/images/post/topicsolved.gif) Idiomas/Languages:
     o English
     o English-utf8
     o Spanish_es
     o Spanish_es-utf8
     o Spanish_latin
     o Spanish_latin-utf8
     o portuguese_Pt
     o portuguese_Pt-utf8
     o portuguese_brazilian
     o portuguese_brazilian-utf8
     o persian
     o persian-utf8

(http://www.smfpersonal.net/Themes/default/images/post/topicsolved.gif) Compatibilidad/Compatibility:
     o SMF 2.0.x

(http://www.smfpersonal.net/Themes/default/images/post/topicsolved.gif) Desarrollador/Developer:
     Adk-Team (http://www.smfpersonal.net/)

(http://www.smfpersonal.net/Themes/default/images/post/topicsolved.gif) Traducciones/Translations:
     o portuguese --> Joomlamz (http://www.simplemachines.org/community/index.php?action=profile;u=79248)
     o persian -----> mrtarkhan (http://www.simplemachines.org/community/index.php?action=profile;u=255886)
Title: Re: Adk Menu Buttons
Post by: Apllicmz on July 02, 2011, 12:47:21 AM
Yes that good work
Nice Mod
When Update dont forget Portuguese

Title: Re: Adk Menu Buttons
Post by: Adk-Team on July 02, 2011, 01:36:08 AM
Thank you very much for contribute and comment  ;)
Title: Re: Adk Menu Buttons
Post by: Robert. on July 02, 2011, 11:13:40 AM
Nice modification :)
Title: Re: Adk Menu Buttons
Post by: Slug1 on July 02, 2011, 02:38:20 PM
The mod warned of a "Test failed" in the: /Themes/Alluminium/index.template.php for this Aluminum theme I use as the default theme. What must be done/edited to fix this?

Link to the theme: http://custom.simplemachines.org/themes/index.php?lemma=2436
Title: Re: Adk Menu Buttons
Post by: Adk-Team on July 02, 2011, 04:52:04 PM
install the mod with errors and attach file /Themes/Alluminium/index.template.php

Title: Re: Adk Menu Buttons
Post by: Slug1 on July 02, 2011, 10:16:22 PM
Quote from: Adk-Team on July 02, 2011, 04:52:04 PM
install the mod with errors and attach file /Themes/Alluminium/index.template.php



Here's the php file you requested.

Right now, I can see the configuration fields under the "modifications settings", I enabled button 1 and completed all the fields with the info and saved. Just nothing shows on the actual site.
Title: Re: Adk Menu Buttons
Post by: Adk-Team on July 03, 2011, 11:11:19 AM
Test please
Title: Re: Adk Menu Buttons
Post by: Slug1 on July 03, 2011, 01:10:23 PM
Quote from: Adk-Team on July 03, 2011, 11:11:19 AM
Test please

Hooah, thank you so much. Tested out fine. Posted links left and right, moved them back and forth. This mod will be helpful!!

Question... will a future update enable permissions for the viewing of the new menu? That way specific membergroups can or can't see the new buttons to click?
Title: Re: Adk Menu Buttons
Post by: Adk-Team on July 03, 2011, 02:11:34 PM
Good suggestion.
Take into account

thanks ;)
Title: Re: Adk Menu Buttons
Post by: bruce86 on July 03, 2011, 03:14:25 PM
It 'can change gears with custom icons? Then I have a problem with the 4 key writes to me "right", thanks ..;)
Title: Re: Adk Menu Buttons
Post by: Adk-Team on July 03, 2011, 03:21:39 PM
Change the file Icono-Boton.png. In folder images/Boton
Title: Re: Adk Menu Buttons
Post by: -=[Vyorel]=- on July 03, 2011, 03:25:54 PM
Very nice mod! :) Thanks!
Title: Re: Adk Menu Buttons
Post by: bruce86 on July 03, 2011, 04:34:31 PM
Quote from: Adk-Team on July 03, 2011, 03:21:39 PM
Change the file Icono-Boton.png. In folder images/Boton
And 'possible to make them individually (icons)? Thanks a lot ..;) ps Instead ADK topic buttons for?
Title: Re: Adk Menu Buttons
Post by: Papoune57 on July 16, 2011, 05:29:24 AM
Quote from: bruce86 on July 03, 2011, 03:14:25 PMThen I have a problem with the 4 key writes to me "right", thanks ..;)

In "index.template.php"

Find:

'text' => !empty($modSettings['texto-31']) ? 'right' : 'Button 4',

Change to:

'text' => !empty($modSettings['texto-31']) ? $modSettings['texto-31'] : 'Button 4',
Title: Re: Adk Menu Buttons
Post by: Adk-Team on July 16, 2011, 09:09:23 PM
Thanks Papoune57!!
I missed that line

Mod updated.
Title: Re: Adk Menu Buttons
Post by: Cal O'Shaw on July 17, 2011, 02:18:27 AM
At the risk of sounding silly, what does one put into one of the buttons?  That is, if there are specific Admin functions I can use these buttons as shortcuts?  Do I enter a full URL in the field?

Sorry, but there are no screenshots or description to look at and see.  Some people might not install this MOD without knowing how to use it.

Cal
Title: Re: Adk Menu Buttons
Post by: Adk-Team on July 17, 2011, 09:25:45 PM
 :o ??? If there screenshot!! in the download.


You can put the link you want
Whether an issue of importance to your site or someone else's site
Title: Re: Adk Menu Buttons
Post by: Cal O'Shaw on July 17, 2011, 10:32:03 PM
Actually, the screenshot is of a BLANK form, no examples of how to fill it in.  I ask because some MODs require a full URL, others just what goes after '?' in the URL.  How are we to know without a description or screenshot, except by asking?

I hope I don't sound rude, because I do not mean to, but the description really doesn't make all of this clear.  I like the idea of this MOD, but I'm sure I'm not the only Admin who is reluctant to install a MOD without knowing how to use it.

Regards,

Cal
Title: Re: Adk Menu Buttons
Post by: Adk-Team on July 17, 2011, 11:17:30 PM
You can put the address as you want.
Example external url:
http://www.simplemachines.org

Example url of your site:
http://full url
or
index.php?action=help
Title: Re: Adk Menu Buttons
Post by: skip43 on August 18, 2011, 12:09:47 PM
I am not trying to sound stupid here, but here is my question.

I added 1 button from the ADK menu buttons to my Simple Machines forum. What I want is that when someone clicks on that button/link it will open in the same window. Right now it opens in a new window/tab.

I have tried ?target=self   top   parent  and nothing seems to work.

If I could please get some insight as to how to make this link open in the same window I would sure appreciate it.

Thank you

Larry
Title: Re: Adk Menu Buttons
Post by: Adk-Team on August 18, 2011, 01:01:46 PM
Search "function Botonera()" in the file index.template.php and modify:
'target' => '_blank',

with:
'target' => '',

The button you want or all.
Title: Re: Adk Menu Buttons
Post by: skip43 on August 18, 2011, 03:53:40 PM
Perfect, thank you very much for your quick reply and an excellent mod. That is exactly what I needed to know.

Again thank you

Larry
Title: Re: Adk Menu Buttons
Post by: Adk-Team on September 22, 2011, 11:11:05 AM
Updated to SMF 2.0.1  ;)

Regards enik...
Title: Re: Adk Menu Buttons
Post by: jeddi on September 28, 2011, 04:11:01 PM
Hi, I like this mod and would love to get it working with my Theme ProRed. I didnt quite understand the explanation above for another theme. If I attach my ProRed indextemplate.php, will you help.
thank you
Title: Re: Adk Menu Buttons
Post by: Draffi on October 01, 2011, 07:11:11 PM
It is possible to add unique icons for every button?

If it possible, how.

Maybe a suggestion for further updates (enter link to icon per button)
Title: Re: Adk Menu Buttons
Post by: mrtarkhan on October 06, 2011, 05:28:59 PM
Persian (فارسی)

;)
Title: Re: Adk Menu Buttons
Post by: Adk-Team on October 07, 2011, 11:26:27 AM
Thank you very very very very much for the contribution ;)
Title: Re: Adk Menu Buttons
Post by: mrtarkhan on October 07, 2011, 11:32:56 AM
your welcome, my lob :)

persian is RTL
Title: Re: Adk Menu Buttons
Post by: vkbr on October 09, 2011, 07:22:57 PM
Hi, thanks for the nice mod. One question i was in doubt if i made any mistake while i was trying to personalize the look of the button. Well every thing is working fine, but I wanted to make sure, so i tried to uninstall to re-install. The only think i have did so far was to modify the images at "Themes/default/images/Boton/Icono-Boton.png" but i saved copies and restored the original stuff before trying to uninstall. Well the uninstall check (via package manager) give me an error "Replace - ./Sources/ManageSettings.php   Test failed". So finally the question.
How should i proceed to uninstall and re install? If i proceed with this "failed" uninstall what will really happen? Can i do it and than manually uninstall only the stuff at "ManageSettings.php" ? I do not know php, but i have some little programming skills and feel comfortable to do this little changes. Or i need to uninstall every thing by hand?
By the way the stuff at "ManageSettings.php" is exactly stated at"Manual Install Instructions for SMF" at mod page. In time SMF 2.01, shared server.
Ok that's it, sorry for so much text.
Thanks for any help.
Vk
Title: Re: Adk Menu Buttons
Post by: vkbr on October 09, 2011, 11:12:57 PM
Hi there again. One more question. Could i chose links from buttons to open in the same browser window Ops, sorry, found above. Thanks.
This is how my "personalization" of your great mod is looking so far:
Wich one is better?
Title: Re: Adk Menu Buttons
Post by: girlfloyd on October 10, 2011, 11:01:04 AM
vkbr, i think i like #2 the best but they both look good.
Title: Re: Adk Menu Buttons
Post by: Adk-Team on October 10, 2011, 12:51:49 PM
If it shows error when uninstalling, you just remove those codes manually.
This has to look at the parse of the mod.
Title: Re: Adk Menu Buttons
Post by: Adk-Team on October 10, 2011, 02:42:37 PM
Updated.

New language: persian

Thank you very much mrtarkhan  ;)
Title: Re: Adk Menu Buttons
Post by: mrtarkhan on October 10, 2011, 05:04:50 PM
your welcome
thanks Adk-Team, for good mods.
Title: Re: Adk Menu Buttons
Post by: vkbr on October 10, 2011, 09:43:18 PM
Thanks for quick answer. I' wont uninstall it anyway. By the way is it possible to use allown some groups and deny other permissoin to see the buttons? .. Again... sorry. Looking forward to that permissions stuff.

thx
vk
Title: Re: Adk Menu Buttons
Post by: ufferichter on December 22, 2011, 03:35:12 PM
Hi

I got a problem here

   ./Sources/ManageSettings.php fail

and i try this :: find // Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!

and replace with :     //Adk Menu Buttons
   $txt['texto-13'],
   '',
      array('check', 'texto-14'),
   '',
      array('check', 'texto-15'),
      array('text', 'texto-21', '20'),
      array('text', 'texto-28', '20'),
      array('check', 'texto-34'),
   '',
      array('check', 'texto-16'),
      array('text', 'texto-22', '20'),
      array('text', 'texto-29', '20'),
      array('check', 'texto-35'),
   '',
      array('check', 'texto-17'),
      array('text', 'texto-23', '20'),
      array('text', 'texto-30', '20'),
      array('check', 'texto-36'),
   '',
      array('check', 'texto-18'),
      array('text', 'texto-24', '20'),
      array('text', 'texto-31', '20'),
      array('check', 'texto-37'),
   '',
      array('check', 'texto-19'),
      array('text', 'texto-25', '20'),
      array('text', 'texto-32', '20'),
      array('check', 'texto-38'),
   '',
      array('check', 'texto-20'),
      array('text', 'texto-26', '20'),
      array('text', 'texto-33', '20'),
      array('check', 'texto-39'),
         
But no working, still fail

i attach my file, please help
Title: Re: Adk Menu Buttons
Post by: Adk-Team on December 22, 2011, 06:38:12 PM
Test please ;)
Title: Re: Adk Menu Buttons
Post by: ufferichter on December 23, 2011, 12:10:15 AM
I just copy the file over, and its still says the same, do i do something wrong
Title: Re: Adk Menu Buttons
Post by: Matthew K. on December 23, 2011, 01:07:29 AM
You'd have to install the mod FIRST, then try the file he attached.
Quote from: ufferichter on December 23, 2011, 12:10:15 AM
I just copy the file over, and its still says the same, do i do something wrong
Title: Re: Adk Menu Buttons
Post by: ufferichter on December 23, 2011, 01:12:43 AM
I remove the install first then install the mod again and i have copy my new file over but its still says the same as you see on the pic

And now with the new version of smf?
Title: Re: Adk Menu Buttons
Post by: Swayforth on January 07, 2012, 09:28:15 AM
Love your work, I am having issues with this install with theme Flagrantly by, Crip on SMF 2.0.2

ERROR: Add After   ./Themes/flagrantly_20g/index.template.php   Test failed

I went to manually add Botonera(); but could not find template_menu(); in the index.template.php file. I did find 2 entries for template_menu() but could not add the code correctly.

I have attached the index.template.php. Appreciate any assistance you could provide.

Thank you!
Title: Re: Adk Menu Buttons
Post by: Adk-Team on January 20, 2012, 01:43:40 PM
Updated to 2.0.2
Title: Re: Adk Menu Buttons
Post by: liamtoo on February 17, 2012, 08:47:23 AM
Nice mod. Very useful. However, I find the cogged wheel icon and the bold text very brash. Is it possible for me to change it? 
Title: Re: Adk Menu Buttons
Post by: teos55 on April 07, 2012, 02:29:42 PM
SMF 2.0.2  simple portal 2.3.5  default theme

  Installed the mod with no errors ...

Configured two buttons and they are displayed next to each other, rther then seperated with the icon ... ( no icon)

Checked images/Boton  the png files are there ..

What am I doing wrong

screen output attached ..  (Favorilerim and Üye tanıtım supposed to be two seperate menu items but not )


nb.noticed that this happens in Google Chrome.  For Opera and Firefox,  it is ok. (I mean the icon)

SOLVED... clearing cache of Chrome solved the problem.
Title: Re: Adk Menu Buttons
Post by: teos55 on April 07, 2012, 05:04:04 PM
 Now the question is : How can I reduce the font size and icon size ?
I know it can be done via css but I'm quite novice on this.
Any help will be higly appreciated ...

attached the cropped menu ...
Title: Re: Adk Menu Buttons
Post by: Adk-Team on April 16, 2012, 09:39:54 PM
teos55 Url please




liamtoo Yes. From the css
Title: Re: Adk Menu Buttons
Post by: teos55 on April 17, 2012, 02:43:33 AM
 Tried to reduce the font size and image size but cannot aligned .


.buttons_tools a
{
   background: url(../images/Boton/Icono-Boton.png) no-repeat ;
   width: 109px;
   text-decoration: none !important;
   text-align: center;
   color: #000;
   font-weight: bold;
   padding-left: 30px;
   font-size: 10px;
   display: block;
   height: 34px;
   line-height: 38px;


url PM'ed. 
Title: Re: Adk Menu Buttons
Post by: Adk-Team on April 18, 2012, 07:09:54 PM
Test please

In index.css

Search:

.buttons_tools
{
clear: both;
margin:0 auto;
overflow: hidden;
padding-top: 5px;
padding-left: 5px;
width: 864px;
}


Replace with:

.buttons_tools
{
clear: both;
margin: 0 auto;
overflow: hidden;
padding-left: 5px;
padding-top: 5px;
width: 700px;
}







Search:

.buttons_tools a
{
background: url(../images/Boton/Icono-Boton.png) no-repeat ;
width: 109px;
text-decoration: none !important;
text-align: center;
color: #000;
font-weight: bold;
padding-left: 30px;
font-size: 10px;
display: block;
height: 34px;
line-height: 38px;
}


Replace with:

.buttons_tools a
{
background: url(../images/Boton/Icono-Boton.png) no-repeat ;
color: #000000;
display: block;
font-size: 10px;
font-weight: bold;
height: 20px;
line-height: 16px;
padding-left: 0;
text-align: center;
text-decoration: none !important;
width: 109px;
}


Regards
Title: Re: Adk Menu Buttons
Post by: teos55 on April 19, 2012, 03:55:39 AM
thanks ...
Title: Re: Adk Menu Buttons
Post by: Adk-Team on February 08, 2013, 06:22:18 PM
SMF 2.0.4 updated  ;)

Regards enik...
Title: Re: Adk Menu Buttons
Post by: geogeo.gr on May 07, 2013, 03:34:25 PM
Greek translation.
(Please use separate files for ANSI and UTF-8 Greek files, otherwise  created problem).

// Begin Adk Menu Buttons translated by geogeo.gr

$txt['texto-13'] = 'Adk Menu Buttons';
$txt['texto-14'] = 'Ενεργοποίηση κουμπιών';
$txt['texto-15'] = 'Ενεργοποίηση κουμπιού 1';
$txt['texto-16'] = 'Ενεργοποίηση κουμπιού 2';
$txt['texto-17'] = 'Ενεργοποίηση κουμπιού 3';
$txt['texto-18'] = 'Ενεργοποίηση κουμπιού 4';
$txt['texto-19'] = 'Ενεργοποίηση κουμπιού 5';
$txt['texto-20'] = 'Ενεργοποίηση κουμπιού 6';
$txt['texto-21'] = 'Διεύθυνση URL του κουμπιού 1';
$txt['texto-22'] = 'Διεύθυνση URL του κουμπιού 2';
$txt['texto-23'] = 'Διεύθυνση URL του κουμπιού 3';
$txt['texto-24'] = 'Διεύθυνση URL του κουμπιού 4';
$txt['texto-25'] = 'Διεύθυνση URL του κουμπιού 5';
$txt['texto-26'] = 'Διεύθυνση URL του κουμπιού 6';
$txt['texto-28'] = 'Όνομα κουμπιού 1';
$txt['texto-29'] = 'Όνομα κουμπιού 2';
$txt['texto-30'] = 'Όνομα κουμπιού 3';
$txt['texto-31'] = 'Όνομα κουμπιού 4';
$txt['texto-32'] = 'Όνομα κουμπιού 5';
$txt['texto-33'] = 'Όνομα κουμπιού 6';
$txt['texto-34'] = 'Στοίχιση δεξιά';
$txt['texto-35'] = 'Στοίχιση δεξιά';
$txt['texto-36'] = 'Στοίχιση δεξιά';
$txt['texto-37'] = 'Στοίχιση δεξιά';
$txt['texto-38'] = 'Στοίχιση δεξιά';
$txt['texto-39'] = 'Στοίχιση δεξιά';

// End Adk Menu Buttons
Title: Re: Adk Menu Buttons
Post by: Adk-Team on May 09, 2013, 04:23:26 AM
Thanks  ;)
Title: Re: Adk Menu Buttons
Post by: geogeo.gr on June 06, 2013, 01:35:40 PM
We can give to each button another icon?
Title: Re: Adk Menu Buttons
Post by: ukhalik2 on June 26, 2013, 07:49:24 PM
Quote// Begin Adk Menu Buttons $txt['texto-13'] = 'Adk Menu Buttons'; $txt['texto-14'] = 'Enable Buttons'; $txt['texto-15'] = 'Enable button 1'; $txt['texto-16'] = 'Enable button 2'; $txt['texto-17'] = 'Enable button 3'; $txt['texto-18'] = 'Enable button 4'; $txt['texto-19'] = 'Enable button 5'; $txt['texto-20'] = 'Enable button 6'; $txt['texto-21'] = 'Write the URL of the button 1'; $txt['texto-22'] = 'Write the URL of the button 2'; $txt['texto-23'] = 'Write the URL of the button 3'; $txt['texto-24'] = 'Write the URL of the button 4'; $txt['texto-25'] = 'Write the URL of the button 5'; $txt['texto-26'] = 'Write the URL of the button 6'; $txt['texto-28'] = 'Name button 1'; $txt['texto-29'] = 'Name button 2'; $txt['texto-30'] = 'Name button 3'; $txt['texto-31'] = 'Name button 4'; $txt['texto-32'] = 'Name button 5'; $txt['texto-33'] = 'Name button 6'; $txt['texto-34'] = 'Align Right'; $txt['texto-35'] = 'Align Right'; $txt['texto-36'] = 'Align Right'; $txt['texto-37'] = 'Align Right'; $txt['texto-38'] = 'Align Right'; $txt['texto-39'] = 'Align Right'; // End Adk Menu Buttons

I get this on the top of every page when I install this mod..
And in admin panel, all options come, but blank, there is no text written.

Any help is appreciate, I really want to get it working. I'm using smf 2.0.4.
Title: Re: Adk Menu Buttons
Post by: geogeo.gr on June 27, 2013, 02:06:36 AM
Obviously was an error in the installation. This text must be entered in file /Themes/default/languages/Modifications.english.php ή Modifications.english-utf8.php (check it).
I recommend remove and reinstall the mod again, and you see if in initial verification showed some problems.
Title: Re: Adk Menu Buttons
Post by: ukhalik2 on July 13, 2013, 06:36:48 AM
I have installed the mod, but these are showing up like that (see attachment).
I have tried clearing the cache, etc, but no change.. these are appearing like that only.


Please assist.
Regards
Title: Re: Adk Menu Buttons
Post by: studentforums on October 10, 2013, 07:52:06 AM
I installed adk menu buttons and it appears in the admin panel but when I try to use it no buttons appear.
What is wrong?
Title: Re: Adk Menu Buttons
Post by: studentforums on October 10, 2013, 08:12:29 AM
I am using core theme
Title: Re: Adk Menu Buttons
Post by: Adk-Team on October 14, 2013, 04:33:16 PM
He put the mod files in your theme?