Forum Activity for @douglas

douglas
@douglas
11/08/14 04:54:37AM
2,812 posts

Simple HTML and CSS usage in Jamroom


Design and Skin Customization

Jamroom takes a little getting use to and can be daunting at first, but once you start to understand how things work, it becomes easier and easier.

A new template for the Elastic skin might look something like this:

{jrCore_include template="header.tpl"}

{* BEGIN CONTAINER *}
<div class="container">

    {* BEGIN ROW *}
    <div class="row"> 

        {* BEGIN LEFT SIDE *}
        <div class="col3">

            {* Left Side Block *}
            <div class="block">
                <div class="title">
                    <h2>Title Here</h2>
                </div>
                <div class="block_content">
                    <div class="item">
                        jrCore_list function here to show a list of items.
                    </div>
                </div>
            </div>

        </div>
        {* END OF LEFT SIDE *}



        {* BEGIN CENTER SECTION *}
        <div class="col6">

            <div class="title">
                <h2>Title Here</h2>
            </div>
            <div class="block_content">
                <div class="item">
                    jrCore_list function here to show a list of items.
                </div>
            </div>

        </div>
        {* END CENTER SECTION *}

        {* BEGIN RIGHT SIDE *}
        <div class="col3 last">

            {* Left Side Block *}
            <div class="block">
                <div class="title">
                    <h2>Title Here</h2>
                </div>
                <div class="block_content">
                    <div class="item">
                        jrCore_list function here to show a list of items.
                    </div>
                </div>
            </div>

        </div>
        {* END RIGHT SIDE *}

    </div>
    {* END ROW *}

</div>
{* END CONTAINER *}

{jrCore_include template="footer.tpl"}


updated by @douglas: 11/08/14 05:00:59AM
douglas
@douglas
11/08/14 04:41:45AM
2,812 posts

only add img code if user uploaded img


Design and Skin Customization

I just tested this on my dev site and you'll want to use this:

{if isset($profile_cover_image_size) && strlen($profile_cover_image_size) > 0}
{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_cover_image" item_id=$_profile_id size="xlarge" class="img_scale" alt=$profile_name title=$hover width=false height=false}{else}
Something else here...
{/if}

Hope this helps! :)
douglas
@douglas
11/07/14 02:18:28PM
2,812 posts

jrUrlScan module NOT WORKING...


Design and Skin Customization

Make sure you have the Convert Media URLs (UrlScan) checkbox checked in your ACP > Core > Quota Config for the quotas your allowing this feature.

Hope this helps! :)
douglas
@douglas
11/07/14 01:53:30PM
2,812 posts

creating a profile cover photo (1 missing peicce to the puzzle)


Ning To Jamroom

Stick a debug in the template and see if you can see the variable available.

{debug}

updated by @douglas: 12/29/14 09:23:54AM
douglas
@douglas
11/07/14 10:52:36AM
2,812 posts

creating a profile cover photo (1 missing peicce to the puzzle)


Ning To Jamroom

Are you working in developer mode with core cache setting set to 0? If not try clearing your cache via the ACP > System Tools > Reset Cache.
updated by @douglas: 12/29/14 09:23:54AM
douglas
@douglas
11/07/14 10:49:53AM
2,812 posts

creating a profile cover photo (1 missing peicce to the puzzle)


Ning To Jamroom

Some things will get stripped out of a post if its not allowed.

If you want to put code in that doesn't get stripped, use the bbcode "[ code ] [ /code ]" tags.
updated by @douglas: 12/29/14 09:23:54AM
douglas
@douglas
11/07/14 09:54:25AM
2,812 posts

creating a profile cover photo (1 missing peicce to the puzzle)


Ning To Jamroom

Try this:

{if isset($profile_cover_image) && strlen($profile_cover_image) > 0}
{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_cover_image" item_id=$_profile_id size="xlarge" class="img_scale" alt=$profile_name title=$hover width=false height=false}{/if}

updated by @douglas: 12/29/14 09:23:54AM
douglas
@douglas
11/07/14 09:31:16AM
2,812 posts

creating a profile cover photo (1 missing peicce to the puzzle)


Ning To Jamroom

Try this:


{if issset($profile_cover_image) && strlen($profile_cover_image) > 0}
image code here....
{else}
show something else here....
{/if}


Or this if you don't want to show anything if there isn't an image uploaded.


{if issset($profile_cover_image) && strlen($profile_cover_image) > 0}
image code here....
{/if}


Hope this helps! :)
updated by @douglas: 12/29/14 09:23:54AM
douglas
@douglas
11/07/14 07:54:24AM
2,812 posts

creating a profile cover photo (1 missing peicce to the puzzle)


Ning To Jamroom

You could setup a custom field in the ACP > Profiles > User Profiles > Tools > Create New Profile > Form Designer.

Call the new field profile_cover_image and set these fields on the following screen.

Label - Cover Image
Type - image
Display Groups - (group) All Users (including logged out)
Active - checked

all other fields should be blank unless you want to use the help field.

Once that is done, you'll want to create/modify one for the "modify profile" form, its in the select drop down above the field list on the right.

Once you have both of those fields created/modified, you would use this to show the image in a profile_ template.

{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_cover_image" item_id=$_profile_id size="xlarge" class="img_scale" alt=$profile_name title=$hover width=false height=false}

https://www.jamroom.net/the-jamroom-network/documentation/development/769/jrcore-module-function

Hope this helps! :)
updated by @douglas: 12/29/14 09:23:54AM
  198