Forum Activity for @claygordon

Clay Gordon
@claygordon
02/04/15 09:20:29AM
758 posts

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


Installation and Configuration

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
758 posts

Home Page Latest Forum URLs - all broken


Installation and Configuration

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
758 posts

2 simple questions about private messaging/following


Installation and Configuration

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
758 posts

Home Page Latest Forum URLs - all broken


Installation and Configuration

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
758 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.
Clay Gordon
@claygordon
02/04/15 07:29:37AM
758 posts

Home Page Latest Forum URLs - all broken


Installation and Configuration

More troubleshooting info:

Module URL was changed to " forums " for consistency yesterday as part of a larger discussion on where pages get their names

Skin global config forums URL was changed to http://www.thechocolatelife.com/clay/forums

Skin global config media require images is off.
Clay Gordon
@claygordon
02/04/15 07:18:34AM
758 posts

2 simple questions about private messaging/following


Installation and Configuration

@iamtimbo -

There is no "who I am following" list at the moment. This was brought up in another thread on this topic.

It's a necessary addition. The question is how does it get surfaced in the UI?

I thought it might be nice to add it to the stats section, only visible to the profile owner. Do you have other thoughts?

Still waiting to hear back on when this might get implemented.
Clay Gordon
@claygordon
02/04/15 06:58:27AM
758 posts

Home Page Latest Forum URLs - all broken


Installation and Configuration

If you take a close look at the screen shot - the URL at the very bottom of the page - you will see that it's routed to the member forum, not the site-wide forum owner, which is me.

http://www.thechocolatelife.com/michele-williams/forums/14649/tech-help-tips-tricks-techniques/tempering-chocolate#last

The URLs are correct when I go to the Forums page and they are correct in the Activity Timeline. They are just wrong in the Latest Forums Post box.

This is a problem as you might imagine and, again, I have no idea what might have caused the change in behavior since last night.

One thing I did notice that may or may not be related. When I woke up this morning the Private Notes function was missing from the top nav! I went into the Quota Config and it was set properly there, but I went in and re-applied the quota config settings and it reappeared. This is not the first time this has happened but before I was willing to believe it was because I wasn't paying attention to the quota settings.

I did disable and re-enable the " Allow Profile Forum " capability in the jrForum quota config but this did not address the problem. What I did notice was that when this was off, no Forum posts from members were visible on the home page. I turned it back on and the Forum posts reappeared on the home page, but the URLs were still wrong.

I did not do anything in any of the related template files last night to mess with the URLs this way. I did add some sub-menus to items in the top nav (hover over pages, for example) but I can't see how this would affect what's being displayed in the Latest Profile Forums content block.

- 261KB

updated by @claygordon: 03/08/15 04:52:31PM
Clay Gordon
@claygordon
02/04/15 06:40:00AM
758 posts

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


Installation and Configuration

I could do a partial import.

What happens if I do the import on the entire photos JSON but only the first directory of photos is copied over - the first 1000 images? Will the script fail gracefully? I would do that as a separate import. I am not worried about orphaned images - just enough to be able to test sorting and such.
  17