Forum Activity for @michael

michael
@michael
12/10/16 12:29:58AM
7,837 posts

Home Icon/link action


Design and Skin Customization

theartsherpa:....What if we have two elephants.tpl that need to live in different places?.....
Whats the goal?

theartsherpa:.... and end up paying them to learn JR rather than write my code....
Yeah, thats a bad situation.

I've lost the point of the thread again. Feels like you're saying you're having troubles. I can sympathize that yes it is hard to get when you're learning something new and it does take time. Try keeping it simple, ask a separate question on each thing you want to know; title it with the thing you want to know so that if you saw that title in your search results you would think "Yes that's what I want" and we'll answer it.

Short precise threads specific to a topic mean others _may_ read them, so help us keep our support time costs lower ;)

theartsherpa:....And with multiple ways to get to any one solutions in JR, it gets even more complicated.......

* First guy invents some letters A, B, C, D, E.....
* Second guy puts them together into words CAT, DOG, HORSE
* Next guy adds some constructs IS, AT, BUT, DOESN'T

Pretty soon you have a language. Same thing here, You can always go back down the chain to the more primitive. Jamroom is built on structures that came before it and assembled in a way that is intended to be quicker than you would get if you started with the most primitive. Yes it takes a while to learn its structure. Yes there are other ways it could have been structured. You can learn it at whatever level you want to use it at.
michael
@michael
12/09/16 08:04:13PM
7,837 posts

Jquery or ?


Design and Skin Customization

jquery will be in both skins, its part of core.

What you need to figure out is what initalizes the behavior. It will usually be something like:
$( document ).ready(function() {
    // something in here, this happens after the page loads.
});
michael
@michael
12/08/16 10:50:03PM
7,837 posts

Home Icon/link action


Design and Skin Customization

There is also this doc which might be the correct answer if the question is:
"How do I make the site visible to members only?"

Docs: "How do I make the site visible to Members Only"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-admin-handbook/4357/howto-make-the-site-visible-to-members-only

Seams like that may be the root question, not sure.
michael
@michael
12/08/16 10:42:57PM
7,837 posts

Home Icon/link action


Design and Skin Customization

Quote: ....but I don't know how to just make a new one, or where it lives so to speak.....
You can put any .tpl file in the current active skins folder and the URL will correspond to the name of the template.

eg add:
/skins/(your skin)/elephants.tpl
and it will show up at:
site.com/elephants

Some templates exist to be used as includes for {jrCore_list template="elephants.tpl"} in which case they are not MEANT to be called via their url but rather used to structure the data coming back from {jrCore_list}.

Docs: "{jrCore_list}"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/89/jrcore-list

Docs: "Creating a page for a skin"
https://www.jamroom.net/the-jamroom-network/documentation/skin-customization/1043/creating-a-new-page-for-a-skin

The other ways to take control of a URL are via site builder:

Docs: "What is Site Builder?"
https://www.jamroom.net/the-jamroom-network/documentation/site-builder/2634/what-is-site-builder

And also skin related

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

That describes how to override a modules template.

The base location for the docs is here:

Docs: Table of Contents
https://www.jamroom.net/the-jamroom-network/documentation/contents

For your current redirect situation, you probably want this code
{if jrUser_is_logged_in()}
  {jrCore_location("`$jamroom_url`/home")}
{else}
  {jrCore_location("`$jamroom_url`/publiclanding")}
{/if} 

If you're wanting an immediate redirect upon that code being seen, or if you're wanting to wrap the home icon in the top left hand corner in a clickable link, then
{if jrUser_is_logged_in()}
  <a href="{$jamroom_url}/home">THE IMAGE HERE</a>
{else}
  <a href="{$jamroom_url}/publiclanding">THE IMAGE HERE</a>
{/if} 
michael
@michael
12/08/16 08:16:31PM
7,837 posts

Quick Share Modal Window - item_share_modal.tpl


Design and Skin Customization

usually if things get no response its because whats being asked is not understood.

To help make it understood, use the title to ask the question, then use the text area to provide enough surrounding info for the viewer of the question to be able to understand it. If they can understand it then they can answer if they know the answer.

QUESTION: "Quick Share Modal Window - item_share_modal.tpl"

Its not really clear what you're asking. Its not clear which skin this is for and from the code alone there is no way to know where $template is set. Is this custom code, or default code.
michael
@michael
12/08/16 08:11:51PM
7,837 posts

Little Help With Config Settings


Design and Skin Customization

You can also do this if you know the name:
jrCore_delete_setting('jrPoll', 'self_voting');

It will work in the same way that
jrCore_register_setting('MixAP',$_tmp);
worked to ADD the setting, that function by itself will delete the unwanted setting. thats probably easier once you know the name.
michael
@michael
12/08/16 08:08:41PM
7,837 posts

Home Icon/link action


Design and Skin Customization

Not sure how to answer. The thread topic is "Home Icon/link action". Not sure how to solve it.

Yes, templates ( .tpl ) files are the templating system for jamroom. You can use them to build whatever you want. Javascript, HTML and functions all work from within templates.

a set of templates are packaged together into a skin. Only one skin runs at a time. It is possible to copy parts from one skin to another skin but in order for it to work you'd need to copy all the parts. Identifying which parts those are is probably going to be the biggest task.
michael
@michael
12/08/16 08:03:24PM
7,837 posts

Little Help With Config Settings


Design and Skin Customization

Use Firebug to see what the ID's of those fields are. guessing they are differently named. If they are you'll need to go into the DB and remove the one you dont want from the jr_jrcore_setting table.

Modules write settings to the database, once they are written, they are there, so if you change the name of the setting you've registered, it re-registers as a different thing, it doesnt delete the old setting name.
michael
@michael
12/08/16 07:59:21PM
7,837 posts

Small Bug Missing Image Media Pro


Using Jamroom

Looks like its got one in the next version. Thanks very much.

Really appreciate being told of this kind of thing.
michael
@michael
12/08/16 07:42:15PM
7,837 posts

Little Help With Config Settings


Design and Skin Customization

Not understanding the question. You have 2 fields added, 2 fields show up. Whats the problem?

Run the integrity check. ( could be that you changed a name, then deleted the code expecting that would delete the field, it won't. Fields are stored in the database once created. )
  309