solved Left Column Info Missing

Ken Rich
Ken Rich
@ken-rich
8 years ago
926 posts
I have two editors members can use to add left column information.

They used to work fine until one day the code magically, inexplicably, disappeared. This was the code.

{* Begin About User Section *}
			{if !jrCore_is_mobile_device()}

			  
			    {jrCore_list module="jrUser" profile_id=$_profile_id template=$aboutuser_row assign="abtuser"}
			    {if isset($abtuser) && strlen($abtuser) > 0}
			        <div class="block">
			            <h3>About</h3>
			            <div class="block_content mt10">
			                <div style="padding-top:8px;">
               				    {$abtuser}
			                </div>
			            </div>
			        </div>
			    {/if}
	
			{/if}
			{* End About User Section *}


			{* Begin User Website *}
			{if !jrCore_is_mobile_device()}

			   			    {jrCore_list module="jrUser" profile_id=$_profile_id template=$userweb_row assign="userweb"}
			    {if isset($userweb) && strlen($userweb) > 0}
			        <div class="block">
			            <h3>Website</h3>
			            <div class="block_content mt10">
			                <div style="padding-top:8px;">
			                    {$userweb}
			                </div>
			            </div>
			        </div>
			    {/if}

			{/if}
			{* End User Website *} 


So I opened a support ticket and Brian came up with a similar code which seemed to work (and stay put).

{* Begin About User Section *}
			{capture name="aboutuser" assign="aboutuser_row"}
			    {literal}
			        {if isset($_items)}
			            {foreach $_items as $item}
            			    {$item.user_signup_question_2}
			            {/foreach}
			        {/if}
			    {/literal}
			{/capture}

			{jrCore_list module="jrUser" profile_id=$profile_id template=$aboutuser_row assign="abtuser"}
			{if isset($abtuser) && strlen($abtuser) > 0}
			    <div class="block">
			        <h3>About</h3>
			        <div class="block_content mt10">
			            <div style="padding-top:8px;">
			                {$abtuser}
			            </div>
			        </div>
			    </div>
			{/if}
			{* End About User Section *}  

Then after several weeks my old code magically, inexplicably, returned. So I had two codes and the same info repeating twice in my left columns (see attached screenshot). I then deleted my (returned) code manually, since I was unable to delete Brians. When I tried to delete Brian's and leave my original, I saw an error about missing templates (click link).

https://indiegospel.net/image/img/module/jrImage/Error.JPG?r=2001673720

However, while checking this out I stumbled across a problem I had not noticed before. My left column info (from the editors) is only showing when logged in. It disappears when I am logged out.

I do not understand why or how to fix it.
Capture.JPG.jpg
Capture.JPG.jpg  •  25KB




--

Ken Rich
indiegospel.net

updated by @ken-rich: 03/28/17 01:40:54AM
michael
@michael
8 years ago
7,717 posts
In order to understand how to fix it you need to be able to explain whats happening, so if you figure out why its disappearing the key will be there.
Ken Rich
Ken Rich
@ken-rich
8 years ago
926 posts
I have two problems with that response.

1) I have already indicated that the original code magically, inexplicably, disappeared and reappeared weeks later. I haven't the foggiest clue how that could happen. Something to do with installing the Jamroom updates I would assume (but really I can't imagine how).

2) My current dilemma is how to get the currently installed code (from Brian) functioning when logged out. Then my profiles will at least be functional until this gets sorted out.


--

Ken Rich
indiegospel.net
michael
@michael
8 years ago
7,717 posts
Nothing magical happens on a server. Its all cause and effect.

We try to help out anyone having issues here in the forums where we can, but the level of assistance is always going to be limited to how well you can describe the problem.

From your explanation above I can ascertain the following.
* You've added some custom code that does something.
* The custom code stopped working for reasons you don't understand or cant explain.
* You've received assistance previously to correct the problem.
* After receiving assistance you've altered the code again.

This is where the problem began.

You believe there is a problem that relates to something you expect to be there not being there.

Its unclear what you want the desired outcome to be.

This relates to custom development done and you desire someone to fix it for you.

In order to understand how to fix it you need to be able to explain whats happening, so if you figure out why its disappearing the key will be there.

Start by writing a guide that anyone can follow on how to setup where you're up to now.

Then add what you would like the desired outcome to achieve and if anyone knows how to get you from what you have described to the desired outcome they will attempt to help out.
Ken Rich
Ken Rich
@ken-rich
8 years ago
926 posts
This is not exactly a problem of "custom code" because I am not a code writer.

- What disappeared was standard Ningja code copied to a clone of the skin. The only thing added was an additional editor which was done the same way as the first and under Jamroom guidance, since I didn't know how to do it. Therefore, I have a high degree of confidence in the code because of its Jamroom pedigree and the fact that it's been working for a long time, basically ever since Ningja came out (until recently).

- It did disappear for reasons I can't explain, possibly because of upgrades that would affect how older Ningja code works or doesn't work??????????

- The desired outcome is to simply display the left column info provided by the editors both when logged in and logged out.

