Menu Editor Lite

Started by Matthew K., March 06, 2012, 01:05:26 PM

Previous topic - Next topic

Burke ♞ Knight

Strange, I have this mod installed on every one of my sites, all were 2.0.8 and now are 2.0.9 and not have that issue.
Have you tried to go to the default theme, and see if they show then?

SilverKnight

Quote from: ♞ Burke Knight ♞ on December 16, 2014, 06:15:18 PM
Strange, I have this mod installed on every one of my sites, all were 2.0.8 and now are 2.0.9 and not have that issue.
Have you tried to go to the default theme, and see if they show then?

Tried it with the default theme and it appears, not sure why my custom theme is hiding it.. bizarre. Maybe something todo with the bootstrap integration i did..


Edit:

With further analysis, its being hidden for whatever reason, i don't know why. Perhaps because both elements are shown as hidden at first bootstrap by default does  not instigate one to be visible. I am not sure.

<div id="internal_link_group"[b] class="hidden"[/b] style="margin-top: 5px;">
<div class="floatleft" style="width: 30%;">
<label for="internal_link">
<span class="bold">Internal Link:</span>
</label>
<div class="smalltext">Specify the action to link to.</div>
</div>
<div class="floatright" style="text-align: left; width: 70%;">
<select class="big_select" name="internal_link" id="internal_link">
<option value="">(Select Internal Link)&nbsp;</option>
<!-- GUEST ONLY LINKS -->
<optgroup label="Guest Only Links::"><option value="?action=login">Login</option><option value="?action=register">Register</option></optgroup>
<!-- MEMBER ONLY LINKS -->
<optgroup label="Member Only Links:"><option value="?action=admin">Admin</option><option value="?action=logout">Logout</option><option value="?action=moderate">Moderate</option><option value="?action=pm">Personal Messages</option><option value="?action=profile">Profile</option><option value="?action=unread">Unread Posts</option><option value="?action=unreadreplies">Unread Replies</option></optgroup>
<!-- OTHER INTERNAL LINKS -->
<optgroup label="------- Other -------"><option value="?action=calendar">Calendar</option><option value="?action=clock">Clock</option><option value="?action=groups">Groups</option><option value="?action=help">Help</option><option value="?action=mlist">Memberlist</option><option value="?action=search">Search</option><option value="?action=stats">Forum Stats</option><option value="?action=who">Who's Online</option><option value="?action=.xml;type=rss">RSS Feed</option>
<option value="01001001010011000100110001001101">Forum Home</option>
</optgroup>
</select>
</div>
<br class="clear">
</div>


css for hidden class in bootstrap:

.hidden {
display: none !important;
visibility: hidden !important;
}

ge master

I just wanted to say thanks for this mod. Absolutely fantastic! A 'must have' for sure!

Matthew K.

Quote from: SilverKnight on December 18, 2014, 06:15:59 PM
Quote from: ♞ Burke Knight ♞ on December 16, 2014, 06:15:18 PM
Strange, I have this mod installed on every one of my sites, all were 2.0.8 and now are 2.0.9 and not have that issue.
Have you tried to go to the default theme, and see if they show then?

Tried it with the default theme and it appears, not sure why my custom theme is hiding it.. bizarre. Maybe something todo with the bootstrap integration i did..


Edit:

With further analysis, its being hidden for whatever reason, i don't know why. Perhaps because both elements are shown as hidden at first bootstrap by default does  not instigate one to be visible. I am not sure.

