solved hiding the profile location and questions on shops and mnain forums

soaringeagle
@soaringeagle
9 years ago
3,304 posts
senario
i want too hide the "owner" info the location and profile questions or at least profile questions on shops and the main forums

im using
{if $profile_quota_id !="8,13,19" || $profile_id !="13827"}
        {if $_conf.segolivenew_profile_location_box == 'on'}
        {if (isset($profile_location) && strlen($profile_location) > 0) || (isset($profile_country) && strlen($profile_country) > 0) || (isset($profile_zip) && strlen($profile_zip) > 0)}
        <div class="block">
            <h3>{jrCore_lang skin=$_conf.jrCore_active_skin id="17" default="Location"}:</h3>
            <div class="block_content mt10">
                <div style="padding-top:8px">
                    {jrCore_lang skin=$_conf.jrCore_active_skin id="17" default="Location"}: {$profile_location}<br>
                    {jrCore_lang skin=$_conf.jrCore_active_skin id="43" default="Zipcode"}: {$profile_zip}<br>
                    {jrCore_lang skin=$_conf.jrCore_active_skin id="44" default="Country"}: {$profile_country}
                </div>
            </div>
        </div>
        {/if}
        {/if}




        {if jrUser_is_logged_in() && $_conf.segolivenew_profile_questions == 'on'}
            {jrNingImport_signup_questions user_id=$_user_id assign="ning_questions"}
            {if isset($ning_questions)}
                <div class="block">
                    <div class="block_content mt10">
                        {$ning_questions}
                    </div>
                </div>
            {/if}
        {/if}

{/if}

in otherwords only show that if the profile quotas are not shop quotas or profile id is not the main forumws

but as usual..i know im close just not working yet

u know sooner or later ill stop asking questions and start answering them
im getting close to figuring it all out just not there yet


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 04/16/15 12:49:21PM
paul
@paul
9 years ago
4,326 posts
if $profile_quota_id !="8,13,19"

That might need separate tests -

if $profile_quota_id != 2 && $profile_quota_id != 13 && $profile_quota_id != 19


--
Paul Asher - JR Developer and System Import Specialist
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Yes i too would like to hide my "Forums" member's personal profile info (which includes my OWN personal ning signup questions and the member "forums"'s personal tabs of profile content) when people go to any discussions within my site's ".../forums/forum" discussions. I don't have any shops though.
@paul -would I use that same code as well?- and if so, in what template please?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
paul
@paul
9 years ago
4,326 posts
Strumelia:
Yes i too would like to hide my "Forums" member's personal profile info (which includes my OWN personal ning signup questions and the member "forums"'s personal tabs of profile content) when people go to any discussions within my site's ".../forums/forum" discussions. I don't have any shops though.
@paul -would I use that same code as well?- and if so, in what template please?

If you don't want it to show at all, just turn the locations and user questions off in the Ningja skin configuration.


--
Paul Asher - JR Developer and System Import Specialist
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
But I don't want to turn it off for everyone, Paul- just for my one single "forums' profile, my 'child' profile within which all my site forums is residing.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
paul
@paul
9 years ago
4,326 posts
Strumelia:
But I don't want to turn it off for everyone, Paul- just for my one single "forums' profile, my 'child' profile within which all my site forums is residing.

OK - Just wrap the template code with {if $profile_quota_id != x} . . . {/if} where x is the forum quota id

So, in profile_sidebar.tpl -
{if $profile_quota_id != x}
        {if (isset($profile_location) && strlen($profile_location) > 0) || (isset($profile_country) && strlen($profile_country) > 0) || (isset($profile_zip) && strlen($profile_zip) > 0) &&  $_conf.jrNingja_profile_location_box == 'on'}
        <div class="block">
            <h3>{jrCore_lang skin=$_conf.jrCore_active_skin id="17" default="Location"}:</h3>
            <div class="block_content mt10">
                <div style="padding-top:8px">
                    {jrCore_lang skin=$_conf.jrCore_active_skin id="17" default="Location"}: {$profile_location}<br>
                    {jrCore_lang skin=$_conf.jrCore_active_skin id="44" default="Country"}: {$profile_country}
                </div>
            </div>
        </div>
        {/if}

        {if jrUser_is_logged_in() && $_conf.mdLisaNEW_profile_questions == 'on'}
            {jrNingImport_signup_questions user_id=$_user_id assign="ning_questions"}
            {if isset($ning_questions)}
                <div class="block">
                    <div class="block_content mt10">
                        {$ning_questions}
                    </div>
                </div>
            {/if}
        {/if}
{/if}



