Jump to content

Seems Like A Script Bug


smartalekrj
 Share

Recommended Posts

It depends on the HTML structure you output.
Putting it into a new <table> for example, will not give the table's cells the storyline-text class. Can you post the conent and how you are echo'ing it?
Its fine if you omit the actual story content, put anything in there as long as you how what kind of HTML you are displaying.

My suggestion is use either MD's default CSS or write up your own.

Remember that @content[0] will always be placed on the page, regardless of whether you echo it or not. It will also appear [i]after[/i] your code output.
To avoid this, do not give any @content[0], start your content section from @content[1] instead :)

Link to comment
Share on other sites

now, i guess that's not a script bug, but it's still puzzling me...

when i try to echo short sentences, they lose their layout, specially caps, which is pretty annoying -.-

[php]echo ""; If (uv('heads')>6){ echo "You are in danger, get rid of your ".uv('heads')." Heads!!"; }else{ echo "This is still a sanctuary place for you, enjoy the benefits while you can^^";}[/php]

that's what i write in the code, pretty easy [ignore the empty echo, that's what i do to make it show content 0 because i'm too lazy to type more XD]

but what i get of it is that:
[php]you are in danger, get rid of your 12 heads!![/php]

How can i make the caps be caps? And i also intended to use 'safe place', how can i tell the code that safe is not supposed to be a code-word in that context?

Link to comment
Share on other sites

  • Root Admin

Normal php will preserve the capitals, Which means its a mdscript Bug.

Also burns try and format your code a little better, new lines for example

[php]
echo "";
If (uv('heads')>6){
echo "You are in danger, get rid of your ".uv('heads')." Heads!!";
}else{
echo "This is still a sanctuary place for you, enjoy the benefits while you can^^";
}
[/php]

This makes debugging easier as you can check for all those semi colons that you might have missed and such.


perhaps try this to make sure safe isnt being used incorrectly

[code]echo "This is still a Sa" . "fe place for you"[/code]

i would check, but have no access to mdscript...

Edited by Chewett
Link to comment
Share on other sites

thanks a lot, that little "."-trick in between solved the code-word issue perfectly :)

and thanks for the hint with the layout...
looks better, and surely makes more complex things easier ^^

Edited by Burns
Link to comment
Share on other sites

Your script output will always be in lowercase, this is in order to ensure security.
The best way I can suggest to overcome this is put the text you want to display into the content section
The uppercase/lowercase functions have not bee allowed, they would be a nice addiiton, although a pain to simply capitilise single letters repeatedly.

It might be to preserve case integrity while still providing the protection. For now use the content section.

@Udgard: I haven't seen the /safe place/ keywords, could you post the link?

Link to comment
Share on other sites

[quote]Remember that @content[0] will always be placed on the page, regardless of whether you echo it or not. It will also appear after your code output.
To avoid this, do not give any @content[0], start your content section from @content[1] instead
[/quote]

thnks content[0] was the issue... also i HAVE to have echo there otherwise i end up with an error

Link to comment
Share on other sites

It should not be forcing you to echo any content if you don't want to.

Have you tried something like this:
[code]
<!-- content separator -->
content1
<!-- content separator -->
content2
<!-- content separator -->
content3
<!-- content separator -->
content4
[/code]

Link to comment
Share on other sites

  • Root Admin

[quote name='Rendril' date='29 October 2009 - 02:01 PM' timestamp='1256824864' post='46057']
@Udgard: I haven't seen the /safe place/ keywords, could you post the link?
[/quote]

i believe he was refering to escaping the * in lho's names, this does work overall udgard

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Forum Statistics

    17.3k
    Total Topics
    181.4k
    Total Posts
  • Recently Browsing

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
  • Recent Event Reviews

×
×
  • Create New...