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.


General Questions

Login / Search

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

Fan in training

I have a slow connection, anyone has the ocp guides in pdf format?
I made one, was up to date in march 06. Links don't work, rest is ok. If it can help, it's here

I disabled the points system, how can I get rid of all the "points: 40" lines everywhere on my site?
Got to kill the "points" line in the templates. The ones on the forum are OCF_MEMBER_BAR.tpl, OCF_POSTER_DETAILS.tpl and OCF_MEMBER_PROFILE_PAGE.tpl. On the super members directory page, there is SUPERMEMBERS_PAGE_GROUP.tpl and SUPERMEMBERS_PAGE_ENTRY.tpl.

In member profile page, if you have both photo and avatar, they display one under the other and eat up half the page. Can i have them one left, one right, on the same line?
Don't know about one left one right, but managed to group them both in the center side by side. Looks neat. Have to edit the template (OCF_MEMBER_PROFILE_PAGE.tpl). Can get mine here if you want to try it.

How do i get a different logo for the root zone and the members only zone?
Go to the theme management area of the Admin Centre, and choose to 'Manage images' for the theme. You need to edit the 'logo/-logo' theme image: you'll be given the opportunity to attach a new file there.

Is there a solution when you want to post twice (i mean reply one's own post), or do you really have to join again with a new username? :P
Not on ocportal.com forums because ocProducts has configured it this way ;). There is a 'double post' permission that could be enabled on your own forums.

Concerning the date formats, picosize, microsize, normalsize … What's the difference and where do we find them?
To make it quicker to edit the time display format across all of ocPortal, these classes of date/time have been chosen and used throughout. The actual format descriptions are language strings in the 'global' language file. For a description of how the codes in the format descriptions work, see this section of the PHP manual.

Default time format is: %d %B, %Y, %I:%M %p. Anyone tried something else?
%d %m %Y, %H:%M will give you 24 04 2006, 19:42

A "maintenance password" is requested on the newsletter subscription page. Is it the same as the normal password?
The maintenance password is a password that a visitor chooses when they subscribe to the newsletter. It is for that visitors maintenance over their own newsletter subscription. As newsletters do not require site membership, the newsletter passwords are distinct from the membership passwords.

What's a "protected forum"?
There isn't really a strong concept of a 'protected forum' in ocPortal. The term is thrown out loosly to the viewing user when the latest post underneath a forum is in one of it's subforums and that subforum isn't accessible by the viewing user due to insufficient permissions.

Have changed the date and time formats at the top of the global.ini file. Works fine. But not for the date of birth in the member profile page, where I still get 2006/1/1 instead of 01 01 2006. How may I get this one to display dates like the rest of the bunch?
The short answer, is you can't, as it's hardcoded. However the line of code is at membercentre/pages/modules/members.php, line 262. You can change it from:

Code

            $dob=$year.'/'.$month.'/'.$day;
to:

Code

$dob=do_timezoned_date(mktime(0,0,0,$month,$day,$year),false);
3 will have this change by default.
Also, on member profile page, time for them is still displayed 06:18 PM instead of 18:18. Looked for TIME_FOR_THEM everywhere, can't find how it's format can be changed.
Again, this is hardcoded. In sources/support.php search for '%I:%M %p'. You can then change that as you see fit. 3 will have this as a language string.

