Jump to content
WebFlake
  • 0

Repeat an element in every post?


OpFor

Question

Hi guys, quick question.

 

Is it possible to make a certain element print in every post? For example, let's say I have a box that is black. I want that box to show in every post made by everyone in a specific position. Is it possible? I'm assuming so, but I don't really know how. I want this example box to appear in every post.

 

Thanks in advance for any answers.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

I think you wanted class instead of id for the arrow..

 

But if you put it here

			<div class='post_body'>				<p class='posted_info desc lighter ipsType_small'>					{$this->lang->words['posted']} <abbr class="published" itemprop="commentTime" title="{parse expression="date( 'c', $post['post']['post_date'] )"}">{parse date="$post['post']['post_date']" format="long"}</abbr>				</p>				<if test="repHighlight:|:$this->settings['reputation_highlight'] AND $post['post']['rep_points'] >= $this->settings['reputation_highlight']">					<p class='rep_highlight'>{parse replacement="popular_post"}<br />{$this->lang->words['popular_post']}</p>				</if>				<div itemprop="commentText" class='post entry-content <if test="$post['post']['_repignored'] == 1">imgsize_ignore</if>'><div> arrow ******************************************************* Here </div>					{$post['post']['post']}					{$post['post']['attachmentHtml']}<if test="in_array($post['post']['post_count'],array(1,$topic['posts']+1))">I am adding to post {$post['post']['post_count']}</if>					<br />

 

It will show in all posts in the topic ...

Link to comment
Share on other sites

  • 0

I don't know what you mean by position, But the answer is yes.

Put it in the template Topic View > Post . Find 

{$post['post']['post']}

 

and put it before or after it.

OK, so I tried that, it doesn't work. I'm using this code:

 

<div id='user_arrow'></div>

That's all I need since I'm controlling everything else via CSS. 

 

EDIT: I actually tried span class instead and it works, but it only shows on the first post.

Edited by OpFor
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...