Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: 2by2host on September 29, 2008, 07:56:45 PM

Title: Menu Buttons
Post by: 2by2host on September 29, 2008, 07:56:45 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1421)

This mod gives you the ability to create/edit/remove additional links to the external pages in your forum menu.
You can change style for each button.

Enjoy =)
Title: Re: Menu Buttons
Post by: damnitmike on September 29, 2008, 09:20:24 PM
Nice!

Can you give us a few examples of what kind of styles we can use?

Thanks!
Title: Re: Menu Buttons
Post by: Marcus Forsberg on September 30, 2008, 01:08:08 AM
Seriously, I was just going to create a mod like this :D

Good work, any way :)
Title: Re: Menu Buttons
Post by: TroyG on September 30, 2008, 12:24:51 PM
How do I remove

SMF customization services by 2by2host.com

At the bottom of my page
Title: Re: Menu Buttons
Post by: Chopper on September 30, 2008, 12:46:55 PM
This is a great mod :D. However, where it says "sort" no matter what number i put in there my new button always appears at the end?
Title: Re: Menu Buttons
Post by: busterone on September 30, 2008, 11:32:32 PM
Good Mod. It is working on the default theme as it should. I manually edited the index.template.php for my other 2 main themes and it does not show a button, but gives no errors in the log either. SMF 1.1.6 and I am using DefaultMC_113 and a custom theme- GreenDemons. Both are nothing more than the default with different .css files. Any ideas?
Title: Re: Menu Buttons
Post by: Rafferty on October 01, 2008, 12:02:30 AM
Buttons need to be placed in the menu bar not just at the end
Title: Re: Menu Buttons
Post by: xrunner on October 02, 2008, 08:31:42 AM
Quote from: Rafferty on October 01, 2008, 12:02:30 AM
Buttons need to be placed in the menu bar not just at the end

Agree, I would prefer the Logout button to remain always at the end, and what about the styles? You make no mention of how to use that.
Title: Re: Menu Buttons
Post by: busterone on October 02, 2008, 09:04:34 AM
I suspect there will be no answer or support for this mod here. This user has been here since March and has only posted 5 times. I suspect the OP expects us to follow the copyright link in the mod to his own forum. All well and good except have a look at this topic.
http://www.simplemachines.org/community/index.php?topic=250402.msg1620410#msg1620410 (http://www.simplemachines.org/community/index.php?topic=250402.msg1620410#msg1620410)
Title: Re: Menu Buttons
Post by: Marcus Forsberg on October 02, 2008, 09:08:13 AM
Hmm... I really don't like peoples who do not support there mods propably...
Title: Re: Menu Buttons
Post by: Rafferty on October 02, 2008, 09:20:43 AM
Seems the mod may be just a ploy to put his site & services on our forums, I noticed the ad and link at the foot of the forum pages after installation, Im not happy about that and have removed the mod. Thanks too for the interesting link Busterone, interesting reading.
Title: Re: Menu Buttons
Post by: TroyG on October 02, 2008, 09:58:21 AM
Quote from: TroyG on September 30, 2008, 12:24:51 PM
How do I remove

SMF customization services by 2by2host.com

At the bottom of my page

I just got it figured out. This how you do it.
Go to admin
Packages
uninstall menu buttons
then delete
now you download the mod ( your button )
Install it
And you are done
Problem solved

Title: Re: Menu Buttons
Post by: Rafferty on October 02, 2008, 10:05:10 AM
Your Button only allows one button doesnt it?
Title: Re: Menu Buttons
Post by: Marcus Forsberg on October 02, 2008, 02:33:58 PM
If you want a supported mod like this whit more features, ceep waiting, I was gonig to create on just as I saw this mod.
Title: Re: Menu Buttons
Post by: Bluben89 on October 02, 2008, 06:20:18 PM
I would really appreciate a mod where you can place more than one button in your menu bar, in whatever order you wanted without regard to advertising to external sites.

This would help those of us that are too slow in the head to do it manually ;)
Title: Re: Menu Buttons
Post by: busterone on October 02, 2008, 06:47:11 PM
Quote from: Nascar on October 02, 2008, 02:33:58 PM
If you want a supported mod like this whit more features, ceep waiting, I was gonig to create on just as I saw this mod.
Great, I will wait for yours. Thanks much!  :)
Title: Re: Menu Buttons
Post by: glen88 on October 03, 2008, 12:45:18 AM
i installed this mod on 1.1.6 and it installed fine but how do i actually access the page? so i can add a new button? sorry im new to this smf....
Title: Re: Menu Buttons
Post by: Rafferty on October 03, 2008, 01:30:46 AM
admin/configuration/menu links management
Title: Re: Menu Buttons
Post by: glen88 on October 03, 2008, 01:38:13 AM
i only see this

Features and Options
Server Settings
Current Theme
Themes and Layout

i also noticed when i went to install this mod it shows a demo picture and i see it has a link like what your saying but with mine its blank white... and i thought maybe my theme is stuffed so i tryed an other theme and its the same.. i dont get it.. and its not just this mod few others also
Title: Re: Menu Buttons
Post by: B.SkiLLs on October 03, 2008, 01:42:38 AM
Quote from: glen88 on October 03, 2008, 12:45:18 AM
i installed this mod on 1.1.6 and it installed fine but how do i actually access the page? so i can add a new button? sorry im new to this smf....

and if you can not see it from there where Rafferty said to, then try settings.php  your server setting page to english and see if you can see it then.
Title: Re: Menu Buttons
Post by: B.SkiLLs on October 03, 2008, 01:44:38 AM
if you can not access your server settings page then you need to CMod it to 777 in your FTP or file directory on your host (easiest  way)

that way you can access it right from your forum admin section with your server settings instead of doing it through the file itself.

Title: Re: Menu Buttons
Post by: B.SkiLLs on October 03, 2008, 01:44:58 AM
Quote from: busterone on October 02, 2008, 06:47:11 PM
Quote from: Nascar on October 02, 2008, 02:33:58 PM
If you want a supported mod like this whit more features, ceep waiting, I was gonig to create on just as I saw this mod.
Great, I will wait for yours. Thanks much!  :)

Title: Re: Menu Buttons
Post by: Rafferty on October 03, 2008, 02:18:29 AM
try default theme, most all mods are written for it
Title: Re: Menu Buttons
Post by: Sabre™ on October 05, 2008, 06:01:41 PM
In your index.template.php, move this code
/** start x-Links **/
if(isset($context['xlinks']))
foreach($context['xlinks'] as $button)
{
echo '
<td valign="top" class="maintab_back">
<a href="'.$button['href'].'" style="'.$button['style'].'" title="'.$button['title'].'"'.(($button['in_new'])?' target="_blank"':'').'>'.$button['name'].'</a>
</td>';
}
/** end x-Links **/


above/before the logout code directly before it.

This may/should solve the issue of your buttons appearing after the logout button.
I havent tested this, as I always manually add my buttons due to using a dropdown system.

But it wont hurt to try ;)
Just remember to backup your index.template  before you edit it, so you can easily return your edits if my suggestion doesnt work.

Good Luck :)
Title: Re: Menu Buttons
Post by: Rafferty on October 05, 2008, 08:05:12 PM
Worked, xlant Sabre
Title: Re: Menu Buttons
Post by: Sabre™ on October 05, 2008, 08:45:15 PM
Ok cool.
Glad it went without a hitch. :)

Quote from: TroyG on September 30, 2008, 12:24:51 PM
How do I remove

SMF customization services by 2by2host.com

At the bottom of my page

That sounds like the copyright.
I dont use this mod so I am not sure on that.
But if it is the copyright, unless you have received some sort of agreement with the mod author, You shouldnt remove it!
That is the small ask from the mod author, for using this mod free.
Otherwise you should remove the smf one also, and be damned to hell!! lol

No copyright from a mod author should be removed unless they allow it.
Its respect for them providing you with something free.
If you dont want it, then dont use the mod.

Nascars version will be different from this, and quite possibly wont have a copyright in the footer of the page, but maybe within the A/P, or not at all.
Time will reveal all ;)
Title: Re: Menu Buttons
Post by: genieuk on October 05, 2008, 08:59:12 PM
I am desperate for a mod like this as adding buttons to my menu is so difficult.

does this work with custom themes? and does it show like other buttons on custom theme? i mean not different colour or different background etc?

Mat
Title: Re: Menu Buttons
Post by: Nibogo on October 07, 2008, 10:23:59 PM
Nice mod really useful ^^
Title: Re: Menu Buttons
Post by: ascaland on October 07, 2008, 10:26:39 PM
Quote from: Chopper on September 30, 2008, 12:46:55 PM
This is a great mod :D. However, where it says "sort" no matter what number i put in there my new button always appears at the end?
If no one has said this already:

To fix this, just go into your index.template.php and sort out it's position. If it's at the end, then copy and paste the code in-between two other button's.

If you dont understand, then just post.
Title: Re: Menu Buttons
Post by: Sabre™ on October 07, 2008, 10:28:10 PM
Look up 5 posts and you'll see it has been spoken of  ;D
Title: Re: Menu Buttons
Post by: ascaland on October 07, 2008, 10:29:17 PM
Quote from: Sabre™ on October 07, 2008, 10:28:10 PM
Look up 5 posts and you'll see it has been spoken of  ;D
Hehe, I see you posted. Sorry.  :P
Title: Re: Menu Buttons
Post by: Afro on October 31, 2008, 04:32:26 AM
does this mod work with a custom theme or just default?
Title: Re: Menu Buttons
Post by: Sabre™ on November 01, 2008, 05:25:14 PM
It will work with any theme.
As long as you manually install it into your themes index.template lol  ;D

Install the mod, and insert this code in your themes index.template.php directly before your logout button code.
/** start x-Links **/
if(isset($context['xlinks']))
foreach($context['xlinks'] as $button)
{
echo '
<td valign="top" class="maintab_back">
<a href="'.$button['href'].'" style="'.$button['style'].'" title="'.$button['title'].'"'.(($button['in_new'])?' target="_blank"':'').'>'.$button['name'].'</a>
</td>';
}
/** end x-Links **/


There are a couple other edits you need to make to that template, and you'll find it by looking at the parser on [THIS] (http://custom.simplemachines.org/mods/index.php?mod=1421) page.
It is located to the right side of the page where it states "Manual Install Instructions for SMF"

Good luck. :)
Title: Re: Menu Buttons
Post by: Kat9119 on November 03, 2008, 12:32:09 PM
I tried installing this on the BackNBlack theme on 1.1.6, and did the edits to my theme file, but instead it removed the logout button and added a chat button that was a link, not a button, and it didn't fit in with the other buttons :(

So, I've uninstalled it.
Title: Re: Menu Buttons
Post by: Reverend Jeremiah on November 06, 2008, 05:23:57 PM
Well, the first thing I did was install this button program..because it is a nice mod and you can do more than one button. Yes the buttons are on the "right end" of the nav bar. The order of the buttons in your "Menu Link Management" is the order in the mod ONLY, not the entire Nav bar. Some people dont like that, I dont mind it.

I also hear people complaining about the copyright on the bottom. I dont normally do things like this, but I opened up my (./themes/default/index.template.php) file and did this:

Find

';
$twoby2host_copyrights = '<br /><a href="http://www.2by2host.com/services/simplemachines/">SMF customization services</a> by <a href="http://www.2by2host.com/">2by2host.com</a>';
echo '



And I customized the "a href" information to make it appear in favor for my website like this:


                                                 ';
      $twoby2host_copyrights = '<br /><a target="_blank"href="http://www.pqhost.com/">Jesus Christ Arcade © 2003 - Powered by P.Q.Host</a>';
echo '


Check my site to see what I mean (http://www.jesuschristarcade.com) because I just redirected his spam links to make my site look a bit better and link to the wonderful people of P.Q.Host - who I might add does not do underhanded crap like the maker of this mod did by putting his spam on EVERY page of your site just for you asking him for one button.

If you are pretty good at coding, then you can do all sorts of things with what I just showed you..hell, you can replace it with an image banner if you wanted.
Title: Re: Menu Buttons
Post by: metallica48423 on November 07, 2008, 03:33:37 PM
Please keep in mind that removing mod/theme copyrights may be a violation of any terms of use or any license that theme/mod is under.  By removing it, you open yourself up to legal action by the author if it is a requirement of use of their code.
Title: Re: Menu Buttons
Post by: Deprecated on November 07, 2008, 04:27:30 PM
It is an advertisement, not a copyright. Furthermore, there is no license stating terms of use so there is no good reason preventing you from removing the information.

What's worse, the modification violates SMF coding guidelines because the text strings are hard coded directly into the template file rather than being stated in a language file such as Modifications.english.php.

And yet even worse, this author has never supplied any meaningful support for his mods, and in fact has provided no support whatsoever, not even a single post.
Title: Re: Menu Buttons
Post by: Reverend Jeremiah on November 07, 2008, 04:44:26 PM
Thankyou Deprecated, you even pointed out extra reasons why what the maker of this mod is just flat out WRONG for doing this. Anyone can look at my site and see that I do not remove copyrights no matter how many are down there. But what was put in this mod WASNT a copyright. This was an outright spam to get his hosting company advertised "hard coded" onto as many websites as he could.

No, if the mod maker has a problem with this, then I will GLADLY take the mod off of my site. But, honestly, that wasnt a copyright mark.. it was an ugly spam. Im sure most people on this board who have tried this mod will agree with me.

Besides, this guy obviously doesnt care because he doesnt even support his mod.. unless you pay him $75 an hour, of course. That goes against the spirit of free CMS if you ask me.
Title: Re: Menu Buttons
Post by: Sabre™ on November 07, 2008, 05:31:51 PM
Plain and simple.
If you dont like how the mod is offered, then dont use it.

It doesnt matter if the author is a warmonger from the rubbish lands of Endor.
His term for using his mod and his effort for free, is that little addon he applied.

I am not agreeing with his method, therefore I do not use this mod.
But the brilliant staff here at SMF have approved the availability for this mod, and as far as I know, it isnt an easy task.
I trust their judgement, and believe nobody has a right to alter anyone elses "copyright", no matter HOW much you disagree with it.

Plain and simple.
If you dont like how the mod is offered, then dont use it.
Title: Re: Menu Buttons
Post by: Deprecated on November 07, 2008, 06:30:31 PM
I didn't say the mod author was wrong in adding his advertising blurb. I just said it isn't a copyright notice, if for no other reason than it doesn't include the word "copyright." Nor is it spam. It's just an advertisement, plain and simple. If you don't like it, either take it out or don't use the modification.

My comments represent my own personal opinion and do not in any way constitute the official view of SMF.
Title: Re: Menu Buttons
Post by: Reverend Jeremiah on November 07, 2008, 06:45:21 PM
Quote from: Sabre™ on November 07, 2008, 05:31:51 PM
Plain and simple.
If you dont like how the mod is offered, then dont use it.

Fine, I will put a link to his site on my website so that he gets his credit. Honestly, If I were to make something like this I would not do such a thing as he did. And Saber, this entire forum is full of people who dont just accept the mods the way they are offered. Many mods I have used have strings on how to tweek them here or there, some times drastically different from the original. In fact I just got the "Rotating Header" mod and changed the code considerably to make it more user friendly for code heads. I posted it on Cyclons thread and he appreciated what I had done. According to what you say, Saber, I should have just uninstalled it and went along my merry way (or at least thats the context I am feeling from your post). I dont want to step on anyones toes in this forum. I am more than ready to help someone with a problem if I am capable. Isnt that what this support forum supposed to be about?

Respectfully
Title: Re: Menu Buttons
Post by: Reverend Jeremiah on November 07, 2008, 06:59:12 PM
No..come to think of it... Im just going to dump the mod all together. I dont want anyone thinking that Im going to remove their copyrights (and that wasnt a copyright). But, regardless, its getting uninstalled and deleted fair and square.
Title: Re: Menu Buttons
Post by: Sabre™ on November 07, 2008, 07:01:06 PM
Indeed buddy.
As I stated, I do not agree with it myself, so I do not use this mod.
You may tweak a mod anyway you see fit, but...  when he states that it is his copyright, licensed or not, it is his copyright.

      <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;">';
if(!empty($twoby2host_copyrights))
{
echo $twoby2host_copyrights;
unset($twoby2host_copyrights);
}
echo '</span>


I see the mention of copyright in this part.
I havent gone through this mod, and dont intend to, so I do not know what else is lying within.

Another way is to learn how to manually add buttons with a link to the page you'd like to view. This is how I set my nav menu when I need new buttons.
Im a complete newb when it comes to the bowl of code, but adding tabs took probably 20 mins to learn.
It isnt difficult to do once you have something to go off! ;D </hint>

Dont let such a little thing get on your nerves buddy, there are thousands of people here to help you out with anything you need :)
Within reason of course lol ;)
Title: Re: Menu Buttons
Post by: metallica48423 on November 07, 2008, 07:03:06 PM
Deprecated -- if it is found that it violates the coding guidelines, then it should be reviewed by the customization team.  Have you reported it to them? ;)
Title: Re: Menu Buttons
Post by: Reverend Jeremiah on November 07, 2008, 07:11:03 PM
Quote from: Sabre™ on November 07, 2008, 07:01:06 PM
Dont let such a little thing get on your nerves buddy, there are thousands of people here to help you out with anything you need :)
Within reason of course lol ;)

Oh no, Im not mad or frustrated at all. Thats always been my #1 gripe about forums/chatrooms/emails/etc.. You can not hear or feel the emotion from the people you are communicating with. Im a really easy going person thats almost always willing to help people.  :)
Title: Re: Menu Buttons
Post by: Sabre™ on November 07, 2008, 07:16:19 PM
Great to hear mate... I didnt mean you were coming off as such, I was merely mentioning incase it happens lol ;)

Since this has sparked a bit of interest, I have just now had a quick squiz at this mod.
Its not too bad actually.
A shame it has that minuscule issue we are discussing.

Has anyone contacted the author and asked for a slight .....  rearrangement of code?
The AP where you make the changes would be good enough to display that code ?? ??
Or another author may have a similar mod in the books
Title: Re: Menu Buttons
Post by: Deprecated on November 07, 2008, 07:16:22 PM
Quote from: Sabre™ on November 07, 2008, 07:01:06 PM
Indeed buddy.
As I stated, I do not agree with it myself, so I do not use this mod.
You may tweak a mod anyway you see fit, but...  when he states that it is his copyright, licensed or not, it is his copyright.

I see the mention of copyright in this part.
I havent gone through this mod, and dont intend to, so I do not know what else is lying within.

Sabre, just because "code" has labels using words like that does not constitute a copyright mark. It is not a copyright mark unless it says "copyright."
Title: Re: Menu Buttons
Post by: Sabre™ on November 07, 2008, 07:19:08 PM
Ok.
Well, I will now opt out of this convo, as I do not want to engage in anything I dont even use myself.
My friendships are not worth the stress :)     Correct? ;)

Keep smiling peeps, its not worth a headache?? ??   lol
Title: Re: Menu Buttons
Post by: Deprecated on November 07, 2008, 07:25:37 PM
Quote from: metallica48423 on November 07, 2008, 07:03:06 PM
Deprecated -- if it is found that it violates the coding guidelines, then it should be reviewed by the customization team.  Have you reported it to them? ;)

I see the winkie. :)

Officially, the Customization Team does not review already approved modification packages except in the case of security vulnerabilities. We do not have the resources to go back over already plowed ground and take second looks at already approved packages. Maybe this mod should not have been approved for the reason I indicated, but that is ancient history now.

Oh, Justin, and this: :P :P :P

:) -Greg
Title: Re: Menu Buttons
Post by: Deprecated on November 07, 2008, 07:32:25 PM
Sabre, it appears to me with a quick look at the code that the author made it intentionally difficult to remove his advertisement. Moving the advert text to the language strings would make it pretty easy to get rid of the commercial, so I suspect that the author would not be amenable to making the indicated changes.

And besides, the author has made only two posts here at SMF!!! Let me repeat this. The person who wrote this mod package has posted ONLY TWICE in all of recorded history!

He has had 3 automated posts made as a result of the Custom Team approving his mod and the automated software made the posts like the OP in our current discussion. The other two posts are trivial and inconsequential.

This is not the sign of somebody who has a community interest in SMF or the SMF software. In my opinion it is indicative of somebody who is helping themselves.
Title: Re: Menu Buttons
Post by: Reverend Jeremiah on November 07, 2008, 09:09:57 PM
By the way Deprecated, Im using your "bakers dozen" and "The rules" mods and I LOVE them! Great job on those.
Title: Re: Menu Buttons
Post by: busterone on November 09, 2008, 12:44:05 AM
This is why I pointed this out on the first page. I don't post very often myself, but read a lot and am very observant.  It doesn't seem to me that the author has any concern for the SMF community whatsoever. I tried this mod out of curiosity and was not impressed. 

It may not seem be very time efficient  to do as Sabre mentioned- to manually code menu tabs, especially in my case with 11 member selectable themes installed. That is a lot of coding on 11 index templates, but to me it is worth knowing that they are in conformity to the rest of the SMF structure.  Besides, even with this mod installed, all non default themes must still be manually edited. It seems a better choice to learn to manually code a menu and not depend upon a modification.  :)
Title: Re: Menu Buttons
Post by: Sabre™ on November 09, 2008, 01:05:59 AM
You buddy deserve a medal modding 11 themes!! lol
I usually run 2 other than the default, and that does me! lol
Im certainly not as patient and giving as you, but I make up for it with my irresistible charm and handsome appearance :D :D  lol
Yep, as I stated earlier, it didnt take me long to figure out how to add links/tabs to my menu, and I guarantee that once youve done it a few times, you fly through them pretty easily.
But first you must be charmingly handsome like me, or you'd have no chance!!  lol  ;)
Title: Re: Menu Buttons
Post by: busterone on November 09, 2008, 11:57:38 AM
Naturally. Much like my avvie, who is also my real dog.  :D Coding 11 themes is slightly time consuming I can assure you. I am going to eliminate about half of those by the end of the year. I have my forum set for default for newcomers and guests, and give everyone a range of choices for themes. There are a few that do not have much use, so it will be time to trim some soon.
Title: Re: Menu Buttons
Post by: knownassociate on November 09, 2008, 03:05:08 PM
Quote from: busterone on November 09, 2008, 11:57:38 AM
Naturally. Much like my avvie, who is also my real dog.  :D Coding 11 themes is slightly time consuming I can assure you. I am going to eliminate about half of those by the end of the year. I have my forum set for default for newcomers and guests, and give everyone a range of choices for themes. There are a few that do not have much use, so it will be time to trim some soon.

