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

View previous topic View next topic Go down

Show first message on each page for specific topics

Post by Kami-sama on January 12th 2018, 2:13 am

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 : 385
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 12th 2018, 2:50 am

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 : 41452
Reputation : 2849
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 12th 2018, 3:01 am

Yes, of course.

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

Female Posts : 385
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 12th 2018, 3:29 am

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 : 41452
Reputation : 2849
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 12th 2018, 3:59 am

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 : 385
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, 11:16 pm

BUMP Smile
avatar
Kami-sama
Forumember

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

http://hogas.huhohi.com/

Back to top Go down

View previous topic View next topic Back to top


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