Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Input Tabs
#78
(2012-11-11, 23:10:01)Timbow Wrote: I am really looking forward to trying this plugin out. Is version 1.x pretty much in it's final form now, tested, approved and recommended?
Yeah, though I'm pretty-fying it with javascript at the moment. Not too far off putting out version 1.9 which has a bunch of little fixes and some new warning messages etc to make things easier for users.

Then I'm thinking in 2.0 I'll make a proper configuration screen.

(2012-11-12, 04:56:17)hameau Wrote: A saved empty tab is pre-filled with the default text (either the plugin built-in default or the optional parameter) on next edit and, yes, it's saved and rendered.

Yeah I'm working on this one now. Should be sorted next upload. Smile

Quote:No output doesn't necessarily give false: I have come unstuck with GS when an empty array was returned, for example. No output, but not nothing returned.

In fact, (return_tab_content( ... )) on an empty tab returns the string "There was a problem with your Tab request.", which is, of course, True.

Yeah my bad with that error message. Angel
I may be a little overzealous in putting error messages everywhere.
You can be sure though, that an empty tab request will not give you anything other than a string of characters or NULL. But I can probably make it return "false" if it finds nothing to be extra sure.

EDIT: Actually as a side note, that specific error "There was a problem with your Tab request." comes up when your tab 'request' is wrong. ie: wrong syntax. That is likely because that request tab only accepts the "specific" style syntax. Or in other words using an -> in the string. Trying your tab request with an arrow might work:
Code:
return_tab_request("->mytab");
In any case, I have changed this to work more normally. So it will work just the same as insert_page_content does, but returning info.

Quote:One other snag I found today, is that this code breaks SIT:
PHP Code:
<?php insert_page_content('tabone');
insert_page_content('tabtwo'); ?>

Only the first instance is recognised. This alternative works as expected:
PHP Code:
<?php insert_page_content('tabone'); ?>
<?php insert_page_content
('tabtwo'); ?>

Also, SIT does not understand PHP comments, so this will still show a tab:
PHP Code:
<?php //insert_page_content('tabone'); ?>

In a combination of these points, this will show tab tabone, but not tabtwo:
PHP Code:
<?php //insert_page_content('tabone');
insert_page_content('tabtwo'); ?>

That nearly drove me round the bend before I found out !

Haha, sorry. That would be the fault of my regular expression:
Code:
/<\?php.*?\binsert_page_content\(([^)]*?)\);?.*?\?>/si
I was kinda hoping that there would be one function call per php tag, and commenting out the code slipped my mind. Tongue
Looks like I need to update it.

Thanks for this feedback, again! It's really helpful.

And p.s. if anyone reading this is particularly good with reg expressions take a look at this one and give me some pointers? Smile
Reply


