Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 06-15-2008, 12:50 AM
kevincrafts's Avatar
kevincrafts Offline
pixelpost guru
 
Join Date: Jul 2007
Location: Colorado
Posts: 434
Question Workspace Help

I am working on an addon which uses an admin workspace. After a successful upload, I need the id of that image.

Is this variable available? I tried using $theid but it is empty.

Any ideas on how I can get this value?
__________________
Kevin | Light & Dark Photoblog

Reply With Quote
  #2  
Old 06-15-2008, 01:28 AM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
Are you trying to access $theid within a function? try adding global $theid; to your function.

PHP Code:
function myFunction()
{
     global 
$theid;
     
     
// do stuff

Reply With Quote
  #3  
Old 06-15-2008, 01:47 AM
kevincrafts's Avatar
kevincrafts Offline
pixelpost guru
 
Join Date: Jul 2007
Location: Colorado
Posts: 434
Yeah I tried that but it still returns an empty value. Other variables seem to work ok but not that one.
__________________
Kevin | Light & Dark Photoblog

Reply With Quote
  #4  
Old 06-15-2008, 02:04 AM
kevincrafts's Avatar
kevincrafts Offline
pixelpost guru
 
Join Date: Jul 2007
Location: Colorado
Posts: 434
I got it working now - I was using the wrong function which did not have that value available yet.
__________________
Kevin | Light & Dark Photoblog

Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:36 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs