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 - Optimum

Pages: 1 [2]
16
Mods & Plugins (Releases & Support) / Re: [MOD] Language select
« on: March 24, 2006, 11:27:47 AM »
Hi,

how can I select the display language?

What I mean is, I have a site in two languages. English and Slovenian. User "selects" the overall language at first visit or by which domain he/she enters my page. So for English I'd like to display the 4images in English, but for Slovenians I'd like to use Slovenian language set (which I already created and works fine). I'm only interested in the 4images "front", not the admin area. That can be in English all the time. I'm actually only using a few files (deleted a bunch of stuff): index, menu, categories, detail and search.
How could I do that?

If it's important: I have a "Gallery" button inside my site, which links to 4images index page. You have to think of my site as two different (separate) sites, not one site with two language sets. Two independent sites, on same server, different domain name, one 4images system.

Please help.

TIA,
Mat

17
Hi,

I've started to install this mod, but I thought I should first check with the code provided, if it'll work.
Quote
<?php
header ("Content-type: image/png");
$im = imagecreate (180, 30);
$black = imagecolorallocate ($im, 0, 0, 0);
$white = imagecolorallocate ($im, 255, 255, 255);
imagettftext ($im, 14, 0, 10, 21, $white, "/home/public_html/arial.ttf", "GD Freetype test");
imagepng ($im);
imagedestroy ($im);
?>
Well, the little code, doesn't work. I get a black box, but no white text.
I used both absolute and relative link to the font, but still nothing..

This is the server report:

gd
GD Support    enabled
GD Version    2.0 or higher
FreeType Support    enabled
FreeType Linkage    with freetype
T1Lib Support    enabled
GIF Read Support    enabled
GIF Create Support    enabled
JPG Support    enabled
PNG Support    enabled
WBMP Support    enabled

Do I require anything else to make this work?

TIA!
Mat

EDIT: Problem fixed. It was in the path. I wish it would be explained better. You need a FULL server path, like /home/www/users/quantas/domain/www/multimedija/font.ttf.. not just ../font/font.ttf or www.domain.com/fonts/font.ttf.
I got the test script working now, now for the whole mod.. fingers crossed..

18
Yes V@no, I know that, I've been using it that way, that's why I installed it ;)

BUT, this works ONLY if you ftp the files, doesn't work if you use the Add Images function, right?
And there is my problem. I'd like to use it for those files as well. I know the "problem" is, that Add Images also adds them into the database. So the thing to do here, is to modify the Add Images and add an option "Write to DB?". That way, when turned off, images wouldn't be written to the DB and I could use your Check Images mod to work with them..
You know what I mean? Could it be done?

TIA,
Mat

EDIT: Problem fixed through Add Images.

19
Yes, that's the way I'm doing it, but I'm uploading in bunches, not 1-3 files at a time.
But to be honest, would be great to have that if you need to upload just an image or two. It would resize automaticaly (copy to big folder without the need to manualy make folders and resize the image), make annotations (if I manage to get it working), make thumbs as well..

But the big problem for me is, I have two other people (also admins) who don't know ANYTHING about Photoshop, ftp programs, etc.. so they'll only use that Add Image function. Right now, I'm not even sure if they can upload big pictures (with the required big folder, for your "Open in new window mod"). Only small ones I think. And even with that, I'd have to teach them how to upload, how to resize and how to thumbnail. You made a great mod I just though a option like this would bring it closer to the less technical people.
I just thought it would be great if you could do the whole thing with two-three clicks. Fastest and easyest for 1-3 images imo.

Regards,
Mat


20
This one is another great mod that is a "must have".
I got it to work in no time and it's great.

There is one thing however. It's been asked before, but I'll ask anyhow.
It works great for image that aren't in the db, but would there be a way
to use this (mainly resizer and mover to "big" folder) for images uploaded
through the CP?
Perhaps I should ask a different way, could there be an option in "Add images"
that would offer an option to add the image to the db or not?
You know what I mean? It would upload the file to the folder, but if you'd
have the "Add image to DB?" option turned OFF, it wouldn't add it, so you
could find it with this mod and modifiy it further.
Could something like that be done?

TIA!
Mat

21
Yes, I did just that, thanks!

Regards,
Mat

22
Hi V@no, sorry, I fixed it.. :D
It works great!! Just what I was looking for :)

One other question: would it be ok, if I'd set the newWindow size when it opens?  EDIT: did that already, works great :) Just hoping you'll give your OK on this, just to be safe..

No way to "fit" it to the "big" picture size, right?

23
Hi,

I installed this but I get the same problem as I did with one of the other mods.
It opens the detail.html page, I have the usual stuff there, then I have this code visible:

Quote
<script type="text/javascript">function openpopupbig(big){var popurl="./data/media/1/big/BIG.jpg";settings='location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes,dependent=no';winpopsbigWindow=window.open(popurl,big,settings);winpopsbigWindow.focus();}</script>
<a class="big" href="javascript:openpopupbig('big')">
Just below that is the actual image, and below the image I have:
Quote
</a>

There is no link on the image, I can't click on it. What is wrong? I see the <a> tags, so there should be a link present, right?
Please help! I use the latest version, 1.7.2.

TIA,
Mat

24
Mods & Plugins (Requests & Discussions) / Re: {cp_link}
« on: March 22, 2006, 12:07:44 PM »
Found it.. /include/page_header.php

Now to find those missing links and I'm set :)
Almost :D

25
Mods & Plugins (Requests & Discussions) / {cp_link}
« on: March 22, 2006, 10:42:52 AM »
Hi,

where can I modify this? I'd like to open the CP in a blank new window.
I've tried in user_logininfo.html, but it doesn't seem to work:
Quote
<table width="100%" border="0" cellpadding="4" cellspacing="0">
  <tr>
    <td valign="top" align="left">
     {lang_loggedin_msg}<br />
      <br />
     &raquo; <a href="{url_control_panel}" target="_blank">{lang_control_panel}</a><br />
      &raquo; <a href="{url_logout}">{lang_logout}</a><br>
      <br>
    </td>
  </tr>
</table>

And aditional question if I may.
Since I removed the login section of my pages, I'd like to add "Logout" to "Control Panel" link, only visible when loged in.
Aditionaly I'd like to add "Login" link to the same place as "control panel" link, but visible only when not logged it.
Can this be done?

TIA!
Mat

26
Hi,

I'm a total noob with this gallery sistem, first time I'm using it, and I love it already.
This mod was the exact thing that I was looking for.

I have a fixed site width, with about 500px space for the image to be displayed (inside detail file).
I have quite a few images that are bigger that the window, so a "open in a new window" is the exact thing I was looking for.
But I've enocuntered a problem. Two actually.

First thing it, I get the link to open in a new window on ALL my pictures, even those that are smaller then 500px. I'd imagine that the link to full sized picture would only appear when needed (for pictures that are bigger then 500px). Right?
Further more, I don't get the link on a picture, I get the picture name with link attached (meaning, I can't click on the picture, since there's no link attached to it. Above the image I get the image name with the link).
And the last thing, when my images are above 500px limit, the script doesn't resize them, the image just dissapears.

What am I doing wrong?
I have GD2 installed on my server.

I should also mention I'm a total noob in php, but I learn really fast.

Please help.

TIA!!
Mat

Pages: 1 [2]