--
Paul Asher - JR Developer and System Import Specialist
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
I will try to do this on my own, thanks Paul!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Hey big question here:
BEFORE I do the code that Paul suggests above for me....
I notice that Doug in this thread:
https://www.jamroom.net/the-jamroom-network/forum/new_posts/24264/ningja-skin-1016-changelog
Says one of the new updates to Ningja skin just now was:

"The templates modified are
profile_header.tpl - Changed to fix the profile side from showing while on the forum page."

So....was this issue fixed already in this latest Ningja update so that I should n't apply the 'wrapping' code Paul is suggesting above for me? Is there an important difference between the two codes and will they fight with each other if I now add Paul's code too?
Sorry, I just don't want to have redundant conflicting codes in my skin.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
douglas
@douglas
9 years ago
2,790 posts
The fix was for the site wide forum only.

You'll want to do as Paul has suggested to get the results your after here.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
OK I did apply Paul's wrapping code above, adding in the profile ID number of my "forums" profile. Thank you!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
I realized something that confused me and might confuse others, so wanted to mention:

When I am signed in as the admin, and I own the profile that has "forums".... I will still see all the personal content/tabs/ningquestions/ etc belonging to me and the profile "forums"...when in any forum area.
If I sign OUT and sign back in as a REGULAR/non-admin member, I NO LONGER SEE that profile info when in the forums. (which is what I want).
Just something to keep in mind- when signed in as admin we often see stuff that regular members won't see, so check your site from a non-admin perspective before trying to get rid of something you don't want to be there...it might not be there for your members and thus might not even be a problem.

Anyway, I think i'm good with this issue for now.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Strumelia -

I created an account with a profile just for this purpose.

When I am not using it is in a quota I created called hidden and the privacy is set to profile owner so it doesn't show up anywhere.

I keep another browser (I work in Firefox and test things in Safari, usually) open logged in with the test profile.

Keeping in mind that things will also look different to someone who is not logged in I also test that at the same time.
updated by @claygordon: 02/13/15 08:37:36AM
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Thanks Clay. :)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
I am still not solving this issue of having my personal profile info and consequently that of my "forums profile" showing up in the sidebar for regular members when they are in my site forums areas. (my forum-owning profile is named "Forums" by the way)
I applied Paul's wrap code above (using my "Forums" profile ID#) and it did not seem to do anything about it.
For example, see this screenshot while I was signed in as a regular member and looking in the site forums....
forum_my_posts.jpg
forum_my_posts.jpg  •  588KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 02/16/15 12:52:56PM
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
p.s. here is the code of Paul's as I applied it...(my "forums" profile ID# is 5124)

                    {jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$_profile_id size="xxlarge" class="img_scale img_shadow" alt=$profile_name width=false height=false}
                {/if}
            </div>
        </div>
{if $profile_quota_id != 5124}
        {if (isset($profile_location) && strlen($profile_location) > 0) || (isset($profile_country) && strlen($profile_country) > 0) || (isset($profile_zip) && strlen($profile_zip) > 0) &&  $_conf.jrNingja_profile_location_box == 'on'}
        <div class="block">
            <h3>{jrCore_lang skin=$_conf.jrCore_active_skin id="17" default="Location"}:</h3>
            <div class="block_content mt10">
                <div style="padding-top:8px">
                    {jrCore_lang skin=$_conf.jrCore_active_skin id="17" default="Location"}: {$profile_location}<br>
                    {jrCore_lang skin=$_conf.jrCore_active_skin id="44" default="Country"}: {$profile_country}
                </div>
            </div>
        </div>
        {/if}




        {if jrUser_is_logged_in() && $_conf.mdLisaNEW_profile_questions == 'on'}
            {jrNingImport_signup_questions user_id=$_user_id assign="ning_questions"}
            {if isset($ning_questions)}
                <div class="block">
                    <div class="block_content mt10">
                        {$ning_questions}
                    </div>
                </div>
            {/if}
        {/if}        
{/if}        



--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 02/16/15 12:58:42PM
michael
@michael
9 years ago
7,715 posts
thechocolatelife:....I keep another browser (I work in Firefox and test things in Safari, usually) open logged in with the test profile....

I use a different firefox profile
firefox -P -no-remote
and add a theme to each so I know which is which
* default
* grey
* blue
* green

"Opening a new instance of your Mozilla application with another profile"
http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile
updated by @michael: 02/16/15 02:29:09PM
michael
@michael
9 years ago
7,715 posts
Strumelia:
I am still not solving this issue of having my personal profile info and consequently that of my "forums profile" showing up in the sidebar for regular members when they are in my site forums areas. (my forum-owning profile is named "Forums" by the way)
I applied Paul's wrap code above (using my "Forums" profile ID#) and it did not seem to do anything about it.
For example, see this screenshot while I was signed in as a regular member and looking in the site forums....

Try adding {jrProfile_disable_sidebar} to the item_index.tpl file for forums. Thats how the Ningja skin is setup and it doesnt have a side bar.

So either by the TEMPLATES tab on the module or jrForum_item_index.tpl added to the skin.
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
I stick it within my jrForums module here?:
modifying: modules/jrForum/templates/item_index.tpl

Just the single line {jrProfile_disable_sidebar} ....WHERE exactly should I put it in the template code?

And then I assume I should remove Paul's wrap code?

=============

Just so you know- my next step is to add a tab in each regular member's profile page to show their recent forum discussions and/or posts (not group discussions, already have that)...so hoping this new 'forum sidebar disappearing code' will not interfere with that...? John Bizley seems to have this all set up already, the way I am hoping to....but he may be using the site builder and a different skin, I'm not sure.

Hoping you can answer all this for me... thank you!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
I need confirmation on the above please...


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
douglas
@douglas
9 years ago
2,790 posts
Which skin are you using?

I'm not seeing a sidebar when on the "My Posts" tab on my dev site using jrNinja.

Is the forum the main site forum or just another profile forum?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Douglas, I have "allow profile forum" checked/enabled ONLY for my admin and forum quotas...it is not enabled for my regular member quota.
Thus, it's when a regular member is viewing the main site forums (which are owned by my profile named "Forums").
Using Ningja, and no site builder.

It seems that (when I am signed in as a regular member) if i click on my FORUMS link form the main page and I'm taken to the main forum category list at (mysite).com/forums/forum all is well, no personal info in sidebar. And clicking on any of those discussion directly it works fine- all of that is while I'm in the "Discussions" TAB.
There are 3 TABS: Discussions, Newest Posts, and My Posts. If I click on either of those OTHER two tabs (Newest posts or My posts) I then get the Forums profile's personal sidebar, as shown in the screenshot above in my prior post. Like if I'm on (mysite).com/forums/forum/new_posts or (mysite).com/forums/forum/new_posts.
Then if I click back on the "Discussions" TAB, that unwanted "Forums" profile info sidebar is gone again. I want it gone in all locations when a member is browsing the Forums...so it doesn't seem like "Forums" is a person and so it doesn't keep showing my personal profile questions and bio sidebar.




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 02/19/15 11:42:08AM
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
P.S. I am still at the point where I have applied Paul's suggested code (as I show above in my posted code), but that didn't do what I needed...have not removed it and have not applied Michael's suggestion yet because I wasn't sure how he meant it and have not had my questions about applying the code cleared up first. And i don't know whether I should remove Paul's code either.
Sort of stuck now. Thanks for your help!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
douglas
@douglas
9 years ago
2,790 posts
I'm not seeing that as a regular user, the sidebar does not show for me.

