Results 1 to 3 of 3

Thread: cPanel Plugin -- onclick: and featuremanager:1 not working?

  1. #1
    Member
    Join Date
    Feb 2006
    Posts
    9

    Default cPanel Plugin -- onclick: and featuremanager:1 not working?

    Hi. Hoping someone can help as I'm tearing my hair out.

    I've just followed cPanel plug-in documentation and used the plug-in creator to make a new icon in the mail section of my cPanel.(I am subsequently editing the .cpanelplugin file directly.)

    Problem 1
    No matter what I try to put in the onclick: line, no such onClick="<Script>" ends up in the <a> tag of the otherwise fully working new plug-in icon in cPanel.

    I got around the problem by setting the url: field to
    Code:
    url:javascript:<JavaScript_Here>
    But this isn't entirely satisfactory.

    For what it's worth, I also had a problem with a comma in the url: field apparently ending the field data parsing. I tried using a back-slash to escape the commas (didn't work) and ended up using %2C instead. Ex. window.open('url'%2C 'winname');, instead of window.open('url', 'winname');. *shrug*

    Problem 2
    Additionally, despite having...
    Code:
    featuremanager:1
    ...in the plug-in file, my plug-in is NOT appearing in the feature manager.

    Note that the plug-in DOES appear in cPanel as expected and does work in terms of the URL part, only. Perplexing :/

    - - -

    Perhaps I'm referencing outdated documentation and/or using the wrong syntax or field names or something?

    Thanks for any assistance.

    Gruvin.

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,562
    cPanel/WHM Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by gruvin View Post
    Perhaps I'm referencing outdated documentation and/or using the wrong syntax or field names or something?
    For the most current information please use the following documentation resource as a guide for proper installation:
    cPanel Plugins Installation Instructions
    Last edited by cPanelDon; 12-03-2009 at 11:42 PM.

  3. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,562
    cPanel/WHM Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by gruvin View Post
    No matter what I try to put in the onclick: line, no such onClick="<Script>" ends up in the <a> tag of the otherwise fully working new plug-in icon in cPanel.
    Where is the file located that is being accessed by the URL; is it located on a remote system or is it located locally in the theme directory (e.g., for "x3")?

Similar Threads

  1. cPanel Plugin ==> Hello World?
    By Bahram0110 in forum cPanel Developers
    Replies: 5
    Last Post: 09-20-2011, 11:50 AM
  2. WHM Plugin Not Working In Resellers?
    By madihrb in forum cPanel Developers
    Replies: 2
    Last Post: 01-01-2011, 10:26 AM
  3. Replies: 24
    Last Post: 11-23-2010, 07:44 PM
  4. cPanel Plugin problem.
    By dansgalaxy in forum cPanel Developers
    Replies: 12
    Last Post: 09-11-2009, 10:09 AM
  5. CPANEL JSP PLUGIN
    By TRAIN YARD SOFTWARE in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 02-23-2002, 11:45 AM