<div id="internal_link_group"[b] class="hidden"[/b] style="margin-top: 5px;">
<div class="floatleft" style="width: 30%;">
<label for="internal_link">
<span class="bold">Internal Link:</span>
</label>
<div class="smalltext">Specify the action to link to.</div>
</div>
<div class="floatright" style="text-align: left; width: 70%;">
<select class="big_select" name="internal_link" id="internal_link">
<option value="">(Select Internal Link)&nbsp;</option>
<!-- GUEST ONLY LINKS -->
<optgroup label="Guest Only Links::"><option value="?action=login">Login</option><option value="?action=register">Register</option></optgroup>
<!-- MEMBER ONLY LINKS -->
<optgroup label="Member Only Links:"><option value="?action=admin">Admin</option><option value="?action=logout">Logout</option><option value="?action=moderate">Moderate</option><option value="?action=pm">Personal Messages</option><option value="?action=profile">Profile</option><option value="?action=unread">Unread Posts</option><option value="?action=unreadreplies">Unread Replies</option></optgroup>
<!-- OTHER INTERNAL LINKS -->
<optgroup label="------- Other -------"><option value="?action=calendar">Calendar</option><option value="?action=clock">Clock</option><option value="?action=groups">Groups</option><option value="?action=help">Help</option><option value="?action=mlist">Memberlist</option><option value="?action=search">Search</option><option value="?action=stats">Forum Stats</option><option value="?action=who">Who's Online</option><option value="?action=.xml;type=rss">RSS Feed</option>
<option value="01001001010011000100110001001101">Forum Home</option>
</optgroup>
</select>
</div>
<br class="clear">
</div>


css for hidden class in bootstrap:

.hidden {
display: none !important;
visibility: hidden !important;
}

That definitely could be causing the issue. You could change all instances of Menu Editor's "hidden" class to "mep_hidden" and it would fix that for you. (including the CSS file: .hidden -> .mep_hidden and class="hidden" -> class="mep_hidden")

Quote from: ge master on December 23, 2014, 02:53:41 AM
I just wanted to say thanks for this mod. Absolutely fantastic! A 'must have' for sure!
Thank you kindly :)

Destrogath

Hey all,

I added a custom button that links to an external site. I would like this button to only be visible to a specific membergroup, how can I do this? I checked subs.php, and a few other places, not having any luck.

Antechinus

Hey Doodle, I have a suggestion. Your mod loads jQ, but doesn't check to see if it's already loaded by custom themes. How about throwing in an extra check to sort that?

Bruce the Shark

I had similar issue as Silver Knight a while back.
I did use this mod and my logout button disappeared on me, so i uninstalled the mod. I dont know why and i used another mod to add extra button to my navigation menu.
Not to complicate matter here furthur, i just never reported this issue

Chipicao

#427
Hi!

Is there any way to set a string from the DB as the name of a menu item?

