6 Custom buttons / tabs and menu's (upto 4)

Started by ɔɔɔɔɔɔuɥoɾ, July 26, 2010, 03:35:28 PM

Previous topic - Next topic

wizedavis

i have a problem after installing this mod. only admins see it and other members don't see the menus. please help

TheListener

Quote from: wizedavis on July 26, 2011, 02:18:30 PM
i have a problem after installing this mod. only admins see it and other members don't see the menus. please help

Have you checked your permissions?

wizedavis

i never knew i could give permissions to mods or menus. please tell me how to set the permissions so other members can see the menus.
thanks

TheListener

Will need to know which version of smf you are using.


TheListener

First thing you should do is upgrade.

The permissions is under members within the admin.

wizedavis


r2d2-trader

maybe u remember my post how to combine ur mod with the Menu Icons mod => http://www.simplemachines.org/community/index.php?topic=392714.msg2979999#msg2979999

it would be great if you would modify ur mod to add custom menu icons for every button. Would you mind to think about that? Would be great.

thx Rob
"Aller Anfang ist leicht, und die letzten Stufen werden am schwersten und seltensten erstiegen."
Johann Wolfgang von Goethe

Inti31

#308
@r2d2-trader
okay, I did that (see testforum)- but to be honest: is is not only that - you've to think also about other things which need an icon like SimplePortal (Administrator-SimplePortal), the forum icon, gallery, contact page, bookmark, googlemap, etc. whatever you have in your header...

to see all all I've done use 'Test' and '12345678'

shot:

cheers Inti31

maybe I create a package which combines both things - will have a look to find some time in the evening...
my forum
my testforum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

r2d2-trader

@Inti31

that looks similar how i have done it. But i did it manually - and for every new button i need to do some work in the subs.php. To automise the Administration for these mods there should be a field for the folder of the images and a combolist or checkbox to choose the icon - or a field for the name of the icon-file. Maybe it should also be combined with menu_order_mod. This mod 'finds' all buttons autmatically for sorting them. Maybe it is easier to extend this mod.

Just suggestions - would be great to get a working solution.

Maybe you can give me some tips how to build a mod? I've done many integrations of mods into the SMF-Forums, but i've never build a mod. Where can i learn how to build a mod for smf?

thx in advance Rob
"Aller Anfang ist leicht, und die letzten Stufen werden am schwersten und seltensten erstiegen."
Johann Wolfgang von Goethe

Matthew K.

Or just wait for me to release Menu Editor :P Which will have every feature for the menu you can think of. Should be coming later this year. It's next on my list after a current project (a big one).

If you want to learn how to write a mod, check out the coding guidelines: http://wiki.simplemachines.org/smf/Customization_coding_guidelines

Second, you'll want to look at how packages work, package-info.xml, and modifications.xml, and so forth.

Inti31

@Labradoodle-360
nice to hear - guess I can wait for  ;)
my error log is now full of messages for each button and submenus (x_x)
8: Undefined index: label_subcustombuttonsx_x in /sources/Subs.php
also in
8: Undefined index: settings  in Sources/GoogleMap20Integration.php

Think it is not as easy - because you've to think about "all mods" which have a button in the menu like I said:
bookmark, googlemap, these 6 buttons with its menu's, gallery, ...

@rob - Labradoodle-360 has already mentioned it - have a look to package-info.xml - this is the "setup" file which contains all steps the paket-manager runs through.
the "modification.xml" work in that matter:
<file name="$sourcedir/Subs.php"> // means which file should be modified
<operation>
<search position="replace">......abcdefg....</search> // look in Subs.php for "......abcdefg...." ("replace" could also be "before" or "after")
<add>......1234567....</add>
</operation>

in short: look in Subs.php and find "......abcdefg...." and replace it with "......1234567...."
that's all...
when using the packet-manager and you get a critical error - in most cases it means that STRING is not found in the file.
also if there are spaces missing - ex: search for "   abc" and the line contains " abc" - this is an error.
my forum
my testforum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

Brother Bill

I'm looking for something similar to this mod that will work with the Bean theme 2.0.1. Not having much luck with the search. Can anyone point me in a direction that might help, or is this theme just too new yet?

TheListener

Similar to this mod?

A link to the theme would help.

Brother Bill

Sorry, new here and not familiar with protocol.

http://custom.simplemachines.org/themes/index.php?lemma=2146

It's a Curve variation called Bean, the author is Chep, but I'm not able to find any mods for the theme. Thanks for any help you can provide.

TheListener

Quote from: Brother Bill on October 27, 2011, 03:02:53 PM
Sorry, new here and not familiar with protocol.

http://custom.simplemachines.org/themes/index.php?lemma=2146

It's a Curve variation called Bean, the author is Chep, but I'm not able to find any mods for the theme. Thanks for any help you can provide.

as long as the mod states 2.0 or 2.0.1 then any mod can be installed on the theme.

Brother Bill

I'll give it another try. I got it to install last time, had the setup interface, but nothing changed on the screen. I only filled in one button, maybe I need to do more. Let you know, thanks.

TheListener

I did notice the theme you are using is RC5.

I'd ask the theme author if he plans on updating first.

Brother Bill

I'm not having much luck. Kind of got my signals crossed on the earlier post. I've tried this one a couple of times and get this error:
QuoteAn Error Has Occurred!

You cannot download or install new packages because the Packages directory or one of the files in it are not writable!
The properties of my Packages directory and all of the files in it are writable. I've also tried one from the Simple Machines Third-party Mod Site.

Custom Top Menu - Version:  1.3 - Author:  smp420

No luck there either. It's not that big of a deal, I'll wait a bit until I get to know my way around a little better. Thanks anyway.

nemzeti

#319
hi
I installed a custom button, it works, but only the admin can see the costumized button, a normal user can't see it, and I don't know why? can u help me please?
(I use SMF 2.0)

Advertisement: