Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 01:45 pm EST

Geeklog Forums

taking bracket off from the text links plugins


Status: offline

suresheva31

Forum User
Junior
Registered: 09/13/04
Posts: 21
hey admins,

How do u take the text links brackets at the end of each links.
exmaple:

Mail Users (N/A)
Content Syndication (1)
Plugins (3)
Static Pages (N/A)
View ETR Devices (N/A)
Carrier Management (N/A)

As you could see brackets at the end of two of my plugins
View ETR Devices (N/A)
Carrier Management (N/A)
I am just wonder how do take that off from displaying

thanks
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
I believe you are talking about the Admin Block. This is output that you are sending in your plugin function.

Let me give an example:
function plugin_getadminoption_forum()

You will have:
Text Formatted Code

    return array('Forum', $_CONF['site_admin_url'] . '/plugins/forum/index.php', $numtopics);


 

The second parm $numtopics is what you are seeing.

Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

suresheva31

Forum User
Junior
Registered: 09/13/04
Posts: 21
Hi Blaine,

Thank you for responding fast.

But I do not have, what you have given in your example on the post. I have the following

return array('Carrier Management', $_CONF['site_admin_url'] . '/plugins/carrier/index.php');

So therefore it should work rite?

Suresh
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
Ok - so your getting an empty bracket or maybe a N/A in the link.

Normally I like to see this information. It may just be used to show how many records are in the main plugin table.
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

suresheva31

Forum User
Junior
Registered: 09/13/04
Posts: 21
I see the following

View ETR Devices (N/A)
Carrier Management (N/A)

But I do not want any of these (N/A) ..So now how do I remove the from it.

Suresh
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
You can't not for a single link. This is the Admin block and part of the layout is for each component to be able to show the admin (at a glance) if there are items awaiting approval in the submission queue.

If the plugin does not use moderation then it may show the number of records. Example forum shows the number of topics.

If you don't want to see this info for any of the links - then edit your template and remove the {option_count} variable. That would be the adminoption.thtml and adminoption_off.thtml

Geeklog components by PortalParts -- www.portalparts.com
 Quote

All times are EST. The time is now 01:45 pm.

  • 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