Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Including ID in language messages...

Quote Reply
Including ID in language messages...
I've got a really annoying situation whereas I can not modify the error message for REVIEW_NORESULTS via the 'User language' option. I have tried using %s, as that is what REVIEW_INVALIDID uses to show the ID number; but it doesnt work for me! I tried just using <%ID%> in the message, but that won't work either (just prints <%ID%>).

Anyone got any ideas?

Thanks

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] Including ID in language messages... In reply to
I don't know how you can do that, but I have a idea how to help you:


I think you what use this for add_error.html

just open xxx_error.html and type: <%if ID%><%ID%><%endif%>

after <%error%> tag

-----

<%error%> <%if ID%><%ID%><%endif%>

-----

the results will be for example ID=5: REVIEW_INVALIDID 5

Attention!!! If you try to use it in add_error.html this don't work because if add.cgi give you an error, in add.cgi not ID. ID generates after the date will be stored on basedata.

I hope to help you!

Last edited by:

Troja: Mar 8, 2002, 7:48 PM
Quote Reply
Re: [AndyNewby] Including ID in language messages... In reply to
Hi,

You could edit admin/Links/User/Review.pm and change:

Links::language('REVIEW_NORESULTS')

to:

Links::language('REVIEW_NORESULTS', $args->{ID} || $args->{user})

We'll update the source to include this change. You will either get the Link ID or the Username (as the same code is used for both searches).

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Including ID in language messages... In reply to
Thanks, I managed to find another work around Tongue

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!