Anyone knows of a wysiwyg editor for tpl and css files?
The templates are designed to be able to be edited in any editor that supports 'HTML fragments' (don't bother looking for that feature, as I think I made that term up). However I (Chris) am not aware of any such editor because I always hand-code things. The CSS files should be editable in any CSS editor, but their nature means that WYSIWYG is impossible except in a very abstract sense.

When multilang support is selected, is there a way to limit the choice of languages to the ones effectively used on the site? (in the forum lang select field when joining, and in the left menu lang select module).
Not really, but you can delete whole folders from the 'lang' directory if you wish.

Silly question of the day: How do you send support tickets to ocp ???
It's 'Contact Us' on our home page.

How do I force a page to open in the same zone as the menu entry I clicked on?
For comcode pages, can always copy the page in the proper zone, rename it and tell the menu editor to _SEARCH:new_name. Might not be the most elegant way to do it, but it works fine.
But when doing the same with a php page, the system gets angry and returns

Code

Fatal error: Cannot instantiate non-existent class: module_recommend2 in /home/sevsevze/public_html/33fr/sources/global.php(174) : eval()'d code on line 1

It's not really officially supported, but usually you can open up the module file in a text editor and change the line near the top that says:

Code

class Module_whatever
to something else; in this case,

Code

class Module_whatever2

However rather than duplicating modules under different names, you're better off just moving them altogether: this is supported except for a few special cases.

 Is there a list somewhere of all of the blocks that are available by default? The front page starts with a main_dotw but when I searched for a list that contained that on this website nothing came up. I'd like to delete it and not have to make a note as to what I changed and it would be nice to know what else is out there. :D

Never mind. Found my own silly answer to my own silly question.  On the modules page there is a edit module or blocks and you can choose blocks and it lists them all. Doesn't say what they are but you could guess by the name or just put them in a test page somewhere.


Last edit: by SMC

Your mouse has moved. Windows must be restarted, for the changes to take effect. Reboot now? [OK]  :'(
Back to the top
 
Posted
Rating:
#18058
Avatar

Community saint

Adding an image in a non-comcode page

This one is a bit long, so it will get a post just for itself  :cool:

Hello everyone,

Been trying to theme my site, these days…
Changing background colours was simple enough.
Comcode pages are not a big problem (in fact I'm starting to like comcode).
But the zillion templates… I just can't get used to. So guess I'll wait for V3, heard theming will be easier with V3 and I'm quite ready to believe that.

There's just one little bit of help I could use to maintain consistency between my comcode and non-comcode pages.

Practical example:
I want to add an image under the page title in the "search" page. So I suppose templates/search_form_page.tpl must be edited, and something added between

{TITLE}

And

<p>
   {!SEARCH_HELP}
</p>

I'd love to know what that something is.
Say site is Website Hosting - Mysite.com , and image is http://mysite.com/images/pages/myimage.gif. Image should be centered under the title.
What exactly must I add in the template ?  :$

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#18059
Avatar

Code

<div style="margin-left: auto; margin-right: auto; text-align: center">
   <img src="http://mysite.com/images/pages/myimage.gif" alt="" />
</div>


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:
#18063
Avatar

Community saint

YESSSSSS !!!!

Thx, chris  :thumbs:

news said

Note: Before upgrading a registered site you should check to make sure that your upgrade period is still active. If if is not you should not upload sources/version.php.

How can we check that ?


You can find out about your registration(s) here.


Last edit: by Chris Graham

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#18514
Avatar

Community saint

Hi !

Anyone knows of a comprehensive comcode guide, with all the tags and everything?

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#18515
Avatar



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:
#18610
Avatar

Community saint

 :cool:
This was the first thing I searched.

I'm after the equivalent of html's <p align="justify"> ……..</p>
and the comcode way to set a right margin for a page.

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#18612
Avatar

Comcode is not a substitute for everything HTML can do. To do that you'd want to do this Comcode…

Code

[html]<p align="justify">[/html] ........[html]</p>[/html]


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:
#18613
Avatar

Community saint

:thumbs:

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#18732
Avatar

Fan in training

I Edited the CSS docs, to make everything in Black on White as my old site (to be transferred onto my oc portal, fangs heaps, it rocks!)

but i still get the blue bars on the menu header things.

ive looked and looked for any mention of them in the CSS files,

am i looking in the right place?
am i able to change them in the first place?

cheers,
Back to the top
 
Posted
Rating:
#18733
Avatar

The bars are actually theme images with a slight gradiant :).


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:
#18734
Avatar

Fan in training

awesome, thank you!!!
Back to the top
 
Posted
Rating:
#19266
Avatar

Community saint

Upload size limit

Want to upload a 2.5Mo file using the upload form.
The top of the form tells me max size is 2Mo. In the Admin zone, feature options, max size a member can upload to the server is set to 4Mo.
Looked everywhere, can't find another place to set the max file size. Looked in the manual, too.
When I try sending the 2.5Mo file to the server, an error page comes up telling me i didn't fill all the required fields.

???

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#19270
Avatar

From the FAQ…

How do I get more than <just a few megabytes> of upload support?
PHP defines its own upload limits, which ocPortal can not exceed. Try renaming the bundled 'recommended.htaccess' file to '.htaccess'; if this fails, you will need to persuade the server administrator to increase the PHP 'post_max_size' and 'upload_max_filesize' options.


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:
#19271
Avatar

Community saint

renamed the htaccess file, and got this :

Code

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@33fr.7700nj.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/1.3.34 Server at 33fr.com Port 80

would it be a good idea to just keep the 'post_max_size' and 'upload_max_filesize' lines in the recommended htaccess file ?

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#19272
Avatar

That's why we don't have the file named like that by default :(. By all means, try that - it might well work. It really depends on how the server is configured.


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:
#19279
Avatar

Community saint

No more error page when .htaccess contains only

Code

php_value post_max_size "16M"
php_value upload_max_filesize "16M"
but still doesn't want a file exceeding 2Mo.

Guess one day i'll have to phone the host.
Works fine when sending the file via ftp and linking to it.
Don't feel like fighting my 2.6.1, i'll do with it until 3.0 gets installed. (can hardly wait for that  :P )

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#22444
Avatar

Fan in training

How do I offer members their own Gallery?

Answer: By turning on the 'have personal categories' specific permission for appropriate usergroups and making a new gallery that has the correct 'container' checkbox checked.


Last edit: by Chris Graham
Back to the top
 
Posted
Rating:
#22598
Avatar

Fan in training

'have personal categories'

HI:

I am really sorry to keep bothering you but how do I get to that location?
Back to the top
 
Posted
Rating:
#22600
Avatar

Under: Admin Zone, Security, Specific Permissions, Submission.


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
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Expand