Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - yerpo

Pages: [1] 2
1
Discussion & Troubleshooting / Re: how can i Customize the Menu Bar?
« on: June 26, 2006, 03:52:27 PM »
Well yes, just add your links after the
Code: [Select]
&raquo; <a href="{url_logout}">{lang_logout}</a>

The code would then look something like this:
Code: [Select]
.......................
&raquo; <a href="{url_logout}">{lang_logout}</a></ br>
&raquo; <a href="page1.html">Page 1</a></ br>
&raquo; <a href="page2.html">Page 2</a></ br>
&raquo; <a href="page3.html">Page 3</a>
.............

2
Discussion & Troubleshooting / Re: 4.7.2 - html in image description
« on: June 25, 2006, 10:36:17 PM »
Allright, that did the trick. Found another two, under function get_category_path($cat_id = 0, $detail_path = 0) (line 1123), and  under $site_template->register_vars(array( (line 300). There's only one minor issue, namely the function adds a space at the beginning and the end of the category name in the clickstream. But that's nothing I couldn't live with. Thanks again, V@no.

3
Discussion & Troubleshooting / Re: 4.7.2 - html in image description
« on: June 25, 2006, 08:07:51 PM »
The BBcode removal works perfect, but the solutions for the clickstream and subcategories don't. I thought maybe the subcategory change doesn't work because you forgot to add a space before the first zero, but that's not the case.

4
Discussion & Troubleshooting / Re: 4.7.2 - html in image description
« on: June 22, 2006, 05:40:25 PM »
Sorry for reviving this thread from the dead, but I finally got around to replacing HTML in names with BBCode, and I'm stuck again. This time the problem is opposite to the one on the previous picture, meaning that I can't get subcategory names to display correctly.

Here's what I'm talking about:


I modified all the format_text occurences as in previous example, but can't find anything subcategory related. Is it possible at all to have BBCode in subcategory names?

5
In templates/(your template)/category_bit.html remove the <br /> from the above line. Then go edit your categories in the Control panel and add the BR tag at the end of each description you have (if you don't use category descriptions just skip this).

6
The most elegant solution is to remove the <br /> from

Code: [Select]
{if cat_description}<span class="smalltext">{cat_description}</span><br />{endif cat_description}
and add it at the end of your category description. That way the subcategories don't follow in the same line as the description and there is no blank space between the two.

7
Chit Chat / Re: how are you using 4images Gallery!
« on: March 12, 2006, 09:03:12 PM »
I'm finalizing the setup of 4images for our biology students' society in which we'll build a systematic presentation of animal and plant species living in our country. So far there's about 300 pics of plants up there and the link will be published this week.

I have to say the gallery is wonderful, luckily only tried one other before finding this, and it's perfect for our needs. Can be modified very easily and the support is one of the best I've seen. Ever. Thanks V@no.

Oh, the link, in case you're interested: http://foto.biologija.org/4images

8
Discussion & Troubleshooting / [1.7.2] Fatal error when searching
« on: March 11, 2006, 07:25:37 PM »
I just upgraded to ver 1.7.2 and when I try to search for images, I get this error:

Fatal error: Call to undefined function: prepare_searchwords() in /home/www/foto/4images/search.php on line 72

When upgrading from 1.7.1, I just added/replaced the files mentioned in the changelog, not everything. Is this the problem, and if yes, what else should I update?

9
Discussion & Troubleshooting / Re: 4.7.2 - html in image description
« on: March 11, 2006, 07:18:59 PM »
Ah, so there is an issue. Silly me, didn't think of the security risks even with all those recent hack reports. :oops: My gallery doesn't allow people registering & uploading photos at this stage, and it will be very tightly controlled after it does. But anyway, BBCode is much more elegant solution.

10
Discussion & Troubleshooting / Re: 4.7.2 - html in image description
« on: March 11, 2006, 06:53:42 PM »
Ah, ok, I thought that code in those files was more sensitive to changes. Anyway, to get rid of all HTML tags I also made the following changes in details.php

Code: [Select]
  OLD
  $prev_image_name = format_text($next_prev_cache[$prev_image_id]['image_name']);
  NEW
  $prev_image_name = format_text($next_prev_cache[$prev_image_id]['image_name'], 1);
 
  OLD
  $next_image_name = format_text($next_prev_cache[$prev_image_id]['image_name']);
  NEW
  $next_image_name = format_text($next_prev_cache[$prev_image_id]['image_name'], 1);
 
  OLD
  $image_name = format_text($image_row['image_name']);
  NEW
  $image_name = format_text($image_row['image_name'], 1);

I think that should be all. Please warn me if I did something I shouldn't and thanks again for help.

11
Discussion & Troubleshooting / Re: 4.7.2 - html in image description
« on: March 11, 2006, 06:28:12 PM »
Thanks for the prompt response!

Here's the screenshot:


I did what you said, but it only solved the issue of subcategories. Then I did the same in corresponding lines for Image name so it now reads:

Code: [Select]
"image_name" => format_text($image_row['image_name'], 1),
But I can't find the line that would fix the top level category name (the one that says <i>Plantae</i> rastline on the screenshot). Where would that be?

12
Does this mod work in version 1.7.2? It was very useful and I don't know why you didn't include it in the new version.

13
Nope, I have the same problem after upgrading and I didn't touch any files inside my templates folder (there wasn't a <br /> at the end).

Any ideas?

14
Discussion & Troubleshooting / Re: mod update to 1.7.2
« on: March 11, 2006, 04:02:08 PM »
I think wallpapers refers to the "Find XXXXXX --> insert YYYYY after XXXXXX " routine. If you replace complete files, you'll lose installed mods.

15
Discussion & Troubleshooting / Re: 1.7.2 - html in image description
« on: March 11, 2006, 03:56:25 PM »
I have another related problem: category and image names in my gallery are latin, so I want them to be in italic. There was an issue with this in 1.7.1 too, but I applied a fix ( http://www.4homepages.de/forum/index.php?topic=2560.0 ) to files details.php, top.php, postcards.php & categories.php and it worked perfectly.

Then I upgraded to 1.7.2 and now some names are displayed correctly, where in some the tags for Italic are printed. It's difficult to explain without knowing how the code is organised, but it looks like only subcategory names are displayed correctly. You can check it yourself here: http://foto.biologija.org/4images/index.php . The aforementioned fix doesn't work, because there's no htmlspecialchars occurence in those files anymore.

Please, help quick, as my gallery is supposed to be released in public next week.

Pages: [1] 2