Welcome to Geeklog, Anonymous Saturday, December 28 2024 @ 07:25 am EST
Geeklog Forums
Minor tweak
Theophile
Anonymous
I'm using the media gallery plugin and it had created a text link somehwere in the header. But I have added an icon for it in the header and would like to remove the whole "cell" the text link appears in. To see what I mean, go to http://monopedilos.com
Centered in a second red box is "Media Gallery" and I would like to at least remove the text if not the whole box. Thanks!
Centered in a second red box is "Media Gallery" and I would like to at least remove the text if not the whole box. Thanks!
6
7
Quote
Status: offline
mevans
Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
OK, I just gave a solution, but it was the wrong one
there are two ways to remove the "Media Gallery" string. The first is in your theme. It is putting it there. There is a tag in the template for PLG menus. You can remove it.
The second is to remove the option from functions.inc in plugins/mediagallery.
To change the functions.inc file, on line 319 is the function plugin_getmenuitems_mediagallery(), you can make that function return an empty text string by placing
return '';
on line 325.
This will remove Media Gallery from the user menu as well. If this is not the desired effect, I recommend you remove it from your theme as I noted above.
Thanks!
Mark
there are two ways to remove the "Media Gallery" string. The first is in your theme. It is putting it there. There is a tag in the template for PLG menus. You can remove it.
The second is to remove the option from functions.inc in plugins/mediagallery.
To change the functions.inc file, on line 319 is the function plugin_getmenuitems_mediagallery(), you can make that function return an empty text string by placing
return '';
on line 325.
This will remove Media Gallery from the user menu as well. If this is not the desired effect, I recommend you remove it from your theme as I noted above.
Thanks!
Mark
7
6
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
Quote by mevans:
This will remove Media Gallery from the user menu as well...
Are you sure? Isn't the user menu item defined by plugin_getuseroption_mediagallery()? This will remove Media Gallery from the user menu as well...
7
24
Quote
Status: offline
mevans
Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Quote by machinari:
Quote by mevans:
This will remove Media Gallery from the user menu as well...
Are you sure? Isn't the user menu item defined by plugin_getuseroption_mediagallery()?This will remove Media Gallery from the user menu as well...
You are correct, thanks! Replace where I put plugin_getmenuitems_mediagallery with machinari's correction of plugin_getuseroption_mediagallery().
Too many late nights lately
I just love the Geeklog community, it is truly a wonderous thing!
Thanks!
Mark
6
6
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
sorry mark, I didn't mean to correct your instructions. Your instructions were correct in that to remove the text link from the header you can edit the function plugin_getmenuitems_mediagallery()..
I was just clarifying that this wouldn't affect the link in the user menu (the one in the left nav bar), as you suggested, because it uses the other function that I mentioned.
I was just clarifying that this wouldn't affect the link in the user menu (the one in the left nav bar), as you suggested, because it uses the other function that I mentioned.
Quote by mevans:Too many late nights lately
You love it, I know you do!
9
10
Quote
All times are EST. The time is now 07:25 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content