Forum Activity for @garymoncrieff

gary.moncrieff
@garymoncrieff
04/05/15 06:28:37AM
865 posts

Profile Category filter


Design and Skin Customization

Well doh just seen the problem that was starring me in the face all day.
gary.moncrieff
@garymoncrieff
04/04/15 10:14:29PM
865 posts

Profile Category filter


Design and Skin Customization

Yes it wasn't showing any results, but a bit more investigation has revealed I had to use profile_business_category_0 as it appears chained select appends top level with _0 and sub levels with _1 etc.

The categories are now listing fine, but there is something wrong with the display template now, it's not showing the categories for the url.

So in the Businesses.tpl I have the following code, checking to see if the search string is populated, if not display the default info, otherwise show filtered results.

                  <h1>{if isset($_post.search_area) && $_post.search_area == 'business_category'}<span style="font-weight:normal;">Businesses&nbsp;in&nbsp;</span>{$_post.search_string}&nbsp;{/if}</h1>

                    {if isset($_post.search_area) && $_post.search_area == 'business_category'}
                    {jrCore_list module="jrProfile" order_by="profile_view_count numerical_desc" search1="business_category_0 like `$_post.search_string`" template="businesses_row.tpl" pagebreak=$_conf.gmPlugu2_default_pagebreak page=$_post.p}
                    {else}
                    {* HOT BUSINESSES *}
                    <a id="hotbusinesses" name="hotbusinesses"></a>
                    <div class="row">

                        <div class="col12 last">

                            <h1><span style="font-weight: normal;">{jrCore_lang skin=$_conf.jrCore_active_skin id="174" default="Hot"}</span> Businesses</h1><br>
                            <br>
                            <div class="top_singles_body mb30 pt20">
                                <div id="hot_businesses">
                                </div>
                            </div>

                        </div>

                    </div>

                    {* NEWEST businesses *}
                    <div class="row">

                        <div class="col12 last">

                            <h1><span style="font-weight: normal;">{jrCore_lang skin=$_conf.jrCore_active_skin id="11" default="Newest"}</span> Businesses</h1><br>
                            <div class="mb30 pt20">
                                <div id="businesses_newest">

                                </div>
                            </div>

                        </div>

                    </div>

                    {* TOP 10 businesses *}
                    <div class="row">

                        <div class="col12 last">

                            <h1><span style="font-weight: normal; color:#FF3399;">{jrCore_lang skin=$_conf.jrCore_active_skin id="58" default="top"}</span>&nbsp;10&nbsp;<span style="font-weight: normal; color:#FF3399;">Businesses</span></h1><br>
                            <br>
                            <div class="mb30 pt20">
                                <div id="top_businesses">

                                </div>
                            </div>

                        </div>

                    </div>
                    {/if}

The businesses_row.tpl looks like this

{if isset($_items)}
        {foreach from=$_items item="item"}
        <div class="body_5 page" style="margin-right:auto;">
            <div class="container">
                <div class="row">

                    <div class="col2">
                        <div class="center mb10">
                            <a href="{$jamroom_url}/{$item.profile_url}">{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$item._profile_id size="large" crop="auto" class="iloutline img_shadow img_scale" alt=$item.profile_name title=$item.profile_name style="max-width:290px;"}</a><br>
                        </div>
                    </div>
                    <div class="col10 last">
                        <div class="left" style="padding-left:15px;">
                            {if jrUser_is_admin() || jrUser_is_master()}
                                <div class="block_config">
                                    {jrCore_item_update_button module="jrProfile" view="settings/profile_id=`$item._profile_id`" profile_id=$item._profile_id item_id=$item._profile_id title="Update Profile"}
                                </div>
                            {/if}
                            <span class="capital bold">{jrCore_lang skin=$_conf.jrCore_active_skin id="121" default="Name"}</span>: <a href="{$jamroom_url}/{$item.profile_url}" title="{$item.profile_name}"><span class="capital bold">{$item.profile_name}</span></a><br>
                            {if isset($_post.option) && $_post.option == 'by_newest'}
                                <span class="capital bold">{jrCore_lang skin=$_conf.jrCore_active_skin id="122" default="Joined"}</span>: <span class="hl-2">{$item._created|date_format:"%A, %B %e, %Y %I:%M:%S %p"}</span><br>
                            {/if}
                            <span class="capital bold">{jrCore_lang skin=$_conf.jrCore_active_skin id="50" default="Views"}</span>: <span class="hl-4">{$item.profile_view_count}</span><br>
                            <br>
                            {if strlen($item.profile_bio) > 0}
                                <span class="capital bold">{jrCore_lang skin=$_conf.jrCore_active_skin id="118" default="About"}</span>:<br>
                                {if strlen($item.profile_bio) > 150}{$item.profile_bio|jrCore_format_string:$item._profile_id:$item.profile_quota_id|truncate:150:"...":false}{else}{$item.profile_bio|jrCore_format_string:$item.profile_quota_id}{/if}
                            {/if}
                        </div>
                        <div class="float-right" style=";padding-top:9px;">
                            <a href="{$jamroom_url}/{$item.profile_url}" title="View {$item.profile_name}"><div class="button-more">&nbsp;</div></a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {/foreach}

    {if $info.total_pages > 1}
        <div class="block">
            <table style="width:100%;">
                <tr>

                    <td class="body_4 p5 middle" style="width:25%;text-align:center;">
                        {if isset($info.prev_page) && $info.prev_page > 0}
                            {if isset($_post.search_area) && $_post.search_area == 'business_category'}
                                <a href="{$info.page_base_url}/search_area={$_post.search_area}/search_string={$_post.search_string}/p={$info.prev_page}"><span class="button-arrow-previous">&nbsp;</span></a>
                            {else}
                                <a href="{$info.page_base_url}/p={$info.prev_page}"><span class="button-arrow-previous">&nbsp;</span></a>
                            {/if}
                        {else}
                            <span class="button-arrow-previous-off">&nbsp;</span>
                        {/if}
                    </td>

                    <td class="body_4 p5 middle" style="width:50%;text-align:center;color:#000;">
                        {if $info.total_pages <= 2 || $info.total_pages > 500}
                            {$info.page} &nbsp;/ {$info.total_pages}
                        {else}
                            <form name="form" method="post" action="_self">
                                {if isset($_post.search_area) && $_post.search_area == 'business_category'}
                                <select name="pagenum" class="form_select" style="width:60px;" onchange="var sel=this.form.pagenum.options[this.form.pagenum.selectedIndex].value;window.location='{$info.page_base_url}/search_area={$_post.search_area}/search_string={$_post.search_string}/p=' +sel">
                                    {else}
                                    <select name="pagenum" class="form_select" style="width:60px;" onchange="var sel=this.form.pagenum.options[this.form.pagenum.selectedIndex].value;window.location='{$info.page_base_url}/p=' +sel">
                                        {/if}
                                        {for $pages=1 to $info.total_pages}
                                            {if $info.page == $pages}
                                                <option value="{$info.this_page}" selected="selected"> {$info.this_page}</option>
                                            {else}
                                                <option value="{$pages}"> {$pages}</option>
                                            {/if}
                                        {/for}
                                    </select>&nbsp;/&nbsp;{$info.total_pages}
                            </form>
                        {/if}
                    </td>

                    <td class="body_4 p5 middle" style="width:25%;text-align:center;">
                        {if isset($info.next_page) && $info.next_page > 1}
                            {if isset($_post.search_area) && $_post.search_area == 'business_category'}
                                <a href="{$info.page_base_url}/search_area={$_post.search_area}/search_string={$_post.search_string}/p={$info.next_page}"><span class="button-arrow-next">&nbsp;</span></a>
                            {else}
                                <a href="{$info.page_base_url}/p={$info.next_page}"><span class="button-arrow-next">&nbsp;</span></a>
                            {/if}
                        {else}
                            <span class="button-arrow-next-off">&nbsp;</span>
                        {/if}
                    </td>

                </tr>
            </table>
        </div>
    {/if}

