test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • fdr77 Friend
    #164007

    How can I change this string to tell to take the author’s name than the creator
    /myroot/modules/mod_jabulletin/tmpl/default.php

    <?php if ($showcreater) : ?>
    <br/> <span class="createby"><?php echo $item->creater;?></span>

    I tried so

    <?php if ($showcreater) : ?>
    <br/> <span class="createby"><?php echo $item->creater->get("name");?></span>

    but don’t work

    thangnn1510 Friend
    #391594

    Hi fdr77!

    Creator and Author are the same. Which field you want to get?

    fdr77 Friend
    #391666

    I would this


    1. ja2
    thangnn1510 Friend
    #391760

    simply change the line 288 of helper.php in modulesmod_jabulletin from:

    $lists[$i]->creater = isset($row->creater)?$row->creater:"";

    to

    $lists[$i]->creater = isset($row->created_by_alias)?$row->created_by_alias:"";

    fdr77 Friend
    #391818

    Thank you 🙂

    fdr77 Friend
    #391845

    wanting to do the same thing with ja news pro module?

    change so in the
    /myroot/modules/mod_janewspro/tmpl/default/blog_item.php
    /myroot/modules/mod_janewspro/tmpl/linear/blog_item.php
    /myroot/modules/mod_janewspro/tmpl/mobile/blog_item.php
    ??

    <?php if ($showcreator) : ?>
    <span class="createby"><?php echo $row->creator->get("created_by_alias:");?></span>

    Thanks

    thangnn1510 Friend
    #391942

    <em>@fdr77 241228 wrote:</em><blockquote>wanting to do the same thing with ja news pro module?

    change so in the
    /myroot/modules/mod_janewspro/tmpl/default/blog_item.php
    /myroot/modules/mod_janewspro/tmpl/linear/blog_item.php
    /myroot/modules/mod_janewspro/tmpl/mobile/blog_item.php
    ??

    <?php if ($showcreator) : ?>
    <span class="createby"><?php echo $row->creator->get("created_by_alias:");?></span>

    Thanks</blockquote>

    Please change:

    <?php if ($showcreator) : ?>
    <span class="createby"><?php echo $row->creator;?></span>
    <?php endif; ?>

    to

    <?php if ($showcreator) : ?>
    <span class="createby"><?php echo $row->created_by_alias;?></span>
    <?php endif; ?>

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 2 voices, and was last updated by  thangnn1510 13 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum