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 - adrian.gab

Pages: [1]
1
Hi All,

Within my template files e.g. home.html or details.html, I would like to do a php include for a file to be included on the template.

The include part works fine, however I am finding that any of the dynamic 4images code is not being executed or carried out if they are in the include file. They appear to only run if they are in the main template files e.g. home.html, details.html etc. When I say dynamic parts I mean the bits that are dynamic within the template files that are enclosed by the curly brackets {} e.g.

{template_url}
{if random_image}
{site_name}

For example in home.html, I have the following snippet of code in the template:

     <?PHP
   $special_include_file = "./templates/default/simplified/test.php";
   Include($special_include_file); 
   ?>


And in the include file (test.php) I have:

     <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />
     <?PHP
     Echo “php is working”;
     ?>



When the page is generated on the webserver, if I look at the page source code, this is what I get:

     <img src="/images/spacer.gif" alt="" width="4" height="4" />
     php is working


You can see that the php in the include is executed fine but the 4images dynamic part did not e.g. {template_url}

Any help would be greatly appreciated.

Thanks,
Adrian

2
Hi All,

In web server access logs I am seeing the below two events:

GET /gallery/top.php?sessionid=7ea2d4-snipped-93d8a3|post>http://www.hostname.com/gallery/login.php?sessionid=7ea2d4-snipped-93d8a3|user_name=|user_password=|auto_login=1| HTTP/1.1

POST /gallery/login.php?sessionid=9edf24bf0cf9ad3f53b32e863b188e95 HTTP/1.1


I can't see any other activity from the IP address logged against the events. Any ideas what they are trying to do? Looks suspect to me. Perhaps they are trying an old exploit?

Thanks,
Adrian

3
Hi All,

Does any one know where I can find logs or more descriptive information of the below error messsage. I receive it when trying to create a thumbnai. There is not description or further info, just what is seen below.

Create thumbnail for: london trafalgar sq IMG 5206 (london trafalgar sq IMG_5206.JPG) .... 
   Error creating thumbnail!


Is there a 4images log file some where that might have the info?

Thanks,
Adrian

Ps. I am using 4images 1.7.4 with ImageMagick and a path of /usr/bin/convert

4
Hi All,

I was wandering if any body knows how to get the {categories} function on the index.php (home.html template file) to display more than two levels of categories on the main home page?

e.g. Currently I have a top level category called Travel. Underneath the Travel category I have a sub category called Italy. Underneath the Italy subcategory I have a sub category called Venice. e.g.

Code: [Select]
Travel
    |____
       Italy
         |____
               Venice

The problem is that on the main home page (index.php / home.html template file) it only displays the 1st and 2nd level categories e.g. Travel, Italy.

I would like to be able to choose any many sub levels to display if at all possible.

I've had a look at the code in index.php for the categories function but I can't figure it out.

Thanks heaps,
Adrian

Pages: [1]