Event lists all show a calendar marker of 31?

Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
8 years ago
831 posts
I made a list of coming events and notice that they all show a small calendar icon with the number 31 on the right ? not sure what this is but it might make people think they are all the same day ?
coming events.PNG.png


updated by @zachary-moonshine: 05/22/17 12:17:28AM
paul
@paul
8 years ago
4,335 posts
Yeah, that's just an icon image that happens to have '31' on it'.
You could change it to something more suitable for your site, or you could make the other 30 icons then add a bit of template code to show the right one ;-)
(Am joking, of course, but it is doable!!)


--
Paul Asher - JR Developer and System Import Specialist
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
Zach just go on Google Images and type in "calendar icon"...you'll get a gazillion to choose from. Find where the current icon image is stored on your server and replace it with your new one- keep the same file name to avoid having to change code anywhere.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
8 years ago
831 posts
yeah thats a good idea
michael
@michael
8 years ago
7,805 posts
safest place to put it is into your skin. Then change the link to point to the icon in your skin. That way will survive any module updates.

Docs: "Altering a modules template"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1051/altering-a-modules-template

It may already be over-ridden on your skin. The list template will be:
/skins/YOUR SKIN/jrEvent_item_list.tpl
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
Michael I'm curious- if you name your replacement image with the same file name, would it still be overridden by module updates?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
michael
@michael
8 years ago
7,805 posts
It depends on where it lives at.

If you're uploading a new image to a version of a jamroom skin say
/skins/jrElastic-version-1.1.2/img/SOME-IMAGE.jpg

and then jrElastic-version-1.1.3 comes out, it will be found at
/skins/jrElastic-version-1.1.3/img/SOME-IMAGE.jpg

The old image will still exist at the 1.1.2 location, but the new skin will use its version so it would revert.

However if you're thinking about a location like
/data/media/0/0/?????.jpg

Then those files have been uploaded to the system and would stay there as long as they are not re-uploaded over.

But a location like
/data/cache/ (anywhere)

would only last until the cache was cleared.
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
So if it's a file say like a .png icon file in one of your modules (not in a skin or in a cache folder)...like in say your jrChat module, and you replace it there with a different image png but same name...it should be safe... right?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
michael
@michael
8 years ago
7,805 posts
If you want to protect the chat icon found at:
/modules/jrChat/img/icons_black/chat-open.png

copy it to
/skins/YOUR SKIN/img/icons_black/chat-open.png

and edit it from there. After your edit rest the cache "Reset Icon Cache"
ACP -> MODULES -> CORE -> SYSTEM CORE -> TOOLS -> RESET CACHE

From that point on your skins version of the icon will over-ride the modules version of the icon.
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
Ok, so the png file in the skin will get automatically used instead of the png file of the same name in the module. I wouldn't have to use code to point to it...just to have it with the same name, in the same folder duplicated in the skin.
I get it- thanks!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015