|
|||||||
| Post Reply |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
Hi all,
I have question that's related to the great Promote addon that has been posted, but involves a distinct challenge. I'm hoping someone familiar with PHP/scripting knows how to do it. While viewing a photo, I'd like a PP user to be able to click on a link that takes them to a specific page in my Joomla-powered site, but where I have carved out a space for the specific thumbnail of the photo they were just viewing. This is different from the Promote addon's 'random' or 'recent' feature, because I just want this one particular thumbnail. Essentially, I need to be able to take a photo's pixelpost ID, then load a Joomla page with the Promote module that then loads that ID's thumb. I'm sure there's a correct, technical way to explain this "passing" of variables, but I hope it's clear what I'd like to be able to do. Anybody have ideas? Many thanks in advance, e |
|
#2
|
||||
|
||||
|
#3
|
|||
|
|||
|
Hi Fredxeric,
Sorry for the late reply (been away), but many thanks for your amazing efforts. I think this is probably 95% of what I'm looking for, but based on what you wrote, I think my original post wasn't clear enough. Rather than always display one particular PP thumbnail in my Joomla site, I'd like to be able to change that ID based on where the PP viewer came from. For example: a viewer browsing a photo from two weeks ago (say, ID=37) clicks on the PP link and gets taken back to my Joomla page with that thumbnail ID=37 embedded in it. But then going back to PP and seeing another photo (ID=17) and clicking that same link goes back to the same Joomla page with the thumbnail for ID=17. I essentially want to remember the ID number of the PP photo and use that to generate the thumb. Is there a way to add that into your code? Thank you so much already for your help! matt |
|
#4
|
|||
|
|||
|
So when I wrote the above reply, I was clearly not aware of how to actually use PHP variables. I've taken some time to sort out a couple details and it became clear how easy my next step was.
In this wonderful code from Fredxeric, I modified the second last line: Code:
print "document.write('".javaconvertstr($link)."');";
Code:
print $link; Code:
<?php $ident = JRequest::getVar('ppid',0); @readfile('http://mysite.com/photoblog/external_thumbs_linking.php?id='.$ident); ?>
|
| Post Reply |
| Thread Tools | |
|
|