The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HOWTO hack Xkins to include the new CGI-ADDONS

Discussion in 'User Experience' started by ozzi4648, Dec 5, 2002.

  1. ozzi4648

    ozzi4648 Guest

    First find my demo link and see how this will look. After your finished with this hack you will see the following results.

    Click on this link: http://demo:demo@srv08.primenet.cc:2082/
    then click on CGI-Scripts and scroll to the bottom of the page.

    Go into WHM and find the ADDON SCRIPTS section under the CPANEL 5 heading. Make sure that what up want to add is checked and saved. So if your only going to offer Oscommerce then check the box and save.

    Ssh to your box.

    Execute the following commands from the command line. Just copy and paste these commands and press &enter&

    mkdir /usr/local/cpanel/base/frontend/Xskin/addoncgi
    cd /usr/local/cpanel/base/frontend/default/addoncgi
    cp *.* /usr/local/cpanel/base/frontend/Xskin/addoncgi
    cd /usr/local/cpanel/base/frontend/Xskin/cgi

    Edit the index.html to include the link on the cgi scripts page.

    Make a backup of index.html

    cp index.html index.html.orig

    pico index.html

    Find this line of code at the very end of the index.html file.

    Search for this line of code:

    This feature allows you to create rotating banner ads for your site. &/td&

    Change it to:

    This feature allows you to create rotating banner ads for your site.&br&&br& &/td&

    Directly after this code:

    &/tr&
    &tr&
    &td width=&22& valign=&top& height=&2&&&img src=&../images/arrow-t.gif&&&/td&
    &td width=&628& height=&2&&&a href=&begin.html&&Entropy Banner &/a&&br&
    This feature allows you to create rotating banner ads for your site.&br&&br& &/td&
    &/tr&

    Add the following:

    &tr&
    &td width=&22& valign=&top&&&img src=&../images/arrow-t.gif&&&/td&
    &td width=&628&&&a href=&../addoncgi/index.html&&CGI Addon Scripts&/a& (&font color=&#FF0000&&New&/font&)&br&
    Install OsCommerce, PhpNuke or Invisions Board here.&br&&br&&/td&
    &/tr&

    Change the text above to say what you are actually running. So if your not running phpnuke modify it to say so.

    Save, exit out and test!

    Depending on what you enabled in WHM, thats what is going to show when the link is clicked. I only have OSCOMMERCE enabled so that what you will see in my demo.

    NOTE: At first i wanted to place the shopping cart under carts.html with all the other carts, and this was impossible since the cPanel guys have created this, &cpanel Addons=&listaddons()&& which lists all the cgi addons enabled. YUK! That would mean that if you placed &cpanel Addons=&listaddons()&& on the carts page and you also enabled phpnuke and Invisions they would all be listed on the carts page. Maybe we should ask them to change this. Anyway this was the best place to put it for now. Let me know how it works for you.

    -Enjoy
     
  2. ozzi4648

    ozzi4648 Guest

    The symbol in the code above was replace with a face. It should be a )
     
  3. ozzi4648

    ozzi4648 Guest

    Your welcome too!
     
  4. ozzi4648

    ozzi4648 Guest

    And everyone is welcome too. Geez what a bunch of unappreciate people! You should check out the Rackshack forums sometime. People their at least interact and help each other out. Here, you dont even get a thank you!
     
  5. Robert

    Robert Member

    Joined:
    Aug 14, 2001
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Or sometmes an answer ;)

    I will give you a thank you - did your update today.

    You do have one typo - PHPNude??? :p

    Thanks for the work.

    edit haha had a typo on typo!
     
  6. ozzi4648

    ozzi4648 Guest

    [quote:17688c263c][i:17688c263c]Originally posted by Robert[/i:17688c263c]

    Or sometmes an answer ;)

    I will give you a thank you - did your update today.

    You do have one type - PHPNude??? :p

    Thanks for the work.[/quote:17688c263c]

    Your welcome, now tell me where i can get a hold of &phpnude&? Laugh! ;)
     
  7. Robert

    Robert Member

    Joined:
    Aug 14, 2001
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    [quote:facaf6a2aa][i:facaf6a2aa]Originally posted by ozzi4648[/i:facaf6a2aa]

    Your welcome, now tell me where i can get a hold of &phpnude&? Laugh! ;) [/quote:facaf6a2aa]

    That is what my users are asking!
    [quote:facaf6a2aa]
    color=&#FF0000&&New&/font&&br&
    Install OsCommerce, [b:facaf6a2aa][u:facaf6a2aa]PhpNude[/u:facaf6a2aa][/b:facaf6a2aa] Invisions Board here.&br&&br&&/td&
    &/tr&
    [/quote:facaf6a2aa]
     
  8. ozzi4648

    ozzi4648 Guest

    [quote:d348d11c50][i:d348d11c50]Originally posted by Robert[/i:d348d11c50]

    [quote:d348d11c50][i:d348d11c50]Originally posted by ozzi4648[/i:d348d11c50]

    Your welcome, now tell me where i can get a hold of &phpnude&? Laugh! ;) [/quote:d348d11c50]

    That is what my users are asking!
    [quote:d348d11c50]
    color=&#FF0000&&New&/font&&br&
    Install OsCommerce, [b:d348d11c50][u:d348d11c50]PhpNude[/u:d348d11c50][/b:d348d11c50] Invisions Board here.&br&&br&&/td&
    &/tr&
    [/quote:d348d11c50][/quote:d348d11c50]

    Oops! that my typo, i meant phpNuke. What was i thinking? It must have been the rum and cokes i was drinking.
     
  9. Eric Nguyen

    Eric Nguyen Registered

    Joined:
    Jan 11, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    [quote:62334b3e54][i:62334b3e54]Originally posted by ozzi4648[/i:62334b3e54]

    NOTE: At first i wanted to place the shopping cart under carts.html with all the other carts, and this was impossible since the cPanel guys have created this, &cpanel Addons=&listaddons()&& which lists all the cgi addons enabled. YUK! That would mean that if you placed &cpanel Addons=&listaddons()&& on the carts page and you also enabled phpnuke and Invisions they would all be listed on the carts page. Maybe we should ask them to change this. Anyway this was the best place to put it for now. Let me know how it works for you.

    -Enjoy


    [/quote:62334b3e54]

    ozzi4648, open your carts page and add a link like this http://demo.networksdata.com:2082/frontend/WebAdmin/addoncgi/main.html?addonname=osCommerce
    It should work for you

    -Eric
     
  10. krellen

    krellen Member

    Joined:
    Oct 1, 2002
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Ozzi--

    I really appreciate this thread! This is exactly the answer I was looking for. THANK YOU!!!!
     
  11. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Would you mind posting that again? I think the forum update resulted in garbled codes. Those & things are supposed to be < , > or " right?
     
  12. Esr Tek

    Esr Tek Active Member

    Joined:
    Aug 5, 2002
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    I tried to implement this.. however i got a few things that flagged my attention to stop.

    "mkdir /usr/local/cpanel/base/frontend/Xskin/addoncgi" returned "directory already exsits"

    "cp *.* /usr/local/cpanel/base/frontend/Xskin/addoncgi" came back with Y/N questions about 5 pages?? Didn't know what to do so I quit SSH session.

    I am running Edge 6.0 build 56 at time... so I am wondering if this fix will be implemented into cpanel 6 stable?
     
  13. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Fremont CA
    ozzi4648, the only thing i ever see you do is complain, i bet half of your 380 posts are complaints. Give it a rest already
     
  14. Esr Tek

    Esr Tek Active Member

    Joined:
    Aug 5, 2002
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    I dont see how he is complaining?!?!?!

    He did start this thread o share a fix not complain... maybe you mistook thier joking about a typo between each others as "complaining" but I think it was in good fun ;)

    Ozzi - what should I do in event of this command comming back to me and looking as if the files exsited and is asking me to overwrite them...
    I stopped here and said no to overwritting fies, just in case.
    Is it safe to proceed and pico the index file?

    Thanks for the fix by the way ;)
     
  15. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Please?...
     
  16. ozzi4648

    ozzi4648 Guest

    You know where you can go dont you, now go do it!
     
  17. ozzi4648

    ozzi4648 Guest

    Re: Re: HOWTO hack Xkins to include the new CGI-ADDONS

    I believe Bert has already added the functionality since the directory and files seem to already be there. You were right in stopping. My origional post was prior to his addition
     

Share This Page