Yeah, like that horrendous pink one...which is a slightly twisted reminder of that very twisted pink site... ;D
Title: Re: Menu Buttons
Post by: MultiformeIngegno on November 12, 2008, 05:51:01 PM
Hi! Thanks for this MOD!! :D
Are you planning to release a SMF 2.04b compatible version? :(
Title: Re: Menu Buttons
Post by: Deprecated on November 12, 2008, 05:55:50 PM
The author of this mod has made only 2 posts in the 7 months since he has joined SMF. The chances of him answering you are pretty slim.

I'd say don't plan on any upgrades.
Title: Re: Menu Buttons
Post by: Reverend Jeremiah on November 12, 2008, 11:54:50 PM
LOL..Deprecated...You are cracking me up hard over here  :D
Title: Re: Menu Buttons
Post by: Deprecated on November 13, 2008, 01:06:14 AM
Good Jer. I am an amateur comedian. If they told me I couldn't be funny I'd quit the site in a New York minute.

I don't get paid for this. My amusement is my only payment. Take that away and you wouldn't see me here either. At all.

But no worry. Nobody has told me I can't be funny. Eh, Amy? ;)
Title: Re: Menu Buttons
Post by: Mark S on November 23, 2008, 01:55:35 PM
smf v1.1.7
I chose this topic because my issue arose while attempting to install, uninstall this specific mod.  If I have posted this request for help on the wrong board, I apologize and will re-post it were I am directed to so. 

I am not a coder.  I am like a lot of newbies who simply find the code and add or replace the given mod codes and can do it accurately.  I have done a few mods succesfully and I was confident that I did this one correctly as well.

However, after manually installing the mod, I got several parsing errors involving the template file.  The first begandwith that inserted "advertisement" code and after that, all the errors revovled around the mod code insertions.   I decided to dump the mod.  After removing the entire modification from all the files involved and the additional files icluded in the zip, I still got parsing errors.  I checked my the code again and could not identify anythig I missed, but when I followed the parsing error highlighted code lines, it identified a ; and </td> which were located before the code I had inserted and did not appear to fit in with the original code.  I continued to get additional parsing errors so I decided to just restore my last, clean back up of the smf database.

After doing so, when clicking on the bookmark for smf, I got the following message:

Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.

I waitied a half hour with the same results and re-loaded the database back-up again.

This was at 5 am.  At noon, I tried the link to my smf again and I was given the log-in screen for my FlashChat which is included in my smf database.  The flashChat operated fine, but when I try to open the smf program, I still get the same message.  I also have coppermine, which is bridged to smf, just as my FlashChat is, and coppermine will not load either, even though it is in a separate database.

I would have thought that restoring the clean database would have cured the problem.  I don't know what to do.

- Mark

Title: Re: Menu Buttons
Post by: Mark S on November 23, 2008, 02:44:08 PM
p.s.

I'm thinking there may be files which are not overwritten with the database restore and need to be removed prior to the restore?

- Mark
Title: Re: Menu Buttons
Post by: Mark S on November 23, 2008, 02:52:30 PM
p.s.s.

Pardon me if I am thinking out loud, but I'm trying to add anything which may (or may not) be helpful to resolve this problem.

If I delete only the .php files which were associated with this mod using my cPanel file manager and then do the database restore, that should correct it?

- Mark
Title: Re: Menu Buttons
Post by: Deprecated on November 23, 2008, 03:27:54 PM
I doubt your database is involved at all. I think you hosed your files. One quick fix would be to upload fresh copies of all the files you changed, but this will also remove any modifications that installed on those files.

Note also that if other mods are involved, sometimes partially uninstalling them (as above) can break your forum. If that happens the ultimate solution is to copy over all your files with fresh files (except Settings.php and Settings_bak.php). This will remove ALL your mods so it is not something you would want to do if there is any other alternative.

I'm pretty sure it's your files and not your database. That's good too, because files can always be fixed. Your database is the soul of your forum (all the posts and topics and members etc.) and if that gets broken your forum would be dead and gone forever. ... I'm sure it's a file problem.
Title: Re: Menu Buttons
Post by: Reverend Jeremiah on November 23, 2008, 05:46:17 PM
I would suggest, if you arent very good with code, to remove this mod all together from your site. This mod was apparently created to place an advertisement of the makers hosting site onto every site that instals his mod. The maker of this mod doesnt care one bit about any of your coding problems unless you are willing to pay $75 an hour for his services at 2by2host. I have since removed this mod myself for reasons other than yours that have already been hashed out on this thread that I have (somewhat reluctantly) agreed is correct.

I would suggest that you upload your backup index file and leave it be...unless you didnt backup the file before you manually modded it, meaning you are F#&$ed if it wasnt your first mod installed.

Honestly guys, they need to remove this mod if the mod maker cares nothing about supporting his own mods and does other underhanded crap. My opinion is that the SMF community thumb their nose at this 2by2host and his "strings attached" mods.
Title: Re: Menu Buttons
Post by: Mark S on November 23, 2008, 06:20:47 PM
Guys, thank you so much for your feedback.  While I was "thinking out loud", I inductively reasoned that the dbase was not involved and it was the php files.  I didn't have a clear understanding of how these worked prior to this ocurrence, but now I do.

The php files are like the numeric buttons on your phone.  Each one has a function, which is to "input [ # ]", where [ # ] equals a specific value (or array) contained in the database. 

I restored my main directory backup and everything was fixed. 

I greatly appreciate you're having taken the time to help me with what I am certain is about as fundamental an issue as it gets, without being downgrading or impatient with my lack of knowledge and experience.  What I've learned from this, with your confirmation and assistance will help me invaluably in the future.

P.S.  I tried to use the "donate to my beer fund" but I keep getting a, "there's problem with this account" thing.  The best I can do to thank you for your help and respectful attitude is to buy you a six pack so, please let me know how to do it.

Thank you,

- Mark
Title: Sooo...
Post by: Mark S on November 23, 2008, 08:32:01 PM
For v 1.1.7, what's the link for a good button maker?

Thanks,

- Mark
Title: Re: Menu Buttons
Post by: Deprecated on November 23, 2008, 08:43:18 PM
http://www.marcovanveelen.nl/buttongenerator/

There you go dude! Enjoy! :)

p.s. please reply to this topic and tell us how that site works. I haven't used it yet.
Title: Re: Menu Buttons
Post by: Mark S on November 25, 2008, 12:34:48 PM
The site works very well!  It even has a color box to select your font colors.  The only downside is that you can't make a button without the button icon with the 3 smf selections and the icons are either posting option or messaging related and not nav bar.  Like, no home, chat, gallery, etc. type icons.
Title: Re: Menu Buttons
Post by: bullbreedluverz on December 02, 2008, 02:13:53 PM
i needed the extra buttons so i just edited the link and added the link to my actual host, if im gunna have an advertisement for a host site it might aswell be the 1 i use and am happy with lol
Title: Re: Menu Buttons
Post by: Sabre™ on December 02, 2008, 05:30:39 PM
 >:(

:-X
Title: Re: Menu Buttons
Post by: johnduffy on February 02, 2009, 11:03:47 AM
Hi Folks, hope you can help? I installed the mod and tried all the above, but STILL the links management is not in the configuration box!  I have V 1.1.7 , the default theme and English setting. What else should I check?
Title: Re: Menu Buttons
Post by: Rehash D Internet on February 05, 2009, 05:21:32 PM
I'm getting an error upon installation for index.php. Can you help? I'm using 1.1.8 and the theme 'More Style'.
Title: Re: Menu Buttons
Post by: slowforthecones on March 19, 2009, 10:57:45 PM
this guy is a flat out piece of s---- for adding his advertisement in there.  I am removing that mod and will be finding an alternate mod that does the same job.  this guy should be banned from smf.
Title: Re: Menu Buttons
Post by: Rehash D Internet on April 21, 2009, 04:23:20 AM
Which guy, what advertisement?
Title: Re: Menu Buttons
Post by: Sabre™ on April 21, 2009, 06:45:08 AM
I believe he is refering to the author of this mod, and how links to his site are added to your index.template
Title: Re: Menu Buttons
Post by: rgecy on May 02, 2009, 01:37:42 AM
OK, this topic has gone awry!  I think the mod is pretty good and with a few of the suggestions here is even better.

I moved the x-links to before the login button section and I removed his little ad at the bottom.

The mod works like a charm.

But I was wondering if anyone has figured out the styles?

RGecy
Title: Re: Menu Buttons
Post by: rgecy on May 02, 2009, 01:53:49 AM
Well, I am going to answer my own question here.  I fiddled around with the styles and have got the color style to work.

Basically "color:red" will make the link red.  I assume you use standard web color names.  I will post any other style features I find.

RGecy
Title: Re: Menu Buttons
Post by: yura_mdj on May 02, 2009, 05:32:33 PM
mod is very useful!

how do I integrate it into my theme?

my forum version 1.1.8 my theme babilon

in the subject used a button (*.gif format)

I want to assign each link a separate button
Title: Re: Menu Buttons
Post by: Galaxy Computers on June 12, 2009, 05:08:43 PM
Is there a forum site I can take a look at. and is there a mod for Version 2.0 RC1-1?
Title: Re: Menu Buttons
Post by: 2by2host on June 15, 2009, 03:35:58 PM
Quote from: mtechama on June 12, 2009, 05:08:43 PM
Is there a forum site I can take a look at. and is there a mod for Version 2.0 RC1-1?
Unfortunately, the current version of the mod is not supported by 2.0 RC1-1. However in the nearest future we are going to enable this support.

Regards,
2by2host.com
Title: Re: Menu Buttons
Post by: 2by2host on June 15, 2009, 03:43:51 PM
Quote from: yura_mdj on May 02, 2009, 05:32:33 PMmod is very useful!
how do I integrate it into my theme?
my forum version 1.1.8 my theme babilon
in the subject used a button (*.gif format)
I want to assign each link a separate button
Thank you for your nice words! The graphic buttons should be created manually. The mod can be installed on a non-default theme using the instructions from the manual installation guide which is located on the mod's page. If you're not comfortable doing that yourself, please PM us for a price quote.

Regards,
2by2host.com
Title: Re: Menu Buttons
Post by: ww898 on July 08, 2009, 08:28:20 AM
1. I found troubles with this mod to support UFT8 for sql table xLink - I need other language to enter for fields.
2. Can you fix this mode to support position choosing for menu item - for example after HOME or before LOGOUT?
Title: Re: Menu Buttons
Post by: 2by2host on July 14, 2009, 03:34:00 PM
Quote from: ww898 on July 08, 2009, 08:28:20 AM
1. I found troubles with this mod to support UFT8 for sql table xLink - I need other language to enter for fields.
2. Can you fix this mode to support position choosing for menu item - for example after HOME or before LOGOUT?
Hello ww898, we are going to fix it soon. Please don't forget to sign up for the mod update notifications.

Regards,
2by2host.com team
Title: Re: Menu Buttons
Post by: akbora on July 14, 2009, 04:21:53 PM
We look your update to 2.x please your all mod are great...
Title: Re: Menu Buttons
Post by: LHW on July 19, 2009, 09:55:42 AM
We're using v1.1.10.  When we create a new Menu Button, we get the following in the Error Log:

http://.../tcf/index.php?action=xlinks;sa=add;
8: Undefined index: in_new
File: /.../tcf/Sources/xLinks.php
Line: 98


It only happens when you first create them, and everything else works fine, so it's not that big of a deal.  I just thought you'd like to know.

Thanks!
Title: Re: Menu Buttons
Post by: Spovik on July 29, 2009, 01:37:35 AM
I, too, like the mod.  A couple of things I'm looking for in it, and I don't know how hard it would be to change/update.  In a perfect world, I'd like it to be located before the LOGOUT button, be a drop down, and only be visible to registered users.

I can live without the cosmetics, but being able to restrict it based on the user's registration level would be ideal for my use.  Thanks!

SMF 1.1.10
Title: Re: Menu Buttons
Post by: clewis789 on August 04, 2009, 02:09:36 PM
does this mod only work for the default theme or all the themes ?
Title: Re: Menu Buttons
Post by: clewis789 on August 11, 2009, 04:46:13 AM
Can someone answer me please, i am using this theme http://dlb-network.com/forums/index.php (http://dlb-network.com/forums/index.php)
Title: Re: Menu Buttons
Post by: dilila on September 02, 2009, 03:59:41 PM
Yes it works on every theme I have tried it on, you just have to edit the necessary files for each theme accordingly to get it to work on those other than Core.

On the note of this mod, I think it's fantastic and thank you for providing it. If I may ask one request....I would really like to see it updated for 2.0 RC1.2

Thank you for taking the time to read this post,

Dilila
Title: Re: Menu Buttons
Post by: Turkishe on September 17, 2009, 06:25:03 AM
TURKISH TRANSLATION =

Dosya = xLinks.turkish

<?php
$txt
['x-links_manage'] 'Menu Linkleri Yönetimi';
$txt['x-links_title'] 'Menu Linkleri Yönetim Fişi';
$txt['x-links_desc'] 'Forum menüsüne harici linkler ekleme modu';

$txt['x-links_main'] 'Linkleri Yönet';
$txt['x-links_add'] 'Yeni Link Ekle';
$txt['x-links_add_title']= 'Yeni buton ekle';

$txt['x-links_table']['del'] 'Sil';
$txt['x-links_table']['sort'] 'Sıra';
$txt['x-links_table']['name'] 'İsim';
$txt['x-links_table']['href'] 'Link';
$txt['x-links_table']['title'] 'Başlık';
$txt['x-links_table']['style'] 'Stil';
$txt['x-links_table']['target'] 'Yeni pencerede';
$txt['x-links_table']['empty'] 'Düzenlenmiş link yok';
$txt['x-links_table']['save'] 'Kaydet';
$txt['x-links_table']['add'] 'Ekle';
?>
Title: Re: Menu Buttons
Post by: -=[Vyorel]=- on September 28, 2009, 12:27:33 PM
For SMF 2.0 RC1.2 ?
Please!!! O:)
Title: Re: Menu Buttons
Post by: 2by2host on September 29, 2009, 11:41:06 AM
Quote from: -=[Vyorel]=- on September 28, 2009, 12:27:33 PM
For SMF 2.0 RC1.2 ?
Please!!! O:)

