Author Topic: disable things in roundcube  (Read 7675 times)

Offline peachmelba

  • Newbie
  • *
  • Posts: 7
    • http://sidsteojeblik.dk
disable things in roundcube
« on: April 01, 2011, 07:14:24 PM »
Hi.
I want to disable "create meassage" and "settings" ikon, and also people shall not be able to registrer accounts.
Basiclly people shall only be able to login and view their email.
I hope somebydy can help.

Thx in advice.

BR

Peachmelba
« Last Edit: April 02, 2011, 12:18:55 AM by skaero »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
disable things in roundcube
« Reply #1 on: April 02, 2011, 12:28:16 AM »
You can remove the icons in the skin files, but they could still go to it by url.

Offline peachmelba

  • Newbie
  • *
  • Posts: 7
    • http://sidsteojeblik.dk
disable things in roundcube
« Reply #2 on: April 02, 2011, 03:42:58 AM »
Thanks a lot for your answer
That ok a ok solution to me.
How do i practically do this?
I have downloadet all the template files via FTP to play and try, but when i open the files in firefox/IE they are just blanc.
How can i know what to remove?
« Last Edit: April 02, 2011, 05:03:56 AM by skaero »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
disable things in roundcube
« Reply #3 on: April 02, 2011, 05:08:51 AM »
You'll need to edit the html, for example the compose icon is in: /skins//templates/mail.html
Code: [Select]

<roundcube:button command=&quot;compose&quot; type=&quot;link&quot; class=&quot;button compose&quot; classAct=&quot;button compose&quot; classSel=&quot;button composeSel&quot; title=&quot;writenewmessage&quot; content=&quot; &quot; />

Offline peachmelba

  • Newbie
  • *
  • Posts: 7
    • http://sidsteojeblik.dk
disable things in roundcube
« Reply #4 on: April 02, 2011, 11:44:15 AM »
Thx for the answer once again !
Sorry, but i still dont see what i need to delete.
If i view the file: file:///C:/Users/carstenst/Desktop/templates/mail.html
i only see some dots. The same if i see the same file on the webpage.
I dont see some icons where i can see what i remove. I have also tried to take the site into expression web. There i see the same - nothing useful.
Where do i see what part of the code i need to remove to remove icons on the homepage?
Where do i e.g. remove the settings button?

And when i find the line (or the line that you have shown med) - shall i just delete the line?
« Last Edit: April 02, 2011, 11:59:02 AM by peachmelba »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
disable things in roundcube
« Reply #5 on: April 03, 2011, 12:14:45 AM »
Try opening the file the notepad or textedit.

Offline peachmelba

  • Newbie
  • *
  • Posts: 7
    • http://sidsteojeblik.dk
disable things in roundcube
« Reply #6 on: April 03, 2011, 06:47:58 AM »
I still cant see what code to remove if i want to remove the settings icon. :o

If i mark the settings button in firebug (firefox) i can see the code attached to the icon is:

Settings

But i dont know where to find and remove this code.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
disable things in roundcube
« Reply #7 on: April 03, 2011, 08:22:21 AM »
The settings button is in /skins//includes/taskbar.html

Offline peachmelba

  • Newbie
  • *
  • Posts: 7
    • http://sidsteojeblik.dk
disable things in roundcube
« Reply #8 on: April 03, 2011, 01:32:30 PM »
T.Y. so much.
You have really been a great help !

The last part i am missing is to remove the "sent" and the "trash" folder in the left folder panel.

Can you help me with that also?

Thx in advice

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
disable things in roundcube
« Reply #9 on: April 03, 2011, 04:13:12 PM »
You would most likely have to delete those folders off of the imap server, you'd also need to remove them from the $rcmail_config['default_imap_folders'] array in /config/main.inc.php