Login

Home Forum
Welcome, Guest
Please Login or Register.    Lost Password?

[solved] Customizing NagiosQL Menu
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: [solved] Customizing NagiosQL Menu
#1320
[solved] Customizing NagiosQL Menu 6 Months, 2 Weeks ago Karma: 0
I work at a research institute, and we need to customize NagiosQL for a company. I noticed that nagiosQL menu comes from a mySQL database, so I added the new entries there and everything`s working. The problem is that I don`t want the new link just to redirect to the same page, leaving nagiosQL, I want it to open a popup with the destiny I set in the "link" field of tbl_submenu. I tried and tried editing nag_class.php, made loads of changes, and nagiosQL seems to ignore my changes, I tried even to comment all href to avoid the menu to link to anywhere, but it magically continued working. I feel that i`m editing the wrong file or I don`t know what to edit there. I added the new entry with id 33 in tbl_submenu, using main_id 6. Could anyone help me telling me where to go to put an if that opens a popup if tbl_submenu id = 33?

PS: I created some if's to open a javascript alert to see if each menu entry accessed were related to an id from mysql table is working properly, and all menu ids that I set in my if generated an alert, maybe because they redirect the page into nagiosQL template, but my desired link is external, and only when I use it's id nothing happens , it's only redirected to self page, with no nagiosQL template(of course because I didn`t find a working way to send a page into the main frame of nagiosQL).

Any help would be great.

Thanks

Fábio
slthunter
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/02/18 09:08 By martin.
The topic has been locked.
 
#1325
Re:Customizing NagiosQL Menu 6 Months, 1 Week ago Karma: 4
NagiosQL is not a CMS system. Every Link defined in its menu tabels are internal links.

You have to modify the function "getMenu()" in nag_class.php to redirect any new menu point to an external site, but every update of NagiosQL will put this away,

To open a link in a PopUp, you can simple add a target="_blank" to a menu link, this will open a new browser window (or tab).
martin
NagiosQL Founder
Posts: 303
graph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#1327
Re:Customizing NagiosQL Menu 6 Months, 1 Week ago Karma: 0
Thanks for the reply...changes were made as you said and everything`s working fine now...
slthunter
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
Go to topPage: 1