great mod

Forum_Lexicon_Desc

great mod

Beitragvon marcombv » 27. Aug 2005 11:35

Thnx for this great mod, it is realy awsome. :D

But I have a question, is it possible to use images (Icons) instead of the letters? Just like a.gif, b.gif etc.

Also I translated the whole mod to Dutch, perhaps you like to have the files?

Greetings from Holland

Marco

http://www.venividivissie.org/lexicon.php
Benutzeravatar
marcombv
 
Beiträge: 10
Registriert: 10. Jun 2005 17:01
Wohnort: Amsterdam

Beitragvon AmigaLink » 27. Aug 2005 14:06

Thnx for this great mod, it is realy awsome

Thanks for the praise. :)
is it possible to use images (Icons) instead of the letters?

Yes, that i can do for you. At this moment i am not on the correct computer, but i will give you the code in next time. :)
But you must have twice icons for each letter! One normal and one shadowed. ;)
Also I translated the whole mod to Dutch, perhaps you like to have the files?

Yes, I'am very interest on that. 8)
Please open a new thread (eg. Duch language files) and attach the files in it. I will then mark that thread as important and take the files in a furter release. :)
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon marcombv » 12. Dez 2005 17:44

Thanks for the praise.


Your welcome

Yes, that i can do for you. At this moment i am not on the correct computer, but i will give you the code in next time.
But you must have twice icons for each letter! One normal and one shadowed.


I wil wait. :D

Yes, I'am very interest on that.


Just uploaded the Dutch files. :)

Added after 107 days 1 hours 49 minutes:

Yes, that i can do for you. At this moment i am not on the correct computer, but i will give you the code in next time.
But you must have twice icons for each letter! One normal and one shadowed.


Do you already have some idea about the icons instead of letters?
Benutzeravatar
marcombv
 
Beiträge: 10
Registriert: 10. Jun 2005 17:01
Wohnort: Amsterdam

Beitragvon AmigaLink » 12. Dez 2005 18:37

Oh sorry I've forget you. :oops:

I make it for you tomorrow!
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon marcombv » 12. Dez 2005 20:10

Your Great! :D :D :D
Benutzeravatar
marcombv
 
Beiträge: 10
Registriert: 10. Jun 2005 17:01
Wohnort: Amsterdam

Beitragvon AmigaLink » 14. Dez 2005 11:42

Sorry I took one more day. :roll:

I have not the time to create images yet but I like the graphical navigation and I will release that as an oddon in the future. :)

Create gif pictures for each letter (a - z, 0 - 9 an @ and 'all') eg. a.gif b.gif 0.gif @.gif and show_all.gif.
Place this pics a - z, 0 - 9 and @ in templates/subSilver/images/lexicon/ drawer and the 'all' icon in templates/subSilver/images/lang_xxx/lexicon/.
Code: Alles auswählen
#
#----------[ OPEN ]-------------------------------------
#

templates/subSilver/subsilver.cfg

#
#----------[ FIND ]-------------------------------------
#

?>

#
#----------[ BEFORE, ADD ]------------------------------
#

// Lexicon navigation letters
$images['A'] = "$current_template_images/lexicon/a.gif";
$images['B'] = "$current_template_images/lexicon/b.gif";
$images['C'] = "$current_template_images/lexicon/c.gif";
$images['D'] = "$current_template_images/lexicon/d.gif";
$images['E'] = "$current_template_images/lexicon/e.gif";
$images['F'] = "$current_template_images/lexicon/f.gif";
$images['G'] = "$current_template_images/lexicon/g.gif";
$images['H'] = "$current_template_images/lexicon/h.gif";
$images['I'] = "$current_template_images/lexicon/i.gif";
$images['J'] = "$current_template_images/lexicon/j.gif";
$images['K'] = "$current_template_images/lexicon/k.gif";
$images['L'] = "$current_template_images/lexicon/l.gif";
$images['M'] = "$current_template_images/lexicon/m.gif";
$images['N'] = "$current_template_images/lexicon/n.gif";
$images['O'] = "$current_template_images/lexicon/o.gif";
$images['P'] = "$current_template_images/lexicon/p.gif";
$images['Q'] = "$current_template_images/lexicon/q.gif";
$images['R'] = "$current_template_images/lexicon/r.gif";
$images['S'] = "$current_template_images/lexicon/s.gif";
$images['T'] = "$current_template_images/lexicon/t.gif";
$images['U'] = "$current_template_images/lexicon/u.gif";
$images['V'] = "$current_template_images/lexicon/v.gif";
$images['W'] = "$current_template_images/lexicon/w.gif";
$images['X'] = "$current_template_images/lexicon/x.gif";
$images['Y'] = "$current_template_images/lexicon/y.gif";
$images['Z'] = "$current_template_images/lexicon/z.gif";

