PDA

View Full Version : How do I change prev/next text links to images?


ellikelli
11-08-2006, 08:42 AM
I'd like to change the Previous and Next text links to images, where can I find the piece of code where it prints out/creates the <a>text</a> links?

Connie
11-08-2006, 10:31 AM
read here:

http://wiki.pixelpost.org/index.php?title=Pixelpost_in_My_Language

find the text in the language-file and change it to the HTML_code for the images, be careful with ' and "

ellikelli
11-08-2006, 11:15 AM
Thanks, Connie! Noooow I get it :) can you tell I'm a n00b.

buca
11-26-2006, 07:47 PM
Just wanted to say this worked really well for me too.

I was unsure what you meant by being careful about " and ' but I soon worked it out. For others unsure, where you would usually use " in html, in this case around the url in the img src, you use ' instead because " has a different context in php (I assume that is why).

e2a: except I have taken the images out again now - I'm fickle where design is concerned :p

persianpix
01-23-2007, 04:32 PM
i'm still struggeling. here is what i enter and is not working:

"<img src='l_arrow.gif' alt="previous" />"

does the images need to be in the same directory as the language file?

thanks in advance :)

austriaka
01-23-2007, 05:15 PM
"<img src='l_arrow.gif' alt="previous" />"

try "<img src='l_arrow.gif' alt='previous' />"Be careful with " and '
;-)

KArin

Connie
01-23-2007, 05:43 PM
the images are always referenced from the directory where the index.php, the main file of Pixelpost, sits

the texts in the language files define what will be used instead of Next and Prev

you can use any HTML-code there, but you cannot use " as this character is used to wrap the complete snippet into PHP
if you use this character it would mean the end of the PHP-snippet and the rest of the string which you want to present at your main side will cause errors of PHP, so always use ' instead

if you want to use special characters like ü ä ö ß > < it would be good to enter them "masked", which means like this:

&uuml; &auml; &ouml; &szlig; &gt; &lt;

persianpix
01-23-2007, 09:37 PM
thanks for your replies. i moved the images to the main directory where the index.php resides and also fixed the code but still no luck. just to varify... i'm editing the file lang-english.php and i was changing the value of the variable $lang_previous and $lang_next. actually just for an experiment i changed their values to a different name rather than making refrence to the image source and there were still no changes! any ideas?

thanks again.

austriaka
01-23-2007, 09:46 PM
there were still no changes! any ideas?If you did a refresh on the site and it still doesn't change, you perhaps use a template that doesn't use the language file terms but has "previous" and "next" hardcoded in html. Then you have to change the wording in the template file

KAirn

persianpix
01-23-2007, 11:38 PM
you are absolutely right. i'm using the "simple-visions" template. everything is working great now :)