Author Topic: Using image tags on a custom page.  (Read 66946 times)

0 Members and 1 Guest are viewing this topic.

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Using image tags on a custom page.
« on: November 12, 2007, 12:34:29 PM »
Hi guys, I have a very difficult request to you:

On my custom page (page1.php) I want to use this tags:

{image_name} {image_hits}. I expected the result, because it turn the value randomly.

Is it possible (of course possible :wink:) to use something like {image_name_id} (just a example)?. You give yourself the image ID value so that the tag {image_name} understand that the result will be the name of the image (image_id).

Many thanks in advance,
Cruxy


Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Using image tags on a custom page.
« Reply #1 on: November 12, 2007, 01:28:11 PM »
Includes/template.php file is no code for this. Is code for match tag.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Using image tags on a custom page.
« Reply #2 on: November 12, 2007, 03:27:50 PM »
What do you mean? (Do not forget, I am very handy with codes, but I am not a php programmeur :wink:)

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Using image tags on a custom page.
« Reply #3 on: November 12, 2007, 03:54:28 PM »
... do you mean ... Image Name : {image_name_xxx} ... where xxx = image_id ...
... to use in your custom_page.html ... and it will show in browser e.g. ... Image Name : cruxy at home ... ?
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Using image tags on a custom page.
« Reply #4 on: November 12, 2007, 03:56:35 PM »
Exactly mawenzi  :)

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Using image tags on a custom page.
« Reply #5 on: November 12, 2007, 09:40:54 PM »
@mawenzi
@Thunderstrike
@Trez

It was an impossible request, he? :wink:

Hey guys, can you help me in this?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Using image tags on a custom page.
« Reply #6 on: November 12, 2007, 10:24:49 PM »
You need use image_id for click image ID or all image ID with custom page ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Using image tags on a custom page.
« Reply #7 on: November 12, 2007, 10:26:57 PM »
Sorry Thunderstrike, but I did not understand what do you mean. :oops:

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Using image tags on a custom page.
« Reply #8 on: November 12, 2007, 10:28:05 PM »
Go to categories page in gallery (categories.php file). Click on image. URL is: details.php?image_id=xxx . You need for each image ID or all image ID ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Using image tags on a custom page.
« Reply #9 on: November 12, 2007, 10:39:00 PM »
On the custom template I used this tags:

Code: [Select]
{image_name_xxx}<br />
{image_name_xxx}<br />
{image_name_xxx}<br />
{image_name_xxx}<br />

xxx is the image ID of DIFFERENT images. For example:
Code: [Select]
{image_name_2}<br />
{image_name_13}<br />
{image_name_100}<br />
{image_name_550}<br />

and the result should be something like:

Foto of spain
Foto of Brazil
Foto of Germany
Foto of USA

When you klik on {image_name_2} (Foto of spain) you go to http://www.website.nl/details.php?image_id=13

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Using image tags on a custom page.
« Reply #10 on: November 12, 2007, 10:40:19 PM »
Oh ... so you want 4images for select all image ID for each image ID you add in tag ? ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Using image tags on a custom page.
« Reply #11 on: November 12, 2007, 10:42:25 PM »
If I understand you good, the unswer is yes!

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Using image tags on a custom page.
« Reply #12 on: November 12, 2007, 10:43:15 PM »
Sorry ... I no like ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Using image tags on a custom page.
« Reply #13 on: November 12, 2007, 10:45:33 PM »
Quote
Sorry ... I no like ...

Do you mean IMPOSSIBLE? :?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Using image tags on a custom page.
« Reply #14 on: November 12, 2007, 10:47:17 PM »
IS possible but I no like :!:
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?