Image in every topic

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
User avatar
jawwad20
Registered User
Posts: 10
Joined: Sat Oct 07, 2017 9:00 pm

Image in every topic

Post by jawwad20 » Sun Nov 26, 2017 4:54 pm

Good evening, I want to make a thing, but I don't know how :lol: In one single categories I want to appear an image, I tried with forum_id and post_id but doesn't works how I want :(
Image
You see, the image appear in every message, I want to appear just in the first message, you can help me to make it? Thanks for your time and sorry for my bad english.
Have a nice evening. :D

User avatar
Crizzo
Translations & International Support Teams Manager
Translations & International Support Teams Manager
Posts: 643
Joined: Thu Apr 23, 2009 1:20 pm
Location: Germany
Name: Christian
Contact:

Re: Image in every topic

Post by Crizzo » Sun Nov 26, 2017 5:05 pm

Hi

How did you implement it?

Try it like this: https://www.phpbb.com/support/docs/en/3 ... in-phpbb3/

Regards
My extensions for phpBB: crizzo.de
German phpBB Support at www.phpbb.de

User avatar
jawwad20
Registered User
Posts: 10
Joined: Sat Oct 07, 2017 9:00 pm

Re: Image in every topic

Post by jawwad20 » Sun Nov 26, 2017 5:57 pm

Crizzo wrote:
Sun Nov 26, 2017 5:05 pm
Hi

How did you implement it?

Try it like this: https://www.phpbb.com/support/docs/en/3 ... in-phpbb3/

Regards
What did you gave me isn't what I need, i implement it with:

Code: Select all

<!-- IF FORUM_ID eq '2'--><img src="link"/><br /><!-- ENDIF -->
I want that image appear just in the first post not in all the posts.

User avatar
jawwad20
Registered User
Posts: 10
Joined: Sat Oct 07, 2017 9:00 pm

Re: Image in every topic

Post by jawwad20 » Tue Nov 28, 2017 9:37 pm

up

User avatar
Crizzo
Translations & International Support Teams Manager
Translations & International Support Teams Manager
Posts: 643
Joined: Thu Apr 23, 2009 1:20 pm
Location: Germany
Name: Christian
Contact:

Re: Image in every topic

Post by Crizzo » Tue Nov 28, 2017 9:40 pm

Hi,

in my link you need just to implement your image quite similar, like in the section "before or after first post".

Where is the problem?

Regards
My extensions for phpBB: crizzo.de
German phpBB Support at www.phpbb.de

User avatar
jawwad20
Registered User
Posts: 10
Joined: Sat Oct 07, 2017 9:00 pm

Re: Image in every topic

Post by jawwad20 » Wed Nov 29, 2017 7:13 pm

Crizzo wrote:
Tue Nov 28, 2017 9:40 pm
Hi,

in my link you need just to implement your image quite similar, like in the section "before or after first post".

Where is the problem?

Regards
Your code look like this:
Image
I want to appear just only once not to all posts.

User avatar
Crizzo
Translations & International Support Teams Manager
Translations & International Support Teams Manager
Posts: 643
Joined: Thu Apr 23, 2009 1:20 pm
Location: Germany
Name: Christian
Contact:

Re: Image in every topic

Post by Crizzo » Wed Nov 29, 2017 7:41 pm

Use this IF-sentence to insert code only in the first posting:

Code: Select all

<!-- IF postrow.S_FIRST_ROW -->
your stuff here
<!-- ENDIF -->
And insert it within the <div class="content">-Element in: \phpBB3\styles\prosilver\template\viewtopic_body.html before {postrow.MESSAGE}
My extensions for phpBB: crizzo.de
German phpBB Support at www.phpbb.de

User avatar
jawwad20
Registered User
Posts: 10
Joined: Sat Oct 07, 2017 9:00 pm

Re: Image in every topic

Post by jawwad20 » Wed Nov 29, 2017 11:18 pm

Crizzo wrote:
Wed Nov 29, 2017 7:41 pm
Use this IF-sentence to insert code only in the first posting:

Code: Select all

<!-- IF postrow.S_FIRST_ROW -->
your stuff here
<!-- ENDIF -->
And insert it within the <div class="content">-Element in: \phpBB3\styles\prosilver\template\viewtopic_body.html before {postrow.MESSAGE}
Thanks very much!

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: No registered users and 9 guests

cron