The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION How to Convert Component to a Function?
#3
@Tyblitz

Thanks for your reply.

Originally the code I am using as a component. Originally it was posted in this thread http://get-simple.info/forums/showthread...9#pid36859, created to be used with Bootstrap, however I slightly adjusted the code so it worked with the Zurb Foundation Framework.

I already have this working by implimenting my code "as a component" in my theme. However, as I am creating a theme that I will use on several websites that will use Zurbs Foundation Framework, I would prefer to have this as a standard function in my themes "functions.php" file, so i dont have to keep making the same component everytime I creat a new website.

I tried your solution but I cant get it to work. Like I say, i'm a php newby with lots to learn... and im a bit slow! and I simply have not figured out how to create fuctions yet...

Regards
Boneye
Reply


Messages In This Thread
RE: How to Convert Component to a Function? - by Boneye - 2015-06-16, 08:26:49



Users browsing this thread: 1 Guest(s)