Jump to content



Latest News: (loading..)

- - - - -

Changing text for greeting on index


  • Please log in to reply
11 replies to this topic

#1   Nor-Cal

Nor-Cal
  • Members
  • 72 posts
  • Real Name:Erik

Posted 30 March 2011 - 05:46 PM

On the index page of osC 2.3.1 is the greeting

"Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?"

Where can I find to change the text and add buttons instead of the link text?

#2 ONLINE   DunWeb

DunWeb

    The Censored One

  • Members
  • 12,723 posts
  • Real Name:Chris
  • Gender:Male
  • Location:Ontario, Canada

Posted 30 March 2011 - 06:20 PM

Erik,


You will find that in the language definition file /includes/languages/english.php as such:


define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');
define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>');
define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');


Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile (click here)

#3   Nor-Cal

Nor-Cal
  • Members
  • 72 posts
  • Real Name:Erik

Posted 30 March 2011 - 11:00 PM

Thank you chris....  very much appreciated!!!

#4   ChristopherVidal

ChristopherVidal
  • Members
  • 2 posts

Posted 02 January 2012 - 01:52 PM

im interested in changing the bold  welcome to (name of site ) text above the logo yourself in text.. still searching forums by the way very new to osc.. in love with it! happy new year all

#5 ONLINE   DunWeb

DunWeb

    The Censored One

  • Members
  • 12,723 posts
  • Real Name:Chris
  • Gender:Male
  • Location:Ontario, Canada

Posted 02 January 2012 - 02:53 PM

Christopher,

You can find that text in the /includes/languages/english.php

define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');
define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>');
define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');


Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile (click here)

#6   ChristopherVidal

ChristopherVidal
  • Members
  • 2 posts

Posted 02 January 2012 - 02:54 PM

got it thanks chris!

#7   vacatlady

vacatlady
  • Members
  • 33 posts
  • Real Name:E Ames
  • Gender:Female
  • Location:Luray VA

Posted 19 September 2012 - 01:55 PM

I want to change the greeting as well. I just want to remove "would you like to see new products?  I removed the section in red and got an error message and no home page?  What exactly should I remove?  Thanks

define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');

#8 ONLINE   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,388 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 19 September 2012 - 02:28 PM

You removed the ending single quote

The below is correct
define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span>');


#9   vacatlady

vacatlady
  • Members
  • 33 posts
  • Real Name:E Ames
  • Gender:Female
  • Location:Luray VA

Posted 19 September 2012 - 03:11 PM

thanks so much. I have no clue about editing php

#10 ONLINE   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,388 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 19 September 2012 - 03:27 PM

What you could do is, to start using a php editor, that will highlight the syntax, so you'll know at least is something goes wrog and where (like a kissing quote and things like this)

#11   vacatlady

vacatlady
  • Members
  • 33 posts
  • Real Name:E Ames
  • Gender:Female
  • Location:Luray VA

Posted 19 September 2012 - 07:36 PM

What would you suggest as a php editor?

#12   knifeman

knifeman
  • Members
  • 1,674 posts
  • Real Name:Tim
  • Gender:Male

Posted 19 September 2012 - 08:59 PM

textpad
PSPad
notepad++

There are others that are free also.

Tim