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,019
  • Total Topics: 21,332
  • Online today: 1,062
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 905
  • Total: 905

Inserting snippet codes

Started by houston, November 04, 2005, 04:35:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

houston

Am I to assume that one would insert the snippet code into the TPortalBlocks.templates.php. And if so, does it matter where you insert the code.

Inquiring minds need to know.

bloc

No, snippets code are to be put into a php-type of block. So its actually stored in the database, not in the files.

houston

Quote from: Bloc on November 04, 2005, 05:37:45 PM
No, snippets code are to be put into a php-type of block. So its actually stored in the database, not in the files.

Are you refering to the Mysql database associated with the smf forum itself?

JayBachatero

No you add a new block.  when they ask you what type you select php.  insert the code that was provided to you.

houston

Quote from: JayBachatero on November 05, 2005, 01:31:43 AM
No you add a new block.ÂÃ,  when they ask you what type you select php.ÂÃ,  insert the code that was provided to you.

My eyes have been opened and the world is before me. Thanks JayBachatero

JayBachatero

Quote from: houston on November 05, 2005, 06:01:25 AM
Quote from: JayBachatero on November 05, 2005, 01:31:43 AM
No you add a new block.  when they ask you what type you select php.  insert the code that was provided to you.

My eyes have been opened and the world is before me. Thanks JayBachatero


You welcome.

conradk

Can someone give me an example of a php bock code snippet. I am trying to integrate coppermine into smf/tp and am getting php errors when trying to use the php block. (SMF1.1RC1)

borgBOB

Just read the other posts in this thread, most are phpblocks! Calendar, clocks, ect.

conradk

Sorry, should have been more specific... Can anyone show me how the php code appears inside the php block? I am getting a php parsing error.

IchBin

Just remember to exclude the <?php and ?> tags in your script. You don't need those.

This website is proudly hosted on Crocweb Cloud Website Hosting.