Forum Activity for @ultrajam

SteveX
@ultrajam
01/24/15 06:48:13AM
2,589 posts

Profile Domain Module - Procedure not Recommended?


Using Jamroom

http://serverfault.com/questions/85959/does-webmin-virtualmin-overwrite-apache-conf-files-like-plesk
The dev's answer is informative although it is 5 years old. It sounds like the Jamroom module would work fine with webmin/virtualmin (which is equivalent to whm/cpanel), but the dev doesn't know of other systems which don't overwrite config files using templates.
SteveX
@ultrajam
01/23/15 10:45:24AM
2,589 posts

Broken URL in Forum listings on Home Page


Ning To Jamroom

You'd put this part into a separate template in your skin directory named (for example) index_forum_row.tpl
    {if isset($_items)}
        {jrCore_module_url module="jrForum" assign="furl"}
        {foreach from=$_items item="item"}

           {debug}

            <div class="container">
                <div class="row">
                    <div class="col2" style="padding-bottom: 12px;">
                        <a href="{$jamroom_url}/{$item.profile_url}">{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="large" crop="auto" alt=$item.user_name width=false height=false class="iloutline img_scale"}</a><br>
                    </div>
                    <div class="col10 last">
                        <div class="p5" style="padding-top: 0px;">
                            {* <h3><a href="{$jamroom_url}/{$item.forum_updated_profile_url}/{$furl}/{$item._item_id}/{$item.forum_cat_url}/{$item.forum_title_url}#last">{$item.forum_title|truncate:60}</a></h3> *}
                            <h3><a href="{$jamroom_url}/{$item.profile_url}/{$furl}/{$item._item_id}/{$item.forum_cat_url}/{$item.forum_title_url}#last">{$item.forum_title|truncate:60}</a></h3>
                            <div class="normal" style="line-height: 15px;">
                                <strong>{jrCore_lang skin=$_conf.jrCore_active_skin id="45" default="Posted"}:</strong> {$item.forum_updated|jrCore_date_format:"%A %B %e %Y, %l:%M %p"}<br>
                                <strong>{jrCore_lang skin=$_conf.jrCore_active_skin id="46" default="By"}:</strong> <a href="{$jamroom_url}/{$item.forum_updated_profile_url}">@{$item.forum_updated_user_name}</a><br>
                                <strong>In: <a href="{$jamroom_url}/{$item._profile_url}/{$furl}/{$item.forum_cat_url}">{$item.forum_cat}</a></strong><br><br>
                                {$item.forum_text|strip_tags|truncate:200:"..."}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        {/foreach}
    {else}
    <div class="center p10">
        <h3>{jrCore_lang skin=$_conf.jrCore_active_skin id="26" default="No"} {jrCore_lang skin=$_conf.jrCore_active_skin id="19" default="Discussions"}!</h3>
    </div>
    {/if}

Then your test.tpl can be changed to this:
{assign var="selected" value="home"}
{* Include Header File *}
{jrCore_include template="header.tpl"}


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

        {* BEGIN TEST CODE *}
        
        <div class="row">
         
         {jrCore_list module="jrForum" order_by="_created desc" template="index_forum_row.tpl" limit="10"}
        
        </div>
        {* END TEST CODE *}
	</div>
    {* END Container *}

{* Include Footer File *}
{jrCore_include template="footer.tpl"}
The {jrCore_list call might need search parameters etc to work exactly like it does on your index page.
updated by @ultrajam: 01/23/15 10:45:53AM
SteveX
@ultrajam
01/23/15 10:33:35AM
2,589 posts

Broken URL in Forum listings on Home Page


Ning To Jamroom

Glad you found it Clay!

{debug} doesn't work in a {capture} block with {literal}, it needs to be in a template.

Having the wrong variable name wont cause an error or exception, the variable just contains "" (nothing at all), so that's what ends up in the page.
SteveX
@ultrajam
01/23/15 10:25:19AM
2,589 posts

Broken URL in Forum listings on Home Page


Ning To Jamroom

or {$item.forum_updated_profile_url}
SteveX
@ultrajam
01/23/15 10:23:25AM
2,589 posts

Broken URL in Forum listings on Home Page


Ning To Jamroom

Ah, you are using capture - that won't work with debug.

Either move your row code into a separate template, or take a guess as to what variable might contain the profile url - try $item.profile_url, $profile_url, $_profile_url
SteveX
@ultrajam
01/23/15 10:20:26AM
2,589 posts

Broken URL in Forum listings on Home Page


Ning To Jamroom

That won't work - to contain the profile url for a profile item you need to put your jrCore_list call into the template to list those items. Take a look in your index template and copy that call into your test.tpl, then the debug needs to go in the index_item_list.tpl (or whichever template is specified in your jrCOre_list call.
SteveX
@ultrajam
01/23/15 10:13:36AM
2,589 posts

Broken URL in Forum listings on Home Page


Ning To Jamroom

But it looks like it is just in the test.tpl as there is no $item or profile info. You'd need it in the row/item_list template used to list the forum posts.

Are you using debug within a capture block or $template block rather than an item_list template?
SteveX
@ultrajam
01/23/15 10:06:35AM
2,589 posts

Broken URL in Forum listings on Home Page


Ning To Jamroom

I've just tried your link, and when I allow the popup (in Firefox) and then refresh the popup appears.
SteveX
@ultrajam
01/23/15 09:38:55AM
2,589 posts

Broken URL in Forum listings on Home Page


Ning To Jamroom

Put {debug} into the template next to your link then load up the page in your browser. The popup will contain all of the variables available in that template.
SteveX
@ultrajam
01/22/15 05:49:40AM
2,589 posts

Show Googlemaps in profiles and show all profiles on one map.


GoogleMaps

Heres the docs for multi-item maps:
https://www.jamroom.net/ultrajam/documentation/modules/1790/multi-item-multi-marker-maps-eg-gps-location-for-photos-in-jrgallery

Put {debug} into your template to make sure that you have the necessary variables int he template you are doing this in.

Check to see if you have any javascript errors on your page, check that you are passing in the right data for your profiles and that they have mappable data added.
  113