• Resolved love2playgames

    (@love2playgames)


    Hi asgaros,

    I added in few things in the forum.php

    I try to put a folder in the child-theme like others that I did. So when I update the plugin later, it wouldn’t overwritten it…

    I used folder and the sub-folder. it wouldn’t work?

    e.g. asgaros-forum/includes/forum.php

    Can you possible to help me what’s right way to do it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Asgaros

    (@asgaros)

    Hello @love2playgames

    Asgaros Forum does not have a template-engine yet. What changes do you plan to make? Almost all of them can get implemented by custom-css or hooks/filters. If additional hooks/filters are required, I can implement them in an upcoming update as well.

    Thread Starter love2playgames

    (@love2playgames)

    Hi Asgaros,

    Oh, I didn’t touch any codes, etc. All I did is added in some words around by TOPIC and the right side replied by.

    e.g the word by for both side, I edited in topic-by, and replied-by

    So I want put in the child-theme before the updater later to stay safe…

    Any way to put the forum.php and/or other php to the child?

    Please advise, Thanks

    Plugin Author Asgaros

    (@asgaros)

    Can you show some exact code-parts you have changed?

    Child-themes are not possible yet because those require a complete encapsulation of logic and content. I will add this in a future release but it will not be in the very close future.

    Hi Asgaros,

    Btw, www.remarpro.com just reinstated my account this morning. So Love2PlayGames username is no longer exist for posting..

    Anyway, nothing major but just do a bit of it…This is the what I had added. (Please see the 3 words i had bold)

    echo ‘<div class=”topic ‘.$topic_type.'”>’;
    echo ‘<div class=”topic-status dashicons-before ‘.$this->get_status_icon($topic_object).’ ‘.$unread_status.'”></div>’;
    echo ‘<div class=”topic-name”>’;
    echo ‘TOPIC get_link(‘topic’, $topic_object->id).'” title=”‘.$topic_title.'”>’.$topic_title.’‘;
    echo ‘<small>’;
    echo __(‘STORY-BY‘, ‘asgaros-forum’).’ ‘.$this->getUsername($topic_object->author_id);

    // Show topic stats.
    echo ‘<small class=”topic-stats”>’;
    $count_answers_i18n = number_format_i18n($topic_object->answers);
    echo sprintf(_n(‘Total Answered %s’, ‘Total Answered %s’, $topic_object->answers, ‘asgaros-forum’), $count_answers_i18n);

    ——————————
    So, if I can put it in the child-theme? It will safe me a lot of time don’t need to redo again whenever I do updates.

    Please advise help,
    Thanks

    Plugin Author Asgaros

    (@asgaros)

    @damndramaqueen

    I will take it under consideration when I develop the new child-theme functionality. Luckily at the moment your changes are relatively simple so it should be easy to add them again after an update.

    When child-themes will become available it should be not necessary to update the files anymore.

    Hi Asgaros,

    Actually I have few more and + several more for edit/add in. But it will do for now since it wouldn’t work if to pull over to the child.

    But great, looking forward for the capability update.

    Thanks for considered it. ??

    • This reply was modified 5 years, 7 months ago by DamnDramaQueen. Reason: add extra word
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘CHILD-THERE’ is closed to new replies.