PDA

View Full Version : Suggest-link ~Retaining Submitted Description Text


Loren
07-18-2006, 07:10 AM
How can i retain info in the description field after either a suggest-link error or if the editor wants to edit his/her info?

At present it retains all the other info bar the description, which is blinking annoying if you just written a whole load of text, if you have to go back to fill something you have missed.

Vincent Wright
07-18-2006, 10:47 AM
I tried to suggest link to my local copy of the script. It worked -- i.e. it retained description field contents.

I opened your directory and registered as editor (Vincent) to check it -- the description WAS NOT retained. Strange.

You can retain it by printing $_POST['description'] value inside <textarea> tag like this:


<textarea name="description" ... >{$smarty.post.description}</textarea>


Hope this helps.

Vincent Wright
07-18-2006, 11:01 AM
Btw, I notcied an error: open suggest-link.php and look for "Reciprocol"

Loren
07-18-2006, 11:18 AM
Btw, I notcied an error: open suggest-link.php and look for "Reciprocol"

Bless you Vincent! I shall fix that..and thanks for finding out what my problem was :good:

Vincent Wright
07-18-2006, 11:29 AM
You are welcome ;)

Loren
07-18-2006, 11:37 AM
You are welcome ;)
Stranger and Stranger..Vincent, went to change the Reciprocol mistake and i can't find Reciprocol in either the suggest-link.php or .tpl?

Okay i am a donut head. it's in my language file that's why

Vincent Wright
07-18-2006, 11:49 AM
I meant searching the page in your browser, not .php or .tpl file.

Loren
07-18-2006, 11:55 AM
I meant searching the page in your browser, not .php or .tpl file.

Are we both donut heads today then ;) Not to worry petal all fixed in a jiffy! Both Probs sorted and working purrrrfectly...:friends:

Vincent Wright
07-18-2006, 12:02 PM
Glad to hear that :)