HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


New to ocPortal with a couple of questions

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#104746 (In Topic #20443)
Avatar

Fan in action

I know that I've missed this somewhere in configuration, but ocPortal must have a contactus page in the default, doesn't it?

The last hour or so of searching for variations on "contact us page" gives me a few tons of results ( contact / us / page ) both in Google and in the community forum - would someone please shed some light on how to have a "contact us" page that appears on the site page menu?

The simpler question is how do I go about changing the background to a fixed width page to a solid colour?  I've found a few places that show how to replace the image, but for simplicity I want a simple single colour.

My ocPortal version can be found at aljones.us/cincinvc (as a work in progress)
The original version can be found at www.cincinnatinvc.org (as an unmaintained site) a member there and a friend has asked if I can help ... and I'm not too sure.

I realize I've probably garbled ocPortal names and usage, be gentle, please, I'm new here.
//al
Back to the top
 
Posted
Rating:
#104747
Avatar

There should always be something in core. See the feedback link for the footer. It degrades to a simple forum-based feedback mechanism if you haven't chosen to use the staff_messaging addon. If staff_messaging addon, it is a fully managed collaborative staff messaging system.

But generally you can do what you want, there are a few blocks you can put on pages – main_contact_simple (simple email), main_contact_us (staff messaging, see above), main_feedback (forum-based, see above), main_contact_catalogues (full form-builder system).

Or, there's the ticket addon, if you have that installed.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Item has a rating of 5 (Liked by Chris Graham)  
Rating:
#104749
Avatar

Community saint

Chris has given a comprehensive answer to your "contact us" question. The 'Feedback' link in the footer is a good place to start pursuing the idea.

Al Jones said

The simpler question is how do I go about changing the background to a fixed width page to a solid colour?
This one is fairly easy. Find in Admin Zone → Style → Manage themes → Choose → Edit CSS: global.css the following …
{+START,IF,{$CONFIG_OPTION,fixed_width}}{+START,IF,{$NOT,{$M
OBILE}}}
   html>body#main_website { /* #main_website targets only the main site screen, avoiding frames etc */
      /* Want to change the tiled background?
         Try this Google search to get image ideas tile background - Google Search
         Find how to edit the referenced "outer_background" theme image by doing an Admin Zone search for "outer_background"
      */
      background: url('{$IMG;,outer_background}');

      background-color: {$GET,fixed_width_background};

      background-attachment: fixed;
   }
   #main_website #main_website_inner {
      width: 980px;
      position: relative;
      margin: 15px auto 15px auto;
      border: 1px solid {$GET,fixed_width_border};
      {$BETA_CSS_PROPERTY,box-shadow: 0 0 20px {$GET,standard_border};}
   }
{+END}{+END}
… which is the CSS that deals with the background in the DEFAULT theme. Your CUSTOM_THEME might differ slightly, but not by much. The two lines I've highlighted in red are the ones you want to edit to get the display you want.

Good luck, and if you still have problems, SHOUT in here!

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#104750
Avatar

Fan in action

'kay Fletch - I can find that, since I only want a single colour as the outer background then I should be able to do away with the bckground url. <he mumbles to himself> I'll go play with that and see.

If I really had any idea what I was doing, Chris' answer would probably have been helpful - as it is it gave me things to look up, so it's not a complete "Huh?"

