• [MOD] TiltViewer for 4images 5 0 5 1
Currently:  

Author Topic: [MOD] TiltViewer for 4images  (Read 97560 times)

0 Members and 1 Guest are viewing this topic.

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] TiltViewer for 4images
« Reply #15 on: March 07, 2008, 05:49:24 PM »
two more questions:

1. I have entered the home link after <body>. The problem is, that the picutres are not centered anymore and I get a "scrollbalken" on the rigth hand side.
2. Can I display the link to the detail view of an image after flip the picture in tiltviewer?

Thanks!
TIMIT

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] TiltViewer for 4images
« Reply #16 on: March 07, 2008, 06:05:18 PM »
... for back link in detail view try this ...
... in tiltviewer.php find ...
Code: [Select]
linkurl=\"\"
... and add your back link url ...
Code: [Select]
linkurl=\"http://www.Your_website.com/index.php\"

... and in tiltviewer.html find ...
Code: [Select]
fo.addVariable("linkLabel", "View image info");
... and change to ...
Code: [Select]
fo.addVariable("linkLabel", "Back");

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 TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] TiltViewer for 4images
« Reply #17 on: March 07, 2008, 06:18:50 PM »
pictures aren't displayed anymore.

Code: [Select]
echo "<photo imageurl=\"".ROOT_PATH."/data/media/".$image_row['cat_id']."/".$image_row['image_media_file']."\" linkurl=\""http://www.Your_website.com/index.php\">";

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] TiltViewer for 4images
« Reply #18 on: March 07, 2008, 06:32:47 PM »
... please read my post with the link code carefull ...
... you have to much " ...
... see how it works on my viewer.html ...
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 TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] TiltViewer for 4images
« Reply #19 on: March 07, 2008, 10:11:08 PM »
yes - your right - now I got back to my homepage.

but I would like to be directed to the detail page of the image (detail.html).
Is that possilbe?


Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: [MOD] TiltViewer for 4images
« Reply #20 on: March 09, 2008, 02:40:08 PM »
Everything is possible  :wink:

Try this:
Code: [Select]
linkurl=\"http://www.website.com/your galery/details.php?image_id=".$image_row['image_id']."\"
« Last Edit: March 09, 2008, 04:46:47 PM by cruxy »

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] TiltViewer for 4images
« Reply #21 on: March 10, 2008, 04:29:24 PM »
Everything is possible  :wink:

... you are right ...  :mrgreen:
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 Alessio

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Webax.it [Alessio's photogallery]
Re: [MOD] TiltViewer for 4images
« Reply #22 on: March 11, 2008, 03:14:01 PM »
Now Tiltviewer loads photos from cat 98 in order by date.

Code: [Select]
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")
        ORDER BY i.cat_id DESC
        LIMIT 0,98";

How to loads images from a specified category randomly?
Alessio
my homepage: http://www.webax.it

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: [MOD] TiltViewer for 4images
« Reply #23 on: March 11, 2008, 03:17:54 PM »
Hi Alessio,

Try this for categorie 1 (Change it to another categorie ID if you want):

Code: [Select]
WHERE i.image_active = 1 AND i.cat_id = '1' AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")
        ORDER BY RAND()
        ";


Quote
Now Tiltviewer loads photos from cat 98 in order by date.

Is not correct!!!
0,98 is for your 98 latest / newest images  :wink:

Offline Alessio

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Webax.it [Alessio's photogallery]
Re: [MOD] TiltViewer for 4images
« Reply #24 on: March 12, 2008, 12:36:51 PM »
Hi Cruxy,
I have tried this code

Code: [Select]
WHERE i.image_active = 1 AND i.cat_id = '98' AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")
        ORDER BY RAND()
        ";

but it doesn't work.

Thanks for your reply.
Alessio
my homepage: http://www.webax.it

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: [MOD] TiltViewer for 4images
« Reply #25 on: March 12, 2008, 12:43:48 PM »
Hi Alessio,

This one should work:

Code: [Select]
WHERE i.image_active = 1 AND i.cat_id = 98 AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")
        ORDER BY RAND()
        ";

Offline Alessio

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Webax.it [Alessio's photogallery]
Re: [MOD] TiltViewer for 4images
« Reply #26 on: March 12, 2008, 12:51:52 PM »
Now it works, but it loads twice some images, why?  :evil:
http://www.webax.it/top.html
Alessio
my homepage: http://www.webax.it

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: [MOD] TiltViewer for 4images
« Reply #27 on: March 12, 2008, 01:16:06 PM »
Quote
Now it works, but it loads twice some images, why?

In the best photos category you have 66 pictures, right?
and for each page on the tiltviewer you have 25 pictures.
25 + 25 + 16 = 66
That means that tiltviewer needs more pictures to have 25 instead of 16. That why load some picture twice, but only in the last page.  :wink:

I see that as a bug.

Any solution mawenzi??????

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: [MOD] TiltViewer for 4images
« Reply #28 on: March 19, 2008, 12:12:11 AM »
Hi Alessio,

I just have a look on you site en just realize that your pictures do not loads twise anymore.

Did you change something?

Offline Alessio

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Webax.it [Alessio's photogallery]
Re: [MOD] TiltViewer for 4images
« Reply #29 on: March 19, 2008, 12:39:06 AM »
I haven't resolved the problem, temporanely I'm using this code:

Code: [Select]
WHERE i.image_active = 1 AND i.cat_id = 98 AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")
        ORDER BY BY i.cat_id DESC
        ";
Alessio
my homepage: http://www.webax.it