Forum Activity for @ultrajam

SteveX
@ultrajam
12/04/14 03:55:11PM
2,589 posts

Code Question 3


Using Jamroom

brian:
Nothing in JR is loaded by Java (just an FYI) - Java != Javascript. Jamroom uses PHP and Javascript - no Java is involved... lol

@indiegospel - clarification for you:
!= means NOT equals
== means equals
=== means equals (and check that it is the same type)

Java is a different programming language to javascript. You don't need to know either language but it is very worthwhile reading a bit about jQuery (jQuery is a javascript library which makes javascript simpler to use for most people, it is genius imo, and Jamroom uses it in order to make its javascript accessible to people like me :) ).

http://www.jquery.com (jsut read the first paragraph)
updated by @ultrajam: 12/04/14 03:59:45PM
SteveX
@ultrajam
12/04/14 03:40:45PM
2,589 posts

domain mapped to profile?


Ning To Jamroom

Strumelia, I agree as well.

Soaring Eagle, it's a bit difficult to really get to grips with what you are saying - maybe I agree, or maybe I don't. I'm not sure. Your posts are really long, and the spelling problem makes them very difficult to read without reading them really, really slowly. Even when reading them really, really slowly it's a bit difficult to figure out what you mean. So, recently I have been skimming, rapidly, and therefor not really getting to grips with what you are trying to say. Just saying. Long dreads, long threads - that's become my takeaway from all of your huge keyboard efforts - and I'm sure that's doing you a total disservice, but regrettably that's the way it works out to be for me.
updated by @ultrajam: 12/29/14 09:23:54AM
SteveX
@ultrajam
12/04/14 03:15:35PM
2,589 posts

defaulting to www


Ning To Jamroom

You don't need to rename your cache directories to cachebak. Just delete them.

It isn't a problem with cookies, but you could always try using a different browser if you are particularly worried about it.
updated by @ultrajam: 12/29/14 09:23:54AM
SteveX
@ultrajam
12/04/14 02:55:19PM
2,589 posts

FOURM question?


Installation and Configuration

If you have a separate quota set up for your admin, in the Admin Control Panel (ACP), go to the quota tab for the forum module. Enable for your admin quota and save.

If you don't have a separate quota, you need to read these docs first:
https://www.jamroom.net/the-jamroom-network/documentation/getting-started/693/the-jamroom-quota-system
SteveX
@ultrajam
12/04/14 02:34:11PM
2,589 posts

FOURM question?


Installation and Configuration

Don't turn on the forum for any quotas apart from your main site quota (probably "admin"). Then provide links to your "admin" profile forum - that's exactly how they do it here on jamroom.net.

Here it's called "the-jamroom-network", yours might be called "admin", "site", or "mark".
updated by @ultrajam: 12/04/14 02:35:50PM
SteveX
@ultrajam
12/04/14 02:30:12PM
2,589 posts

how do I choose a random quota_id from a set?


Using Jamroom

Blimey, I do pity those librarians.

Hopefully I'll be able to explain better in time.
updated by @ultrajam: 12/04/14 02:31:26PM
SteveX
@ultrajam
12/04/14 02:27:53PM
2,589 posts

how do I choose a random quota_id from a set?


Using Jamroom

Paul is right, cacheing is why the content isn’t changing between clicks and page loads.

It might help to understand what the impressive code does, let me give that a shot… Let me know which parts you get, and which you don’t understand - it isn’t complex, but there are a lot of things going on at once, so it is difficult to explain them all at once.

The important parts in the first piece of code you posted are
1. the menu links - when you click them you trigger an onclick event rather than going to a url. In the onclick handler is a call to a jrLoad javascript function (see below).
2. the div at the bottom with an id="sm" - this is where the content will load.

The javascript initialization is separate to the links, it gets things going when the page is downloaded and ready - in does the same job as clicking a link, but it does it for all of them without needing a click to happen.

jrLoad('#top_notes',core_system_url +'/top_notes')

What that does is call the jrLoad function with two parameters (they are in brackets and separated by a comma).

The first param is an id - the target div into which the content will be loaded. ("#" denotes an id, "." would denote a class). You can find something like this in your html:
<div id="top_notes" ... 

The second is a url: http://yoursite.com/top_notes

The jrLoad function calls that url and the (php) response from that url sends back some html content to load into the div ("#top_notes").

That example is triggered in the init function (along with all the others) - it happens when the page loads, and each of the jrLoad functions loads each response into the specified div.

It works in a similar fashion when you click a link in the menu (one with an onclick handler which calls a url via jrLoad, mentioned above). When you click the menu item, the onclick is triggered, it calls a url via the javascript jrLoad function, and places the returned html into the specified div - in the case of the menu links, that is #sm - I presume that is the main content of the page.

Please let me know how much of that you get - I'm trying to work out how to explain something similar to a bunch of librarians, so your feedback will be helpful to them, and to me.
SteveX
@ultrajam
12/04/14 01:20:04PM
2,589 posts

How Do I Modify Code - Featuring by Quota - Template Copying


Using Jamroom

The issues are usually completely separate.

The confusion is not usually with the person answering support requests. But you can always confuse them by mixing up all of your confusion into one bundle. (actually, they usually just stop reading in order to prevent themselves from becoming confused).

It isn't specifically a programmer mindset. I imagine a mechanic in a garage deals with incoming information in a similar fashion. Just like a personal shopper, a soldier, a bus driver, a vicar... :)

It's not always possible, but if someone asking a whole bunch of questions can think about it and divide them up just a little bit, then that helps everyone involved.

When asking for help, often it's best to think about it a bit, break it down a bit, and formulate your request as best you can. That process is very helpful to you as well as the recipient of the ask. Maybe a bit like prayer (although as you can probably tell, that is outside my belief system so I'm not really qualified to comment on that).
  130