Hey, I only installed ocPortal this monring (after looking at a bunch of other similar CMS's, I *can* hit the ground running, but I feel like I'm in an earthqueske doing it.  

Thanks //al
Back to the top
 
Posted
Rating:
#104751
Avatar

Community saint

Go for it.

We all had to start 'somewhere', and got progressively more familiar as we limped along.

I use the 'commenting out' [/* … */] style of editing my CSS so that I can always have the original in there to return to if (and when) I screw up - which I do regularly!

Happy hunting ….

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Item has a rating of 5 (Liked by Chris Graham)  
Rating:
#104754
Avatar

Community saint

I'll add a couple of thoughts to the Contact Us page info... 

If the purpose of the Contact Us page is to allow people to directly contact you through the web site, then the feedback page is already there for you. If you want it to display in the left side menu on the page, you can add it there with the menu editor. To easily edit menus in ocPortal, log in as an admin and hover your mouse cursor over the menu. You should see a little diamond with a M in it pop up at the lower right corner of the menu. Clicking that will take you to the menu editor for that menu. You can add a new branch to that menu and name it Contact Us. At the bottom of the page you should see a blank Link field. To make the feedback page your Contact Us page, simply add :feedback in the Link field (including the colon at the beginning) and then click the Save button in the section above where the menu branches are listed. The Link field can take URL and special ocPortal links. The special ocPortal links are in the format zone:page.  If the page is in the default Welcome zone, you can omit the zone and just use :page. You can also use the Available Entry Points list at the right side of the bottom portion of the menu editor page to find and select the comcode page or module page you want to link to.

If the purpose of the Contact Us page is purely for informational purposes, to provide stuff like a mailing address, phone number, and email addresses for some key people, then you probably want to create a new comcode page. You can do that by going to your Admin Zone, then under the Content menu, select the Pages (Comcode pages) option. This will take you to a page where you can edit existing comcode pages or create new pages. Scroll all the way to the bottom and you will find a form field labeled New. You can type in :contactus in that field and hit the Add button. This will take you to the comcode page editor where you can edit the actual page to add your contact info. Preview the page, edit it until it looks good, save it, and then use the same process I mentioned above with the feedback page to add it to your menu. Instead of using :feedback for the Link, you would use :contactus.
Back to the top
 
Posted
Rating:
#104763
Avatar

Fan in action

okay, I'm getting lost here.
@Jason Verhagen, @Chris Graham
When I click on feedback - I get a screen that says "You can leave us private feedback here. We don't normally reply directly to feedback - but we do read it all."
Then there's a ribbon with the 'print this' and 'recommend' icons.
No form of any kind.  Since we entered an admin email address, I wuld have expected a form to fill out and send to admin.
If I'm supposed to provide the form is there a tutorial on how to set it up and link it appropriately.

@Chris Graham, you've referred to staff_messaging but a search of ocportal only points me back tothis thread.  Did I miss something on initial configuration or whence comes it??

@Fletch
probably a dumb question but I'll get over those …
in your code:

Code

      background: url('{$IMG;,outer_background}');

      background-color: {$GET,fixed_width_background};
I have no problem commenting out the background image, and no real problem hard coding in a color to the background colour … to make things neat though, where does ocportal get the variable<??> fixed_width_background from?

A couple of random questions and the only commonality is that I'm posting, should these questions be separate threads?
Created a dummy user (well, actually it's one of my confederates who'd object to being called a dummy, but …) when I enter the system as her, I see a basic screen but there's a 'content management' entry at the top of the screen to which she, at this point, shouldn't have access.  Why is it there? How do I change permission to remove it for a simple user?

Does @ tagging work in this foruM??
Back to the top
 
Posted
Rating:
#104764
Avatar

When I click on feedback - I get a screen that says "You can leave us private feedback here. We don't normally reply directly to feedback - but we do read it all."
Then there's a ribbon with the 'print this' and 'recommend' icons.
No form of any kind.  Since we entered an admin email address, I wuld have expected a form to fill out and send to admin.
If I'm supposed to provide the form is there a tutorial on how to set it up and link it appropriately.

Actually what I said before was slightly wrong, the main_feedback block will only show on there if the ocf_forum was installed.

It sounds like when you ran the Setup Wizard you opted to not include any of these addons: tickets, ocf_forum, staff_messaging.

You can get them from Admin Zone > Setup > Addons.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#104765
Avatar

you've referred to staff_messaging but a search of ocportal only points me back tothis thread

The next patch release will include looking for non-installed addons when using ocPortal's admin zone search feature.

CMS zone

I'm adding this to the FAQ…

How do I prevent users from modifying CMS content?
Often webmasters are surprised that by default users allowed into the CMS zone. This is because the default privileges allow submission of content, but subject to validation – a good feature on community sites. To deny access to the whole CMS zone use the Permission Tree Editor (under Admin Zone > Security).

@tagging

No, coming in v10, whenever we finally get that out the door.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#104768
Avatar

Fan in action

Thanks Chris, now if I could just paste back the hair I've been pulling out.
I intentionally did not install the forum since the group that I'm trying to do this for has said that it's not needed (yeh, been there!)
An almost default reinstall on my local machine show everything there, in fact now I have to do some cleaning …
@tagging is really nice if it shows up as a notification somewhere.
Hopefully most of the people who visit their site are going to be looking for information so allowing access to the CMS zone would probably be more confusing than not.

I'm retired and have more time than I know what to do with so "playing" with something like this for them is enjoyable to me - most of the time!!
Again, thanks //al
Back to the top
 
Posted
Rating:
#104779
Avatar

Community saint

Al Jones said

@Fletch
probably a dumb question but I'll get over those …
in your code:
Code
      background: url('{$IMG;,outer_background}');

      background-color: {$GET,fixed_width_background};
I have no problem commenting out the background image, and no real problem hard coding in a color to the background colour … to make things neat though, where does ocportal get the variable<??> fixed_width_background from?
You will find that at the very beginning of global.css under the section marked 'Colours'. I think the value is …
{$THEME_WIZARD_COLOR,#e3eaf6,fixed_width_background,11% (seed sat_to 100) + 89% WB}
… and is used to assist the theme wizard when you try to use the built-in ocPortal functionality to create a new theme based on the default.

If you replace the 'background.color' value with #0D2139 you should end up with a background identical to the one you've used previously.

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#104794
Avatar

Fan in action

I'm going to have to rethink some of what I've been doing, switched out the out_bckground colour for an image which leaves me with a white border as pages reload.  Is there anyway around this?  (( probably not considering the way browsers load pages. No harm in asking … ))

Even setting the permissions tree for content management to ONLY admin (not realistic I know, but it was a trial) it still shows on every page.  Once again, searching for "(ocPortal) content management" turns up a few million results in Google and more than just a few here … please, folks, how do I turn it off???
Back to the top
 
Posted
Rating:
#104798
Avatar

Community saint

Al Jones said

… switched out the out_bckground colour for an image which leaves me with a white border as pages reload
If your 'image' is of a fixed width, then you must expect this, and more so for larger resolution displays. If the 'image' is a tile, then you need to tell the CSS to 'repeat-x y' for it to cover the whole of the page.

A pointer to your work in progress wouldn't go amiss. We could see first-hand what is causing the problem …

 :o

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#104799
Avatar

Community saint

Al Jones said

… Even setting the permissions tree for content management to ONLY admin (not realistic I know, but it was a trial) it still shows on every page … how do I turn it off???
I haven't been following this part of the thread closely, but it looks like Chris gave you the pointer (and an explanation as to why it appears), but it is possible you haven't cleared your caches.

Try doing that via Admin Zone → Tools → Website cleanup tools and see what that does for you. Resist checking all the boxes for a one-off clean up …!!

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#104800
Avatar

Fan in action

Thanks fletch … I run FireFox with a caching add on so I can have them refreshed whenever a page is loaded - bugs me if I forget to turn it back off but it's great for looking at html/css and wanting to make sure the changes I made really worked!

BTW the addon I use is CacheToggle but it's at version 0.6 now.

Following your cleanup suggestion - nope, it's still hanging in there.  Even brought it up in IE so it's not a dirty cache.
Hmmm… it's not there until someone logs in but I have a dummy user (member) and as soon as 'he' logs in it pops up again.  Back to look at permissions again!

the link to my wip is Cincinatti NVC they're looking at what's there and deciding if they want to do anything with it or not.
Their original is at http://www.cincinnatinvc.org/ but the fellow who put it together doesn't have time to maintain it.  I'm retired so all I have is time.

And edited ... I *know* I turned off cms editing for everyone except super mod and admin ... but <he says sheepishly> I guess I didn't save it.  Changed them again and saved them and yep, it went away!  Argh!!!!!!!!!
Back to the top
 
Posted
Rating:
#104806
Avatar

Community saint

Al Jones said

… I'm retired and have more time than I know what to do with
Yes, us OLD geezers just don't know what to do with our time …..!!

Al Jones said

… I *know* I turned off cms editing for everyone … Changed them again and saved them and yep, it went away! … Argh!!!!!!!!!
Welcome to MY world …!!

And since you have inferred that my retired status (not directly, I hasten to add) gives me a lot of time, I've played around with your new display and the attachments may well give you an idea or two. Use if you wish; disregard if it isn't something you want …!!

                   

Forgive the size, I just wanted to show that no 'white' areas are appearing on my 1920 x 1080 monitor display. Your display may well be larger which could be the problem.

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#104812
Avatar

Fan in action

Well, I'll replace the image as soon as I get a response to this http://ocportal.com/forum/topicview/misc/general/critical-error_23.htm

As far as the others go, Fletcher, I can probably find my way to changing the css (presume, like everything else, it's in global.css?) but do you know of a way to make the changes through the system without editing files directly?

BTW, I just said I'm retired, I didn't say anything about being old!! Are you old??? :)


Last edit: by Al Jones
Back to the top
 
Posted
Rating:
#104813
Avatar

Community saint

Regarding the Content Management link, I would double check the zone permissions just to be sure nobody has view access. If you are absolutely certain that nobody except the admins will need to access any features of the Content Management zone, you can go to your admin zone and then select the Zones option under the Structure menu. Then select the Edit Zone option. For the Content Management (cms) zone, click the Edit link. Then on that Edit Zone page, scroll down to the Permissions section and be sure all boxes in the Permissions section are unchecked. Then click the Save button at the bottom of the page. That should hopefully remove the Content Management link from the zone menu for everybody except the admins. Just be aware that some features of ocPortal, that normal users may interact with, may be routed through the CMS zone. Those features will fail when normal users try to use them. Features like blogs, wiki+, downloads, galleries, polls, etc. It won't cause those features to completely stop working for normal users, just the add/edit/delete functions will fail.

If the permissions appear correct and the Content Management link is still visible for non-admins, you can apply a filter to that menu item. Log in to your site as an admin and hover your mouse cursor over the menu with the Content Management link. You should see a diamond with the letter M in it appear at the lower right corner of the menu. Click that M to open that menu in the menu editor. On the menu editor page you should see a line that has something like Caption: Content Management. Click anywhere on that line and the link details will appear on the bottom of the page. In that bottom section with the link details, click on Advanced to expand down the advanced settings. There you will see a Restrict Link Visibility option. Try adding this tempcode to that field:

{$?,{$NOT,{$IS_ADMIN}},_never_}

(I didn't test this, so I'm hoping that is the correct tempcode) If it works like I think it will, anyone that isn't an admin will never see the link. Once that tempcode is entered in, be sure to go to the top portion of that menu editor and scroll down in that top portion to reveal the Save button, click Save, and test it out. The link should display for admins and shouldn't display for everybody else. 

If all else fails, you can also just delete that menu item using the menu editor. And it may require you to go back to the Zone editor (adminzone->structure->zones) and, in the Content Management zone editor, uncheck the Display in menu option. Admins and super moderators will still have access to those Content Management features in the Content menu of the Admin Zone.
Back to the top
 
Posted
Rating:
#104816
Avatar

Community saint

Al Jones said

Well, I'll replace the image as soon as I get a response to this View topic: Critical error attempting to replace outer_background - ocPortal.com
There have been numerous queries about this "Allowed memory space" thingie in the past, and most of the issues were resolved fairly speedily. They are not necessarily related to the size of an image. You'd need to do a search.

Al Jones said

As far as the others go, Fletcher, I can probably find my way to changing the css (presume, like everything else, it's in global.css?) but do you know of a way to make the changes through the system without editing files directly?
Yes to the first part (global.css).

Changing the CSS files using the system is fairly easy, too. Go to Admin Zone → Style → Manage themes → Choose (your custom theme) → Edit CSS: global.css press CTRL+F in the window and do your search(es). Edit the values you want to change, then press "Save and stay" at the bottom and call up your page in a new tab to see if the effect is what you want. Doing it this way only affects your custom theme and leaves the default well alone!

Done.

Al Jones said

BTW, I just said I'm retired, I didn't say anything about being old!! Are you old??? :)
Freakin' old. I join the ranks of the septuagenarian's in December, and this is about the time I begin to wonder where the time went?

 :lol:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#104828
Avatar

Fan in action

Chris sent me a workaround and an explanation so I've changed the background to a much smaller pictuer and modded the css to size: 100% 100% so it now fills in properly and a lot quicker!
I keep forgetting that when I change the css that I'm actually changing a copy … that's a nice touch and I've reverted to the original a few times as I've been playing!
Ít's good to have you around, at 67 (pushing that sept mark myself) it's nice to know that I'm not the only "old fart" playing around on the web.
I don't know whether to be insulted or complemented when some youngster (any less than 30) say they're surprised at my being so active …. give me a break!!!
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Expand