$images['0'] = "$current_template_images/lexicon/0.gif";
$images['1'] = "$current_template_images/lexicon/1.gif";
$images['2'] = "$current_template_images/lexicon/2.gif";
$images['3'] = "$current_template_images/lexicon/3.gif";
$images['4'] = "$current_template_images/lexicon/4.gif";
$images['5'] = "$current_template_images/lexicon/5.gif";
$images['6'] = "$current_template_images/lexicon/6.gif";
$images['7'] = "$current_template_images/lexicon/7.gif";
$images['8'] = "$current_template_images/lexicon/8.gif";
$images['9'] = "$current_template_images/lexicon/9.gif";

$images['@'] = "$current_template_images/lexicon/@.gif";

$images['show_all'] = "$current_template_images/{LANG}/lexicon/all.gif";

#
#----------[ OPEN ]-------------------------------------
#

includes/functions_lexicon.php

#
#----------[ FIND ]-------------------------------------
#

   global $phpEx, $lex_cat_mode;

#
#----------[ INLINE FIND ]------------------------------
#
   
$lex_cat_mode

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, $images

#
#----------[ FIND ]-------------------------------------
#

         $letter_navigation .= '<font class="letter2">&nbsp;'.chr($i).'&nbsp;</font>';

#
#----------[ REPLACE WITH ]-----------------------------
#

         $letter_navigation .= '&nbsp;<img src="'.$images[chr($i)].'" height="25" border="0" alt="'.chr($i).'" title="'.chr($i).'" style="filter:alpha(opacity=100)">&nbsp;';

#
#----------[ FIND ]-------------------------------------
#

         $letter_navigation .= '<font class="letter3">&nbsp;'.chr($i).'&nbsp;</font>';

#
#----------[ REPLACE WITH ]-----------------------------
#

         $letter_navigation .= '&nbsp;<img src="'.$images[chr($i)].'" height="20" border="0" alt="'.chr($i).'" title="'.chr($i).'" style="filter:alpha(opacity=10)">&nbsp;';

#
#----------[ FIND ]-------------------------------------
#

         $letter_navigation .= '<a class="letter" href="'.append_sid("lexicon.$phpEx").'?'.LEXICON_KEY_URL.'='.chr($i).$lex_cat_mode.'">&nbsp;'.chr($i).'&nbsp;</a>';

#
#----------[ REPLACE WITH ]-----------------------------
#

         $letter_navigation .= '<a class="letter" href="'.append_sid("lexicon.$phpEx").'?'.LEXICON_KEY_URL.'='.chr($i).$lex_cat_mode.'">&nbsp;<img src="'.$images[chr($i)].'" height="20" border="0" alt="'.chr($i).'" title="'.chr($i).'" style="filter:alpha(opacity=70)" onMouseOver="this.filters.alpha.opacity=90" onMouseOut="this.filters.alpha.opacity=70">&nbsp;</a>';

#
#----------[ FIND ]-------------------------------------
#

   global $phpEx, $lex_cat_mode;

#
#----------[ INLINE FIND ]------------------------------
#
   
$lex_cat_mode

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, $images

#
#----------[ FIND ]-------------------------------------
#

         $extra_navigation .= '<font class="letter2">&nbsp;'.chr($i).'&nbsp;</font>';

#
#----------[ REPLACE WITH ]-----------------------------
#

         $extra_navigation .= '&nbsp;<img src="'.$images[chr($i)].'" height="25" border="0" alt="'.chr($i).'" title="'.chr($i).'" style="filter:alpha(opacity=100)">&nbsp;';

#
#----------[ FIND ]-------------------------------------
#

            $extra_navigation .= '<font class="letter3">&nbsp;'.chr($i).'&nbsp;</font>';

#
#----------[ REPLACE WITH ]-----------------------------
#

            $extra_navigation .= '&nbsp;<img src="'.$images[chr($i)].'" height="20" border="0" alt="'.chr($i).'" title="'.chr($i).'" style="filter:alpha(opacity=10)">&nbsp;';

#
#----------[ FIND ]-------------------------------------
#

         $extra_navigation .= '<a class="letter" href="'.append_sid("lexicon.$phpEx").'?'.LEXICON_KEY_URL.'='.chr($i).$lex_cat_mode.'">&nbsp;'.chr($i).'&nbsp;</a>';

#
#----------[ REPLACE WITH ]-----------------------------
#

         $extra_navigation .= '<a class="letter" href="'.append_sid("lexicon.$phpEx").'?'.LEXICON_KEY_URL.'='.chr($i).$lex_cat_mode.'">&nbsp;<img src="'.$images[chr($i)].'" height="20" border="0" alt="'.chr($i).'" title="'.chr($i).'" style="filter:alpha(opacity=70)" onMouseOver="this.filters.alpha.opacity=90" onMouseOut="this.filters.alpha.opacity=70">&nbsp;</a>';

#
#----------[ FIND ]-------------------------------------
#

      $extra_navigation .= '<font class="letter2">&nbsp;'.chr(64).'&nbsp;</font>';

#
#----------[ REPLACE WITH ]-----------------------------
#

      $extra_navigation .= '&nbsp;<img src="'.$images[chr(64)].'" height="25" border="0" alt="'.chr(64).'" title="'.chr(64).'" style="filter:alpha(opacity=100)">&nbsp;';

#
#----------[ FIND ]-------------------------------------
#

         $extra_navigation .= '<font class="letter3">&nbsp;'.chr(64).'&nbsp;</font>';

#
#----------[ REPLACE WITH ]-----------------------------
#

         $extra_navigation .= '&nbsp;<img src="'.$images[chr(64)].'" height="20" border="0" alt="'.chr(64).'" title="'.chr(64).'" style="filter:alpha(opacity=10)">&nbsp;';

#
#----------[ FIND ]-------------------------------------
#

      $extra_navigation .= '<a class="letter" href="'.append_sid("lexicon.$phpEx").'?'.LEXICON_KEY_URL.'='.chr(64).$lex_cat_mode.'">&nbsp;'.chr(64).'&nbsp;</a>';

#
#----------[ REPLACE WITH ]-----------------------------
#

      $extra_navigation .= '<a class="letter" href="'.append_sid("lexicon.$phpEx").'?'.LEXICON_KEY_URL.'='.chr(64).$lex_cat_mode.'">&nbsp;<img src="'.$images[chr($i)].'" height="20" border="0" alt="'.chr(64).'" title="'.chr(64).'" style="filter:alpha(opacity=70)" onMouseOver="this.filters.alpha.opacity=90" onMouseOut="this.filters.alpha.opacity=70">&nbsp;</a>';

#
#----------[ OPEN ]-------------------------------------
#

lexicon.php

#
#----------[ FIND ]-------------------------------------
#

   $first_letter_navigation .= '<b>&nbsp;-&nbsp;&nbsp;<font class=letter2>'.$lang['show_all'].'</a></b>';

#
#----------[ REPLACE WITH ]-----------------------------
#

   $first_letter_navigation .= '<b>&nbsp;-&nbsp;&nbsp;</b><img src="'.$images['show_all'].'" height="20" border="0" alt="'.$lang['show_all'].'" title="'.$lang['show_all'].'"></a>';
