How to use suffusion_admin_modify_option_list

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

How to use suffusion_admin_modify_option_list

Postby mcfilmmakers » 30 Jun 2012, 13:17

I am REALLY excited to use the suffusion_admin_modify_option_list filter, but how is it supposed to be used?

Say I have a file called byline-both.php that I want to add as a byline option, how would I do so using the above filter?
mcfilmmakers
 
Posts: 60
Joined: 28 May 2012, 12:25

Re: How to use suffusion_admin_modify_option_list

Postby Colin » 30 Jun 2012, 13:29

Sayontan is on holiday at the moment and this is so new I doubt many people have tried it yet. As a result you will either have to wait until Sayontan is back from holiday or experiment and then tell us what you find.
Colin
 
Posts: 2857
Joined: 27 Oct 2009, 10:46

Re: How to use suffusion_admin_modify_option_list

Postby mcfilmmakers » 30 Jun 2012, 14:12

I have figured it out! The following keeps the Other Graphical Elements -> Post and Page Bylines options the same:

Code: Select all
add_filter( 'suffusion_admin_modify_option_list', 'custom_byline' );

function custom_byline($option_list) {
   return $option_list;
}


Now, my problem is the following:

suffusion_admin_modify_option_list only allows you to modify the Other Graphical Elements -> Post and Page Bylines options (awesome!) but does not allow you to modify Custom Types -> Layout byline display options (bummer), which is what I thought it was supposed to do. While we're at it, there are fewer Custom Types -> Layout byline display options than there are Other Graphical Elements -> Post and Page Bylines options. Case in point: Custom Types -> Layout is missing Pullouts on the outside post for both left and right sides:

Other Graphical Elements -> Post and Page Bylines options:
    Theme Default
    Pullout on the left
    Pullout on the right
    Pullout on the left outside post
    Pullout on the right outside post
    Single line above post
    Single line below post
    custom options added through suffusion_admin_modify_option_list

Custom Types -> Layout byline display options
    No Bylines
    Single line above post
    Single line below post
    Pullout on the left
    Pullout on the right
    cannot add custom options through suffusion_admin_modify_option_list

Another thing to add is the option under Byline Content to remove the post title just as you can with the date, posterd by, comments, and permalinks.

So while I have to hope the ability to apply my custom options to custom post types will be added in the future, how do I add a byline display option to the $option_list variable in my code above? Surely we don't need Sayontan to explain this... right?

BTW, thank you Sayontan for the byline configuration options! They work perfectly!
Last edited by mcfilmmakers on 30 Jun 2012, 15:25, edited 2 times in total.
mcfilmmakers
 
Posts: 60
Joined: 28 May 2012, 12:25

Re: How to use suffusion_admin_modify_option_list

Postby mcfilmmakers » 30 Jun 2012, 14:26

For those interested, suffusion_admin_modify_option_list is defined in theme-options-renderer.php
mcfilmmakers
 
Posts: 60
Joined: 28 May 2012, 12:25

Re: How to use suffusion_admin_modify_option_list

Postby mcfilmmakers » 06 Jul 2012, 16:44

So it's been a while...

Has anyone figured out how to use this yet? I'm at a complete loss.
mcfilmmakers
 
Posts: 60
Joined: 28 May 2012, 12:25

Re: How to use suffusion_admin_modify_option_list

Postby mcfilmmakers » 09 Jul 2012, 19:49

According to Sayontan, 4.2.5 adds more support for suffusion_admin_modify_option_list but it seems that NO ONE knows how to use this.

I've tried everything I could think of. Clearly, it is beyond my understanding.

Has anyone figured this out yet?
mcfilmmakers
 
Posts: 60
Joined: 28 May 2012, 12:25

Re: How to use suffusion_admin_modify_option_list

Postby drake » 09 Jul 2012, 20:16

You will have to wait for returning of Sayontan. This or bylines are for sure out of my priorities list.
drake
 
Posts: 3860
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania

Re: How to use suffusion_admin_modify_option_list

Postby Colin » 09 Jul 2012, 23:15

drake wrote:You will have to wait for returning of Sayontan. This or bylines are for sure out of my priorities list.



Mine too.

Sayontan will be back about the 20th.
Colin
 
Posts: 2857
Joined: 27 Oct 2009, 10:46

Re: How to use suffusion_admin_modify_option_list

Postby mcfilmmakers » 10 Jul 2012, 15:48

Alrighty, thanks!
mcfilmmakers
 
Posts: 60
Joined: 28 May 2012, 12:25

Re: How to use suffusion_admin_modify_option_list

Postby mcfilmmakers » 21 Jul 2012, 09:48

Here's hoping Santoyan can explain how to use the function...
mcfilmmakers
 
Posts: 60
Joined: 28 May 2012, 12:25

Next

Return to Support Requests

Who is online

Users browsing this forum: Google [Bot], qkopfkqn and 3 guests