boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can anyone please fix this PHP code?

 
Post new topic   Reply to topic    boardom Forum Index -> PHP help
View previous topic :: View next topic  
Author Message
MaThIbUs
Guest





PostPosted: Sat Oct 11, 2003 8:34 am    Post subject: Can anyone please fix this PHP code? Reply with quote

It's just something with the ' and " but I can't see what's wrong... Help?!

Code:
info['bbCode']='[url=http://members.lycos.nl/mathibus/pictures/'.$_SERVER["SCRIPT_NAME"]."?pos=-$CURRENT_PIC_DATA[pid]"][img]'.$C

URRENT_PIC_DATA["filename"]'[/img][url]'";
Back to top
MaThIbUs



Joined: 11 Oct 2003
Posts: 8

PostPosted: Sat Oct 11, 2003 8:36 am    Post subject: Re: Can anyone please fix this PHP code? Reply with quote

UPDATE:

It's just something with the ' and " but I can't see what's wrong... Help?!

Code:
info['bbCode']='[url=http://members.lycos.nl/mathibus/pictures/'.$_SERVER["SCRIPT_NAME"]."?pos=-$CURRENT_PIC_DATA[pid]"][img]'.$CURRENT_PIC_DATA["filename"]'[/img][url]'";
Back to top
View user's profile Send private message
blackbook



Joined: 19 Jun 2003
Posts: 9
Location: Cacem

PostPosted: Sat Oct 11, 2003 6:25 pm    Post subject: Re: Can anyone please fix this PHP code? Reply with quote

Here it is, corrected

Code:
info['bbCode']='[url=http://members.lycos.nl/mathibus/pictures/'.$_SERVER["SCRIPT_NAME"]."?pos=-$CURRENT_PIC_DATA[pid]".'][img]'.$CURRENT_PIC_DATA["filename"].'[/img][url]';


please tell if it worked...
[]
_________________
Blackbook
Main weblog: http://blackbook.pt-journal.com
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
MaThIbUs



Joined: 11 Oct 2003
Posts: 8

PostPosted: Sun Oct 12, 2003 8:28 am    Post subject: Reply with quote

Thanks a lot! I'll try it now, and let you know! Thanks thanks thanks!

EDIT: IT WORKED!!! woooooooooooooooooo

I edited it a little, so here is the final 'script':

Code:
$info['bbCode']='[url=http://members.lycos.nl/mathibus/pictures/'.$_SERVER["SCRIPT_NAME"]."?pos=-$CURRENT_PIC_DATA[pid]".'][i

mg]'.'http://members.lycos.nl/mathibus/pictures/'.$path_to_pic.'[/img][url]';


Thanks again, dude!
Back to top
View user's profile Send private message
MaThIbUs



Joined: 11 Oct 2003
Posts: 8

PostPosted: Sun Oct 12, 2003 8:59 am    Post subject: Reply with quote

Check this out

http://coppermine.sourceforge.net/board/viewtopic.php?p=2195
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> PHP help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group