Forum Activity for @michael

michael
@michael
02/05/15 12:05:52AM
7,832 posts

Build Selected Pages Only in Site Builder?


Ning To Jamroom

Sure. Site builder is the fall back option

If you try to add a menu item called 'audio' and the audio module is installed, then the page will display
your-site.com/audio

which is the audio modules, so it will show.

If you DONT have the audio module then you will be able to build a Site Builder panels page at
your-site.com/audio

But if you turn the audio module on after that then it will take precedence and show.

SO....

Templates also take priority. If you add a template file to the skin
/skins/(YOUR SKIN)/unicorns.tpl

It will be visible at
YOUR-SITE.com/unicorns

If you add a menu item 'unicorns' that will have the url
YOUR-SITE.com/unicorns

so that .tpl file will show. If its not there, then this page is created for you:
{jrCore_include template="header.tpl"}

{jrPanel_display name="unicorns"}

{jrCore_include template="footer.tpl"}

You can put fixed stuff around a panel if you set it up like that. Or have no panel at all. Its very flexible.
michael
@michael
02/04/15 11:47:50PM
7,832 posts

new page titles and meta tags


Using Jamroom

Its not a fixed explanation because I've never built what your wanting before. Its just a guide to how I would look for how to do it.

I'm not certain which the best way would be. Depends on how many pages need to be done with different titles to their menu links.
michael
@michael
02/04/15 11:41:29PM
7,832 posts

Performance Test - Details


Using Jamroom

It compares
* the processor calculation speed
* the database read/write speed
* the file system access speed

of the server that your running to a baseline system of a "XEON @ 2.8GHz, 1 GB RAM and Fast SSD Disk"

The exact process can be seen in the view_jrCore_performance_check() function in
/modules/jrCore/index.php
michael
@michael
02/04/15 11:22:55PM
7,832 posts

Embedding A Form


Design and Skin Customization

I know you've been playing with the Site Builder, so if your on one of those pages, put the code into the CODE tab of the widget, not the editor.

eg:
* add a widget
* click on the "Widget Settings" button to show the editor
* look in the top left corner of that popup and you will see EDITOR | CODE. Click on the CODE button to change the editor to the code view.

The EDITOR and the CODE views are completely separate its one or the other that is showing. If your wanting to put in some script, then use the CODE.

eg, to put the twitter widget code in there, use this code:
            <a class="twitter-timeline"  href="https://twitter.com/jamroomdev" data-widget-id="456325856210599936">Tweets by @jamroomdev</a>
            <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
          

That example code will put the twitter widget for @jamroomdev on your page.

One important thing to note though that could screw things up, is if the code is compressed.

Smarty code is enclosed in brackets {$something} and javascript also uses {}. Smarty will ignore javascripts brackets as long as there is a space between the { and the first letter.

So if your code looks like this:
.....mentById(id)){js=d.createE.......
you need to add a space between the { and the next character.

Needs to become
.....mentById(id)){ js=d.createE.......

So a working version of that twitter code above would be:
<a class="twitter-timeline"  href="https://twitter.com/jamroomdev" data-widget-id="456325856210599936">Tweets by @jamroomdev</a>
<script>!function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){ js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
          
michael
@michael
02/04/15 10:16:47PM
7,832 posts

Bad Code - Front Page Disappeared


Design and Skin Customization

A new version is in the marketplace that now checks that the code is good in the widget before its saved. So going forward, you shouldn't be able to break it anymore.

If you try to save with bad code it will say
Quote: "There is a syntax error in your template - please fix and try again"

If you do find ways to break it, let us know.
michael
@michael
02/04/15 08:15:01PM
7,832 posts

new page titles and meta tags


Using Jamroom

This is implemented in jrMenu version 1.0.10 and is in the marketplace now.

The menu name is set in
/modules/jrMenu/templates/page.tpl

to use the $menu_title. If you could setup a way to add extra stuff to the menu item, you could use that in a template over-ride at
/skins/(YOUR SKIN)/jrMenu_page.tpl

and retrieve the info you wanted for the page title and use that. Its a bit fiddley because the jrmenu system doesnt use the Form Designer, but possible.
michael
@michael
02/04/15 07:29:41PM
7,832 posts

Site Builder Menu Wrong Way Round


Using Jamroom

Yeah, its possible, it just needs to be implemented at the skin level. It requires the templates to be shuffled around a bit. I'll have to check with Doug before fiddling with the skins.

if you want to implement it for yourself, the solution is here

http://stackoverflow.com/questions/7614717/li-elements-have-float-left-to-be-aligned-to-the-right-in-a-container

in
/skins/jrNingja/css/menu.css
#menu li {
    float: left;
    border-right: 0 solid #000;
    position: relative;
}

and
#menu, #menu ul {
    padding: 0;
    list-style: none;
    float: right;
}

That will reverse the order of the menu items in the header menu. Then swap the order in the templates:
/skins/jrNingja/header_menu_desktop.tpl and
/skins/jrNingja/header_menu_mobile.tpl
michael
@michael
02/04/15 06:58:08PM
7,832 posts

Return all items in a long list


Using Jamroom

so if im understanding correctly the question is now a CSS question about fixed height div's not looking the same across browsers?

Got a link so I can fiddle with firebug?
michael
@michael
02/04/15 12:36:07PM
7,832 posts

How Do You Add Another Row To An Existing Layout ?


Using Jamroom

There is no way to alter an existing layout. you'd need to re-create a new layout in the structure you wanted and shift the blocks around.

when you change layouts, the widgets still exist and will fall into where they were put IF that section exists.

so if you had a 6-6 layout and put some widgets into both columns, then changed the page layout to a 12 layout, all the items that were in the first column of the 6-6 layout would be shown, but the other column would not show up until you changed to a layout that had 2 columns.

The system records like this:
"first column widgets" "second column widgets" "third column widgets"

so altering a layout to insert a row would need to updated all the widgets to move them out so the row could go in. Not something I'd really like to do unless its really needed. vitally important?
michael
@michael
02/04/15 12:29:31PM
7,832 posts

Return all items in a long list


Using Jamroom

the construction kit list is the same as {jrCore_list} (only difference is its in the editor instead of a .tpl file) so the docs for here are applicable.

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

The default limit, if i remember correctly, is 12 if none is set. There is no unlimited because that could be crazy huge.

the combination of page, pagebreak and pager can be used like limit too if you want to get results from a different ordering section.

eg:
{jrCore_list module="jrAudio" limit="30"}

will get you from 1~30 of the audio modules items.

but
{jrCore_list module="jrAudio" page="2" pagebreak="30"}
will give you from 31~60

and if you add pager=true to that you get the buttons to change pages if you want them.
  591