Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Modify string Next

6 years 8 months ago
  • Romulo's Avatar
    Topic Author
  • Romulo
  • Offline
  • Junior Boarder
  • Posts: 214
  • Thank you received: 6
Licenses:
JomSocial Expired Socialize Expired

Hi there,
I need help to change the string 'Next' in the registration page, but the one that match the registration page in the language file, is in the following group:
; @since 3.3
COM_COMMUNITY_GROUP_OPTIONS = "Opcioness"
COM_COMMUNITY_GROUPS_GROUP_DISCUSSION="Discusiones de grupo"
COM_COMMUNITY_VIDEO_UNPUBLISHED = "Video %s despublicado por el administrador"
COM_COMMUNITY_AN="an"
COM_COMMUNITY_A="a"
COM_COMMUNITY_BY="by"
COM_COMMUNITY_AT="at"
COM_COMMUNITY_IN="in"
(COM_COMMUNITY_NEXT="Siguiente")
COM_COMMUNITY_PREV="Anterior"
COM_COMMUNITY_FIRST="Primero"
COM_COMMUNITY_LAST="Ultimo"

So, if i change it here, then this going to show this translation that need to be specific for registration page, will show olso in other page, like in user photos page, that it's suppose to be this: COM_COMMUNITY_PHOTOS_NEXT="Siguiente" but is not
I think the same string that is locate in the group below:
; @since 3.3
COM_COMMUNITY_GROUP_OPTIONS = "Opcioness"
COM_COMMUNITY_GROUPS_GROUP_DISCUSSION="Discusiones de grupo"
COM_COMMUNITY_VIDEO_UNPUBLISHED = "Video %s despublicado por el administrador"
COM_COMMUNITY_AN="an"
COM_COMMUNITY_A="a"
COM_COMMUNITY_BY="by"
COM_COMMUNITY_AT="at"
COM_COMMUNITY_IN="in"
(COM_COMMUNITY_NEXT="Siguiente")
COM_COMMUNITY_PREV="Anterior"
COM_COMMUNITY_FIRST="Primero"
COM_COMMUNITY_LAST="Ultimo"
This is the one it's suppose to belong to the registration page, but is not, so how can i solve this, because my plan is to put the following text in the next registration page that say: "you must accept term and conditions and press here' but i need this to show only in the registration page, because don't make sense that in photo view page,

users can see the same message, please help.

Best Regards
Romulo Ruiz

Attachments:
6 years 8 months ago
Licenses:
JomSocial Active

That constant/string is defined in:
...\components\com_community\templates\jomsocial\layouts\register\base.php
line 104: <?php echo JText::_('COM_COMMUNITY_NEXT'); ?>
so you have 2 solutions:
1) Change ...\components\com_community\templates\jomsocial\layouts\register\base.php to include different constant
or
2) add to css:

#body.view-register button.joms-button__next.joms-button--full-small:before {
    content: "Accept Terms and Conditions and Go ";
}

The following user(s) said Thank You: Romulo
6 years 8 months ago
  • Romulo's Avatar
    Topic Author
  • Romulo
  • Offline
  • Junior Boarder
  • Posts: 214
  • Thank you received: 6
Licenses:
JomSocial Expired Socialize Expired

Hi Vladimir,
Thank you for that, let see, I will let you know.

6 years 8 months ago
  • Romulo's Avatar
    Topic Author
  • Romulo
  • Offline
  • Junior Boarder
  • Posts: 214
  • Thank you received: 6
Licenses:
JomSocial Expired Socialize Expired

Hi Vladimir
I'm getting back to this topic, Now i took the time to do that, changing the constant as you suggested, my question, if i update jomsocial, this file will be replaced by the new update?

Best Regards

Romulo Ruiz

6 years 8 months ago
Licenses:
JomSocial Active

Depends where you place code. If you choose to change ...\components\com_community\templates\jomsocial\layouts\register\base.php then yes, it will be overwritten on JomSocial update.
If you choose to add css then it depends where you add it. You can add that css to Joomla template css so update of JomSocial will not overwrite it. On the other hand update of Joomla template can overwrite that css. If you have your own joomla template, one that you made, than place css in there and you are safe.

The following user(s) said Thank You: Romulo
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW