PDA

View Full Version : Changing "Comments" to "Info+Comment"


thehonoraryfan
03-20-2007, 02:47 AM
I was wondering where I need to go to change the text for the comment box link to say "Info + Comment" instead of "Comments". I *thought* it's in the index.php file, since I saw the word "Comments" in there but after changing that, I didn't see the updated text on my site. Thank you.

jaywilliams
03-20-2007, 03:14 AM
You can change the link text by editing the file, "admin-lang-english.php", which is located in the "language" folder.

GeoS
03-20-2007, 07:24 PM
I would say and sugest to edit /language/lang-english.php.

thehonoraryfan
03-21-2007, 08:49 AM
Thanks guys, I found it and have changed the text. Sorry but I have another related question. In the comment pop-up box, how could I add navigation links (previous/next) such that when I click on them, I can go back to the comment box of the previous/next image.

This would be useful if the viewer wants to use the comment box to cycle through the images and read the info and not have to do so via the main image browser.

jaywilliams
03-21-2007, 01:47 PM
To do this, you have to add a little HTML code to your comment_template.html file.

<a href="index.php?popup=comment&amp;showimage=<IMAGE_PREVIOUS_ID>" title="<IMAGE_PREVIOUS_TITLE>">Previous</a>

<a href="index.php?popup=comment&amp;showimage=<IMAGE_NEXT_LINK>" title="<IMAGE_NEXT_TITLE>">Next</a>

Feel free to adjust the code to fit your needs/template.

thehonoraryfan
03-22-2007, 12:47 AM
Great, thanks jay, much appreciated! Now just *one* more question related to this...how could I have it such that when I click the name of the image in the comment pop-up window, that image will display in its original, full-size on the regular page? I currently am just using the <IMAGE_TITLE> tag to display the name in the comment box. Thanks again!

jaywilliams
03-22-2007, 03:37 AM
In your image_template.html file edit your <body> tag with this:

<body onload="window.name='main'">

Then in your comment template, add that target tag to your links that you want to open up in the main window.

<a href="EXAMPLE-LINK" target="main">SOME TEXT</a>

That should do it.

thehonoraryfan
03-22-2007, 07:09 AM
Great, thanks again Jay!

zac
03-02-2008, 11:04 PM
Hi.. how would you go about using the target tag on the link that results from having
<IMAGE_THUMBNAIL> in your comments popup?