Newsmag – 2 little questions (Post by author and Lightbox)

Posted in: Newsmag
Post count: 12

Hello! First of all, wanted to say thank you for such a flexible theme. Great stuff, after a month of using it I have found and added all the stuff I needed it seems, except 2 things.

The first and the most important one. Is it possible to add a filter (similar to “posts by the current author”) to a block? Or even make a new one that would work? What I want is to have one of the blocks (13) that would automatically show current author’s posts in the website/author/*** page. Trying to add “posts by member” to members profile pages.

And the second question.

When I have lots of photographs inside a post and using modal function for each of them, lightbox works perfectly and scrolls my page down along with content, sidebar scrolls up and down also fine. However, if you have a sidebar with more then 3 modules on it (eg. tall block with a few modules – 4th module (post in my case) is below the bottom screen line) and then scroll the page down by using lightbox several times (eg. 5-6 or more photographs), you can see that the sidebar scrolls down and stops (if it needs to) as well, but as soon as you close the lightbox by clicking outside a photograph, block with modules just disappears from the sidebar. Apparently it can be found at the bottom of the page by scrolling the page to the very bottom, or it appears immediately if you scroll up.

Thank you very much in advance.

Post count: 6600

Hi,

Thanks!

1. Not really sure what you need as based on what I’ve understood from your description this filter by author/user is already available in theme’s block settings: http://screencast.com/t/Tm2djE9dHgv and the author page filter just the post’s from that author, for example take this author page from our demo: http://demo.tagdiv.com/newsmag/author/marius/

2. Could you please also provide a link to your site where we can inspect this issue.

Thanks

Post count: 12

Hello Lucian! Thanks for such a quick reply. I must have been blind, missed the author’s template. Template is almost perfect. Sorry if it is a hassle for you but could you give me a little hint how to link my to the current author’s page? Do you use get_the_author function?

This is my current modified Logout section. Just need making one of the icons linking to the author’s page. Right now both of the icons linking to the pages made by me.

//<span class="td-sp-ico-logout"></span> echo '<ul class="top-header-menu td_ul_logout"> <li class="menu-item">' .'' . '<li class="menu-item">' . '

And regarding my second question. I’m not gonna be using side panel in my little project, so no worries. However, I have made a little video so you can see what it was all about. https://www.youtube.com/watch?v=t3kNb7HF-z4&feature=youtu.be

Thank you for your help and support.

  • This reply was modified 11 years by Riskdiver.
  • This reply was modified 11 years by Riskdiver.
  • This reply was modified 11 years by Riskdiver.
  • This reply was modified 11 years by Riskdiver.
Post count: 12

Hey Lucian. Sorry for being such a noob, I’m a learner 🙂 I have found how to do it, so no worries mate. href= ‘ . get_author_posts_url($current_user->ID) . ‘ class=”td-icon-user”>’ . ‘

Just 2 more questions if I can. Can we add a pull-down ajax filter to a block on the author’s posts template (so users can use it to filter the posts (7 days popular, random, etc. filter or categories filter) and can we modify classic pagination of the author’s post template (is it loop.php?) for similar what blocks have (infinite load, Load More button etc.)?

  • This reply was modified 11 years by Riskdiver.
Post count: 6600

Hi,

Glad you’ve managed to get it done.

1. Regarding that block on authors template it can’t be done using the page builder as the author template isn’t customizable however you could try to create your block using the VC page builder then use the do_shortcode function to place block’s shortcode to the template here: http://screencast.com/t/uuJFRN3aWNvQ
Should get a result similar to this: http://screencast.com/t/TUGrkBES9rF

2. On author template the post’s section is given by the loop.php template and for the it can’t be set other pagination other than the numbered one so the infinite/load more pagination can’t be used there, just on blocks. Here is the pagination called on author template on each sidebar case: http://screencast.com/t/KKsV9rFB4http://screencast.com/t/SmJ0BQrns

Thanks

Post count: 12

Hi Lucian. That’s just perfect! Of course, do_shortcode is so flexible, all my nice blocks could be placed anywhere! Thank you very much for the thorough explanation and wonderful support. Definitely will recommend your theme and your team to the people. I wish “tagdiv” all the best!

With best regards 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newsmag’ is closed to new topics and replies.