Add-on Does anyone use ACE by Audentio / ThemeHouse -- Could really use a little help, cause I'm stuck! 🙏

Chernabog

Well-known member
Hey all! I was going to put this into the regular forums, because I think I'd have a better chance of a response there -- but I think that's frowned upon... so hopefully someone may find me here in the out fields. Gonna tag @ThemeHouse @Lukas W. and @Dad. -- sorry -- I just know that you're people who may be able to point me in the right direction, if still checking out the forums... 🙏

I am running the ACE theme with Feeds on XF 2.2 -- getting some look and feel challenges down before we move over to XF 2.3 and the updated ACE theme.

While most everything looks rather good (in my very, very humble opinion) there's two challenges with placement that I am hoping is nothing but a simple template fix, somewhere. So here goes:

I've pushed our navigation menu to a hamburger, because it is much cleaner looking but this is how it looks:

1737602156717.webp

And I don't know if that looks "OK" to anyone else? To me the hamburger being so far removed to the left just seems odd (I am open to people telling me I'm being ridiculous) -- so I tried changing the style properties for header/nav to "Right align navigation" and it pushes all the content to the far left of the screen which seems even more off. I was hoping there would be a way to move the hambuger closer to the right so it's proper right aligned before the avatar -- any thoughts?

My biggest concern however, is with AUDFEEDS -- we share a good deal of widgets before you get to our 'feeds' display -- unfortunately the feeds filter and the +Create post button stay at the top of the page, above the widgets and such, rather than appear directly above the actual feeds as shown before:

1737602473388.webp
^^ This shows, which is part of FEEDS ^^ above our widget content, rather than above the actual feeds where it would make more sense AFTER our widgets display:

1737602554872.webp

More than my OCD/ADHD with the navigation alignment -- finding a way to pull that activity filter and create button to appear above the actual feeds would be a happy moment.

Sorry to be a pain -- any insight is really appreciated! We're a bit tight on funds, but I'd even be willing to pay a reasonable fee to have someone move that filter and create button down to appear above feeds - as well - if possible.

Thanks all!

Jason
 
Probably the simplest is to add the widgets to the template manually; In the audfeeds_feed_view template you can add them right after line 6, which contains this:

<xf:page option="headerHtml">

However, you'll also want to add the following to audfeeds_tab_bar.less (at the bottom is fine) - we're adding it there instead of extra.less to just scope this change in for ONLY the pages with the feed tab bar.:

.p-pageWrapper .p-body-header .pageContent { flex-direction: column; }

And, just in case you weren't aware, you can add a widget directly to a template using the following:

<xf:widget key="theKeyForTheWidget" />

Replace theKeyForTheWidget with whatever is set in "Widget key" for the widget you wanna add.
 
Probably the simplest is to add the widgets to the template manually; In the audfeeds_feed_view template you can add them right after line 6, which contains this:

<xf:page option="headerHtml">

However, you'll also want to add the following to audfeeds_tab_bar.less (at the bottom is fine) - we're adding it there instead of extra.less to just scope this change in for ONLY the pages with the feed tab bar.:

.p-pageWrapper .p-body-header .pageContent { flex-direction: column; }

And, just in case you weren't aware, you can add a widget directly to a template using the following:

<xf:widget key="theKeyForTheWidget" />

Replace theKeyForTheWidget with whatever is set in "Widget key" for the widget you wanna add.

@willl I sincerely appreciate your reply to this message! I love the team over at Audentio, they've been very good to me and with a previous project I was working on but had to scrap -- so please send my best to Matt, Sarah, Victoria, Dalton, and Mike -- hopefully if they do remember me, it's not bad (Jason VH).

You, good sir, are amazing! I did a quick test with one widget using the information provided above and it's perfect - much better flow! So thank you very much for that.

I am curious, to make it easier to move widgets around -- is it possible, somehow, that I can create a widget position here:

1737655268223.webp

Rather than manually adding widgets in @ line 7 and onward? Cause we do flip things up a bit here and there. Other than that, I guess my only other question would be will these changes be impacted when I do upgrades or updates? I would assume not since they're all within the child themes?

Thanks again, Will! Let me know where to send the cookies!!

Jason
 
No problem!

Adding a widget position is a bit more work, and would require an addon instead.

To simplify things further, you could create a new template file, and include that template in instead of the widgets directly, and just put the widgets alone in that template file. As an example:

  1. Create a new template named "tgl_top_widgets"
  2. Put the widget placement code inside that template
  3. Replace line 7 in audfeeds_feed_view (from your screenshot above) with <xf:include template="tgl_top_widgets" />
  4. Profit!
As far as impact when upgrading, there's minimal risk there; The only time you'll have to worry about it is if we modify the 2 templates we mentioned earlier, but XF's auto-merge should be able to handle merging in changes, and even if not, it'll just be a matter of reverting the necessary templates and re-adding the changes in.
 
No problem!

Adding a widget position is a bit more work, and would require an addon instead.

To simplify things further, you could create a new template file, and include that template in instead of the widgets directly, and just put the widgets alone in that template file. As an example:

  1. Create a new template named "tgl_top_widgets"
  2. Put the widget placement code inside that template
  3. Replace line 7 in audfeeds_feed_view (from your screenshot above) with <xf:include template="tgl_top_widgets" />
  4. Profit!
As far as impact when upgrading, there's minimal risk there; The only time you'll have to worry about it is if we modify the 2 templates we mentioned earlier, but XF's auto-merge should be able to handle merging in changes, and even if not, it'll just be a matter of reverting the necessary templates and re-adding the changes in.

Hey, thanks again! I had made a previous reply to this, but erased it as it was a little too noisy.

I created a template, and did as you mentioned above, but then nothing from the template showed. If I do the original mention, above, by hand coding each widget that did work again - as it did before.

I was playing a little in development mode looking to see if there were any other options available, and that made me wonder two things:

Could I move the audfeeds above content position to show the items listed there on line 7, above the bar? That would fix everything period. I thought that may be easier than going a custom position and plugin route?

Sorry to be a PITA, but I do appreciate you @willl -- Thank you again!

Jason
 
With how the feed bar is inserted, that won't be any easier actually.

When you created the template, did you also use the <xf:include template="tgl_top_widgets" /> code to load the template where the widgets should go? Were there any errors with the template in the error log when attempted to load the page after inserting the code?
 
With how the feed bar is inserted, that won't be any easier actually.

When you created the template, did you also use the <xf:include template="tgl_top_widgets" /> code to load the template where the widgets should go? Were there any errors with the template in the error log when attempted to load the page after inserting the code?

I put that on <xf:include template="tgl_top_widgets" /> on line 7 and I was logged into the proper theme that I had added that code under -- the template was already made.

Now, I am not tech savvy with this - which is probably a little bad after all my years using XenForo - when I made the template I just put each widgets include code one on each line and that was it. I didn't add anything else to the template, that I may have needed to?
 
I put that on <xf:include template="tgl_top_widgets" /> on line 7 and I was logged into the proper theme that I had added that code under -- the template was already made.

Now, I am not tech savvy with this - which is probably a little bad after all my years using XenForo - when I made the template I just put each widgets include code one on each line and that was it. I didn't add anything else to the template, that I may have needed to?

That's what should be done, so I'd need to actually take a look in order to troubleshoot further. Feel free to submit a ticket and we can coordinate a little better there :)
 
Did you manage to get this working for you on 2.3? I'm struggling and not sure if it's just not compatible or what.
 
Back
Top Bottom