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

Pages: [1]
1
it was just an simple example to show you what i was trying to do:

A) call a file from a template file using php include
B) get 4images to execute the tags in that include file

the include file did have a tag in it, it was {template_url}. i was just proving very simply that the tag wasn't be executed.

i would still like to know if there is a way to get the tags working within an include file called from a template file e.g. home.html

2
FAQ, Tips / Re: How can I include another PHP file in the templates?
« on: July 10, 2007, 04:20:43 PM »
ok, i think i sort of understand. the tags will only work when a template file is read from a php file e.g.

$site_template->print_template($site_template->parse_template($main_template));

am i understanding this right? that is a shame, i wish it would just parse / read the tags from include files called from templates.

what if i want to call a template within a template?

this is what i am trying to achieve. the templates are labourious to update. if i make a change i generally have to update all of them. since nearly all of the templates are indentical except for the contents of one table cell, i would like the non changing content to be one file and the changing content as another file. this way if i update a header or something like that, then i don't have to edit all of the templates.




3
FAQ, Tips / Re: How can I include another PHP file in the templates?
« on: July 10, 2007, 02:38:40 PM »
Is there a special trick to getting the 4images tags (e.g. {template_url} {if random_image} {site_name}) to work within an include file called from a template file e.g. home.html, details.html?

See my post here for more info:

http://www.4homepages.de/forum/index.php?topic=18003.msg95825

4
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

5
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

6
Hi All,

I figured out what was causing this.

It appears that if there is no correlating category ID folder in the directory:

/gallery/data/thumbnails/

it will not create the folder or the thumbnail.

I assume the folder is created when a category is added and as such this shouldn't happen to any one.

I am restoring from a backup DB but do not have the folder structure in place. I manually added the folder and it all works fine.

Ciao,
Adrian

7
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

8
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

9
Mods & Plugins (Requests & Discussions) / Re: [Req] Tag Cloud block
« on: October 02, 2006, 11:15:17 AM »
i would love tag features added to 4images similar to flickr and wordpress with ultimate tag warrior.

10
Discussion & Troubleshooting / Re: Auto-Image-Resizer Error
« on: September 10, 2006, 03:16:19 PM »
I'm getting the same issue. Is there an error log file or something to give me a more descriptive error an extra info?

Pages: [1]