It is in the works for an update. We have very little free time ;-(
Title: Re: Menu Buttons
Post by: Chas Large on October 20, 2009, 02:02:20 PM
Hi I hope someone can help me. I have been using the Menu Buttons successfully on my forum for quite some time and it works very well. So thanks for the mod.

I have just installed Simple Portal 2.3.1 (http://custom.simplemachines.org/mods/index.php?mod=1104) on the forum and that works OK too.

One of the features of SP is that you can either have it run in Front Page mode, where the index page is replaced with a portal page or in StandAlone mode where a separate file can be used as the default web page on a web site. This page (renamed index.php) calls another page SSI.php, which reproduces the Home portal at the website whilst the forum page (index) remains in the separate forum folder.

If I use Front Page mode I get the added Menu Buttons on both the Home (portal) and the Forum (index) pages. But if I use StandAlone mode I only get the extra menu buttons on the Forum index page, not on the Home portal page.

I have asked SP for their help and they say that the mod needs adding to the SSI.php file and I should ask the mod developer for assistance. I've looked at it but cannot see exactly where I need to add the mod additions to make it work. Can you advise if anyone has come across this Portal mod and been able to update it to work correctly with the Menu Buttons mod in StandAlone mode.

Attached is the SSI.php file so that anyone wishing to help with this may be able to modify it for me. I would be most grateful as I need to have the house rules, web links and donations buttons on the portal page for all to see.

You can see the forum at www.fiftyplusforum.co.uk

Many thanks in advance of any help offered.

Kind Regards

Chas
Title: Re: Menu Buttons
Post by: 2by2host on October 23, 2009, 11:20:07 AM
Quote from: Chas_Large on October 20, 2009, 02:02:20 PM
Hi I hope someone can help me. I have been using the Menu Buttons successfully on my forum for quite some time and it works very well. So thanks for the mod.

I have just installed Simple Portal 2.3.1 (http://custom.simplemachines.org/mods/index.php?mod=1104) on the forum and that works OK too.

One of the features of SP is that you can either have it run in Front Page mode, where the index page is replaced with a portal page or in StandAlone mode where a separate file can be used as the default web page on a web site. This page (renamed index.php) calls another page SSI.php, which reproduces the Home portal at the website whilst the forum page (index) remains in the separate forum folder.

If I use Front Page mode I get the added Menu Buttons on both the Home (portal) and the Forum (index) pages. But if I use StandAlone mode I only get the extra menu buttons on the Forum index page, not on the Home portal page.

I have asked SP for their help and they say that the mod needs adding to the SSI.php file and I should ask the mod developer for assistance. I've looked at it but cannot see exactly where I need to add the mod additions to make it work. Can you advise if anyone has come across this Portal mod and been able to update it to work correctly with the Menu Buttons mod in StandAlone mode.

Attached is the SSI.php file so that anyone wishing to help with this may be able to modify it for me. I would be most grateful as I need to have the house rules, web links and donations buttons on the portal page for all to see.

You can see the forum at www.fiftyplusforum.co.uk

Many thanks in advance of any help offered.

Kind Regards

Chas

Hi Chas, we are going to do some testing with this and let you know what needs to be done to get this working.

Regards,
2by2host.com team
Title: Re: Menu Buttons
Post by: Chas Large on October 23, 2009, 04:58:59 PM
Quote from: 2by2host on October 23, 2009, 11:20:07 AM
...
Hi Chas, we are going to do some testing with this and let you know what needs to be done to get this working.

Regards,
2by2host.com team
Well with the help of the guys from Simple Portal we have fixed the problem.

In the SSI.php apply the following two manual edits:

Find:
require_once($sourcedir . '/Security.php');

Add After:

/** next x-Links **/
if (file_exists($sourcedir . '/LoadxLinks.php'))
require_once($sourcedir . '/LoadxLinks.php');


Find:
loadPermissions();

Add After:
/** next x-Links **/
if (function_exists("loadxLinks"))
loadxLinks();


Then perform a slight edit on the SOURCES - LoadxLinks.php file.

Find:
SELECT * FROM `{$db_prefix}xlinks`

Replace with
SELECT * FROM {$db_prefix}xlinks

Effectively, remove the two ` characters from the line.

The menu now appears on the Portal page correctly.
Title: Re: Menu Buttons
Post by: 2by2host on October 30, 2009, 09:30:14 AM
Quote from: Chas_Large on October 23, 2009, 04:58:59 PM
Quote from: 2by2host on October 23, 2009, 11:20:07 AM
...
Hi Chas, we are going to do some testing with this and let you know what needs to be done to get this working.

Regards,
2by2host.com team
Well with the help of the guys from Simple Portal we have fixed the problem.

In the SSI.php apply the following two manual edits:

Find:
require_once($sourcedir . '/Security.php');

Add After:

/** next x-Links **/
if (file_exists($sourcedir . '/LoadxLinks.php'))
require_once($sourcedir . '/LoadxLinks.php');


Find:
loadPermissions();

Add After:
/** next x-Links **/
if (function_exists("loadxLinks"))
loadxLinks();


Then perform a slight edit on the SOURCES - LoadxLinks.php file.

Find:
SELECT * FROM `{$db_prefix}xlinks`

Replace with
SELECT * FROM {$db_prefix}xlinks

Effectively, remove the two ` characters from the line.

The menu now appears on the Portal page correctly.

This is great!!! We will add this fix to the new version of the mod.

Regards,
2by2host.com team
Title: Re: Menu Buttons
Post by: ChaosEnergy on December 27, 2009, 11:54:12 AM
will there be a version for smf 2 rc2 ?
Title: Re: Menu Buttons
Post by: Surfez Couvert on January 12, 2010, 02:47:47 PM
FRENCH-UTF8 TRANSLATION :

<?php
$txt
['x-links_manage']   = 'Gestion du Menu des Liens';
$txt['x-links_title']   = 'Plugin de Gestion du Menu des Liens';
$txt['x-links_desc']   = 'Mod pour ajouter au forum des liens externes';

$txt['x-links_main']   = 'Gérer les liens';
$txt['x-links_add']   = 'Ajouter un Nouveau Lien';
$txt['x-links_add_title']= 'Ajouter un nouveau Bouton';

$txt['x-links_table']['del']   = 'Supprimer';
$txt['x-links_table']['sort']   = 'Trier';
$txt['x-links_table']['name']   = 'Nom';
$txt['x-links_table']['href']   = 'Lien';
$txt['x-links_table']['title']   = 'Titre';
$txt['x-links_table']['style']   = 'Style';
$txt['x-links_table']['target']   = 'Dans une nouvelle fenêtre';
$txt['x-links_table']['empty']   = 'Il n\'y a pas encore de liens';
$txt['x-links_table']['save']   = 'Sauver';
$txt['x-links_table']['add']   = 'Ajouter';
?>
Title: Re: Menu Buttons
Post by: ~DS~ on January 12, 2010, 03:23:52 PM
Is there a way to hid the existing SMF's default menu buttons? I have got so many.
Title: Re: Menu Buttons
Post by: David Starr on January 14, 2010, 04:43:33 PM
Installed and deleted this mod.  :-[

Between the outrageous prices to fix their own mod, and the unwanted addition the mod made of an ad for 2by2host on the bottom of my site, I will not be trying any more mods from 2by2host.   Shame on you!  >:(

This mod is a great idea, and I hope a more reputable  coder will come up with a version soon.

Title: Re: Menu Buttons
Post by: IdanC on January 14, 2010, 05:42:12 PM
for utf-8 support, edit LoadxLinks.php

replace


while($row = $func_fetch_assoc($qres)) {

$link = unserialize($row['href']);

$context['xlinks'][$row['id']] = array(

'sort' => htmlentities($row['sort']),

'name' => htmlentities($row['name']),

'href' => $link['href'],

'in_new'=> $link['in_new'],

'title' => htmlentities($row['title']),

'style' => htmlentities($row['style'])

);



with
while($row = $func_fetch_assoc($qres)) {

$link = unserialize($row['href']);

$context['xlinks'][$row['id']] = array(

'sort' => htmlentities($row['sort']),

'name' => htmlentities($row['name'],ENT_COMPAT,'UTF-8'),

'href' => $link['href'],

'in_new'=> $link['in_new'],

'title' => htmlentities($row['title'],ENT_COMPAT,'UTF-8'),

'style' => htmlentities($row['style'])

);
Title: Re: Menu Buttons
Post by: IdanC on January 14, 2010, 08:01:03 PM
to change the location of the new buttons from the end of the list to a custom location -

edit subs.php

change

$buttons[$last_button_idx] = array(
'title' => $button['name'],
'href' => $_href_injection,
'show' => true,
);
}
$buttons['logout']['is_last'] = false;
$buttons[$last_button_idx]['is_last'] = true;


with

$new_buttons[$last_button_idx] = array(
'title' => $button['name'],
'href' => $_href_injection,
'show' => true,
);

$start_new_buttons = 2;
array_splice($buttons, $start_new_buttons, 0, $new_buttons);
}
//$buttons['logout']['is_last'] = false;
//$buttons[$last_button_idx]['is_last'] = true;


just remember to change the value of start_new_buttons
Title: Re: Menu Buttons
Post by: Stigmartyr on January 19, 2010, 05:38:34 AM
lol I just SAW the mention of shameless advertising and deleted this mod from the desktop.  :o
Title: Re: Menu Buttons
Post by: SN on January 19, 2010, 08:19:43 AM
This is a good Mod, but not worthy of having a copyright at the bottom i dont think... only big mods should do that IMO

Like a portal, gallery etc
Title: Re: Menu Buttons
Post by: Stigmartyr on January 20, 2010, 11:36:59 AM
Quote from: SN on January 19, 2010, 08:19:43 AM
This is a good Mod, but not worthy of having a copyright at the bottom i dont think... only big mods should do that IMO

Like a portal, gallery etc

Looks like the author has his head in the sand, too
Title: Re: Menu Buttons
Post by: 2by2host on January 29, 2010, 04:05:54 PM
Quote from: ChaosEnergy on December 27, 2009, 11:54:12 AM
will there be a version for smf 2 rc2 ?

The new version of the mod should now work with the RC2

Regards,
2by2host.com team
Title: Re: Menu Buttons
Post by: 2by2host on January 29, 2010, 04:07:34 PM
Quote from: Surfez Couvert on January 12, 2010, 02:47:47 PM
FRENCH-UTF8 TRANSLATION :
...

Thank you for the translation, we'll add it to the future release.

Regards,
2by2host.com team
Title: Re: Menu Buttons
Post by: 2by2host on January 29, 2010, 04:16:31 PM
Quote from: Dismal Shadow on January 12, 2010, 03:23:52 PM
Is there a way to hid the existing SMF's default menu buttons? I have got so many.

This mod doesn't support that. You need to edit the template of your forum.

Regards,
2by2host.com team
Title: Re: Menu Buttons
Post by: 2by2host on January 29, 2010, 04:19:57 PM
Quote from: David Starr on January 14, 2010, 04:43:33 PM
Installed and deleted this mod.  :-[

Between the outrageous prices to fix their own mod, and the unwanted addition the mod made of an ad for 2by2host on the bottom of my site, I will not be trying any more mods from 2by2host.   Shame on you!  >:(

This mod is a great idea, and I hope a more reputable  coder will come up with a version soon.



Shame on you David for using it. Thank you.

Regards,
2by2host.com team
Title: Re: Menu Buttons
Post by: 2by2host on January 29, 2010, 04:21:50 PM
Quote from: IdanC on January 14, 2010, 05:42:12 PM
for utf-8 support, edit LoadxLinks.php

IdanC, thank you for sharing the code :)
Title: Re: Menu Buttons
Post by: 2by2host on January 29, 2010, 04:24:42 PM
Quote from: Bugo on January 16, 2010, 01:25:31 AM
Russian language files

Thank you for doing this, Bugo.
We'll add it in the future release of the mod:)

Regards,
2by2host.com team
Title: Re: Menu Buttons
Post by: 2by2host on January 29, 2010, 04:26:16 PM
Quote from: Stigmartyr on January 19, 2010, 05:38:34 AM
lol I just SAW the mention of shameless advertising and deleted this mod from the desktop.  :o

We are sorry to see you removed (we assume our logo?) from your desktop. However, we appreciate that you have placed our ad on your desktop, wow! We also put our logos on our own desktops ;)

Regards,
2by2host.com team
Title: Re: Menu Buttons
Post by: Melbosa on April 16, 2010, 06:32:25 PM
Love this mod BTW... Suggested Addition: wish I could just add them based on what Category (Sub Forum) you were in.
Title: Re: Menu Buttons
Post by: Nikel on May 05, 2010, 05:05:42 PM
Quote from: TroyG on October 02, 2008, 09:58:21 AM
Quote from: TroyG on September 30, 2008, 12:24:51 PM
How do I remove

SMF customization services by 2by2host.com

At the bottom of my page

I just got it figured out. This how you do it.
Go to admin
Packages
uninstall menu buttons
then delete
now you download the mod ( your button )
Install it
And you are done
Problem solved
A link to the mod would be great, I can't find it and I really need a mod that would add at least one button on the navigation bar, only one.
Title: Re: Menu Buttons
Post by: Bugo on May 18, 2010, 06:21:00 AM
SMF 2.0 RC2-RC3, error log:
Undefined index: description in GenericMenu.template.php
Line: 284

Undefined index: title in GenericMenu.template.php
Line: 273
Title: Re: Menu Buttons
Post by: Siirist on June 13, 2010, 11:14:30 AM
Hello,

Installed in SMF ver2.0 RC3, with these mods
1.     Custom Greeting Mod      1.1.1      June 10, 2010, 05:05:32 PM
2.    Karma Buttons    1.1    June 10, 2010, 05:02:23 PM
3.    Menu Buttons    1.1    June 11, 2010, 10:33:40 PM
4.    Printbutton    1.0    June 11, 2010, 11:20:35 AM
5.    Sortable Packages (and Installed Time)    1.3    June 10, 2010, 04:58:22 PM

and these Themes
SMF Default Theme - Curve
Core Theme
Hediye2.0

using the Package Manager without any problems.

This mod functions with SMF Curve and SMF Core, however, it does not function with !Hediye theme.

So, I don't know if this is a Mod problem or a !Hediye theme problem (http://www.simplemachines.org/community/index.php?topic=317851.0).

Thanks in advance,
Cloud
Title: Re: Menu Buttons
Post by: gene_sc on July 03, 2010, 02:25:27 PM
I installed the mod and nothing happened. I set up to buttons with url's and the buttons do not show up.

Using Version SMF 1.1.11

Any suggestions would be helpfull

Thanks
Title: Re: Menu Buttons
Post by: Siirist on July 03, 2010, 04:12:45 PM
gene_sc

I see this is your first post for support and you did a great job by mentioning what version you are using.

When you installed, did you get ANY failures? Also, what theme are you using?

Cloud
Title: Re: Menu Buttons
Post by: gene_sc on July 03, 2010, 04:31:22 PM
I am trying to use the Leviathan theme. It has so many good features and the layout fits our existing forums well. I own a 4000 member forum and it is run on MegaBBS. It is .asp and has run on MySql data base now for 5 years. Not one problem until a month or so back when our host changed platforms, Now we get random page not found and allot of script errors.

I felt that getting away from Microsoft supported products would be to our advantage over the long term so we are testing the SMF on a new server. Functionality and navigation is very importand for the migration of our membership.

So yes I did find errors whem I finally uninstalled the program. I need to be able to add buttons for navigation to our library materials, shopping mall and a few others.

Anyway you can help with the button issue would be welcome

Thanks
Gene
Title: Re: Menu Buttons
Post by: Siirist on July 03, 2010, 04:42:06 PM
gene_sc,

Quote
So yes I did find errors when I finally uninstalled the program.

Did you mean when you installed?
If you meant uninstalled, are you talking about uninstalling the mod Menu Buttons?
or are you talking about the whole SMF program?

It is important to know what we are talking about.

Cloud
Title: Re: Menu Buttons
Post by: gene_sc on July 03, 2010, 04:58:53 PM
What I did was, I installed it with the default theme. It did work with that. But the Leviathan theme and other It does not work with.  I was using the theme Leviathan when I uninstalled it. It uninstalled with errors.  No errors were seen on intallation with default theme.

The SMF program was installed by me through the Host CPanel. I upgraded it from 1.16 to 1.1.11. everything went smoothly. I did the button package install with SMF 1.1.11 installed.

Title: Re: Menu Buttons
Post by: Siirist on July 03, 2010, 05:25:19 PM
Very well spoken.

Okay, so here's the deal. In MY experience, with Menu Buttons, and using "DIFFERENT" themes,

I had to go to my host and edit the file

FOR EXAMPLE ONLY
First go to themes -> default -> languages -> Modifications.english.php
There should be something to identify the words you are using
like this
$txt['showAwards'] = 'Show Awards';

If you have the "Cloud" theme, you need to go to that theme -> languages -> and see if it has Modifications.english.php   If it doesn't, which it probably won't, I believe you will have to talk to the theme author

Of Course to do any this, the Menu Button Mod has to be installed, AND WHEN INSTALLING make sure to install in OTHER THEMES and hope your theme is listed and it will make the changes for you.

Be Well,
Cloud
Title: Re: Menu Buttons
Post by: gene_sc on July 03, 2010, 05:42:20 PM
Thanks Cloud for you support and help. I will come back and post my results.

Thanks again

Gnee
Title: Re: Menu Buttons
Post by: gene_sc on July 05, 2010, 02:34:47 PM
Well I know now I am not a coder...:) Trying to figure out how to add button links to the Leviathan Theme has nearly blinded me..:) I have attempted to alter some code but with not luck. I need to hire someone to do the changes I need. It is very important that I get the look and feel the members of the forum like. I have found it in the Leviathan theme but need link buttons to finish it up.

Andy help would be appreciated.

Thanks
Title: Re: Menu Buttons
Post by: rock8mail on July 30, 2010, 03:55:20 AM
This Mod can't support chinese language / utf8_general.
Even after i modified the DB still doesn't show, so i suspect is the php code that does the display giving problem ie. translation into/support multi-language.
Title: Re: Menu Buttons
Post by: JungleBunny on November 01, 2010, 02:07:57 PM
Only a BIG THANKS for this great mod !!! :)
Time is gone with the f#u#c#k editing of index.template :=))))
Title: Re: Menu Buttons
Post by: Shades. on November 06, 2010, 02:03:41 PM
Cool! This mod works with RC4! :)
Title: Re: Menu Buttons
Post by: Bugo on November 15, 2010, 06:31:58 PM
Fix for normal UTF-8 text in link names and titles:
<file name="$sourcedir/LoadxLinks.php">
<operation>
<search position="before"><![CDATA[
function loadxLinks()
{
global $db_prefix, $context, $smcFunc]]></search>
<add><![CDATA[, $modSettings, $txt;
$context['character_set'] = empty($modSettings['global_character_set']) ? $txt['lang_character_set'] : $modSettings['global_character_set']]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
if($func_num_rows($qres) > 0) {

while($row = $func_fetch_assoc($qres)) {
$link = unserialize($row['href']);
$context['xlinks'][$row['id']] = array(
'sort' => htmlentities($row['sort']),
'name' => htmlentities($row['name']),
'href' => $link['href'],
'in_new'=> $link['in_new'],
'title' => htmlentities($row['title']),
'style' => htmlentities($row['style'])
);
}
]]></search>
<add><![CDATA[
if($func_num_rows($qres) > 0) {

while($row = $func_fetch_assoc($qres)) {
$link = unserialize($row['href']);
$context['xlinks'][$row['id']] = array(
'sort' => htmlentities($row['sort']),
'name' => htmlentities($row['name'], ENT_COMPAT, $context['character_set']),
'href' => $link['href'],
'in_new'=> $link['in_new'],
'title' => htmlentities($row['title'], ENT_COMPAT, $context['character_set']),
'style' => htmlentities($row['style'])
);
}
]]></add>
</operation>
</file>


Fix for normal menu in Admin:
<file name="$sourcedir/xLinks.php">
<operation>
<search position="replace"><![CDATA[
$context['admin_tabs'] = array(
'title' => $txt['x-links_manage'],
'description' => $txt['x-links_desc'],
'tabs' => array(
'main' => array(
'title' => $txt['x-links_main'],
'href' => $scripturl . '?action=xlinks',
),
'add' => array(
'title' => $txt['x-links_add'],
'href' => $scripturl . '?action=xlinks;sa=add',
)
)
);
]]></search>
<add><![CDATA[
$context[$context['admin_menu_name']]['tab_data'] = array(
'title' => $txt['x-links_title'],
'description' => $txt['x-links_desc'],
'tabs' => array(
'main' => array(
'title' => $txt['x-links_main'],
'href' => $scripturl . '?action=xlinks',
),
'add' => array(
'title' => $txt['x-links_add'],
'href' => $scripturl . '?action=xlinks;sa=add',
)
)
);
]]></add>
</operation>
</file>
Title: Re: Menu Buttons
Post by: scvoyager on November 27, 2010, 07:39:55 AM
Could be a nice mod but since I have 30 plus mods that would make my forum be more copyright than content if every minor mod did this. I will wait for one of the other coders come up with one that would have a drop down list with the option to open in a new window.
Title: Re: Menu Buttons
Post by: Maree on January 28, 2011, 08:38:57 PM
I am very much the newbie but would appreciate any help  :)

I have installed this mod and while it works, the button it adds to my menu looks different and rather mismatches the other buttons.

I have smf 1.1.11, I am using a non-default theme (but other posts on this thread suggest it should still work).

The theme I am using is FSProRed (http://custom.simplemachines.org/themes/index.php?lemma=1114)

I tried adding the appropriate code to my theme's index.template.php (I have attached this too, my code changes are on it).

The link works, but the button doesn't look the same as the others, it just looks weird and out of place  :-\

Any help would be appreciated  :)
Title: Re: Menu Buttons
Post by: hvsportsman on March 24, 2011, 10:56:55 PM
Does this mod work with 2.0RC5? Thanks.
Title: Re: Menu Buttons
Post by: savy118 on June 22, 2011, 05:51:15 PM
Hi guys im in two minds weather to give this mod some thought, im reading in some posts that its spam, i clicked the link to the website and is some sort of web server, my question is ,is that site a scam or spaming site as i wouldnt want people thinking im helping advertise corrupt spamming sites.

altho i wasnt told of advertising before download, i feel its some sort of tresspassing with link there but dont mind to much if his site is ok.

if there are any other mods like this with sub menues could someone give me the name of mod zip file ive searched all terms of sub,menue,child etc but wondering if there is a complete different name to a mod like this.

thanks

savy  :)

Title: Re: Menu Buttons
Post by: MATTEK on June 22, 2011, 11:17:28 PM
Does this work for 2.9 Gold and is there a way to group menu options in drop downs?
Title: Re: Menu Buttons
Post by: savy118 on June 23, 2011, 10:42:11 AM
Quote from: hvsportsman on March 24, 2011, 10:56:55 PM
Does this mod work with 2.0RC5? Thanks.
@hvsportsman yes it does work with 2.0rc5 i had it on mine, but deleted it cause i havent a clue although its explained in first post , i still dunno how to insert code properly, would be good we had a control pannel to do quick edits.

Title: Re: Menu Buttons
Post by: Impsat-1 on April 25, 2014, 07:01:45 PM
Mmm..., hey Guys.... If any need here the MOD For SMF 2.0.7 with "spanish_latin-utf8.php" lang, working fine... Great Mod, Thanks 2by2host

Thanks & Regards
Have a Great Time 8).-
Title: Re: Menu Buttons
Post by: Jade Elizabeth on December 16, 2015, 08:21:46 PM
Quote from: IdanC on January 14, 2010, 08:01:03 PM
to change the location of the new buttons from the end of the list to a custom location -