Messages In This Thread
Simple Input Tabs - by jason.dixon.email - 2012-10-19, 22:59:03
RE: Simple Input Tabs - by islander - 2012-10-30, 19:30:59
RE: Simple Input Tabs - by jason.dixon.email - 2012-10-31, 03:34:11
RE: Simple Input Tabs - by stevenatherton42 - 2012-10-31, 05:56:17
RE: Simple Input Tabs - by islander - 2012-10-31, 06:23:31
RE: Simple Input Tabs - by stevenatherton42 - 2012-10-31, 06:30:52
RE: Simple Input Tabs - by jason.dixon.email - 2012-10-31, 11:02:48
RE: Simple Input Tabs - by stevenatherton42 - 2012-10-31, 11:28:30
RE: Simple Input Tabs - by jason.dixon.email - 2012-10-31, 12:03:12
RE: Simple Input Tabs - by jason.dixon.email - 2012-10-31, 23:39:08
RE: Simple Input Tabs - by islander - 2012-11-01, 02:45:39
RE: Simple Input Tabs - by stevenatherton42 - 2012-11-01, 08:43:19
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-01, 11:53:37
RE: Simple Input Tabs - by stevenatherton42 - 2012-11-01, 12:09:05
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-01, 15:04:04
RE: Simple Input Tabs - by stevenatherton42 - 2012-11-03, 04:11:50
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-03, 09:46:05
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-03, 11:27:10
RE: Simple Input Tabs - by shovenose - 2012-11-03, 16:12:34
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-07, 23:43:18
RE: Simple Input Tabs - by islander - 2012-11-08, 02:07:06
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-08, 03:26:39
RE: Simple Input Tabs - by islander - 2012-11-08, 03:42:27
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-08, 03:54:36
RE: Simple Input Tabs - by hameau - 2012-11-08, 18:32:08
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-08, 21:12:49
RE: Simple Input Tabs - by hameau - 2012-11-08, 22:22:50
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-08, 22:39:37
RE: Simple Input Tabs - by hameau - 2012-11-09, 01:50:38
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-09, 02:14:57
RE: Simple Input Tabs - by hameau - 2012-11-09, 03:18:47
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-09, 11:24:00
RE: Simple Input Tabs - by hameau - 2012-11-10, 04:58:50
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-10, 05:04:18
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-10, 21:58:05
RE: Simple Input Tabs - by hameau - 2012-11-10, 23:21:13
RE: Simple Input Tabs - by uitdecom - 2012-11-10, 23:42:15
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-11, 06:18:19
RE: Simple Input Tabs - by hameau - 2012-11-12, 04:56:17
RE: Simple Input Tabs - by hameau - 2012-11-11, 01:54:51
RE: Simple Input Tabs - by Timbow - 2012-11-11, 23:10:01
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-12, 07:50:11
RE: Simple Input Tabs - by hameau - 2012-11-13, 02:41:59
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-13, 03:37:52
RE: Simple Input Tabs - by hameau - 2012-11-13, 06:53:17
RE: Simple Input Tabs - by Timbow - 2012-11-13, 21:43:12
RE: Simple Input Tabs - by hameau - 2012-11-13, 22:52:22
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-14, 01:59:54
RE: Simple Input Tabs - by islander - 2012-11-14, 06:45:58
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-14, 08:46:21
RE: Simple Input Tabs - by islander - 2012-11-14, 09:04:15
RE: Simple Input Tabs - by uitdecom - 2012-11-16, 04:09:15
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-16, 12:19:25
RE: Simple Input Tabs - by uitdecom - 2012-11-16, 19:20:58
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-16, 21:00:03
RE: Simple Input Tabs - by uitdecom - 2012-11-16, 21:30:04
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-16, 22:10:08
RE: Simple Input Tabs - by uitdecom - 2012-11-16, 22:19:02
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-16, 22:38:54
RE: Simple Input Tabs - by uitdecom - 2012-11-16, 22:44:50
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-16, 23:10:26
RE: Simple Input Tabs - by uitdecom - 2012-11-17, 00:23:24
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-17, 01:14:37
RE: Simple Input Tabs - by uitdecom - 2012-11-17, 01:45:05
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-17, 01:57:29
RE: Simple Input Tabs - by uitdecom - 2012-11-17, 02:08:14
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-17, 02:16:22
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-21, 02:36:11
RE: Simple Input Tabs - by islander - 2012-11-21, 03:54:48
RE: Simple Input Tabs - by jason.dixon.email - 2012-11-21, 12:50:25
RE: Simple Input Tabs - by islander - 2012-11-21, 19:12:57
RE: Simple Input Tabs - by tazmandev - 2012-12-09, 06:18:26
RE: Simple Input Tabs - by jason.dixon.email - 2012-12-09, 09:25:07
RE: Simple Input Tabs - by shawn_a - 2012-12-11, 10:53:04
RE: Simple Input Tabs - by Timbow - 2012-12-12, 04:04:29
RE: Simple Input Tabs - by jason.dixon.email - 2012-12-12, 12:16:56
RE: Simple Input Tabs - by datiswous - 2012-12-13, 04:43:19
RE: Simple Input Tabs - by jason.dixon.email - 2012-12-13, 13:54:49
RE: Simple Input Tabs - by shawn_a - 2012-12-13, 06:40:41
RE: Simple Input Tabs - by datiswous - 2012-12-13, 06:50:16
RE: Simple Input Tabs - by jason.dixon.email - 2012-12-13, 12:43:56
RE: Simple Input Tabs - by shawn_a - 2012-12-14, 00:51:01
RE: Simple Input Tabs - by jason.dixon.email - 2012-12-14, 02:14:58
RE: Simple Input Tabs - by shawn_a - 2012-12-14, 03:41:16
RE: Simple Input Tabs - by jason.dixon.email - 2012-12-14, 23:09:39
RE: Simple Input Tabs - by datiswous - 2012-12-15, 08:22:14
RE: Simple Input Tabs - by jason.dixon.email - 2012-12-18, 03:11:27
RE: Simple Input Tabs - by Timbow - 2012-12-19, 20:45:01
RE: Simple Input Tabs - by jason.dixon.email - 2012-12-19, 22:00:24
RE: Simple Input Tabs - by Timbow - 2012-12-19, 23:29:14
RE: Simple Input Tabs - by jason.dixon.email - 2012-12-20, 02:28:25
RE: Simple Input Tabs - by Timbow - 2012-12-22, 09:40:25
RE: Simple Input Tabs - by jason.dixon.email - 2012-12-22, 13:03:35
RE: Simple Input Tabs - by Timbow - 2012-12-28, 10:48:01
RE: Simple Input Tabs - by jason.dixon.email - 2012-12-29, 00:25:56
RE: Simple Input Tabs - by Timbow - 2012-12-29, 03:20:31
RE: Simple Input Tabs - by lukastaylor - 2012-12-30, 09:16:59
RE: Simple Input Tabs - by jason.dixon.email - 2012-12-31, 12:30:42
RE: Simple Input Tabs - by lukastaylor - 2013-01-01, 03:46:42
RE: Simple Input Tabs - by jason.dixon.email - 2013-01-01, 03:56:23
RE: Simple Input Tabs - by lukastaylor - 2013-01-01, 04:01:37
RE: Simple Input Tabs - by jason.dixon.email - 2013-01-01, 12:42:29
RE: Simple Input Tabs - by lukastaylor - 2013-01-02, 00:24:12
RE: Simple Input Tabs - by jason.dixon.email - 2013-01-02, 00:36:17
RE: Simple Input Tabs - by lukastaylor - 2013-01-02, 02:14:12
RE: Simple Input Tabs - by jason.dixon.email - 2013-01-02, 02:39:21
RE: Simple Input Tabs - by lukastaylor - 2013-01-02, 02:40:37
RE: Simple Input Tabs - by Timbow - 2013-01-22, 02:20:06
RE: Simple Input Tabs - by jason.dixon.email - 2013-01-22, 02:56:55
RE: Simple Input Tabs - by Timbow - 2013-01-22, 06:09:58
RE: Simple Input Tabs - by jason.dixon.email - 2013-01-23, 03:24:17
RE: Simple Input Tabs - by Carlos - 2013-01-23, 04:14:30
RE: Simple Input Tabs - by jason.dixon.email - 2013-01-23, 21:13:12
RE: Simple Input Tabs - by mvlcek - 2013-01-23, 21:48:46
RE: Simple Input Tabs - by jason.dixon.email - 2013-01-29, 01:06:19
RE: Simple Input Tabs - by shawn_a - 2013-01-29, 01:19:04
RE: Simple Input Tabs and i18n - by jezok - 2013-03-14, 18:03:49
RE: Simple Input Tabs and i18n - by jezok - 2013-03-14, 22:02:04
RE: Simple Input Tabs and i18n - by jezok - 2013-03-15, 05:06:59
RE: Simple Input Tabs - by jason.dixon.email - 2013-03-17, 18:47:59
RE: Simple Input Tabs - by jason.dixon.email - 2013-03-18, 23:01:50
RE: Simple Input Tabs - by tazmandev - 2013-03-31, 05:08:44
RE: Simple Input Tabs - by jason.dixon.email - 2013-03-31, 16:15:39
RE: Simple Input Tabs - by jason.dixon.email - 2013-04-02, 13:34:55
RE: Simple Input Tabs - by tazmandev - 2013-04-02, 21:09:10
RE: Simple Input Tabs - by shawn_a - 2013-04-03, 00:01:16
RE: Simple Input Tabs - by tazmandev - 2013-04-03, 02:06:47
RE: Simple Input Tabs - by jason.dixon.email - 2013-04-03, 21:16:45
RE: Simple Input Tabs - by shawn_a - 2013-04-03, 22:59:59
RE: Simple Input Tabs - by jason.dixon.email - 2013-04-05, 18:40:29
RE: Simple Input Tabs - by tazmandev - 2013-04-08, 19:33:35
RE: Simple Input Tabs - by jason.dixon.email - 2013-04-08, 22:40:52
RE: Simple Input Tabs - by hempelr - 2013-06-24, 22:32:50
RE: Simple Input Tabs - by jason.dixon.email - 2013-06-25, 02:08:54
RE: Simple Input Tabs - by hempelr - 2013-06-25, 16:45:56
RE: Simple Input Tabs - by jason.dixon.email - 2013-06-25, 17:46:28
RE: Simple Input Tabs - by villeristi - 2013-09-19, 01:30:55
RE: Simple Input Tabs - by jason.dixon.email - 2013-09-19, 06:56:39
RE: Simple Input Tabs - by villeristi - 2013-09-19, 08:13:23
RE: Simple Input Tabs - by jason.dixon.email - 2013-09-19, 16:46:28
RE: Simple Input Tabs - by villeristi - 2013-09-19, 16:58:14
RE: Simple Input Tabs - by bensayers - 2014-01-17, 11:07:37
RE: Simple Input Tabs - by jason.dixon.email - 2014-01-17, 13:18:21
RE: Simple Input Tabs - by bensayers - 2014-01-17, 17:20:52
RE: Simple Input Tabs - by jason.dixon.email - 2014-01-18, 00:08:41
RE: Simple Input Tabs - by bensayers - 2014-01-18, 05:29:35
RE: Simple Input Tabs - by jason.dixon.email - 2014-01-18, 05:39:27
RE: Simple Input Tabs - by jason.dixon.email - 2014-01-19, 11:01:02
RE: Simple Input Tabs - by Thomas Helzle - 2014-04-12, 21:05:56
RE: Simple Input Tabs - by Thomas Helzle - 2014-04-12, 21:10:57
RE: Simple Input Tabs - by jason.dixon.email - 2014-04-13, 06:46:32
RE: Simple Input Tabs - by Thomas Helzle - 2014-04-13, 08:53:47
RE: Simple Input Tabs - by Thomas Helzle - 2014-04-15, 04:05:22
RE: Simple Input Tabs - by danielg - 2014-07-08, 19:20:12
RE: Simple Input Tabs - by tazmandev - 2014-07-08, 21:10:01
RE: Simple Input Tabs - by mvlcek - 2014-07-09, 03:36:52
RE: Simple Input Tabs - by jason.dixon.email - 2014-07-08, 21:22:40
RE: Simple Input Tabs - by danielg - 2014-07-21, 20:11:34
RE: Simple Input Tabs - by datiswous - 2015-02-16, 21:01:55
RE: Simple Input Tabs - by shawn_a - 2018-03-24, 00:36:10
Simple Input Tabs - by datiswous - 2012-10-21, 15:18:09
Simple Input Tabs - by jason.dixon.email - 2012-10-21, 15:35:30
Simple Input Tabs - by islander - 2012-10-22, 06:34:06
Simple Input Tabs - by jason.dixon.email - 2012-10-22, 07:44:55
Simple Input Tabs - by datiswous - 2012-10-22, 09:00:55
Simple Input Tabs - by jason.dixon.email - 2012-10-22, 14:33:41
Simple Input Tabs - by islander - 2012-10-23, 00:24:29
Simple Input Tabs - by yojoe - 2012-10-23, 01:21:14
Simple Input Tabs - by jason.dixon.email - 2012-10-23, 02:01:24
Simple Input Tabs - by jason.dixon.email - 2012-10-23, 02:06:03
Simple Input Tabs - by jason.dixon.email - 2012-10-24, 22:27:49
Simple Input Tabs - by islander - 2012-10-25, 08:16:34
Simple Input Tabs - by islander - 2012-10-25, 19:45:08
Simple Input Tabs - by jason.dixon.email - 2012-10-26, 02:47:55
Simple Input Tabs - by islander - 2012-10-26, 07:53:56
Simple Input Tabs - by ChriS - 2012-10-26, 09:31:30
Simple Input Tabs - by jason.dixon.email - 2012-10-26, 11:30:35
RE: Simple Input Tabs - by ChriS - 2012-10-30, 09:21:22
RE: Simple Input Tabs - by jason.dixon.email - 2012-10-31, 01:07:02
Simple Input Tabs - by islander - 2012-10-26, 19:12:18
Simple Input Tabs - by jason.dixon.email - 2012-10-27, 00:55:06
Simple Input Tabs - by islander - 2012-10-27, 01:05:04
Simple Input Tabs - by jason.dixon.email - 2012-10-27, 01:08:54
Simple Input Tabs - by islander - 2012-10-27, 01:27:11
Simple Input Tabs - by jason.dixon.email - 2012-10-27, 02:55:21
Simple Input Tabs - by islander - 2012-10-27, 04:01:25
Simple Input Tabs - by uitdecom - 2012-10-27, 07:31:44
Simple Input Tabs - by jason.dixon.email - 2012-10-27, 12:17:00
Simple Input Tabs - by jason.dixon.email - 2012-10-27, 12:23:58
Simple Input Tabs - by islander - 2012-10-27, 20:35:02
Simple Input Tabs - by Timbow - 2012-10-27, 23:39:12
Simple Input Tabs - by jason.dixon.email - 2012-10-28, 12:25:42
Simple Input Tabs - by jason.dixon.email - 2012-10-28, 12:31:10
Simple Input Tabs - by jason.dixon.email - 2012-10-28, 15:41:25
Simple Input Tabs - by islander - 2012-10-28, 19:04:06
Simple Input Tabs - by jason.dixon.email - 2012-10-29, 05:44:34



Users browsing this thread: 2 Guest(s)