Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-23-2012, 03:12 AM
dulop's Avatar
dulop dulop is offline
Member
 
Join Date: May 2012
Posts: 26
Gender: Male
Credits: 6,203
dulop is on a distinguished road
Default Making a map... help!

Hello.
i have seen the tutorial "Exploring system" from PTGigi.

I understand it, but i have a problem.

When i put "hello" (for example) in the article content, the pages works fine and show "hello".

PHP Code:
$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$num $_GET["num"];
$num preg_replace("/[^a-zA-Z0-9\\040.]/"""$num);
$num secure($num); 

if (
$act == ""){
$article_title "Magical Forest!";
$article_content "Hello";

But when i try to put a map, the pages become white D: and don't work!

PHP Code:
$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$num $_GET["num"];
$num preg_replace("/[^a-zA-Z0-9\\040.]/"""$num);
$num secure($num); 

if (
$act == ""){
$article_title "Magical Forest!";
$article_content "
<html>
<head>
</head>
<body>
<map name="
mapa1">
 <area alt="
Pulsa para conocer mi trabajo" shape="rect" coords="419,93,448,121" href="www.digiforos.net"> 
 <area alt="
Pulsa para ver la página de mis amigos" shape="rect" coords="64,32,96,64" href="www.digiforos.net"> 
 <area alt="
Pulsa para ver mi novia" shape="rect" coords="450,37,480,67" href="www.digiforos.net"> 
 <area alt="
Pulsa para conocer a mi Familia" shape="ret" coords="129,158,164,190" href="www.digiforos.net"> 
 <area alt="
Pulsa para conocer mi trabajo" shape="rect" coords="481,195,510,223" href="www.digiforos.net">
 <area alt="
Pulsa para conocer mi trabajo" shape="rect" coords="353,256,386,288" href="www.digiforos.net"> 

 </map> 
<img src="
www.digiforos.net/digiadoptables/historia/ciudad.png"alt="Mapa de imágenesPulsa en cada una de los círculos." border="0" usemap="mapa1"> 
</body>
</html>"
;

I have been all night trying to fix, but i can't :S

Please can you help me? thanks

Last edited by dulop; 05-23-2012 at 03:20 AM.
Reply With Quote
  #2  
Old 05-23-2012, 05:13 AM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 67,270
AlexC is an unknown quantity at this point
Default

The code probably isn't working because html and php don't just mix like that. Inside the article content tag, turn all of the double quotes to one quotes and see if that works (but not outside, because that's php code).

That code is rather outdated as well and doesn't work properly, anyway. :c If you'd like, I uses php code for a random explore page - it doesn't let you do scripted adventures, but it lets you do random phrases that it'll select on and also chances (so you can do it that an adoptable promo code page could be more rare or something). I can give you that.
__________________
Reply With Quote
  #3  
Old 05-23-2012, 12:24 PM
dulop's Avatar
dulop dulop is offline
Member
 
Join Date: May 2012
Posts: 26
Gender: Male
Credits: 6,203
dulop is on a distinguished road
Default

Thanks! with the single quote it works!

PHP Code:
$article_title "Ciudad data"
$article_content "<map name='mapa1'> 
 <area shape='rect' coords='419,93,448,121' href='http://www.digiforos.net'>  
 </map>  
<img src='http://www.digiforos.net/digiadoptables/historia/ciudad.png' usemap='#mapa1'> "
;

Thank you
Reply With Quote
  #4  
Old 05-23-2012, 02:30 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 67,270
AlexC is an unknown quantity at this point
Default

glad to know that was what fixed it. :3 You should always keep that in the back of your head when working with html and php - all html needs to be in single quotes. it'll save your life, trust me. (so many support threads before I learnt that...)
__________________
Reply With Quote
  #5  
Old 05-23-2012, 03:37 PM
PTGigi's Avatar
PTGigi PTGigi is offline
Crazily Friendly~HoF
 
Join Date: Jul 2009
Location: Somewhere >.>
Posts: 370
Gender: Female
Credits: 26,291
PTGigi
Default

Gah, sorry! I hadn't realized my year-old tutorial was still in use, even if I never got around to completing it. XD I've added a note at the top of the tutorial now that states it's outdated so it won't confuse people anymore. Sorry again about that ^-^"

Maybe I'll get around to updating it (or more likely, just making a new thread) when I actually start up a new site :3
__________________


"I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are."~Mewtwo
My Adoptables|Nuzlocke Webcomic
Reply With Quote
  #6  
Old 05-23-2012, 08:14 PM
dulop's Avatar
dulop dulop is offline
Member
 
Join Date: May 2012
Posts: 26
Gender: Male
Credits: 6,203
dulop is on a distinguished road
Default

Quote:
Originally Posted by Gloometh View Post
glad to know that was what fixed it. :3 You should always keep that in the back of your head when working with html and php - all html needs to be in single quotes. it'll save your life, trust me. (so many support threads before I learnt that...)
Haha thank you! ^^

Quote:
Originally Posted by PTGigi View Post
Gah, sorry! I hadn't realized my year-old tutorial was still in use, even if I never got around to completing it. XD I've added a note at the top of the tutorial now that states it's outdated so it won't confuse people anymore. Sorry again about that ^-^"

Maybe I'll get around to updating it (or more likely, just making a new thread) when I actually start up a new site :3
Hahaha is very usefull your tutorial! it's a shame that you never continue with next parts!
I have been trying and i can make a map x) but i dont know how to, for example, add cash when i click in a specify place.
Would be great if you continue with the tutorial! :B i will be waiting!

P.D.: Sorry if i speak a bad english, i'm not native speaker xD
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a Trinket System Hwona Questions and Supports 14 07-10-2014 06:11 PM
Making v.1.3.3 Stat Mod Compatible with V.1.3.4 Hwona Questions and Supports 0 07-08-2014 01:37 PM
Are there ani guides for making a theme here? Rovick Questions and Supports 13 11-22-2013 04:47 PM
Making IDs be codes? Empress_Swanbottom Questions and Supports 6 02-16-2013 01:24 PM
Making an RSS Feed! PTGigi Tutorials and Tips 1 06-01-2012 03:31 AM


All times are GMT -5. The time now is 07:33 AM.

Currently Active Users: 9741 (0 members and 9741 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636