HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[RESOLVED] - Loading...

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#67912 (In Topic #14456)
Avatar

Community saint

Please, please, PLEASE, can somebody point me at the file in which I can change/adapt/edit the word 'Loading…' that appears when the Ajax/JS script (?) runs when pages are loaded in the Admin Zone!



I have elected to change 'loading.gif' image to match my site, but I'm damned if I can track down the actual text or the 'box' parameters!

TIA



P.S. You can build your 'Preloaders' here

 :thumbs:



Last edit: by Fletch

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#67917
Avatar

It's the advanced admin cache feature which only runs for super-admins, this might be in quick_js_cache.js (IIRC). You can turn the AAC off in the config, where the other cache options are if you prefer to nuke it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#68034
Avatar

Community saint

Found the offender (Loading…) hiding in javascript.js, which itself was hiding in themes/(my theme)/templates_cached, which originated from http://ocportal.com/themes/ocproducts/templates_cached/EN/javascript.js.

I edited the cached javascript.js and I've managed to get the display I want. HOWEVER, each time I empty the templates cache a fresh (original, unedited) version gets deposited in my themes/(my theme)/templates_cached, which I need to edit yet again!

Not a biggie; it is only pandering to my aesthetic peculiarities. But it seems a convoluted way of going about things, and what happens if ocPortal can't serve up a fresh version when I need it? Or am I way off base here?

And here is the result …




P.S. I apologise to our non-UK visitors for the parochial soundtrack, 'Blackbird' by The Wurzels, but I hope you enjoyed it nevertheless …

 :lol:


Last edit: by Fletch

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#68041
Avatar

Oh. I actually thought you were talking about a different thing then. This is just the 'LOADING' language string in the global.ini language file.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#68043
Avatar

Community saint

Chris Graham said

This is just the 'LOADING' language string in the global.ini language file.

YES and NO.

The language string is easy enough to identify, but javascript.js appears to originate from ocPortal, and also appears to override the language string. I say that because I do not have a file with that name in the core package, and it can only be found in themes/(my theme)/templates_cached, which gets rebuilt after each template cache clearance.

I can only achieve the result I show by editing javascript.js. Editing the language string makes no difference.

Can you confirm that behaviour?




Update: Belay all that. Found everything I needed to edit in JAVASCRIPT.tpl which I edited in ocPortal's theme editor. Everything works fine. Thanks for your (headscratching?) patience!

 :'(


Last edit: by Fletch

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: