Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 03-09-2007, 09:45 PM
stevejvan Offline
forum loafer
 
Join Date: May 2006
Posts: 14
One more question......

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' />";
Reply With Quote
  #2  
Old 03-09-2007, 10:53 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Any link showing problem in live, web enviroment?
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #3  
Old 03-09-2007, 11:26 PM
stevejvan Offline
forum loafer
 
Join Date: May 2006
Posts: 14
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??
Reply With Quote
  #4  
Old 03-10-2007, 04:19 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
You can find in sources that this 2 variables are used for titles (lines 402 & 431 of /index.php):
PHP Code:
$image_previous_title "$lang_no_previous";
$image_next_title "$lang_no_next"
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #5  
Old 03-10-2007, 06:56 PM
Connie
Guest
 
Posts: n/a
please use correct encoding!

#1)
why don't you use UTF-8 in your template, hej?
Quote:
<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
Reply With Quote
  #6  
Old 03-11-2007, 05:18 AM
stevejvan Offline
forum loafer
 
Join Date: May 2006
Posts: 14
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
Reply With Quote
  #7  
Old 03-11-2007, 07:59 AM
Connie
Guest
 
Posts: n/a
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 ;=)

Quote:
<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:

Quote:
<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
Reply With Quote
  #8  
Old 03-11-2007, 04:33 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Steven - it means it replaces image titles (for previous and next image) instead of being a part of link. That is whole difference.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #9  
Old 03-11-2007, 05:27 PM
stevejvan Offline
forum loafer
 
Join Date: May 2006
Posts: 14
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?!
Reply With Quote
  #10  
Old 03-11-2007, 07:50 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
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
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 06:30 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs