PDA

View Full Version : One more question......


stevejvan
03-09-2007, 09:45 PM
I am trying to replace the next / prev with images.

I got that working, however when there isn't a next or prev I would like a button of the same size to show up as a spacer to not mess up the configuration of my toolbar.

The next and prev show up great, but the no_prev and no_next are not working. The images are all in the same directory and if I switch the code so that the spacers are to show up for the prev / next, they do show up......

This is my lang file....

$lang_previous = "<img src='/pixelpost/templates/sjv/images/but_left_dark.gif' alt='Previous' />";
$lang_next = "<img src='/pixelpost/templates/sjv/images/but_right_dark.gif' alt='Next' />";
$lang_no_previous = "<img src='/pixelpost/templates/sjv/images/left_spacer.gif' alt='Previous' />";
$lang_no_next = "<img src='/pixelpost/templates/sjv/images/right_spacer.gif' alt='Next' />";

GeoS
03-09-2007, 10:53 PM
Any link showing problem in live, web enviroment?

stevejvan
03-09-2007, 11:26 PM
Maybe it will make more sense with the link to my problem.....

http://www.vandesteene.net/pixelpost/index.php

Look at the toolbar at the top. Using the code in the lang-english.php file listed above....the "next" filler image on the right side of the toolbar is missing even though there is a "NO NEXT" image assigned....

Does that make more sense??

GeoS
03-10-2007, 04:19 PM
You can find in sources that this 2 variables are used for titles (lines 402 & 431 of /index.php):
$image_previous_title = "$lang_no_previous";
$image_next_title = "$lang_no_next";

Connie
03-10-2007, 06:56 PM
#1)
why don't you use UTF-8 in your template, hej?
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

the complete system is done with UTF-8 so you should not mess this, this could bring trouble with browsers etc.

#2)
two links in your navigation bar don't work, there is no about-page, collections-page, did you check that? Is there a about_template.html in your template-folder? Is there collections_template.html in your template-folder? I guess not. So you should not link in the way index.php?x=....

#3)
to your question:

how did you define the variable $lang_no_previous in the language-file?
maybe the image, which you set there is not found?
The adress must be relative to Pixelpost's main index.php

stevejvan
03-11-2007, 05:18 AM
In reply....

Geos: You can find in sources that this 2 variables are used for titles (lines 402 & 431 of /index.php):

Steve: I apologize, but I am not understanding this. What titles? Are you saying that a link will not work for images in these two variables?


also.....

Connie,

I know those two pages don't work yet, I have not programmed them.

Also, you stated:
"how did you define the variable $lang_no_previous in the language-file?
maybe the image, which you set there is not found?
The adress must be relative to Pixelpost's main index.php"

I put the code in a previous post, and like I said, the images work under a different variable.

----------------------------------------

Is there anyone who has successfully done what I am trying to do here? Substitute an image as filler, when there isn't a next or previous image instead of it being blank?

Steve

Connie
03-11-2007, 07:59 AM
I did not see the code in your first code, but as I wrote in my last reply:

the path to the image is wrong.

I did not read completely and you did not read my answer as well ;=)

<img src='/pixelpost/templates/sjv/images/but_left_dark.gif' alt='Previous' />"

is this src relative to the pixelpost-installation?????

for sure it must be like this:

your installation is in the folder "pixelpost"
index.php sits in /pixelpost and from there the images are called:

<img src='./templates/sjv/images/but_left_dark.gif' alt='Previous' />"

try this and make sure that the images are in the template-folder ;=)

You did not want to do something very very special.
You just made a very stupid small mistake.
There are many people who realised easily what you want to do and there are many people who make mistakes as well ...

so I think you should not be desperate and stand alone in the wood without any help and hint, just correct the path :p

GeoS
03-11-2007, 04:33 PM
Steven - it means it replaces image titles (for previous and next image) instead of being a part of link. That is whole difference.

stevejvan
03-11-2007, 05:27 PM
Evidently I have offended some of you who are trying to help me, and for that I apologize....it was not intentional. I am only trying to communicate my problem and I really don't feel that is working.

I have two people telling me (what seems) two different things. GEOS you seem to be telling me that $lang_no_next is NOT what displays when there is not a next image, rather an image title, am I correct? It doesn't seem right that next would be what shows for next, and no next doesn't mean what happens when there is not a next image?!

Connie: you are telling me that my paths are incorrect, but next works great, no next didn't. So I have updated my paths to show what you suggested:

