CustomContent - Unable to see custom content

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
richbothe
Forum Members
Forum Members
Posts: 95
Joined: Tue Aug 15, 2006 5:34 pm

CustomContent - Unable to see custom content

Post by richbothe »

Hi,

I have read just about every post related to CC and can't find anything to fix my problem... I apologize for my arogance!

I have CC 1.4.4 w/ FEU 1.1.3 beta1.

I have several groups setup where some users will be assigned to multiple groups. I don't need to restrict individual pages, but I do need to restict certain content on some pages.  I'm trying to restrict them by group.

Here's my template code:

{if isset($customcontent_loggedin) && $customcontent_loggedin > 0 }
        {content}
        {else}
        You must be an authorized ELS staff member to use this site.
        All ELS policies concerning "Electronic Media" and "Proprietary Materials" apply within this website. By signing in you are accepting acknowledgement and compliance with these policies.
        {/if}

Here's my page content:

{if $customcontent_memberof_Administrator}
Content
{else}
message
{/if}

I'm not entirely sure if my syntax is correct or if it's even placed correctly.

Please help!

Thanks,
Rich
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CustomContent - Unable to see custom content

Post by calguy1000 »

I just tested this syntax, it worked fine for me.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
richbothe
Forum Members
Forum Members
Posts: 95
Joined: Tue Aug 15, 2006 5:34 pm

Re: CustomContent - Unable to see custom content

Post by richbothe »

That's odd... the user is assigned to the "Administrator" group, but when I log in and access the page I only get the {else} content.  Any ideas why the {if $customcontent_memberof_Administrator} isn't displaying?

Here's the {get_template_vars} info:

SCRIPT_NAME = /index.php
app_name = CMS
sitename = ELS University
lang =
encoding = UTF-8
gCms = Object
content_id = 169
page = road-map
page_id = road-map
page_name = road-map
page_alias = road-map
position = 00013.00001
friendly_position = 13.1
customcontent = 1
customcontent_loggedin = 13
customcontent_ip = 216.77.154.39
customcontent_loginname = richbothe
customcontent_memberof_Adminstrator = 1
customcontent_groups = Adminstrator,
customcontent_groupcount = 1
customcontent_dayzeros = 09
customcontent_day3text = Mon
customcontent_day = 9
customcontent_weekday = Monday
customcontent_dayordsuffix = th
customcontent_dayofweek = 1
customcontent_dayofyear = 98
customcontent_weeknum = 15
customcontent_monthfulltext = April
customcontent_monthnumzeros = 04
customcontent_monthshorttext = Apr
customcontent_monthnum = 4
customcontent_monthnumdays = 30
customcontent_leapyear = 0
customcontent_4digityear = 2007
customcontent_2digityear = 07
customcontent_lowerampm = pm
customcontent_upperampm = PM
custoncontent_inettime = 769
customcontent_12hour = 12
customcontent_24hour = 12
customcontent_12hourzeros = 12
customcontent_24hourzeros = 12
customcontent_minutes = 27
customcontent_seconds = 32
customcontent_timezone = CDT
customcontent_date = Mon, 09 Apr 2007 12:27:32 -0500
customcontent_epochseconds = 1176139652
count = 21
nodelist = Array
node = Object
startform =

label = Search
inputbox =
submitbutton =
submittext = Submit
hidden =
endform =

prompt_loggedin = Welcome
userid = 13
username = richbothe
link_logout = Sign out
link_changesettings =
station = minneapolis
email = richbothe@qsitedesigns.com
last_name = Bothe
first_name = Rich
Last edited by richbothe on Mon Apr 09, 2007 5:28 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CustomContent - Unable to see custom content

Post by calguy1000 »

try using {if $customcontent_memberof_Administrator > 0}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
richbothe
Forum Members
Forum Members
Posts: 95
Joined: Tue Aug 15, 2006 5:34 pm

Re: CustomContent - Unable to see custom content

Post by richbothe »

When I use {if $customcontent_memberof_Administrator > 0}, the ">" sign changes back to ">".  Even if I change it in the source code view of the content page,  it reverts back to ">"...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CustomContent - Unable to see custom content

Post by calguy1000 »

ah.... wysiwygs.... I hate em.  see what happens if you turn the wysiwyg off.... then edit the page.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
richbothe
Forum Members
Forum Members
Posts: 95
Joined: Tue Aug 15, 2006 5:34 pm

Re: CustomContent - Unable to see custom content

Post by richbothe »

Ok.... I feel like an idiot!  I didn't have the .htaccess file. Now let's see how things go...  ::)
Last edited by richbothe on Fri Apr 13, 2007 2:36 am, edited 1 time in total.
Post Reply

Return to “CMSMS Core”