Do you have a link we can check out, maybe send use your login info for the admin and a regular user so we can test it on your site?

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
douglas
@douglas
9 years ago
2,790 posts
Actually, I'm seeing the sidebar when on the "My Settings" tab of the forums, all the other tabs including the forum itself, the sidebar does not show when logged in as the admin or regular user.

I've got a ticket open for the "My Settings" tab, so we should be able to get that fixed.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Douglas, since you are about to apply some sort of fix for at least some of this issue, should I remove Paul's code above, that has not fixed my issue?

Also, do you still want my admin and reg member login info, to check out the issue on my site? Or should we wait until you apply the fix you are talking about?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 02/20/15 06:12:17PM
douglas
@douglas
9 years ago
2,790 posts
I would hold off on making any more modifications and would probably remove the code you've added from this post.

The sidebar shouldn't show on the main forum and tabs.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Ok Douglas, I have removed Paul's wrapped code above from my profilesidebar template.

I will wait to hear from you on what to do next. ?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
I am still having this issue.

My site's (site.com/forum) forums are owned by a profile I created and named "Forums".

When I am logged in as a regular user, if i go to: http://mysite.com/forums/forum
all is fine, I'm in the Discussions TAB and i see no personal profile stuff anywhere, just the forum categories.
When I click on the other two TABS from there though (Newset Posts & My Posts), I do get the desired content, but I also suddenly see the whole profile sidebar for the member "Forums" which includes all MY bio info and ning signup questions (because I won that profile), my location, and little my own avatar. (nothing of the member I'm signed in as though)

Again, the profile sidebar shows in the "Newest Posts" and "My Posts" TABS. The "Discussions" Tab shows everything correctly, without the personal profile sidebar info. See screenshot.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 03/13/15 03:43:09PM
douglas
@douglas
9 years ago
2,790 posts
Make sure your using the latest version of Ningja, that should be fixed already.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
I keep the Ningja skin updated, but- I'm using my CUSTOM Ningja skin. I can pull that update over to my custom skin ----if I knew WHERE to find that particular piece of code!
I am actually suspecting that this was not fixed in all the tabs I'm pointing out in my last screenshot. Maybe some places, but not all. Hence this is still an issue...but not sure yet

If you can point me to the code piece that you say fixed this, then I can make sure it is applied to my custom skin. Then I can check again.
Otherwise...I have a million other places where my custom skin differs from its Ningja 'mother template', so finding that one piece of code would be impossible without you pointing me to it.
Please?- tell me where the code FIX was applied in the Ningja skin?
I have no other way of fixing this.



--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 03/14/15 12:09:51PM
douglas
@douglas
9 years ago
2,790 posts
I believe its a new template... make sure you have the new jrProfile_profile_option.tpl in your cloned skin.

Hope this helps! :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
I do have that template in my custom skin, and the code in it says:
{if $_post.module =='jrForum' && $_profile_id == $_conf.jrNingImport_forum_profile_id}
    {jrProfile_disable_sidebar}
{/if}
<div class="block">
    {$profile_option_content}
</div>
but I still have the problems described above. see screenshots.

Again, I'm suspecting the fix did not fix it for all the tabs, just for the "discussions" tab...not for the other two tab views for "Newest Posts" and "My Posts".






--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 03/14/15 02:01:53PM
douglas
@douglas
9 years ago
2,790 posts
Can you send us your admin login info so we can check it out?

I'm not seeing an issue on my dev site.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Ok, Douglas- sending it now to "support"? @jamroom.net ...right?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
douglas
@douglas
9 years ago
2,790 posts
Yep, got it and replied. ;)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Ok, happily Douglas FIXED this particular issue for me. Thank you!! :) I was beginning to think I was losing my mind.
I would mark this thread SOLVED except that it's Soaring's thread so I can't. l o l

Douglas, I responded on the ticket with another question, and the menu info you asked about.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
douglas
@douglas
9 years ago
2,790 posts
Yeah, we can finish up on the support ticket if you like, there are some other issues I'm trying to fix for you too. ;)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

Tags