Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Personalize the message ...

Quote Reply
Personalize the message ...
Hello,

I seek to personalize the message for connection.

1/ The user is not connected.

The user wants to add a link.
He clicks on "Add a link".

I would like to write on the page of connection (add.cgi) this message :
You must enter your data to "Add your link".

2/ The user is not connected.

The user wants to modify a link.
He clicks on "Modify a link".

I would like to write on the page of connection (modify.cgi) this message :
You must enter your data to "Modify your link".


Currently, the message is always the same one.
It does not make the difference if connection is obliged.

You have an idea ?

Thank you for your assistance.
Mick
Quote Reply
Re: [mick31] Personalize the message ... In reply to
If you are looking for the templates they are:
To add a link = login.html
To modify a link = modify.html

If you are using the Community Plugin I think its
user_include_login.html.

Regards

minesite
Quote Reply
Re: [minesite] Personalize the message ... In reply to
Hello,

Thank you for your answer.

But, I am not explained well.

I would like to be able to identify the source of the user on the login page (login.html).
For him ecrire a message adapted to the situation.

I would like to use a condition on the login page.

For add.cgi :
<%if add_page%>My message ... <%endif%>

For modify.cgi :
<%if modify_page%>My message ...<%endif%>

For subscribe.cgi :
<%if subscribe_page%>My message ...<%endif%>

For myfaves.cgi (for Andy) :
<%if myfaves_page%>My message ...<%endif%>

...

There is the label <%error%> on the login page (login.html).
But, it does not give the possibility of adapting the message to the situation requested by the user.

I am explained better ?

You have an idea ?

Thank you for your assistance.

Mick
Quote Reply
Re: [mick31] Personalize the message ... In reply to
Hi Mick,

I'm using Community now so I can't check this but you should find that when you click on the link and it redirects you to the login page, the url will have something like url=http://..../modify.cgi&from=modify. I'm not sure exactly what the value for from will be but hopefully it is different for the two pages - something like 'add' and 'modify'?

If so, you can use <%if from eq 'add'%>Message...<%elsif from eq 'modify'%>Message...<%endif%>

Laura.
The UK High Street
Quote Reply
Re: [afinlr] Personalize the message ... In reply to
Hello Laura,

That goes very well. Blush

I noticed that the initial users on my directory were lost. This modification can certainly help them (?).

Thank you.

You think that script Community gives the possibility of having the same result ?

Mick

Last edited by:

mick31: Feb 28, 2004, 10:35 AM
Quote Reply
Re: [mick31] Personalize the message ... In reply to
I think that any redirects to the login page should include the from variable - I'm not sure about Andy's plugin but it wouldn't be difficult to add in.

Once you install Community this variable seems to disappear unfortunately. I think it just needs some editing of Auth_Community plugin to get it working in Community - but I don't want to break my site so I'll wait for GT to have a look at this.

Last edited by:

afinlr: Feb 28, 2004, 10:51 AM