• Resolved traemccombs

    (@traemccombs)


    Howdy, and thanks for such an AWESOME plugin! Great work.

    I was hoping you might consider adding support in the future for “Rotating” TopBar’s. The idea is that say you have 10 TopBars. And you can set a “Time” that each bar will display before the next one rolls in.

    Example:

    TopBar 1 – Test Howdy! (Displays for 9000ms)
    TopBar 2 – The Next Additional Thing! (Displays for 9000ms)
    TopBar 3 – More stuff! (Displays for 9000ms)

    This way you’d have 3 TopBars that would rotate out every 9000ms.

    Make sense?

    Thanks!

    https://exinferno.com/ You can see we are trying to work TopBar into our site.

    Feel free to email me @:

    traemccombs _IS_AT_ gmail _*DOT!_ com

    https://www.ads-software.com/plugins/wp-topbar/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author rfgoetz

    (@rfgoetz)

    It is a good idea.

    I could create a new field for each TopBar; let’s call it “group_tag”. That would be free-form text field where you can put in Tag(s) for each grouping. Each Tag is comma delimited.

    Then, I could create a new global option on the main Admin Page that has “Groupings” as ON or OFF (called use_groupings.

    Next a new Tab, (right next to Samples) called “Groupings”.

    You would then see a new table where you can create Groupings. Each Grouping would have its own row. You could have an infinite number of groupings. Each Grouping would have a Name, an enabled/disabled toggle, all the options from the Control Tab, and a “group_selection” field. The group_selection field be used to match the new “groupings” field on each TopBar. If the Tag(s) you put in the group_selection field match a TopBar’s group_tag, then that TopBar would be shown with that Group.

    I would need to change the logic of how the plugin selects TopBars to show.

    1) If use_groupings if OFF — then use existing logic.
    2) If use_groupins is ON, then
    a) randomly select one grouping that is enabled and has valid control options for the page/post being viewed.
    b) now for that one grouping, select all the TopBars that match that group’s “group_selection” field.
    c) each TopBar would then go through the existing logic to see if it should be shown (e.g. Close Button logic, Control Logic, etc.)

    Finally, the Test Priority page would need to be changed. If use_groupings is ON, then I would prompt you to enter the Grouping you want to test.

    —–

    Does this make sense? Any flaws that you see?

    Bob

    Thread Starter traemccombs

    (@traemccombs)

    WoW Bob, that was some intense reading. ??

    I think however, while very cool, you may have misunderstood what I was asking, or better still, I asked incorrectly.

    I was simply wondering if there was a way to have all of the TopBars rotate out without having to reload the page.

    Like you could set it so that TopBar1, TopBar2, TopBar3, TopBar4, TopBar5 were all in a group like you mentioned, and then they would then rotate through with maybe some nice javascript transition thingy. Maybe dissolve between them, I don’t know.

    But what I’m talking about sounds quite simple compared to what you are talking about, or I simply don’t grok it.

    Nonetheless, thanks for getting back so quick!

    Finally, if you want to chit chat about this, I’m on our Mumble server right now: https://exinferno.com/ Look for “Sick” and we can talk! Perhaps I can put it into words easier than I can type it.

    Be well and thanks again!
    Trae (Sick)

    Plugin Author rfgoetz

    (@rfgoetz)

    OK — I’ve looked into this. It will take me a while to re-work the code and jquery to do what you want.

    Thread Starter traemccombs

    (@traemccombs)

    Bob, take your time. As long as I can have it yesterday I’m good. ??

    In all seriousness, thanks for all you do!

    Plugin Author rfgoetz

    (@rfgoetz)

    I’m working on this.. but I am having trouble getting the jQuery just right. Stay tuned.

    Thread Starter traemccombs

    (@traemccombs)

    If you need someone to test let me know. We’ll be happy to test it out over on our site:

    https://exinferno.com/

    Just please try and not blow us up. LOL. ??

    Thanks Bob!

    Plugin Author rfgoetz

    (@rfgoetz)

    I emailed you the beta code. thanks!

    Plugin Author rfgoetz

    (@rfgoetz)

    Glad it worked for you. I have pushed v. 5.13 out with these changes.

    I love this new feature. I was just wondering if it could be established a parameter that set the number of times the bars rotate. After that number of times the bars just would hide (or you can set to 0 to continuous rotation). Would it be possible? Would it be interesting?
    Thank U.
    Cheers!

    Thread Starter traemccombs

    (@traemccombs)

    I’d like to +1 what orensbruli said, and as well ask if there is a way things could rotate through randomly? /me hides from Bob. ??

    Plugin Author rfgoetz

    (@rfgoetz)

    orensbruli, that is a good idea. That is an easy change to make. I can get that in the next update. I can think of another option that needs to go with this change: do you want the last bar to be hidden or do you want the bar to stay on the page? [At some point, I’ll find the time to add the ability to close/reopen that last TopBar.]

    traemccombs, I think that is also a good idea.. but a little longer to implement. I think there could be many options:

    1) [as currently implemented] shows TopBars in decreasing order of priority
    2) Show in a pure random order, ignore priority weighting
    3) Show random order, respecting the priority weighting. This would force those that have a higher weighting to be displayed as the first TopBar shown more often than those with a lower weighting.

    Adding the option selection field is trivial. Also option 2 would be trivial. I feel that I need to offer option 3 — since I use the weighting to force some TopBars to be shown more.

    Any comments?

    Bob

    Plugin Author rfgoetz

    (@rfgoetz)

    orensbruli & traemccombs, try version 5.14.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Rotating TopBars’ is closed to new replies.