edit subs.php

change

$buttons[$last_button_idx] = array(
'title' => $button['name'],
'href' => $_href_injection,
'show' => true,
);
}
$buttons['logout']['is_last'] = false;
$buttons[$last_button_idx]['is_last'] = true;


with

$new_buttons[$last_button_idx] = array(
'title' => $button['name'],
'href' => $_href_injection,
'show' => true,
);

$start_new_buttons = 2;
array_splice($buttons, $start_new_buttons, 0, $new_buttons);
}
//$buttons['logout']['is_last'] = false;
//$buttons[$last_button_idx]['is_last'] = true;


just remember to change the value of start_new_buttons

Not sure I understand this....

Can anyone please advise how to move the login/logout/register buttons to the end instead of having the links from this mod at the end?
Title: Re: Menu Buttons
Post by: Kitarist on December 22, 2015, 04:37:06 AM
Nice mod :)
Title: Re: Menu Buttons
Post by: Methen on January 07, 2017, 11:07:14 AM

Hello, Iam trying to get a mod to work on my site, I tried writing the creator, But never got a reply

Iam using version smf version  2.0.12

The mod iam using is the buttons mod located here:
http://custom.simplemachines.org/mods/index.php?mod=1421

The problem that iam having is when I try to create a link to google for example it puts in http://allbridges.info/test/smf/www.google.com instead of just the google link, I checked several times but it just does the same thing over and over any ideas what may be causing this ?
Title: Re: Menu Buttons
Post by: showngo on August 01, 2017, 08:17:40 AM
 see it looks like no further support Here. 