$lang_previous = "<img src='./templates/sjv/images/but_left_dark.gif' alt='Previous' />";
$lang_next = "<img src='./templates/sjv/images/but_right_dark.gif' alt='Next' />";
$lang_no_previous = "<img src='./templates/sjv/images/left_spacer.gif' alt='Previous' />";
$lang_no_next = "<img src='./templates/sjv/images/right_spacer.gif' alt='Next' />";

Now, Next/Prev still work great, however if there is not a next or prev image the right_spacer.gif and left_spacer.gif images are not displaying. You can see this at http://www.vandesteene.net/pixelpost/index.php. There is a huge hole on the right hand side where the right_spacer.gif should be.

Am I doing something wrong, or just doing something that is not in the code?!

GeoS
03-11-2007, 07:50 PM
Im just saying that you should switch between 2 variables.
1) $lang_no_next/$lang_no_previous when there is not next/prev image; then variables from point 2) are empty
2) $lang_next/$lang_previous when there is next/prev image; then variables from point 1) are empty

stevejvan
03-11-2007, 09:20 PM
GeoS, can you explain or show me some example. I don't understand at all.

Thank you, :(

GeoS
03-11-2007, 10:24 PM
There is nothing to show.
Only $lang_next/$lang_previous are used to create links!!!

$image_previous_link = tag <IMAGE_PREVIOUS_LINK>
$image_next_link = tag <IMAGE_NEXT_LINK>
empty $image_next_title (when there is no image) = $lang_no_next = tag <IMAGE_NEXT_TITLE>
empty $image_previous_title (when there is no image) = $lang_no_previous = <IMAGE_PREVIOUS_TITLE>

Now you get??? I cant write it more simple as it is above :/

stevejvan
03-12-2007, 02:48 AM
I am really disappointed in the way you are treating me. I am not stupid, in fact I have a B.S. in Computer Science and work as a support technician, I graduated top of my class. I get this stuff, I do, it is the lack of documentation and intelligent support staff that I am having a problem with.

P.S. The stupid mistake you said I was making and that I needed to read, was working just fine the way I had it!

I will figure it out on my own or use your competitors product....

stevejvan
03-12-2007, 03:06 AM
I just found the answer, thanks anyway.

Anyone who is interested in how to do what I was so desperately trying to figure out, just change two lines in your index.php file like below:

if($image_next_id == "")
{
$image_next_id = $image_id;
$image_next_title = "";
$image_next_link = "$lang_no_next";
$image_next_thumbnail = "";
}

That will pull the image link instead of title, incredibly simple....

I hope this was able to help someone, and that you don't have to come here and be called stupid when simply trying to get help.

Connie
03-12-2007, 06:00 AM
lack of documentation and intelligent support staff

phantastic, so clever user and so stupid people here

Dkozikowski
03-13-2007, 01:40 AM
.... the lack of documentation and intelligent support staff that I am having a problem with ....


Steve, what you need to understand is, everyone here comes from various parts of the world. Geo's is from Poland and Connie is from Germany.

They were not being intentionally rude. Everyone has their own way of answering questions and trying to explain things in their own way.

The documentation may be lacking in some areas but we're all actively trying to fill in the gaps. What you were/are looking to do is beyond Pixelpost's documentation and you will never find such guidance packaged with Pixelpost. This is what the forums are for.

As for the lack of intelligent support staff comment. . .

Everyone on the Pixelpost team knows how Pixelpost functions. After all, a few of us coded it ;)

Again, it seems like you were not fully understood and sometimes the language barrier makes it that much harder. I had a difficult time myself trying to understand exactly what you wanted to do.

Next time, try and take into account all the variable factors before attacking any one person or group. Your vision may seem clear to you and you may know exactly what you want, but, this does not mean others will completely understand. I know i didn't.

Connie
03-13-2007, 06:20 AM
I must say it is not a language problem
it is an intellectual problem:

because he cannot provide the correct info in the variables in the language file, he just blanks the variable in the code....

I should talk to his teachers which gave him some marks in Computer "Science" ... :(

blinking8s
03-13-2007, 01:05 PM
I love photography, i love photoblogging, i love free photoblog applications, i love community of users who are here in free time to help, i love better documentation, i love money, i love women, i love beer, i love design...the list is so long

but i LOVE pixelpost the most

GeoS
03-15-2007, 12:44 AM
stevejvan take it easy and slow down. Please try to understand me - I was trying to help you through 3 or more post saying the same. I get what you wanted but you didnt get that without hack you cant do that. Thats all.

Take care.

PS I agree with Will with small except - the most I like women :P