- The way to get to where I am now is to install the non-standard code Brian provided which works when logged in but does not when logged out. I can't delete Brian's code and go back to the original (which seems to work since it returned) because I get this error when Brian's is removed.https://indiegospel.net/image/img/module/jrImage/Error.JPG?r=2001673720

- What I am hoping for immediately is a way to display my left column information (from the editors the rest works) when both logged in and logged out. I don't care if it's with Ningja code, Brians code, or a new code.


--

Ken Rich
indiegospel.net
douglas
@douglas
8 years ago
2,791 posts
Did you happen to change the skins for the profile in question in your account settings > customize tab?

I can see that all of your custom skins do not have the same profile side code, in fact some of the skins have very little side information for the profile pages. If you change skins in your customize tab, I can see the side info be changed as well.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Ken Rich
Ken Rich
@ken-rich
8 years ago
926 posts
Hi Derrick,

Thanks for the input. I'm going to look that stuff when I'm fresh because I am too burned out at the moment to size it up properly.


--

Ken Rich
indiegospel.net
Ken Rich
Ken Rich
@ken-rich
8 years ago
926 posts
douglas:
Did you happen to change the skins for the profile in question in your account settings > customize tab?

I can see that all of your custom skins do not have the same profile side code, in fact some of the skins have very little side information for the profile pages. If you change skins in your customize tab, I can see the side info be changed as well.

Hi Douglas,

The way my customize section works is I start with a Ningja clone (with one additional editor for the left column). That is the "Complete" skin (default). Then I remove more and more of the features of that skin in successive versions. Compact, Clean, Cleaner, Whitelabel. That gives members a choice in their customize section to have a fully populated or less cluttered look to their profile page.

However, the two editors feeding info to the left column are common to all those skins. They always worked until the code mysteriously vanished a few weeks ago.

Brian gave me some replacement code and it seemed to work but I've now noticed it only works when I'm logged in. When logged out the info the editors provide for the left column disappears.

I can't remove Brian's code without generating the error linked above. So I had to delete my original editor codes (which somehow reappeared) because I began getting two copies of my left column information displayed when the original codes came back.

So this is all very confusing and doesn't even seem possible (to me). In the end, what I need to do is simple.

I am just trying to get the editors that feed the left column (in all my skins) to display their info both when logged in and logged out.


--

Ken Rich
indiegospel.net
douglas
@douglas
8 years ago
2,791 posts
Yes, there is something very odd about your setup, for instance, you have a website section on the side for your Indiegospel profile, and that profiles skin is set to "Cleaner" in its customize tab, however the Cleaner skin does not have code for the website section shown in the attachment.

I'm not sure how or why this is happening, it is very strange.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Ken Rich
Ken Rich
@ken-rich
8 years ago
926 posts
Hi Douglas,

If you refer to the attached screenshot, that info is coming from the two editors in the account section of the profile settings - https://indiegospel.net/user/account/profile_id=1/user_id=1

Those are displayed by the profile_sidebar.tpl

I don't know how the website editor is displaying in that particular skin without this code (present in the others)???????

			{* Begin User Website *}
			{if !jrCore_is_mobile_device()}

			    {capture name="userwebsite" assign="userweb_row"}
				    {literal}
				        {if isset($_items)}
				            {foreach $_items as $item}
				                {$item.user_signup_question_6}
				            {/foreach}
				        {/if}
				    {/literal}
			    {/capture}

			   

			{/if}
			{* End User Website *} 
Indie.JPG.jpg
Indie.JPG.jpg  •  80KB




--

Ken Rich
indiegospel.net

updated by @ken-rich: 12/20/16 07:52:31AM
douglas
@douglas
8 years ago
2,791 posts
Hey Ken,

I've got this fixed for you, let me know if that is what your after.

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Ken Rich
Ken Rich
@ken-rich
8 years ago
926 posts
Hi Douglas,

It seems to work right in the regular profiles both signed in and not signed in (which is great),

However, I have someone just signing up and their left column info is an amalgamation of everyone's.

Here - https://indiegospel.net/shirleysimpson Also attached as screenshot

++++++++++++++++++++++

I saw this before, when I was first given the code. I just checked the old ticket. I thought it was Brian but it was
you who first gave me the code LOL.

In the ticket you said - "you had the wrong variable for the profile_id parameter".
combined.JPG.jpg
combined.JPG.jpg  •  45KB




--

Ken Rich
indiegospel.net
douglas
@douglas
8 years ago
2,791 posts
Ken Rich:
Hi Douglas,

It seems to work right in the regular profiles both signed in and not signed in (which is great),

However, I have someone just signing up and their left column info is an amalgamation of everyone's.

Here - https://indiegospel.net/shirleysimpson Also attached as screenshot

++++++++++++++++++++++

I saw this before, when I was first given the code. I just checked the old ticket. I thought it was Brian but it was
you who first gave me the code LOL.

In the ticket you said - "you had the wrong variable for the profile_id parameter".


Yep, and I did it again, should be fixed now though.

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Ken Rich
Ken Rich
@ken-rich
8 years ago
926 posts
Awesome. I just checked and the profiles seem to be showing the left column correctly across different skins, logged in or out, and new sign-ups.

Thanks a bunch. I'll have to copy that code to a note and study it.


--

Ken Rich
indiegospel.net