Is there any update for PHP7 or should I install a different button mod?
Title: Re: Menu Buttons
Post by: Ronald_1938 on August 01, 2017, 08:49:59 AM
Quote from: showngo on August 01, 2017, 08:17:40 AM
see it looks like no further support Here. 
Is there any update for PHP7 or should I install a different button mod?

Here is a more update Menu http://custom.simplemachines.org/mods/index.php?mod=3310  I use this one on my forum..
Title: Re: Menu Buttons
Post by: showngo on August 15, 2017, 04:37:53 AM
After the PHP update, I can not successfully uninstall the menu button mod(It shows all the errors if you attempt to uninstall).  With the amount of traffic on the site, I can #1 leave it and delete 18k errors a day or try to fix this.

Here is the error line   "list(, $lastmod) = each(array_reverse($twoby2host_modlist));" 

I have NO PROBLEM leaving their "credits" on the bottom of the page but would like to remove whatever internal link is for this.  They made it very clear that If anyone wants a fix for the free mod, they will have to find it in their budget to pay them. 

Yes I would delete it , Im not sure if rolling back my PHP to 5.6 from 7.0 will allow it and then update again?    I just cant have site crashed like updating Simple audio (A different topic posted in that area)
Title: Re: Menu Buttons
Post by: Ronald_1938 on August 15, 2017, 08:26:43 AM
You will have to manually correct the errors then remove the menu mod, or run repair_settings.php and kick all the mod.'s out, then when done reinstall the mod.'s one by one, only the ones you want..
Title: Re: Menu Buttons
Post by: showngo on August 15, 2017, 01:53:18 PM
Thanks for the Repair_settings help. 
Title: Re: Menu Buttons
Post by: Ronald_1938 on August 15, 2017, 02:07:25 PM
Quote from: showngo on August 15, 2017, 01:53:18 PM
Thanks for the Repair_settings help.

