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.


Topics - marod0er

Pages: [1] 2
1
Hello.

I need to be able to grab the filename of the picture in details.php

Example: I have an image on my site called cool_car.jpg. I need to be able to show the filename on the actualy site, i.e. /details.php?image_id=123

But I can't find the variable. Can someone please help me, as I need this bad...

Thanks alot!

2
Mods & Plugins (Requests & Discussions) / Sitemap followup
« on: June 05, 2006, 01:57:43 PM »
This is an extension to Category Sitemap MOD located at
http://www.4homepages.de/forum/index.php?topic=9299.0

What we need, is a sitemap that acts like the category sitemap, but this one should list all image-pages as well.
This is important search engine wise.

This is something we could all make good use of.

Thanks in advance.

3
Hello.

I want to show "images" on my content pages as well. How do I do this?

I take it I have to add some of the code from either index.php or categories.php to details.php, but I don't know what.

Please help,
Thanks

4
Discussion & Troubleshooting / http://gallery.vano.org/en/c332
« on: May 15, 2006, 10:00:51 AM »
Hello.

Vano, this is more directed at you... So read on ;)

I see on your site, your bottom paging looks like (when on, example, page 1):

Quote
[1]  2  3  4  5  6  7  8  9  10  11  12  13  ...  Next »  Last page »»

And it looks like this, on page 16:

Quote
«« First page  « Previous  ...  10  11  12  13  14  15  [16]  17  18  19  20  21  22  ...  Next »  Last page »»

Notice how it now starts on page "10" (both marked in red)

Now, in my 4images, when I'm on page 16, it displays every "paging" from page 1, i.e. instead of getting;
Quote
«« First page  « Previous  ...  10  11  12  13  14  15  [16]  17  18  19  20  21  22  ...  Next »  Last page »»

I get;

Quote
«« First page  « Previous  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  [16]  17  18  19  20  21  22  ...  Next »  Last page »»

How do I change it so it acts like yours, Vano?
Thanks a lot!

5
Discussion & Troubleshooting / {cat_description} won't show
« on: May 09, 2006, 02:45:43 PM »
I have aprox. 10 categories on my site.

Each category has a unique description which I have entered in the "Description" field in the ACP.

Lets say I'm currently in category 1 (categories.php?cat_id=1).
In the categories.html template I'm using the variable {cat_description}.

Now, when there's no content in cat 1 the {cat_description} shows perfectly. On the other hand, when I add content to the cat, {cat_description} does not show at all, and when I view source nothing appears.

What could be wrong, and how do I fix it? (Obviously I want the cat description to show whether or not I have content added)

Thanks.

6
Hey.

I'm using a custom version of the "next image" and "previous image" using the variable: {next_image_url} and {prev_image_url}

I want to know, how to send my users to the frontpage when there's either no next or previous image...

Thanks!

EDIT: Problem solved!

7
Discussion & Troubleshooting / HTML in description doesn't work
« on: April 08, 2006, 05:24:53 PM »
Just a quick question.

For some reason I can't do HTML in my image description, even tho it says:

Quote
Description
HTML allowed.

For instance, when I enter "<b>Bold</b>" it displays it like this on the page: &lt;b&gt;Bold&lt;/b&gt;

What am I doing wrong? This is the first time I've seen this...

Please help asap!

8
Hello.

I'm trying to get 4images to display both the thumb, image name and category description on the frontpage. All those 3 variables should be displayed in every {thumbnail} (every new image).

I can get thumbnail and image name to show, by doing this in functions.php:

Quote
  if ($show_link) {
    if ($open_window) {
      $thumb = "<div class=\"thumb1\"><a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a></div><div class=\"thumb2\"><a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\" title=\"".$image_name."\">".$image_name."</a><br />".$cat_description."</div>";
    }
    else {
      $thumb = "<div class=\"thumb1\"><a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$thumb."</a></div><div class=\"thumb2\"><a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\" title=\"".$image_name."\">".$image_name."</a><br />".$cat_description."</div>";
    }
  }

Marked with red is what I can't get to work. How do I get this to function?

Any help is greatly appreciated, as I've been trying to figure this out for hours...  :?

9
Discussion & Troubleshooting / Modification of {clickstream}
« on: November 23, 2005, 11:44:43 AM »
So, I have

Code: [Select]
//-----------------------------------------------------
//---Clickstream---------------------------------------
//-----------------------------------------------------
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">Home</a>".$config['category_separator'];

if ($mode == "lightbox" && $in_mode) {
  $page_url = "";
  if (preg_match("/".URL_PAGE."=([0-9]+)/", $url, $regs)) {
    if (!empty($regs[1]) && $regs[1] != 1) {
      $page_url = "?".URL_PAGE."=".$regs[1];
    }
  }
  $clickstream .= "<a href=\"".$site_sess->url(ROOT_PATH."lightbox.php".$page_url)."\" class=\"clickstream\">".$lang['lightbox']."</a>".$config['category_separator'];
}
elseif ($mode == "search" && $in_mode) {
  $page_url = "";
  if (preg_match("/".URL_PAGE."=([0-9]+)/", $url, $regs)) {
    if (!empty($regs[1]) && $regs[1] != 1) {
      $page_url = "&amp;".URL_PAGE."=".$regs[1];
    }
  }
  $clickstream .= "<a href=\"".$site_sess->url(ROOT_PATH."search.php?show_result=1".$page_url)."\" class=\"clickstream\">".$lang['search']."</a>".$config['category_separator'];
}
else {
  $clickstream .= get_category_path($cat_id, 1).$config['category_separator'];
}
$clickstream .= $image_name."</span>";

