Forum Activity for @michael

michael
@michael
08/19/17 12:35:18AM
7,832 posts

Avatar mix ups


Using Jamroom

Without links to the images, its very hard to solve the question. I have not seen this issue before.
michael
@michael
08/19/17 12:18:11AM
7,832 posts

What does "apple-touch-icon-precomposed" mean in the "Users Online" log?


Using Jamroom

ah, yeah true. favicon is a very common term known website developers and stackoverflow is a technical group for technical users, so that might not get explained.

When I dont know a term I usually do this in a search engine:
define favicon
and it gives me results like this:
https://duckduckgo.com/?q=define+favicon&t=ffab&atb=v67-2&ia=definition

along with a link to wikipedia.

That jr blue/green icon is the favicon, you have one of those. What some device is is seeing if you have a apple-touch-icon-precomposed.png icon too, you dont, so it gets recorded in your error log because something that was searched for wasnt found.

If i build an app that has a special place in it for an image if the website has that image, I can request it. say a /special-image-for-mikes-app.png image.

Now nobody knows that my app checks for that image, so nobody is going to prepare it for me. But if my app visits their site they will see that an app came and checked for that image by an error message in their logs.
favicon_example.jpg favicon_example.jpg - 121KB
michael
@michael
08/19/17 12:10:50AM
7,832 posts

Skin Config: Add links to footer template


Design and Skin Customization

Docs: "Using the Template Editor"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-admin-handbook/3183/using-the-template-editor

Use the template editor to edit the footer.tpl template of whichever skin your're using.

So open the footer template:
ACP -> SKINS -> YOUR SKIN -> TEMPLATES -> footer.tpl -> MODIFY

And locate a similar link, copy that and adjust it to how you like it.
footer.jpg footer.jpg - 81KB
michael
@michael
08/19/17 12:06:51AM
7,832 posts

How do I change a form?


Genosis

We've got this included in an upcoming release of jrGenCore. Should be released shortly.
michael
@michael
08/17/17 02:02:19AM
7,832 posts

Receiving a error message when creating gallery image


Jamroom Developers

I'm not seeing this structure 'gallery_order-343-0' or anything similar to it in the current module at all.

Seeing this structure to be saved (screenshot).

So check if there is a newer version of the module jrGallery or try RELOAD button under the tools in
ACP -> CORE -> MARKETPLACE -> TOOLS -> RELOAD MODULES OR SKINS -> Gallery -> RELOAD
update_save.jpg update_save.jpg - 23KB
michael
@michael
08/16/17 09:55:55PM
7,832 posts

Adding custom attributes to comments


Jamroom Developers

OH! if thats the intention then I would do it differently.

Listen for the delete comment action and don't delete it. just remove the contents and leave the comment there. "this comment has been deleted"

Add a flag to it 'comment_deleted' = 1. (and maybe move it to a different holding profile too in-case the profile gets deleted.)
michael
@michael
08/16/17 08:51:15PM
7,832 posts

Adding custom attributes to comments


Jamroom Developers

I usually play round with concepts to find one that works in code, then start thinking about how efficient its going to be once I have something that works.

My first thought for "How do I retrieve the number of children this comment has" is caching. Run a query to search whenever the parent comment is shown to get the number of children, then store that in the cache. When a new comment is added as a child, reset the cache for that parent.

WHY: because it means the count will always be correct and I don't need to think about things like comments being deleted and updating counts.

I can see that you might want to run queries against that number though, so if you're needing to get "Get me all the parent nodes who have more than X children" then running a sub-query for this might be slow, so storing the info might be better. In which case I would probably look to storing it on the comment itself 'comment_children_nodes' as a number. That would make it easy to look up in the datastore, you'd just need to keep that up-to-date each time a comment was added.

If that's the way you go, put a listener into the 'integrity check' that re-counts the counts when the integrity check is run so that if the counts do get out of sync with the actual comment count there is a way to get them back to correct.

Docs: "Events and Listeners"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/1011/events-and-listeners

maybe the 'repair_module' listener:
    jrCore_register_event_listener('jrCore', 'repair_module', 'YOUR-MODULE_repair_module_listener');
michael
@michael
08/16/17 08:06:00PM
7,832 posts

Receiving a error message when creating gallery image


Jamroom Developers

Im unclear as to where the problem is, is it at the upload phase for the photos or the save phase for the image gallery.
michael
@michael
08/16/17 06:35:49PM
7,832 posts

Moving the up button


Using Jamroom

code not showing, here is how to make it show.
code.jpg code.jpg - 88KB

updated by @michael: 08/16/17 06:36:52PM
  196