Run that and it will remove all the mod.'s, then when your ready just reinstall the ones you need..Works for me..I just used it to change my forum over from http:// to https://
Title: Re: Menu Buttons
Post by: Arantor on August 15, 2017, 02:18:31 PM
I don't think repair_settings will remove this mod. :(
Title: Re: Menu Buttons
Post by: showngo on August 15, 2017, 02:22:28 PM
That would suck.  This is what I get with them now.     I would love to get get the error log fixed.
Title: Re: Menu Buttons
Post by: vbgamer45 on August 15, 2017, 02:47:59 PM
You may have to manually uninstall the mod. upload the mod to http://smfhacks.com/smf-package-parser.html  then follow the edits and reverse them to uninstall.
Title: Re: Menu Buttons
Post by: Arantor on August 15, 2017, 02:55:16 PM
I don't know if this will work for fixing the actual warning but you can try it. It doesn't help that you never actually said what the error message was... so I'm guessing what it's complaining about since the PHP 7 upgrade but based on what's changed in the language, I think this is a reasonable bet...

Try changing:

list(, $lastmod) = each(array_reverse($twoby2host_modlist));

to

$lastmod = array_pop($twoby2host_modlist);

This will be in the top level index.php.

Note that if you do ever play around uninstalling the mod, you will need to patch the uninstaller before trying to uninstall it, and the way they do copyright handling is both insidious and unnecessarily convoluted (not to mention, likely to break for so many reasons)
Title: Re: Menu Buttons
Post by: showngo on August 15, 2017, 03:18:23 PM
I will give that a try, this is what the wording is on the error log

Only variables should be passed by reference
Title: Re: Menu Buttons
Post by: Arantor on August 15, 2017, 03:22:53 PM
Yeah, I figured that's what it was since each() isn't meant to accept byrefs any more and this is going away in newer versions of PHP (you get two separate warnings on PHP 7.2 for this one line of code)
Title: Re: Menu Buttons
Post by: Ronald_1938 on August 15, 2017, 06:36:27 PM
Quote from: Arantor on August 15, 2017, 02:18:31 PM
I don't think repair_settings will remove this mod. :(

Interesting Arantor..I was always told the repair_settings.php would remove all skins and mod.'s. I have done this maybe three times now and it seems to do the trick..But like you say, it may not remove this one mod.. Last time I did this, I did notice maybe two mod.,s' still working on the forum and yet it shows not installed, and today they are still not installed, but functioning well and no errors..

I still have a lot to learn about running SMF
Title: Re: Menu Buttons
Post by: Arantor on August 15, 2017, 06:48:01 PM
Oh, it'll mark everything uninstalled and potentially remove hook mods but this mod uses none of that.
Title: Re: Menu Buttons
Post by: Ronald_1938 on August 15, 2017, 07:29:47 PM
Quote from: Arantor on August 15, 2017, 06:48:01 PM
Oh, it'll mark everything uninstalled and potentially remove hook mods but this mod uses none of that.

Thanks, good to know and I'll remember this in the future, all mod.'s are different then.