DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • July 22, 2019, 03:23:59 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Getting images to show  (Read 6362 times)
0 Members and 1 Guest are viewing this topic.
Gene
Guest
« on: March 23, 2004, 12:24:36 PM »

Im makin a mod for my game and i need to show pictures, not avatars... these are large pictures... any ideas?  In case ur wondering, im adding a Local Brothel where u can go and have fun and get ur hp up and ur charm up. Thanx in advance!
Logged
lonnyl
Guest
« Reply #1 on: March 23, 2004, 12:26:51 PM »

like this....

rawoutput("<IMG SRC=\"images/imagefile.gif\"><BR>\n");

Logged
Drenac
Guest
« Reply #2 on: March 23, 2004, 01:59:55 PM »

As well, Phofire has a brothel in his shared files, though I myself am currently making some alterations to it.

In the mean time, you may consider using it as a starting point.

Cheers! ~Drenac  Cool
Logged
phofire
Guest
« Reply #3 on: March 26, 2004, 01:53:19 PM »

are you fixing that bug that makes it so easily exploitable cuz im not sure what i was doing Wink ? i gave up on that for now (least till the hair grows back)


*edit* should we be afraid of the images he plans on inserting into a brothel? *endedit*
« Last Edit: March 26, 2004, 01:56:54 PM by phofire » Logged
Drenac
Guest
« Reply #4 on: March 26, 2004, 03:47:12 PM »

I didn't even think to ask what the pictures in a brothel would be....<cringes>

I'm changing the brothel to make it database driven...and adding an "entertainer" editor so people can create their own, um...friends.  Grin

I'm also making it so that you get different result based upon who you're with, and the results are a bit more random.   Let me know if you've got other ideas as well.

Cheers! ~Drenac  Cool
Logged
phofire
Guest
« Reply #5 on: March 26, 2004, 07:32:27 PM »

my only other idea was to add a skill that wasnt choosable but the brothel would give skill points in that skill at random

anything else is beyond my skill

course so was this thanks to all who helped me muddle through
Logged
zousug
Guest
« Reply #6 on: April 29, 2004, 06:59:11 PM »

where do i add this code in the files??

rawoutput("<IMG SRC=\"images/imagefile.gif\"><BR>\n");

to put pics on?
Logged
Kyky
Guest
« Reply #7 on: April 29, 2004, 07:00:54 PM »

Well it depends where you want it....If you want it under a sentence then you would do this.....

Code:
output("blah blah blah blah.");
rawoutput("<IMG SRC=\"images/imagefile.gif\"><BR>\n");
Logged
Kyky
Guest
« Reply #8 on: April 29, 2004, 07:01:18 PM »

Then make sure you upload the pic into the images folder
Logged
zousug
Guest
« Reply #9 on: April 29, 2004, 07:07:19 PM »

cool thank you
Logged
zousug
Guest
« Reply #10 on: April 29, 2004, 08:59:42 PM »

hey

is there away to set the width and hight of a immage??

as well as pre-loading them??

thanx
Logged
lonnyl
Guest
« Reply #11 on: April 30, 2004, 04:55:52 AM »

Any html can be passed with the rawoutput command..... you do however need to remember to add a /  to any of the " that you have in your html statement.   I simply open up  netscape composer format the item I want and view source... then cut and paste....
Logged
zousug
Guest
« Reply #12 on: April 30, 2004, 07:47:34 PM »

hey.

cool..

i got the width and hight to work Cheesy

but i would still ike to make the imgs pre-load..

(I.e when they goto the login page for the first time the imgs are loaded (they wont see them till they goto the areas with the imgs))

is it possible??

if so what would the code be?

thanx
Logged
PorkSoftly
Guest
« Reply #13 on: June 04, 2004, 09:28:19 AM »

Hi everyone!

First post  Shocked

I'm not hot at PHP, in fact I would say I'm a total n00b.  Here's some javascript that will do the pre-laoding for you:

Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin

image1 = new Image();
image1.src = "image1.gif";

image2 = new Image();
image2.src = "image2.gif";

// End -->
</script>

You'll obviously need to set the image file names to point at the right place, but that should be quite straight forward.

Oh, BTW, GREAT JOBS guys!!  I was looking for a really fun project to teach myself PHP and now I think I've found the perfect community to learn from  Smiley
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
101 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search