Forum Activity for @claygordon

Clay Gordon
@claygordon
02/04/15 10:39:47AM
733 posts

Home Page Latest Forum URLs - all broken


Ning To Jamroom

Douglas:

If I was a coder for a living, then "being able to figure out what templates (were modified by what was done) might be a trivial task.

But I am not. I actually think I am fairly representative of most Ningsters. We know some CSS, we know some HTML, we'd prefer not to have to dive into PHP as it's really not a core competency.

You live and breathe this stuff every day. I don't want to. I make stupid mistakes and I want stuff spelled out for me so maybe I will make fewer stupid mistakes.
Clay Gordon
@claygordon
02/04/15 10:35:15AM
733 posts

Order by Last Updated (new comment) on Group Discussions


Ning To Jamroom

I have a much different problem here - same URL problem as in jrForum on the home page in reverse: maybe.

URL for Groups: http://www.thechocolatelife.com/groups

Click on the top group (Startup Central)

http://www.thechocolatelife.com/clay/groups/3/startup-central

Click on " View All "

http://www.thechocolatelife.com/clay/group_discuss/group_id=3

There are no discussions.

Edit the URL to:

http://www.thechocolatelife.com/group_discuss/group_id=3

And there are now discussions - but they are not limited to the Startup Central Group.
updated by @claygordon: 02/04/15 10:50:00AM
Clay Gordon
@claygordon
02/04/15 10:08:55AM
733 posts

Order by Last Updated (new comment) on Group Discussions


Ning To Jamroom

Debug does not work for me - puts everything in-line, not in a pop-up.

I think the template I am looking for is:

modules/jrGroupDiscuss/templates/index.tpl

Line 11:
        {jrCore_list module="jrGroupDiscuss" order_by="_item_id numerical_desc" pagebreak="10" page=$_post.p pager=true}

If I want to order the display by when discussions are updated (which includes adding comments) I need to replace the

order_by="_item_id numerical_desc ...

with

order_by="insert_the_right_variable_here desc ...

What's the value for " insert_the_right_variable_here "?
- 206KB

updated by @claygordon: 03/07/15 04:56:26PM
Clay Gordon
@claygordon
02/04/15 09:48:04AM
733 posts

Missing 8 groups on Ning Import


Ning To Jamroom

Paul -

You should have received these.
Clay Gordon
@claygordon
02/04/15 09:44:58AM
733 posts

Home Page Latest Forum URLs - all broken


Ning To Jamroom

Douglas -

It didn't take too long to merge the above changes into my current working code. All the URLs are now working correctly.

I have to reiterate two requests I've made in the past month to help us understand when changes to a core skin might affect changes we've made in a clone skin:

1) The changelog for a module/skin update should indicate which templates were affected, if any, so we know what we need to compare against to see the diffs.

2) There needs to be a way to review the change logs after we've performed the update so we can refer to specific changes after the item has been installed.

I wonder how many of the other issues I've been having are because I don't know how a module update might affect a template I've edited. Frankly, it's not feasible to compare every template to see if there might be any changes we need to know about.
Clay Gordon
@claygordon
02/04/15 09:20:29AM
733 posts

Creating a sandbox copy of current site - without images - best way


Ning To Jamroom

Paul -

Might be a moot point as I am signing up for the JR hosting beta. One of the benefits of the program, as I understand it, is a sandbox site and I can switch between the two via the control panel.

So, as a part of the move to a JR server this would be taken care of. Unless I misunderstand.
Clay Gordon
@claygordon
02/04/15 08:13:53AM
733 posts

Home Page Latest Forum URLs - all broken


Ning To Jamroom

Apart from changing all of the skin references (jrNingja ==> my skin name) what are the differences between what you sent and what I am using? I can see them at a casual glance.

--- edited to add ---

I just downloaded a new diff/merge utility and I can see the differences - and they are considerable.

What I am going to do is replace my current code with the ningja skin code and then go back and add changes one at a time to get the custom functionality I added.
updated by @claygordon: 02/04/15 08:22:40AM
Clay Gordon
@claygordon
02/04/15 08:09:43AM
733 posts

2 simple questions about private messaging/following


Ning To Jamroom

Tabbing it is not a bad idea and there are lots of examples of this in the UI already so it would make sense from that perspective.

