|
#1
|
|||
|
|||
|
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' />"; |
|
#3
|
|||
|
|||
|
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?? |
|
#4
|
||||
|
||||
|
You can find in sources that this 2 variables are used for titles (lines 402 & 431 of /index.php):
PHP Code:
|
|
#5
|
|||
|
|||
|
please use correct encoding!
#1)
why don't you use UTF-8 in your template, hej? Quote:
#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 |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
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:
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:
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
|
|
#9
|
|||
|
|||
|
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?! |
|
#10
|
||||
|
||||
|
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 |
| Post Reply |
| Thread Tools | |
|
|