{/if}


Thanks
gary.moncrieff
@garymoncrieff
04/04/15 09:34:54AM
865 posts

Reclaim Page URLS


Using Jamroom

Yes exactly
gary.moncrieff
@garymoncrieff
04/04/15 09:24:50AM
865 posts

Profile Category filter


Design and Skin Customization

Hi Brian

Thanks for the reply I was using the group_by but couldn't get anything to show, debug shows business_category as profile_business_category

The left column of the page is included in it's own template file and for the category section it has this code:

<div class="title_block">Categories</div>

<div class="sub_section_menu">
    {jrCore_list module="jrProfile" group_by="profile_business_category" template="business_category.tpl"}
</div>

and then in the business_category.tpl

{if isset($_items)}
    {jrCore_module_url module="jrProfile" assign="murl"}
    <ul>
    {foreach from=$_items item="item"}
         <li><a href="{$jamroom_url}/businesses/search_area=business_category/search_string={$item.profile_business_category}">{$item.profile_business_category}</a></li>
   {/foreach}
   </ul>
{/if}

I remember I got stumped at this stage when I last worked on this section a few months ago.
gary.moncrieff
@garymoncrieff
04/04/15 02:55:03AM
865 posts

Looking for Beta Testers


Archived

Hey

I would be interested too but not using Jamroom for educational purposes.
gary.moncrieff
@garymoncrieff
04/04/15 02:26:04AM
865 posts

Profile Category filter


Design and Skin Customization

Hey Guys

This one will take a bit of explaining!

I have a business profile quota and then a page on my site for the Business profiles.

Each business profile can select a Category and Sub Category for their business (chained select: business_category).

I want to include a block on the Business page, that would list all the categories with Businesses in them and then all these to be filtered.

I have managed to achieve category filters in events, music, videos so far but this has me stumped.

Thanks

Gary
updated by @garymoncrieff: 05/08/15 12:21:45PM
gary.moncrieff
@garymoncrieff
04/04/15 02:10:40AM
865 posts

Reclaim Page URLS


Using Jamroom

Hey

If you had designed a page using site builder and then wanted to do it via the template method, even after deleting all the widgets and panels, the page is still not available for the template to use.

Even after clearing all panels from the system, disabling site builder modules and clearing cache the page you have just added a template for will give you a 404 error.

So how do you reclaim the urls to be used for template files?

Thanks

Gary

updated by @garymoncrieff: 12/22/16 11:55:59AM
gary.moncrieff
@garymoncrieff
04/02/15 02:01:43PM
865 posts

How to install Site Builder


Using Jamroom

Yes Brian the username and password was in the post
gary.moncrieff
@garymoncrieff
04/02/15 01:42:36PM
865 posts

How to install Site Builder


Using Jamroom

you need to delete your details from this post it is open to the public.
gary.moncrieff
@garymoncrieff
03/30/15 11:44:54PM
865 posts

Merchandise Store


Suggestions

Some other things to please consider are

Woocommerce has a plugin that allows products to be displayed on Facebook page, would this be possible through share this?

Site Products - the notion of a site product that could execute a piece of code on purchase to perform an action on the site. ie feature profile, client buys this product, their profile ID is added to the featured profiles slider automatically, ideally would auto remove after set period too.

A new flashier dashboard with graphs showing profits etc
  55