IP.Board Tutorials

Add Message before the First post

Submitted by erevan, , Thread ID: 85958

Thread Closed
25-04-2018, 01:22 AM
#1
Add Message before the First post

Preview

[Image: ZPLEKeR.png]

Well this tutorial I did to assist a Member, so come on.

AdminCP >> Skin Theme >> Edit Html & Css >> search for topic in forums/front/topics/ and search for

Code:
<div data-controller='core.front.core.commentFeed,forums.front.topic.view, core.front.core.ignoredComments' {{if settings.auto_polling_enabled}}data-autoPoll{{endif}} data-baseURL='{$topic->url()}' {{if $topic->isLastPage() and !$topic->isQuestion()}}data-lastPage{{endif}} data-feedID='topic-{$topic->tid}' class='cTopic ipsClear ipsSpacer_top'>
  {{if $topic->isQuestion() && $question}}
    <div class='ipsAreaBackground ipsPad'>
      <h2 class='ipsType_sectionHead ipsType_reset ipsSpacer_bottom'>{lang="question_title"}</h2>
      {template="postContainer" group="topics" app="forums" params="$topic, $question, $votes, 'cPostQuestion'"}
    </div>

Add above this:

Code:
<div class='ipsMessage ipsMessage_error'>
Make a constructive comment.
</div>

You can also change the Styles of messages.

Warning

Code:
<div class='ipsMessage ipsMessage_warning'>
Make a constructive comment.
</div>

Success

Code:
<div class='ipsMessage ipsMessage_success'>
Make a constructive comment.
</div>

Information

Code:
<div class='ipsMessage ipsMessage_information'>
Make a constructive comment.
</div>

RE: Add Message before the First post

#2
i'd recommend putting this in hide tags to avoid leeching
[Image: 5K1zVUV.png]

RE: Add Message before the First post

#3
Thanks erevan for sharing. Pretty useful ??.

25-04-2018, 01:46 AM
Solitaire Wrote:
i'd recommend putting this in hide tags to avoid leeching

Ye, thats how I gonna use it.

Users browsing this thread: 1 Guest(s)