As far as formatting the page I imagine it would be the same layout as ../follow. And though it's a really bad idea to add feature requests this way, I really would like to see the same 2/.../8 controller as in image galleries so that I could see all of my followers without having to scroll through many pages.
updated by @claygordon: 02/04/15 08:10:33AM
Clay Gordon
@claygordon
02/04/15 07:56:25AM
733 posts

Home Page Latest Forum URLs - all broken


Ning To Jamroom

Douglas -

This is NOT using Site Builder and it is a modified version of Ningja skin.

Please note that I was having a similar URL problem a couple of days ago with some URLs in the Activity timeline being badly formed. Brian did something to fix some of them (somewhere in my code I think), but said that a proper long-term fix would require a module update.

The code samples below were modified by me and by Paul during my push in early January to get the site live. They probably need to be cleaned up and I am thinking of going back to adding the scroll and pager. This might be the right time to do that.

I did not modify either of the following blocks of code yesterday.

Part 1 -- index.tpl Embedded Template
{* LATEST FORUM POSTS BLOCK START *}
{* This is the embedded template that is shown for EACH Latest Forum Posts *}
{if isset($_conf.nsTCLSkin1_top_discuss_active) && $_conf.nsTCLSkin1_top_discuss_active == 'on'}
{capture name="template3" assign="forum_tpl"}
{literal}
    {if isset($_items)}
        {jrCore_module_url module="jrForum" assign="furl"}
        {foreach from=$_items item="item"}
            <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>&nbsp;{$item.forum_updated|jrCore_date_format:"%A %B %e %Y, %l:%M %p"}<br>
                                <strong>Last updated {jrCore_lang skin=$_conf.jrCore_active_skin id="46" default="By"}:</strong>&nbsp;<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}
{/literal}
{/capture}
{/if}
{* This is the END of the embedded template that is shown for EACH Latest Forum Posts entry *}


Part 2 -- index.tpl Code that generates the content block
{* BEGIN LATEST FORUM POSTS *}
{if isset($_conf.nsTCLSkin1_top_discuss_active) && $_conf.nsTCLSkin1_top_discuss_active == 'on'}
    {if isset($_conf.nsTCLSkin1_top_discuss_limit) && $_conf.nsTCLSkin1_top_discuss_limit > 5}
    {assign var="post_pb" value=$_conf.nsTCLSkin1_top_discuss_limit}
    {else}
        {assign var="post_pb" value="5"}
    {/if}
    <div class="col8">
        <div class="item blog-archive-header m10">
            <h2>{jrCore_lang skin=$_conf.jrCore_active_skin id="20" default="Latest"} {jrCore_lang skin=$_conf.jrCore_active_skin id="47" default="Forum"} {jrCore_lang skin=$_conf.jrCore_active_skin id="48" default="Posts"}{if strlen($_conf.nsTCLSkin1_forum_profile) > 0} &nbsp; <span class="normal"><a href="{$_conf.nsTCLSkin1_forum_profile}/new_posts">{jrCore_lang skin=$_conf.jrCore_active_skin id="30" default="All"}</a></span>{/if}</h2>
        </div>
        <div class="blog-index-text" style="height:636px; margin: 10px 10px 0px 10px; padding-bottom: 10px;">
            {jrCore_list module="jrForum" search="forum_post_count > 0" order_by="forum_updated desc" template=$forum_tpl pagebreak=$post_pb page=$_post.p}
        </div>
    </div>
{/if}
{* END LATEST FORUM POSTS *}
Clay Gordon
@claygordon
02/04/15 07:40:39AM
733 posts

router and server errors debug


Installation and Configuration

@SE -

Actually, not.

MOST ex-Ningsters -- and I am one of those -- will go with a cPanel or similar "managed" hosting solution specifically because they don't want to deal with the arcana of LAMP configs and such. It's one of the reasons why they went with Ning in the first place rather than building something from scratch in Jomsocial or similar.

$100 month (say) for managed hosting is less than what my base consulting rate is. If I spend 1 hour a month on server management it's worth it to me to pay someone else to manage the server. Arvixe is adequate for my needs now but I am very much looking to moving my JR installation to something desinged for JR hosting and let someone else do the server management rather than moving JR to a generic VPS and managing the server on my own.
  14