-in my details.php

This look like this on the actual html page:
Home / Category / Image page name

What, in the code above, do I have to remove in order for the clickstream to just display:
Home / Image page name (- Category)

?

Thanks in advance.

10
Discussion & Troubleshooting / {image_date} variable
« on: November 14, 2005, 02:31:33 PM »
Hi.

When I insert {image_date} it outputs in this format:

Quote
14.11.2005 03:46

I want it to look like this: 14-11-2005 (and to have the time removed).

Where do I edit that? I take it it's somewhere in includes/functions.php, but where and how?

Thanks a bunch!

11
This is in addition to the sitemap-script located at http://www.4homepages.de/forum/index.php?topic=9299.30

The old script is unable to list the actual image-page-links. It only lists categories, and subcategories. By also listing image-pages, search engines will be able to spider all pages better/easier.

Like this:

Category 1
  Subcategory
    Image page 1
    Image page 2
    Image page 3
    Image page 4

Etc.

It would be great if anyone is up to this... It's something we could all make use off.

Thanks in advance!

12
Hello.

I believe this could come in handy for a lot of us.

I would like to know if it is possible to add a picture (with a thumb), but instead of the thumb pointing to an internal image page (on your own site) it would point to an external page/site.

For those who asks why this is needed, it is useful to point visitors to a friends site.

Thanks!

13
Hi.

I would like to suggest that someone create the possibility of being able to postpone adding content. For instance, 1-6 months ahead.
The great thing about being able to do that, is that your site will always look fresh and updated if, for example, you get 4images to automatically upload a new picture every day.

Let me hear what you all think of that, as I think this is something we could all use.

14
Hi,

Okay, this is going to be sound a bit troublesome, so concentrate when reading this  :P

Vano, are you reading this? Good.

I would like to start out by saying that this is an addition to the already well known:
Quote
[Mod] Search Engine Friendly URLs aka Short URLs
http://www.4homepages.de/forum/index.php?topic=6729.0
I have some additions and some questions.

First off: I've noticed that alot of people have asked for having the "name of the page/picture" in the URL. While I know this cannot be done, because of 4images working with number id's, I've thought about something else. It would be possible to edit .htaccess specifically for every category. Meaning, every category would have its own unique name. For example:

categories.php?cat_id=1 would maybe be named "Travel", so it would become http://www.site.com/travel instead of just http://www.site.com/cat1.htm

I tried editing the htaccess file, acquired in the http://www.4homepages.de/forum/index.php?topic=6729.0 thread by Chris, and this is what I edited. Instead of having this:
Quote
RewriteRule ^cat\.html$ categories.php?%{QUERY_STRING}
RewriteRule ^cat([0-9]+)\.([0-9]+)\.html$ categories.php?cat_id=$1&page=$2&%{QUERY_STRING}
RewriteRule ^cat([0-9]+)\.html$ categories.php?cat_id=$1&%{QUERY_STRING}
I would have:
Quote
RewriteRule ^travel\.([0-9]+)$ categories.php?cat_id=1&page=$2&%{QUERY_STRING}
RewriteRule ^travel$ categories.php?cat_id=1&%{QUERY_STRING}

RewriteRule ^flying\.([0-9]+)$ categories.php?cat_id=2&page=$2&%{QUERY_STRING}
RewriteRule ^flying$ categories.php?cat_id=2&%{QUERY_STRING}
-you get the idea... Making new lines, for each category AND changing the number of the category in the URL accordingly.

Now, I then thought of having URLs looking like this:
Code: [Select]
http://www.site.com/travel/2Instead of:
Code: [Select]
http://www.site.com/travel?page=2I guess this could be done (this is proven to be a better solution, SE wise, we all know that), but there's just one problem. Let's say we have the URL http://www.site.com/travel/2 and I want to look at, say, a picture on that page. The browser would request, fx, http://www.site.com/travel/2/img24.htm which would be an incorrect filepath.

Therefore I did some searching, and found this on webmasterworld:
http://www.webmasterworld.com/forum92/2811.htm
Quote
RewriteEngine on
# not to loop
RewriteCond %{REQUEST_FILENAME} !/css_folder/
#if doesn't exist
RewriteCond %{REQUEST_FILENAME} !-f
# redirect
RewriteRule ([^/.]+)\.css$ /css_folder/$1.css [L]

This code will drop any folder path information, and keep only the name of the css file. If that's not what you want, then try

RewriteRule ^(.+)\.css$ /css_folder/$1.css [L]
-Where the answer to why doing this, was:
Quote
What's the benefit of doing this?

-If you use "virtual dirs", such as http://example.com/home/house.html and reference images/styles relative (src="css_folder/style.css"), the browser would request http://example.com/home/css_folder/style.css.

This broken path is being rewritten to the exsisting path http://example.com/css_folder/style.css.

Now, my question is, how do I edit the .htaccess and the session.php files, to be able to do this (http://www.site.com/travel/4)

Hope it all makes sense.

15
I would like for my visitor to check a box when he/she is about to upload a picture, where it says that he/she has read the "Terms and conditions for uploading a picture" and agree to it.

When I search for this, all I get it Vano's MOD: http://www.4homepages.de/forum/index.php?topic=7109.0

This is, however, not what I'm looking for. Hope you understand what I mean

Pages: [1] 2