1
krewl
Custom Function Req.
  • 2007/1/23 17:19

  • krewl

  • Just popping in

  • Posts: 39

  • Since: 2006/3/14


I am trying to add a function that is similar to the isAdmin function. But I don't know where to begin. I have looked through the kernel and include folders but none help. Here is what I am trying to do.

Similar to the isAdmin, if a user registers lets a say a "Team" (I have modified a module) to the site, that user now has to go through several links to get to his "team" page. I would like to add to the user menu (drop down) something like this:
<{if $xoops_xteamsadmin}>
menu4[6]='/visit.php?cid=<{$xteamscid}>&lid=<{$xteamslid}>">[T] Team'
<{/if}>

This would be a direct link to the "team" page from the front page; but, where do I get to the code to call from the database and then add the correct functions to make it work?

Similarly, if someone would like to add this "Team" page to a User Favorites, would this be in the same location? Does a hack exist that allows a user to add to a favorites block?
-------------------
http://www.illinoisbmx.com

2
TheFinni
Re: Custom Function Req.
  • 2007/1/27 1:49

  • TheFinni

  • Just popping in

  • Posts: 75

  • Since: 2003/11/25


krewl,

Try this link:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=32938&forum=5

Cool BMX page you have created!

Login

Who's Online

422 user(s) are online (310 user(s) are browsing Support Forums)


Members: 0


Guests: 422


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits