Link to another site

Phoca Gallery - image gallery extension
drstein
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 20 May 2008, 22:16

Hello,I want t

Post by drstein »

Hello,
I want to have the large thumbnails in the slideshow to the original picture. Since I don't have enough space on my website I have to refer to second site like "https://joerg-stein.homeserver.com/fotos/2008/06 Indonesien/001.jpg".
The path of the corresponding thumbnail is "..images/phocagallery/2008/06 Indonesien/thumbs/phoca_thumb_l_001.jpg".
Do you have any idea where and how to change the code?
T
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

I have but it is not

Post by Jan »

I have but it is not so easy... first you get the link from database (in model) then the link is prepared for the site in Phoca Gallery Helper class ( a lot of methods will be used), then it goes from model to view and in view (tmpl/default.php) it will be displayed in HTML

so you can try to use e.g. str_replace method in view

components/com_phocagallery/views/.../tmpl/default.php

to change this link to your own...

Jan
If you find Phoca extensions useful, please support the project
drstein
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 20 May 2008, 22:16

Jan,to be hone

Post by drstein »

Jan,
to be honest - I don't know exactly what to do. I suppose that I have to change the link in ..\views\detail\tmpl\default.php from "#" into my real file. What is the name of the variable containing the filename (in this case "2008/06 Indonesien/001.jpg")?

By the way: Congratulations regarding your first EM win!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

drstein

Post by Jan »

drstein
BTW: without RosickÄ‚Ë
If you find Phoca extensions useful, please support the project
Post Reply