#
#----------[ FIND ]-------------------------------------
#

   $first_letter_navigation .= '<b>&nbsp;-&nbsp;&nbsp;<a href="'.append_sid("lexicon.$phpEx?$lex_cat_mode").'" class="letter">'.$lang['show_all'].'</a></b>';

#
#----------[ REPLACE WITH ]-----------------------------
#

   $first_letter_navigation .= '<b>&nbsp;-&nbsp;&nbsp;</b><a class="letter" href="'.append_sid("lexicon.$phpEx?$lex_cat_mode").'">&nbsp;<img src="'.$images['show_all'].'" height="20" border="0" alt="'.$lang['show_all'].'" title="'.$lang['show_all'].'" style="filter:alpha(opacity=70)" onMouseOver="this.filters.alpha.opacity=90" onMouseOut="this.filters.alpha.opacity=70"></a>';

#
#----------[ SAVE AND CLOSE ALL FILES ]-----------------
#
# EoM
[center][- Edit: Code from post #8 includet -][/center]
Take a look at each new line of that code.
There is an height="xx" (xx is an 20 or an 25) in much lines. That will define the height witch the brwoser will use to show the Picture. Change it to an value witch will be better for you!

Zugefügt nach 9 Minute(n):

Ouch Bild
The code I will use in that changes are not compatible with the actual release of the lexicon. :roll:
Make this and it will work:
Code: Alles auswählen
#
#----------[ OPEN ]-------------------------------------
#

includes/constants.php

#
#----------[ FIND ]-------------------------------------
#

define('POST_GROUPS_URL', 'g');

#
#----------[ AFTER, ADD ]-------------------------------
#

//<!-- BEGIN Lexicon v2 -->
define('LEXICON_KEY_URL', 'letter');  // in Lexicon v2.0.4 and lower the value was 'letter'
//<!-- END Lexicon v2 -->

That is a line from the upcoming release of the MOD. :)
Zuletzt geändert von AmigaLink am 14. Dez 2005 18:08, insgesamt 1-mal geändert.
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon marcombv » 14. Dez 2005 17:30

Sorry I took one more day.


No worry's :P

I have not the time to create images yet but I like the graphical navigation and I will release that as an oddon in the future.


I already have the gif images, the right color for my template. :o

I will try to install it tonight.

Thanks a lot! :shock:

Added after 49 minutes:

I did all the fixes, but do not see any gif letters.

When I look in the source the img src tag is empty?

like this:
Code: Alles auswählen
<a class="letter" href="lexicon.php?letter=A">&nbsp;<img src="" height="20" border="0" alt="A" title="A" style="filter:alpha(opacity=70)" onMouseOver="this.filters.alpha.opacity=90" onMouseOut="this.filters.alpha.opacity=70">
Benutzeravatar
marcombv
 
Beiträge: 10
Registriert: 10. Jun 2005 17:01
Wohnort: Amsterdam

Beitragvon AmigaLink » 14. Dez 2005 18:00

Ups I've forget some important code: :roll:
Code: Alles auswählen
#
#----------[ OPEN ]-------------------------------------
#

includes/functions_lexicon.php

#
#----------[ FIND ]-------------------------------------
#

   global $phpEx, $lex_cat_mode;

#
#----------[ INLINE FIND ]------------------------------
#
   
$lex_cat_mode

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, $images

#
#----------[ FIND ]-------------------------------------
#

   global $phpEx, $lex_cat_mode;

#
#----------[ INLINE FIND ]------------------------------
#
   
$lex_cat_mode

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, $images

#
#----------[ SAVE AND CLOSE ALL FILES ]-----------------
#
# EoM
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon marcombv » 14. Dez 2005 18:23

great!

It works! :P :P :P
Benutzeravatar
marcombv
 
Beiträge: 10
Registriert: 10. Jun 2005 17:01
Wohnort: Amsterdam

Beitragvon AmigaLink » 14. Dez 2005 18:42

Fine :)
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW


Zurück zu Lexicon v2



Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste

cron