For example instead of "Profile" I want to have the actual username.
I could do this my modifying Subs.php
'profile' => array(
'title' => $context['user']['name'],


But how to do it with Menu Editor?

Edit:
I managed to do "something" by modifying \menu_source\resources\main.php:
if ($menu_editor['actual'][$data['name']]['name'] == 'Profile') {
$menu_editor['actual'][$data['name']]['name'] = $context['user']['name'];
}


It seems to work, but as I'm not a PHP programmer, I'm sure there's a better way to do this.
Perhaps an if condition that checks if the menu item name begins with "$context"?

Edit2: I found a much better way by using Greybrow's modification from here
if ($value['href'] == $scripturl . '?action=profile')
$title = $context['user']['name'];


So thank you Greybrow, and of course Thank you very much Labradoodle-360 for this awesome mod!

Matthew K.

Quote from: Destrogath on January 08, 2015, 09:01:18 PM
Hey all,

I added a custom button that links to an external site. I would like this button to only be visible to a specific membergroup, how can I do this? I checked subs.php, and a few other places, not having any luck.
Not possible in Menu Editor Lite. That's one of the Menu Editor Pro features.

Quote from: Antechinus on January 09, 2015, 03:08:19 PM
Hey Doodle, I have a suggestion. Your mod loads jQ, but doesn't check to see if it's already loaded by custom themes. How about throwing in an extra check to sort that?
That's a great idea. It's done that way in Menu Editor Pro, not sure why it wasn't in Menu Editor Lite. I agree :P

Quote from: Chipicao on January 24, 2015, 05:31:37 AM
Hi!

Is there any way to set a string from the DB as the name of a menu item?

For example instead of "Profile" I want to have the actual username.
I could do this my modifying Subs.php
'profile' => array(
'title' => $context['user']['name'],


But how to do it with Menu Editor?

Edit:
I managed to do "something" by modifying \menu_source\resources\main.php:
if ($menu_editor['actual'][$data['name']]['name'] == 'Profile') {
$menu_editor['actual'][$data['name']]['name'] = $context['user']['name'];
}


It seems to work, but as I'm not a PHP programmer, I'm sure there's a better way to do this.
Perhaps an if condition that checks if the menu item name begins with "$context"?

Edit2: I found a much better way by using Greybrow's modification from here
if ($value['href'] == $scripturl . '?action=profile')
$title = $context['user']['name'];


So thank you Greybrow, and of course Thank you very much Labradoodle-360 for this awesome mod!
That's probably the easiest way to do it. And you're very welcome! :)

Miker1029

Hey, I searched here for this and didn't find anything, SOOO Here goes..

My Question is Rather a Simple one, Is there a Way Of Creating Buttons to have a Variable in the Link...

My Problem Is that ALL My Edits I Do On Localhost (With Xampp), So say When I go to a Custom Button it Goes to "www.Mysite.com/Whatever", So it puts me back online with my Live forum... I've trashed it once when I didn't realize it happened...

Is there a way to set the Button to say "{ROOTHOME}/Whatever"  That way it will go to whatever the Server Config Settings Are?!?!?

Thanks,

Mike

Kindred

definitely not with the free version...   probably not with the paid version
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Miker1029

Quote from: Kindred on May 08, 2015, 02:27:08 PM
definitely not with the free version...   probably not with the paid version

Lol, OK, But THAT Would Make the PRO Version BAD!!!

AE1PT

There does not appear to be anyone home over at the hxxp:smfhacks.com [nonactive] support forum, so I will try posting this here!  Although this thread is primarily concerning the "Lite" version, I might think that resolution of the problem would be the same for either.  A similar issue was posted some bit back in this thread, yet the "solution" proposed was vague and inconclusive.

As seen in the image below, the icons are displaying at the top of the menu and submenu list boxes.  The major change to the template index.css (Wrap) was to increase the size of the header box to accommodate the site logo, and to push the menu display font to 14pt in order for older readers (the bulk of the membership) to see it larger natively.  Changing the font back to 11 does not solve the problem.

If I uncheck the vertical align:top in both of the inline css instructions, the icons fall back to their proper, inline display.  But I am completely baffled how to find somewhere that this instruction is made.  I have run through the ./default/css/index.css and ./default/css/menu-editor-pro/main.css files to no avail.  I understand enough about coding to make obvious function and style changes--darned if I can iron this one out.

Any suggestions?  I found reference to this sort of issue here:

http://www.simplemachines.org/community/index.php?topic=470478.360

but it did not help as there were really no pointers except for looking in the main.css file.




Miker1029

Ok I've run into a NEW Problem, I'm trying to Set up a "Button" > "Grandchild Button" > "Great Grandchildbutton", Works Fine for the 1st Great G.C. I go to add a Second Great G.C. And it gives me an error saying it already exits, No I've Deleted the Grandchild Button and started over from the beginning and it still does it no matter what I put the Name of the Button, Then I go to Modify the Supposed "Existing" button and it's blank, I entered 5 for the Name (Curious) and clicked Modify (In the Error Block) and it to me to the Moderate Menu?!?!?!

Anyone else run into this?? And or does anyone know how to fix it?

Here's the Drill down: Downloads > 5.x.y. Android > Stable and the dropdown here would list all the types of builds...

See Screenshots...

Any help Appreciated...

Mike

EDIT: The Last Pic is what you get when you Click the Modify button in the error window...

sangham.net

Hope your are fine Labradoodle.

Would it be possible to give text-strings instead of text?

Kindred

no...   this pulls from the database, not a text string file
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

sangham.net

Thanks Mr Kindred, is there a "simple" way to change it in the php's or would some coding be necessary?

Kindred

some fairly major coding...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

sangham.net

Thanks for your care, Mr Kindred!

OCJ

http://www.simplemachines.org/community/index.php?topic=470478.msg3773113#msg3773113


I have this problem now with the link input box not displaying. Im using Redsy theme installed from the beginning before any mods.

If you switch back to default curve theme and do menu edits it works, then switch themes back to custom.

Is this a javascript problem?

Advertisement: