Quantcast
Channel: General developer forum
Viewing all 37665 articles
Browse latest View live

Re: How to change the header styles etc

$
0
0

by Jason De Donno.  

Hi

I mainly want to change the main heading. If it's easy to do, also the headings on the course pages. The main problem is the font is too big. Another problem is that they seem to have a first line indents - which headings should not have. The problem is noticeable on mobiles phones, where two word headings wrap around and look awful.

Can you tell me what css classes or selectors I should use to change this? Can i do it through the theme settings page or should I manually alter a css file? If so which file?


Thanks


Re: How to change the header styles etc

$
0
0

by Richard Oelmann.  

Your best option then is probably to use a tool such as firebug, or chrome developer tools to identify the selectors you want to change - you can even use those tools to experiment with the changes to get the look you want, before adding those changes into the theme customcss setting. Most themes over the last few years, including Clean, have such a setting and its the easiest way to customise your theme if only css changes are needed (ie no changes to the layout files etc).

Use the customcss setting rather than manually altering a css file, so that your changes will persist through any future upgrades you do. The alternative would be to create a child theme with your changes, but if you are only making a few small relatively minor changes, then I would recommend the customcss setting rather than creating and maintaining another theme.

If you believe there is a bug in the design (such as a 'first line indent') you may want to propose a change through the tracker - although the 'font is too big' is probably a subjective opinion rather than a bug as, although quite a number of people do ask for them to be made smaller, I have in the past had a number of people asking for them to be larger too smile (and on occasion, different people involved with the design of the same site! smile )


Richard

Re: How to change the header styles etc

$
0
0

by Jason De Donno.  

Thanks for you advice. I agree - I just seem to be unable to change anything. I'll keep trying.

Also, whilst on the subject, do you know how to change the main news title "Site News" to something else?

/Jason

Re: How to change the header styles etc

$
0
0

by Richard Oelmann.  

Try

.page-context-header .page-header-headings h1 {font-size:XX%;}

Adjust the XX% to the size you want to achieve.

I couldn't see any sign of a first line indent in the header

Clean header

Re: How to change the header styles etc

Re: How to change the header styles etc

$
0
0

by Jason De Donno.  

Thanks for looking into this, and posting the reply. I'm sorry - I meant the course topic headings. I confused course and topics because we use topic areas as short courses.

If you have the time to try it again with a course topic, you'll see that when the heading moves onto a new-line for mobile devices, there is something wrong. There appears to be a first-line indent.


file_get_contents fails randomly

$
0
0

by Alan Zaitchik.  

Not exactly a Moodle question but perhaps someone can help. This is on a Linux system: How can I find out why a call to file_get_contents is failing (in a Moodle enrollment plugin I wrote)? I have a list of courses, and for each one I use file_get_contents to ask an external system for some information. The call fails randomly, even when I loop through the same exact list; sometimes it fails on the 100th entry, sometimes on the 13th, sometimes on the 76th, and so on. I verified that the external system never receives the GET request when this fails, but I don't know where to look to tell what the problem is, connectivity or a resource or what. What I suspect is that the Linux server is occasionally running out of "something" and failing to send the request, but I have no idea what or where to look. I do know it's not the PHP limits on "execution time" or "input time" since we set them crazy high just to test this.

Has anyone had experience with this sort of problem?


Thanks for any constructive reactions. (I know it is slightly off-topic.)

Re: file_get_contents fails randomly

$
0
0

by Ken Task.  

If it's external then it involves networking ... networking comes before application.

Is the 'talking' between Moodle server and this external thing on a certain port or IP address?

One could install a thing called iptraf ... ncurses tool ... realtime monitoring ... on the Moodle server.   When launched one could set to watch any traffic on a NIC or a protcol ... and I think a specific IP.   It could be set to save a log on each launch and will stop logging when one exits.

See: http://www.tecmint.com/real-time-interactive-ip-lan-monitoring-with-iptraf-tool/

for page that describes.

One could open two terminal windows for the Moodle server.   1 has iptaf running and set to watch the traffic however configured.  The 2nd terminal window running something like multitail ... which will show the logs of other services - like messages log, secure log, etc.

Something like what you've described would be difficult to pin down ... ramdomness.   Not sure if I know of any single monitoring tool that would help easily pin point the issue.

Is the Moodle system in/on a virtualized environment ... like VMWare or other?   If it is, you won't see anything on or in Moodle that indicates the issue.   Had a Moodle on a VMWare box once and another Guest OS had been configured to use all the resources of the virtual server itself for certain timed jobs of some sort.   Moodle wouldn't respond to any client request and appeared to users as being down ... but it wasn't.  It was hard to convince the Virtual Server admin that it wasn't an issue with the guest OS upon which Moodle was hosted ... nor Moodle code,

Good luck!

'spirit  of sharing', Ken



Re: file_get_contents fails randomly

$
0
0

by Ken Task.  

Sorry for two responses ... internet hickup! :\

Other questions:

Is this external resource on the same segment of the LAN/WAN?
ie, Moodle server IP is 10.10.10.50 and other is on 10.10.10.51?

The physical network path ... Moodle NIC -> a Switch Port ... hows that port?
across the back plane of that switch to the port for External. 
Hows that port?

If not on same segment, how many hops away?  See other tools.

Other tools:

traceroute from Moodle IP to this external IP - shows hops and routes.

constant ping from Moodle to external.

Either might lead to actually checking the NIC's themselves on
either server and/or the ports on the connecting switch.

Anyone move a wire recently? :\

'spirit of sharing', Ken


How to develop gradebook report

$
0
0

by Pink Lim.  

Hi,

How to develop a gradebook report? I was browsing the development documentation about it, but it's not complete. 

Can somebody help me with this?

Browser Support for Moodle 3.2

$
0
0

by Damyon Wiese.  

Because:

A) We have technical requirements for the new Bootstrap 4 theme in Moodle

B) All browser vendors have moved to a continuous update model


I am proposing changes to the Moodle supported browser policy. Details are on: https://tracker.moodle.org/browse/MDL-55750

These changes are proposed to be adopted from Moodle 3.2 onwards and would mean that Moodle would only officially support the latest and latest - 1 version of each major browser at the time of release. 

Specifically, we would only support IE Edge and IE 11 (these are the only officially supported versions from Microsoft). 

Please add comments on that tracker issue. 

Local Moodle Website - System Configuration

$
0
0

by Dhananjay Sharma.  

Dear Sir/ Madam, I want to configure a local Moodle website in our campus for quiz and other academic related operations & approx 1000 to 2000 students could access them. Kindly suggest what could be the sufficient system configuration?

moodle3.0 database table structure,help!!!!!!!

$
0
0

by 启龙 曹.  

  ~~~help!!!!!!!

I wonder whether you guys could offer me some  information about moodle3.0 database table structure?

Thx a lot!

Re: moodle3.0 database table structure,help!!!!!!!

Re: Adding optional date selector to mod_form

$
0
0

by SVI eSolutions.  

I do not specify a default value.

All I add is the following :

$mform->addElement('date_time_selector', 'datebegin', get_string('date', 'via'), array('optional' => true));


Re: Adding optional date selector to mod_form

$
0
0

by Darko Miletić.  

OK, now I understand what you want. And that is not how datetime works. You can either get it enabled with check or disabled without check.



回复: Re: moodle3.0 database table structure,help!!!!!!!

$
0
0

by 启龙 曹.  

think you  very much

Re: Implementing pluggable video/audio players in Moodle

$
0
0

by Marina Glancy.  

Thank you very much Sam for a long and descriptive post, you outlined very well how existing filter API could work with media embedding.

One more argument for improved filter API: Not all url-to-embed converters are about media (video or audio). For example embedding websites previews, display equations, chemical formulas, flowcharts and many others. There are sites that provide you with embed code to use on your website and there are filters that convert URLs to such websites into their embed code (remember that students can not use <embed> or <iframe> tags by default). It acts exactly like youtube converter in core but it is neither video nor audio.

I think we need just one filter_media that will act as abstraction layer between media html content (<video>, <audio>, legacy <a>) and Media API

If we do so how do we decide what is media and what is not, what should be implemented as media plugin and what should remain as filter? Or should we just rename "Multimedia plugin" into "Multimedia / embed plugin" ?


By the way, Sam, you said: "Marina's preferred filter option". This is not exactly true smile I personally initially supported new plugin type and later heard other opinion from Justin Hunt and started doubting. Then I searched Plugins directory and found many existing filters that convert link to different file types into specific embedded code.  So I thought that enhancing filter API will be easier for developers and their existing plugins. I also think it will be easier for admins to configure everything in one place. I still do not see anything that the new plugin type can support that is not possible in filter API.

Re: Implementing pluggable video/audio players in Moodle

$
0
0

by Marina Glancy.  

Regarding how to prevent multiple filters applying on top of each other:
after processing the link/video tag filter A must add class="nofilter" and all consecutive filters will skip processing it. There is already class="nomediaplugin" that is respected by filter_mediaplugin

local plugin lib.php page doesn't run on every page (3.1)

$
0
0

by David North.  

We just upgraded from 2.9 to 3.1. We have a couple plugins that are local plugins and in the lib.php file we have code that checks the url and if it's on a specific page it adds javascript to that page.

I've tested it with just echoing a string in the lib.php file. The string only gets displayed on the first page that gets loaded after I purge caches, but any page loaded after that the string doesn't show up. ie. the lib.php file doesn't get run, except for the first page load after a purge caches. On the admin pages the local plugins lib.php runs but on course and module pages it doesn't.

I've checked my logs and there's no errors. I've tested the lib.php in theme and mod plugins and it works fine, it's just the local plugins where it is an issue.


Is this a 3.1 feature or a bug maybe?

Viewing all 37665 articles
Browse latest View live