TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 26, 2024, 01:03:17 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,280
  • Total Topics: 21,227
  • Online today: 203
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 192
  • Total: 192

which box should I use

Started by shanhi, April 21, 2007, 02:14:15 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

shanhi

I have a code like this

<php? something>
<script>
........
</script>
</php>


which box should I put this code in.html/script or php?Thanks

Shadow

I tested the code out.  And I didn't see nothing...I use a scriptbox in tp....Like I said I didnt see nothing..

shanhi

Quote from: Shadow Queen on April 21, 2007, 03:07:43 AM
I tested the code out.  And I didn't see nothing...I use a scriptbox in tp....Like I said I didnt see nothing..
what do you mean by testing.I did not give you the code.That one is the general code.I am working on that code right now.

Shadow

Quote
which box should I put this code in.html/script or php?Thanks

And you ask us which box to use...We cant tell by the code....

After you done with the code try to use this type of box scriptbox or phpbox...

rebelrose

Neither, post the correct and complete code and we can help.

Lord Anubis

#5
phpbox...

The code is obviously php without you putting the whole code...be careful though... you can mess things up if your code is incorrect, and the box is set to on, preview it before turning it on  ;)

Skhilled

That is correct. Any php code should go in a phpbox. ;)

Thurnok

#7
If you are going to put php code in, there is only one choice, and that is a phpbox.

You must leave out the opening and closing php tags however.  Also, you will need to echo your javascript and/or html code that you are including with it.

Example:
phpbox code

// do not use <?php and ?> (opening and closing php tags)
$myvar = "some info";
// various php commands that follow
          .
          .
          .
// if you want to include javascript or html code, "echo" it using php echo command
echo '
<script type="text/javascript">
<!--
// some javascript code
var jarray = new Array();
var test = "Testing";
alert(test);
</script>
// -->

<!-- some HTML -->
<h1>Introducing</h1>
<h2><b>TinyPortal!!</b></h2>
';


rebelrose

exactly, because looking at what was posted it is hard to say if he/she was going for php or wanting to use script. Thurnok, you d'man ;)

Shadow

Thank you Rose

I have to agree with you about that one.  Its hard to tell what them going for but I put on my post for two type of block :)