Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sprokop

Pages: 1 [2]
16
Thanks Chris,

It worked perfectly. I can't wait to dive into the whole slew of templates and finish up the French translation. Right now I am adding some custom welcome messages and other greetings.

I guess my next thing is that I would like to be able to add a field to the database and tie it up to the existing category name! this way I can enter the translated version of my category name without having to enter it all in one field. I guess the problem is then what if there is more than one language packs?? hummmm what do you think?

Sam

17
Can you post the modon the thumbnails into top images?

Also, Do you know how to deal with movies inside 4images? I mean I see some other media tempaltes so it maust be possible to just link thumbnails to movies rigth?

Thanks
Sam

18
Hi all,

I would like to add text into exisintg templates and new ones as well, but I would also want to provide translation as well. I tried to use the {lang_xyz} but it doesn't work! I am adding the correct pieces of code inside the language section :mrgreen: !

Can somebody help me? I would really appreciate it!

Thanks
Sam

19
Mods & Plugins (Requests & Discussions) / I am interested!!!
« on: November 05, 2002, 08:24:45 PM »
Quote from: Vraxor
I agree that this is a very important feature to keep visitors up to date about the status of their images.

I have had some visitors asking about this feature while my gallery has just opened. It would be nice to let the owner of the image automaticly receive an E-mail with the name of the commenter and a link to his/her image to read the comment.

I had also some other things I wanted to chaneg and I succeeded yesterday :)
The Toplist wasn't the way I like it, I wanted to show only 3 tops, Hits, Rankings and comments. Well the last one wasn't featured yet in the script so I had to add it, but I also wanted to show thumbnails with the images and this took me quite some time since I have no programming skills at all. But I did it and it works wonderful, maybe someday when I have some more time I will write a tutorial about what I did to alter the toplist here at the forum.
You can take a look at the new Toplist here: http://haunter.student.utwente.nl/Terrarevolution/galleries/top.php

Cheers,
Vraxor


How about you just post the couple of lines you had to update and let us figure it out! This is really nice feature.

Sam

20
Hi,

I'd like to be able to truncate (according to a resetable value within the admin panel) the length of characters shown on the home page for {cat_description}, this way I could display a little lead in to entice visitors to click into that category. Still the category page would make full use of the {cat_description} in its entirety. I guess runing {cat_description} through the length native function of PHP could do that?? I am too new to PHP to write it (Still reading the books 8O ).

Also, I think a cool mod would be to somewhat tie up the {cat_description} (short and long versions  :wink: ) to the database and language packs so several descriptions could be attached to each categories/subcategories. This way, when using the l=[language] parameter we could further enhance the use of the multi-lingual features of 4images.

Anyway, if anybody feels like taking the time to do that I would really appreciate it as would others I am sure.

Thanks
Sam

21
Templates & Styles (Requests & Discussions) / Re: Close
« on: November 03, 2002, 06:13:23 PM »
Quote from: Chris
Try {lang_welcome} instead

It's always "lang", not "lan".


Actually my last post had a typo. I do have {lang_welcome} :(

Do I need to update any other pages besides the template I want to use the new text in and the main.php of that language pack? for instance if I am adding to  home.html template, do I need to ad something to index.php? I am at a lost! the syntax I used is the exact same as found throughout. Could it be that lang_welcome is used somewhere else? I have tried with something else but to no avail.

Thanks for your help
Sam

22
Templates & Styles (Requests & Discussions) / Re: URL
« on: November 03, 2002, 06:29:36 AM »
Quote from: Chris
Just add
Code: [Select]
?l=<language pack>
to the URL.  So if you have the language pack "english" installed, this becomes:
Code: [Select]
?l=english


Thanks that works.

Now, what if I want to add text to the templates, I need to also provide for the translated version  of it. I see that all the translation is held under the lan>[language pack]>main.php, but when I try to add some variables in main.php and call it from the templates it doesn't work.

for instance I added {lan_welcome} in home.html and then added  to lan>french>main.php this
 $lang["welcome"] = "[bonjour]";

Now when I call the gallery home page with the  '&l=english' parameter it doesn't work :?:  I know I am missing a step but I can't figure it out. The variable doesn't get initialized or {lan_welcome} doesn't get processed?

Can you help? thanks

23
Does anybody have a mode that would enable me to plug in category names in different languages :idea: . For instance if the gallery was viewed with the l=french option then the categories would be populated by french names entered from the admin interface during the add category process? That would really be a plus for me and I am sure for many other.

Other than that congratulations on a really top notch piece of code! you'll be receiving my $$ contribution soon. well worth it !

Thanks
Sam

24
Templates & Styles (Requests & Discussions) / This works for me as well
« on: November 01, 2002, 05:26:08 AM »
Thanks,

I'd like to take this up a notch by using the language packs. What do I need to add in order to change template function of the language?

Thanks
Sam
 :wink:

25
Mods & Plugins (Releases & Support) / Re: [Mod] Star Rating
« on: November 01, 2002, 04:57:45 AM »
Quote from: Nicky
// OPEN / ÖFFNE includes/functions.php:

// FIND / SUCHE NACH
  if (!check_permission("auth_readcomment", $image_row['cat_id'])) {
    $image_row['image_allow_comments'] = 0;
  }

// ADD AFTER / HINZUFÜGEN DANACH

Code: [Select]

  if ($image_row['image_rating'] == '5.00') {
     $rating_pic = "5.gif";
  } elseif ($image_row['image_rating'] >= '4.00') {
     $rating_pic = "4.gif";
  } elseif ($image_row['image_rating'] >= '3.00') {
     $rating_pic = "3.gif";
  } elseif ($image_row['image_rating'] >= '2.00') {
     $rating_pic = "2.gif";
  } elseif ($image_row['image_rating'] >= '1.00') {
     $rating_pic = "1.gif";
  } else {
     $rating_pic = "0.gif";
  }
  $site_template->register_vars(array(
     "rating_pic" => $rating_pic,
     "lang_rating" => $lang['rating'],
     "lang_votes" => $lang['votes']
  ));



// ADD IN TEMPLATE(S) / FÜGE DIES IN DEIN(E) TEMPLATE(S)
Code: [Select]

<img src="{template_url}/images/{rating_pic}" width="55" height="10" alt="" />

// OR / ODER
Code: [Select]

<img src="{template_url}/images/{rating_pic}" width="55" height="10" alt="{lang_rating} {image_rating} ({image_votes} {lang_votes})" />


// HERE EXAMPLE PICS / HIER DIE BEISPIEL BILDER

standard 4images color on white background / standard 4images farbe auf weissen hintergrund (55x10 px)








// upload pics into your /templates/YOURTEMPLATE/images / uploade die bilder ins /templates/DEINTEMPLATE/images

// DEMO: no more available / nicht mehr verfügbar



Thanks for a really simple yet great looking mod. Implementation is easy as 1-2-3! bahm done  :lol:

26
Discussion & Troubleshooting / ImageMagick Jpg Support
« on: October 31, 2002, 06:05:03 AM »
Quote from: Klaas
The REAL fix for this is that Imagemagick comes without Jpeg support
by default, some legal issues.
So before you install Imagemagick you need to install the
Jpeg module jpegsrc.v6b.tar.gz , just do a search with google

if you already installed imagemagick, you need to do a "make clean"
then install the Jpeg stuff and imagemagick, in that order
klaas


Klass,

Do you know of any jpegsrc.v6b binaries already compiled for windows?  :wink:

Thanks
Sam

Pages: 1 [2]