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 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 861 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
two themes on cms
#15
Don’t send them to two different template files, it will just mess up the links generated by GetSimple. If your check is in PHP your actual theme files can do all rerouteing for you and every page will automatically adapt to the visitor without having to send him to a different URL.

It will work something like this:
User 1 goes to http://example.com/a-page. GetSimple checks the back-end to see what content to display, then it goes on to call the template file. Your template file checks that User 1 is using a certain screen and serves him a template with a width of 1000px. User 1 now wants to share this page with User 2 and copies the URL.

User 2 visits http://example.com/a-page after receiving it from User 1. GetSimple checks the back-end to see what content to display, then it goes on to call the template file. Your template file checks for a certain screen again and sees User 2 is using an old one, now the template file will serve a template with a width of 600px. User 2 is just as happy as User 1 and has access to the same content.

The above scenario is very possible, I’ve done some work exactly like this with the iPhone theme. The thing there was to serve a special iPhone template to browsers identifying themselves as Mobile Safari on the iPhone.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply


Messages In This Thread
two themes on cms - by mobiten - 2010-03-03, 09:27:43
two themes on cms - by internet54 - 2010-03-03, 11:19:57
two themes on cms - by Zegnåt - 2010-03-03, 11:29:15
two themes on cms - by mobiten - 2010-03-03, 12:25:25
two themes on cms - by Zegnåt - 2010-03-03, 20:50:56
two themes on cms - by internet54 - 2010-03-04, 03:01:18
two themes on cms - by mobiten - 2010-03-06, 12:11:07
two themes on cms - by internet54 - 2010-03-06, 14:05:13
two themes on cms - by mobiten - 2010-03-06, 19:21:41
two themes on cms - by Zegnåt - 2010-03-06, 21:38:59
two themes on cms - by mobiten - 2010-03-09, 11:07:25
two themes on cms - by internet54 - 2010-03-09, 17:04:10
two themes on cms - by Zegnåt - 2010-03-09, 17:20:00
two themes on cms - by mobiten - 2010-03-10, 07:55:22
two themes on cms - by Zegnåt - 2010-03-10, 08:15:25
two themes on cms - by internet54 - 2010-03-10, 09:13:41
two themes on cms - by ccagle8 - 2010-03-10, 09:35:12
two themes on cms - by mobiten - 2010-03-10, 09:47:16
two themes on cms - by Zegnåt - 2010-03-10, 16:46:42
two themes on cms - by mobiten - 2010-03-10, 17:06:27
two themes on cms - by Zegnåt - 2010-03-10, 18:00:01
two themes on cms - by mobiten - 2010-03-10, 20:05:13
two themes on cms - by Zegnåt - 2010-03-10, 23:59:13
two themes on cms - by mobiten - 2010-03-13, 05:15:47
two themes on cms - by Zegnåt - 2010-03-13, 05:21:31



Users browsing this thread: 4 Guest(s)