0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

Retrieve and display both Author and Author Alias

    • Hernan's Avatar
    • Hernan
    • Sr. Rocketeer
    • Posts: 147
    • Thanks: 0
    • Student.

    Retrieve and display both Author and Author Alias

    Posted 13 years 11 months ago
    • Hi guys,

      I'm having a little problem here and maybe some of you know how to do this.

      I need to be able to display both, article's author and author alias. This is not in Joomla content but in Raxo Allmode. A module for displaying news.

      I have successfully retrieved the author alias' info, and also displayed it. The problem is that when I display the author's alias, the author's name disappear.

      This is the code that retrieves the Alias (it's the same for author, just replace created_by_alias for author)
      <?php if ($item->created_by_alias) { ?>
      <span class="xxx_created_by_alias">
      <?php echo $item->created_by_alias; ?></span>
      <?php } ?>

      As I said, this works very well, except from the fact that when the Alias is visible, the author's name disappear.

      Any of you know how to display both at the same time??

      Thanks!

      Hernán.
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Retrieve and display both Author and Author Alias

    Posted 13 years 11 months ago
    • Hi, it's hard to say without seeing all of your code, but wouldn't you need 2 blocks of code? One with the created_by_alias and one with the Author. If you're just using what you've posted above you'll only see one or the other. Copy and paste it and set one for the author and one for the alias, so you have one for each. Hope that helps, if not, post more of the code you're working with.
    • The difficult we do immediately, the impossible takes a little longer.
    • Hernan's Avatar
    • Hernan
    • Sr. Rocketeer
    • Posts: 147
    • Thanks: 0
    • Student.

    Re: Retrieve and display both Author and Author Alias

    Posted 13 years 11 months ago
    • Hi Cliff, thanks for answering :)


      Actually I have two, one for author and one for alias, but still the problem persists. The problem is that, when I publish an alias, this replaces the author instead of showing both at the same time.

      I am afraid I cannot publish much more code, since the extension I am using is commercial, and I am quite sure the developer wouldn't be very happy if I publish his code in a public forum. I would do it if it was a free extension, but I'm afraid I have to respect the developer's rights in this one.

      I will have to try with them, I already tried, but I haven't received any answer from them. Maybe the problem is a bit harder than I thought.


      Cheers!

      Hernán.
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Retrieve and display both Author and Author Alias

    Posted 13 years 11 months ago
    • I understand, unfortunately there's not much else I can tell you as I have no idea what you're working with. We usually can't do much with 3rd party stuff here anyway, your best bet is to keep trying to contact their support.
    • The difficult we do immediately, the impossible takes a little longer.

Time to create page: 0.087 seconds