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.


Intro Forum ID modification

Login / Search

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

Honoured member

Located in /adminzone/pg/admin_config/category/SECTION_FORUMS

The Intro Forum ID option...

I have selected a forum named INTRODUCTIONS to be included in the registration process.

The subject line is pre-populated with "Hello, I'm ___" and the edit field is blank awaiting the new member to intro themselves......

I would like to pre-populate that field with "I'm in a hurry and will introduce myself here later".......

Also, I would like to make this function mandatory....

Can do?

Where do?

How do?

Back to the top
 
Posted
Rating:
#98111
Avatar

Not without custom coding. I had a quick look. This is coded up in sources/ocf_join.php.

You would need to change:

Code

         $fields->attach(form_input_text_comcode(do_lang_tempcode('POST_COMMENT'),do_lang_tempcode('DESCRIPTION_INTRO_POST'),'intro_post','',false));
to:

Code

         $fields->attach(form_input_text_comcode(do_lang_tempcode('POST_COMMENT'),do_lang_tempcode('DESCRIPTION_INTRO_POST'),'intro_post','I\'m in a hurry and will introduce myself here later.',true));
then save as sources_custom/ocf_join.php so it is marked as an override.

I think that'd work.


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:
#98114

Non-joined user

Chris Graham said


then save as sources_custom/ocf_join.php so it is marked as an override.

I think that'd work.

Save meaning save as, creating a new side by side file. The old one with origional code and the custom with new code….

OR, save, renaming the only file to be sources_custom/ocf_join.php????
Back to the top
 
Posted
Rating:
#98119
Avatar

Honoured member

QUESTION:

Once I create the new file sources_custom/ocf_join.php with edited code….

Do I leave the original sources/ocf_join.php in tact, un-edited?

Or should I delete it?

Or should I rename it to be sources/ocf_join.php.bk ????
Back to the top
 
Posted
Rating:
#98120
Avatar

either


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

Community saint

in general it is best to just leave the original unedited version where it was and make a copy of it with your changes saved into the custom folder. However if you delete, rename, or edit the original all is not lost. Remember, edits to the original if not stored in custom folder will be lost if you ever upgrade or restore.
Back to the top
 
Posted
Rating:
#98138
Avatar

Honoured member

Duck said

in general it is best to just leave the original unedited version where it was and make a copy of it with your changes saved into the custom folder.

Thanks Duck!

Exactly what I did :-)
The edit now works and makes its auto-post… however I'm not getting my selected email notifications of the new introduction posts…. I have a bug report ticket going for that now.

Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: