News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Customize position and style of the 'Please Register Message'

Started by mehmet_alp, 12.01.2015 10:27:50

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mehmet_alp

Hello everyone,

can you help me.
I would like to customize the css style and the position of the "Please Register Message". In the Category / Files Layout.

I was neither able to find the placeholder for this is the layouts nor the linked css.

Thanks for your kind help in advance and best regards,

Alp
  •  

ColinM

Hi
Do you mean a message like "Only Registered or Logged In users can download" ?  Please give a screen shot of the message and its surroundings.  It may of course be part of you login sequence which is nothing to do with jDownloads.

Colin
Colin M
  •  

mehmet_alp

Hi,

it is not part of my login sequence.

I am talking about the variable 'COM_JDOWNLOADS_FRONTEND_CAT_ACCESS_REGGED='

Where can I customize the style and eventually the position oh this variable?

Best regrds,

Alp
  •  

ColinM

Hi
If you use the permissions and view access correctly then the message COM_JDOWNLOADS_FRONTEND_CAT_ACCESS_REGGED="Only registered and logged in users can download files from this category." will not appear.  Please see FAQ http://www.jdownloads.net/documentations/item/controlled-access-to-categories-and-downloads for some examples.

The message is only shown for non logged in users, ie public/guest users.  Typically it is like pic reg-only01.png attached

However to set up styling the basic part is from Configuration - pictures see pic reg-only02.png

The detail styling comes from <yoursite>/components/com_jdownloads/assets/css/jdownloads_buttons.css
For the Orange colour it is as shown below

.jorange {
    color: #FEF4E9 !important;
    border: 1px solid #DA7C0C;
    background: linear-gradient(#FAA51A, #F47A20) repeat scroll 0% 0% transparent;
}


But as jDownloads now supports a custom css file you can put any css code to style jDownloads item is in jdownloads_custom.css, also located withe jdownloads_buttons.css. See article custom css at  http://www.jdownloads.net/documentations/item/custom-css for more info.  This means you will not need to re-edit the css each time jDownloads is updated.

Changing the position is not possible without making code changes, which is not recommended

Colin

[gelöscht durch Administrator]
Colin M
  •  

mehmet_alp

Hello,

since I do want to allow ONLY registered user to download items it is correct that the message appears.

I don't want to customize the the style of the buttons.

I want to customize the style of the message linked to COM_JDOWNLOADS_FRONTEND_CAT_ACCESS_REGGED variable.

Can you help me please?

Best regards

Alp
  •  

ColinM

Hi
If you set up Access levels and Permissions correctly the non logged in users will not seethe downloads or even the menu items!  But you may want them to see what they are 'missing'.

When you say yoiu want to customise the style of the message do yo mean things like Font Size, colour and so on?  If so please show an example.

Thanks
Colin
Colin M
  •  

mehmet_alp

Hi,

that's what I am exactly talking about font-size; font-color; font-weight

Tnx
  •  

ColinM

Ok,
It is straightforward to change those but the simple way will also affect affect other 'buttons'.  So I will see if there is a way that is conditional.  Note on the Internet it is not individual  'variables' that are styled in html & css but the html 'operators' , classes and so on.
Colin
Colin M
  •