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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 123
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 75
  • Total: 75

scripting help

Started by smurf6060, June 15, 2006, 10:37:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

smurf6060

The amber theme is HOT!

Tried installing tb, didnt work, a zillion errors.  Ill look into it after i solve my main problem.

I want to add my adbrite code so it shows up in all posts. I know your supposed to put the code into the display.template  file.....I just don t know the correct php terminology .

Like with html, certain scripts go into certain headers and tags....but with php, im clueless.

Can someone post the correct php terminilogy with an example url so i may just copy and paste it into my own file?

G6Cad

We need more info from you to be able to help you out.

SMF Version
TP version
Other Mods installed

Link to hompage is good to :)

IchBin

In order to put html code in a php file you have to put it in an echo statement. 
An echo statement looks like this. echo 'your_stuff_in_here'; The end of an echo statement always ends with a semi colon. For example:
echo '<img src="/your/image.jpg" />';

If you echo your stuff with single quotes and you put a word in there with a single quote like this.
echo '<p>This isn't very hard</p>'; This will not work. Because echo thinks your ending it at the second single quote on the word "isn't". So in order to make it work you need to do this.

echo '<p>This isn\'t very hard</p>';  Using the backslash tells echo to ingore the following character.

Make sure when you put in in the php code that you're not putting it into an already existing echo statement. In some instances an echo statement expands 10 or 15 lines of code. Just look for the ending semi colon so you can find the end. :)

smurf6060

i love you guys!!!!!!!!!!!!!!!!!!!!!!!

thanks.

This website is proudly hosted on Crocweb Cloud Website Hosting.