The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 94 errorHandler->error
C:\sites\kwikcontent\supportforum\printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 573 errorHandler->error
C:\sites\kwikcontent\supportforum\printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 752 errorHandler->error
C:\sites\kwikcontent\supportforum\printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 892 errorHandler->error
C:\sites\kwikcontent\supportforum\printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 892 errorHandler->error
C:\sites\kwikcontent\supportforum\printthread.php 16 require_once
Warning [2] Undefined variable $unreadreports - Line: 25 - File: C:\sites\kwikcontent\supportforum\global.php(959) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php(959) : eval()'d code 25 errorHandler->error
C:\sites\kwikcontent\supportforum\global.php 959 eval
C:\sites\kwikcontent\supportforum\printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 1024 errorHandler->error
C:\sites\kwikcontent\supportforum\printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: C:\sites\kwikcontent\supportforum\inc\functions.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions.php 5308 errorHandler->error
C:\sites\kwikcontent\supportforum\global.php 1024 build_theme_select
C:\sites\kwikcontent\supportforum\printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: C:\sites\kwikcontent\supportforum\printthread.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: C:\sites\kwikcontent\supportforum\printthread.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: C:\sites\kwikcontent\supportforum\printthread.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: C:\sites\kwikcontent\supportforum\printthread.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: C:\sites\kwikcontent\supportforum\printthread.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: C:\sites\kwikcontent\supportforum\printthread.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: C:\sites\kwikcontent\supportforum\printthread.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: C:\sites\kwikcontent\supportforum\printthread.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: C:\sites\kwikcontent\supportforum\printthread.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: C:\sites\kwikcontent\supportforum\printthread.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\printthread.php 165 errorHandler->error



Kwikcontent Support Forum
Text link ads code placement - Printable Version

+- Kwikcontent Support Forum (http://kwikcontent.com/supportforum)
+-- Forum: Kwikcontent (http://kwikcontent.com/supportforum/forumdisplay.php?fid=3)
+--- Forum: System Support (http://kwikcontent.com/supportforum/forumdisplay.php?fid=5)
+--- Thread: Text link ads code placement (/showthread.php?tid=22)



Text link ads code placement - jojo1000 - 04-07-2008

Hi Jeff,

If we wish to place the TLA code only on our homepage. (The code is in PHP). Which page do we edit and WHERE do we place this code?

Thanks Smile


- Kwikcontent - 04-07-2008

I'm not sure what you mean by "TLA code." Can you give me some specific files you're looking in and what code you are referring to?


- jojo1000 - 04-07-2008

It's just a code in PHP that starts with <?php and ends with ?>. That's all.

1) So if I wish to place a simple PHP code on JUST the home page which template file do I edit for the same?

2) And if I wish to place a simple PHP code on the home page AND ALL internal pages, which template file(s) do I edit for the same?

Thanks a ton.


- Kwikcontent - 04-08-2008

Well actually, you may not be able to put your PHP code in the template files. The system uses Smarty to separate page logic (PHP) and display (HTML). Therefore, to do it properly, you would need to add your PHP code in the proper PHP file, assign the output of that code to a variable, and then assign that variable to smarty. You can then display that variable within the Smarty templates.

I realize that probably sounds a little confusing, so you may want to seek the help of a PHP developer. Unfortunately, the specifics of making this level of custom edits is outside the scope of support available here.

The below may work for you, but it depends on the PHP code you're trying to implement.

Instead of this <?php CODE GOES HERE ?>

Try this {php} CODE GOES HERE {/php} within the template file.

Best of luck.


- jojo1000 - 04-09-2008

Thank you Jeff, it worked Smile