[Skip to main content](#vessel-content)

#   Add links to cpanel.php

##

- **[virusys](/forum/user/51944-virusys "View virusys's Profile")**
- [![virusys's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar51944.jpg)](/forum/user/51944-virusys "View virusys's Profile") Topic Author
- [ Offline](/forum/user/51944-virusys)

Less More

- Posts: 70
- Thank you received: 3
-
-

8 years 5 months ago [\#293703](#293703) by [virusys](/forum/user/51944-virusys "View virusys's Profile")  *[Add links to cpanel.php](/forum/33-customers/894927-add-links-to-cpanel-php#293703 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome  I'd like to add extra icons/links to the User Control panel of Hikashop.  In examining the front end page, it seemed to be pretty straightforward to do that but when I went into the cpanel.php file, it was not easily done.  Do you have these existing icons/links in some sort of array that is defined somewhere?  How do I add things to it?")* was created by *[virusys](/forum/user/51944-virusys "View virusys's Profile")*

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.8
-- PHP version -- : 5.6
-- Browser(s) name and version -- : Chrome

I'd like to add extra icons/links to the User Control panel of Hikashop.

In examining the front end page, it seemed to be pretty straightforward to do that but when I went into the cpanel.php file, it was not easily done.

Do you have these existing icons/links in some sort of array that is defined somewhere?

How do I add things to it?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTQ5MjctYWRkLWxpbmtzLXRvLWNwYW5lbC1waHA/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

8 years 5 months ago [\#293716](#293716) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add links to cpanel.php](/forum/33-customers/894927-add-links-to-cpanel-php#293716 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome  I'd like to add extra icons/links to the User Control panel of Hikashop.  In examining the front end page, it seemed to be pretty straightforward to do that but when I went into the cpanel.php file, it was not easily done.  Do you have these existing icons/links in some sort of array that is defined somewhere?  How do I add things to it?")*

Hi,

The best is to implement the onUserAccountDisplay trigger in a small joomla plugin of the group "hikashop" to add that.
You can look at the files in plugins/hikashop/user_account/
It's a plugin which adds the link to the Joomla user profile edition page.
So you can copy the plugin, change its name and change the link attributes to fit your needs, zip the files and install the zip via the Joomla installer and enable it to get that extra link to the control panel.

Doing it with a plugin is the best way to do it. Now you can also add extra HTML to the cpanel.php view file if you want but I would rather recommend doing a plugin.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTQ5MjctYWRkLWxpbmtzLXRvLWNwYW5lbC1waHA/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[virusys](/forum/user/51944-virusys "View virusys's Profile")**
- [![virusys's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar51944.jpg)](/forum/user/51944-virusys "View virusys's Profile") Topic Author
- [ Offline](/forum/user/51944-virusys)

Less More

- Posts: 70
- Thank you received: 3
-
-

8 years 5 months ago -  8 years 5 months ago [\#293893](#293893) by [virusys](/forum/user/51944-virusys "View virusys's Profile")  Replied by *[virusys](/forum/user/51944-virusys "View virusys's Profile")* on topic *[Add links to cpanel.php](/forum/33-customers/894927-add-links-to-cpanel-php#293893 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome  I'd like to add extra icons/links to the User Control panel of Hikashop.  In examining the front end page, it seemed to be pretty straightforward to do that but when I went into the cpanel.php file, it was not easily done.  Do you have these existing icons/links in some sort of array that is defined somewhere?  How do I add things to it?")*

OK - I see that file but not where the array is defined to include the link urls and icon images shown in the user cpanel.

Can you point me to where the plugin knows where to find the images and links shown in the attached?

Thanks

[ ![2018-06-11&#95;1040.png](/forum/attachment/43901) ](/forum/attachment/43901 "...06-11&#95;1040.png")

- [ ![2018-06-11&#95;1040.png](/forum/attachment/43901) ](/forum/attachment/43901 "...06-11&#95;1040.png") [ ](/forum/attachment/43901?download=1 "...06-11&#95;1040.png")

Last edit: 8 years 5 months ago by [virusys](/forum/user/51944-virusys "View virusys's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTQ5MjctYWRkLWxpbmtzLXRvLWNwYW5lbC1waHA/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

8 years 5 months ago [\#293896](#293896) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add links to cpanel.php](/forum/33-customers/894927-add-links-to-cpanel-php#293896 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome  I'd like to add extra icons/links to the User Control panel of Hikashop.  In examining the front end page, it seemed to be pretty straightforward to do that but when I went into the cpanel.php file, it was not easily done.  Do you have these existing icons/links in some sort of array that is defined somewhere?  How do I add things to it?")*

Hi,

The images are defined in the CSS of HikaShop. So if you need extra or other images, you can just add your own CSS to define your own images, that you can place wherever you want.
Just look at the image with the developer tools of your browser and you'll see the class and the CSS associated with each one. You'll see that the CSS class uses the "image" parameter in the class.
For example, with the parameter 'user2', you get the class icon-48-user2
And then, if you check the CSS of HikaShop, you can see this code corresponding to it: Code:

span.hkIcon.icon-48-user2 { background-image: url("../images/icon-48/flatgrey/account.png") !important; }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTQ5MjctYWRkLWxpbmtzLXRvLWNwYW5lbC1waHA/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.086 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
