2012-12-19, 23:29:14
Simple Input Tabs
|
2012-12-20, 02:28:25
Awesome.
Nothing wrong with branching yourself out!
2012-12-22, 09:40:25
Could be a conflict with the GSBlog plugin.
I have a template with a main and sidebar. Can make the blog work but I can't show any content in the sidebar. I can show content from another page with <?php insert_page_content("otherpageslug->sidebar"); ?> but I can't show any content from the sidebar tab on the blog page.
2012-12-22, 13:03:35
(This post was last modified: 2012-12-22, 13:56:41 by jason.dixon.email.)
Hmm... Have you tried adding "false" as a third parameter? Like this:
Code: <?php insert_page_content("sidebar", "", false); ?> Adding false should stop other plugins from interfering with a tab. EDIT: Ok I've found the conflict. Both plugins modify the content of the page using the same hook. Seems the blog plugin is getting in there first. I'll make a change to ensure that simple_input_tabs always get to content first. Alright, updated to version 2.2. Give that a go.
2012-12-28, 10:48:01
I have been working on a theme which is far better than the one I made from scratch myself. I uploaded it today and I am going to add some tabbed templates. It's a great plugin.
These are the issues I am coming up with
2012-12-29, 00:25:56
(This post was last modified: 2012-12-29, 00:26:30 by jason.dixon.email.)
(2012-12-28, 10:48:01)Timbow Wrote: I have been working on a theme which is far better than the one I made from scratch myself. I uploaded it today and I am going to add some tabbed templates. It's a great plugin. Hmm... anything happening at all with the auto install thingo? I do admit it's experimental. I'm not following with what you mean by holding text? Do you mean when clicking the magnifying glass you see tab names in the appropriate locations? You can view those from the front-end by adding ?display=preview to the end of the URL. Php tags? I'm not sure you can do that even without the plugin? I know there is a plugin on extend somewhere that enables php tags to work. If you want to be fancy it would be possible to use the "name-exec" filter hook in small_plugin_toolkit to achieve this.
2012-12-29, 03:20:31
(2012-12-29, 00:25:56)jason.dixon.email Wrote: Hmm... anything happening at all with the auto install thingo? I do admit it's experimental. auto install - functions.php deletes itself but the plugin files don't go to the plugins directory. Holding Text - text that would appear on the page saying 'This is Column2 please edit this text in the Col2 tab' php tags - alright I think I understand. I have uploaded the Unbound Theme v1.1 which includes three page templates set up for use with Simple Input Tabs.
2012-12-30, 09:16:59
Hi,
Firstly thankyou for a great plugin. I have a question about accessing the content of a tab from a parent page.... I have created a function in the "theme_functions.php" file that accesses all children pages, loops them and and obviously I can access stuff like so: "$page['url']" But how can access the content of a specific tab from there? Any help appreciated. Here is the loop: PHP Code: foreach ($newsPages as $page) { xx
2012-12-31, 12:30:42
(2012-12-29, 03:20:31)Timbow Wrote: Holding Text - text that would appear on the page saying 'This is Column2 please edit this text in the Col2 tab' Would writing the message in the second input do what you want? ie: Code: insert_page_content("col2" , "This is Column2 please edit this text in the Col2 tab"); (2012-12-30, 09:16:59)lukastaylor Wrote: Hi, No problem. Glad you're enjoying it! Does page['parent'] give you a page slug? You might be able to use: Code: insert_page_content( page['parent'] . "->tabname" );
2013-01-01, 03:46:42
Thanks. Insert page content doesn't seem to work and when I do this:
echo $page['parent'] . "->Image"; I get: blog->Imageblog->Imageblog->Image ????!!!! x
2013-01-01, 03:56:23
(This post was last modified: 2013-01-01, 03:58:26 by jason.dixon.email.)
Is that not right?
If you use a -> you can get a tab from a specific page (slug). ie: "blog->image" would be the page slug "blog" and the tab "image". Or am I misunderstanding the question?
2013-01-01, 04:01:37
Sorry if I am being confusing sir
My aim is to get the content of the said tab as HTML. If the selector is correct how do I output the markup within that tab? Please probe further if I am not being clear. (2013-01-01, 03:56:23)jason.dixon.email Wrote: Is that not right?
2013-01-01, 12:42:29
(This post was last modified: 2013-01-01, 12:43:19 by jason.dixon.email.)
Quote:Sorry if I am being confusing sir No problem! I feel like I'm missing the obvious, haha. "insert_page_content( "blog->image" ); Should output the tab directly. "return_page_content( "blog->image" ); Should return the content to the script so you can do something with the html. If you go into the plugins settings (under the settings menu) and turn on "show errors". Do you get an error popping up when viewing the page? You do have a tab named "image" on the blog page, right?
2013-01-02, 00:24:12
Yeh it's giving me a 404
From within the loop: PHP Code: foreach ($newsPages as $page) { If I output the array as above I get: Array ( [url] => blog-item-1 [pubDate] => Wed, 19 Dec 2012 16:03:06 +0000 [title] => Blog Item 1 [meta] => these are the keywords [metad] => Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis. [menu] => News Item 1 [menuOrder] => 0 [menuStatus] => [template] => blog-item.php [parent] => blog [private] => [author] => admin [returnpage] => Image [slug] => blog-item-1 [filename] => blog-item-1.xml ) ... you can see "Image" is there. But yeh I can't seem to output it... [/php] (2013-01-01, 12:42:29)jason.dixon.email Wrote:Quote:Sorry if I am being confusing sir
2013-01-02, 00:36:17
(This post was last modified: 2013-01-02, 00:44:04 by jason.dixon.email.)
(2013-01-02, 00:24:12)lukastaylor Wrote: Yeh it's giving me a 404 That error is good. Now we know the content cannot be found (or is empty) but that the plugin is correctly looking for the tab data. Are you positive it is in the tab named image? If you try this does anything change? Code: insert_page_content( page['slug'] . "->" ); What is in the .xml file blog-item-1.xml (or is that array the contents of the xml? if so is there no "content" section?) and is it in the same directory as other pages? Can you access the page directly in the URL using the page slug?
2013-01-02, 02:14:12
(This post was last modified: 2013-01-02, 02:31:42 by lukastaylor.)
Solved!
insert_page_content($page['slug'] . "->Image"); Works like a charm. Thankyou sir!
2013-01-02, 02:39:21
(This post was last modified: 2013-01-02, 02:40:50 by jason.dixon.email.)
(2013-01-02, 02:14:12)lukastaylor Wrote: Thanks for the continued support. No problem. Quote:The code brings back content but from the wrong tab ("Main" not "Image"). Wait... are you looking to get content from child pages displayed on the parent page? I might be having a moment I think, haha. I've been trying to get you to access the parents content. Does this do what you're looking for? Code: insert_page_content( page['url'] . "->image" ); (page['slug'] would be the same as page['url'] it would seem) EDIT: Oh you beat me to it, haha. Yeah my fault. Glad you got it working! Good stuff!
2013-01-02, 02:40:37
Yeh that works thankyou so much! Happy new year!
(2013-01-02, 02:39:21)jason.dixon.email Wrote:(2013-01-02, 02:14:12)lukastaylor Wrote: Thanks for the continued support.
2013-01-22, 02:20:06
2013-01-22, 02:56:55
2013-01-22, 06:09:58
Difficult to be 1000% certain but I think it was like this:
I was checking the google ranking of a site I hadn't looked at for weeks and saw it had dropped right off the radar. Looked at the site and saw the custom titles were missing, just getting the sitename plus pagename. Went to write in a custom title in the first page and when I saved I lost the tabbed content. Deleted the custom title and the tabbed content was still missing. Had to restore site from backup. upgraded SIT from 2.1 to 2.2. Tried again to write in a title in Page Options and lost the tabbed content again (I think all except the Main tab). Restored site and uninstalled SIT.
2013-01-23, 03:24:17
(2013-01-22, 06:09:58)Timbow Wrote: Difficult to be 1000% certain but I think it was like this: Hmm... Is the content gone from your pages "data" XML file? I think the two plugins might be having a conflict when it comes to saving the file. Will keep looking into it.
2013-01-23, 04:14:30
@Timbow
I have not tested any of these 2 plugins, but try this just in case. Edit custom_title.php, find this near the end of the file: PHP Code: if (get_magic_quotes_gpc()) { Remove *all* that code.
2013-01-23, 21:13:12
(This post was last modified: 2013-01-23, 22:13:41 by jason.dixon.email.)
Hmm yeah that is strange. I wonder why the plugin wants to clear all $_POST data. I can't really see a need for it.
Timbow, I think this solution above does solve it. It looks like this plugin might be on some systems (actually works fine on mine heh) accessing the save file first, before Simple Input Tabs does. Then when it does access it, it is "unsetting" (deleting) all the data being sent for saving, so when SIT gets around to storing its data (the tabs content) there is nothing to store. <- May not be entirely accurate.
2013-01-23, 21:48:46
(2013-01-23, 21:13:12)jason.dixon.email Wrote: Hmm yeah that is strange. I wonder why the plugin wants to clear all $_POST data. I can't really see a need for it. It doesn't clear the post data, but strips the slashes if magic quotes is on. But it does so in a strange way - I don't think that the parameters are escaped!? But code like this does make sense, if you don't want to deal with slashes/magic quotes in your main code - I'm using something like this in some of my plugins (but only in the backend, where I'm sure that all parameters are for my plugin). |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)