The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Show first message on each page for specific topics

Go down

Show first message on each page for specific topics

Post by Kami-sama on January 11th 2018, 8:13 pm

Technical Details


Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : Yourself
Forum link : ( link is hidden, you must reply to see )

Description of problem

Hey all Smile

I am looking how to show first message on each page for specific topics, not every topic in the forum.

I checked this topic: http://help.forumotion.com/t153484-first-post-shown-in-specified-forum?highlight=show+first+post

Yet, the code did not work for me.
@"Justice™️" Maybe you know why the code does not work for me?
avatar
Kami-sama
Forumember

Female Posts : 397
Reputation : 12
Language : EN, RU, DE, LT
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Re: Show first message on each page for specific topics

Post by SLGray on January 11th 2018, 8:50 pm

Did you change this part?
Code:
var forum=11;


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 42731
Reputation : 3010
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Re: Show first message on each page for specific topics

Post by Kami-sama on January 11th 2018, 9:01 pm

Yes, of course.

That would be for example 154925 (this topic).
avatar
Kami-sama
Forumember

Female Posts : 397
Reputation : 12
Language : EN, RU, DE, LT
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Re: Show first message on each page for specific topics

Post by SLGray on January 11th 2018, 9:29 pm

Try this:
var topic=


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 42731
Reputation : 3010
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Re: Show first message on each page for specific topics

Post by Kami-sama on January 11th 2018, 9:59 pm

The code checks URL, so "forum" should be number included in the URL. So "t154925" should be used in the script condition as factor.

Changing var element name will not work. It does not matter what var name is.
avatar
Kami-sama
Forumember

Female Posts : 397
Reputation : 12
Language : EN, RU, DE, LT
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Re: Show first message on each page for specific topics

Post by Kami-sama on January 17th 2018, 5:16 pm

BUMP Smile
avatar
Kami-sama
Forumember

Female Posts : 397
Reputation : 12
Language : EN, RU, DE, LT
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum