Gossamer Forum
Home : Products : Links 2.0 : Customization :

Show sites-language-mod

Quote Reply
Show sites-language-mod
Hi there,

Eliot, I remember I read in one of my threads - in which I posted a small mod to show a sites language by placing the countries flag next to the link - that you said the codes I gave had been stolen from some other threads.
Just in short: that's wrong! Frown I know there's already another mod by which one can choose a certain flag. But this mod used a drop-down-menue, whereas I used checkboxes. That's a difference and I wasn't able to find such a mod done by someone else before!

Anyhow, no I can't even find my thread anymore (has it been deleted??), but there is a bug in my mod (one more hint I didn't steal codes Wink ) which I'd like to ask a thing about here:

When I add checkboxes with the same name-value, each of the values is "separated" by a ~~. For example I got D~~A~~E and in admin.cgi it even showed D|A|E - and that's more than ugly!

What I finally did is put these codes in my add.cgi:
Code:
# Die Delimeter in $in{'Sprache'} müssen herausgefilter werden... MOD by DC.
if ($in{'Sprache'}) {
@sprache = split /\~\~/,$in{'Sprache'};
$in{'Sprache'} = join ("",@sprache);
}
- and it works! Really surprises me Wink !

But since this ~~-thing messed up my links.db already once I fear that also with the fixing above my files still might be corrupted once...

So I'd like to ask someone with more PERL-experiences to give me a "confirmation" for above solution. Would help me being able to sleep again... Smile

Denis



[This message has been edited by Denis (edited April 04, 2000).]
Quote Reply
Re: Show sites-language-mod In reply to
 
Quote:
that you said the codes I gave had been stolen from some other threads.

I would ask you to look back at that Thread. I did not accuse you of STEALING the codes. BUT I did state that the codes have been provided before. There is a difference.

Frown

And by the tone of your message, you can count me out to assist you.

Best of luck!

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: Show sites-language-mod In reply to
 
Quote:
Stealing, copying, provided or whatever... sorry, the word didn't matter to me, I'm not English.

It may be a matter of semantics to you. But I was not accusing you of stealing, but simply pointing out that codes have already been posted in the Forum to do this. The reason to alert you and others that creating your Mods is unnecessary when codes have already been provided.

So, if you want to go ahead and waste time writing your own Mods that have already been written (and duplicating efforts), fine by me. Wink

Best of luck with your LINKS project!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: Show sites-language-mod In reply to
The codes for use with CHECKboxes? Are you sure? I do not mean RADIOButtons or Dropdown-Menues. If so, I wasn't able to find that, sorry. That's why I posted my solution to have it here for others who might also want to use Checkboxes.

Anyway, I'll search again...
Quote Reply
Re: Show sites-language-mod In reply to
I don't want to fill this forum with nonsense, but allow me this last thing pls:

When seeking for Checkboxes I found (I mean already long time ago also):
http://www.gossamer-threads.com/...um3/HTML/001311.html . But there's no solution for this ~~ thing...
http://www.gossamer-threads.com/...um3/HTML/000859.html - also nothing
http://www.gossamer-threads.com/...um3/HTML/002348.html ...

Ok, maybe I overlooked the one right thread but I got tired coming to all the same stuff again and again by using different search terms...

If you'd show me the one right post I'd be very thankful and will not bother you again.

Thanks
Denis
Quote Reply
Re: Show sites-language-mod In reply to
Hey, why always so upset?
Stealing, copying, provided or whatever... sorry, the word didn't matter to me, I'm not English.

Only thing I wanted to say is that I was trying to do it on my own and not simply taking over codes from ready made mods. That's good for learning! And got blamed by you for that - or not?

If you don't want to help anymore - too bad, so far you've been nearly the only one. Thanks for that.

Bye
Denis


PS: if there's still someone with some kind of "ok" for above solution I'd be thankful...
Otherwise I'll just "pray" Smile