Pazleysox
Member
I'm new to relay scripts. Never written one before. I found a script that does what I want here, and figured I would bend it to my will (read modify it to my needs).
I'm not having any luck figuring how what I'm doing wrong, and could really use some help.
Here's the image I'm trying to replace with my own. I named the file place.gash.ash.
If someone could help me out, I would greatly appreciate it.
I'm not having any luck figuring how what I'm doing wrong, and could really use some help.
PHP:
buffer gash( buffer source )
{
replace_string(string,'https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/kingprism1.gif','/images/relayimages/my_image.gif');
return source;
}
void main( )
{
// visit_url().nstower().write(); //when the line below didn't work, I tried this instead.
write( nstower( visit_url( ) ) );
}
If someone could help me out, I would greatly appreciate it.