Topic Solved: [SOLVED] Prefix Placement

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
chuppito
Registered User
Posts: 10
Joined: Sun May 26, 2019 2:08 pm

Re: Topic Solved: [SOLVED] Prefix Placement

Post by chuppito » Wed May 29, 2019 9:55 pm

Thanks, does not work at home, I would do without
Thank you thanks again

User avatar
Mannix_
Registered User
Posts: 509
Joined: Sun Oct 25, 2015 2:56 pm
Contact:

Re: Topic Solved: [SOLVED] Prefix Placement

Post by Mannix_ » Thu May 30, 2019 7:24 am

mrgoldy wrote:
Wed May 29, 2019 1:47 pm
Well, if you use the viewtopic_topic_title_prepend template event, you can prepend something to the topic title.
This is correct but to make it work you need to disable the extension first (clear the extension data if there is any just to be safe). Then change the name of the viewtopic_topic_title_append.html to viewtopic_topic_title_prepend.html. After that you can enable the extension.
-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
HexagonHexagonRebornCleanSilverProject Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Want me to port a style to 3.2.x etc. contact me here or on twitter.

chuppito
Registered User
Posts: 10
Joined: Sun May 26, 2019 2:08 pm

Re: Topic Solved: [SOLVED] Prefix Placement

Post by chuppito » Thu May 30, 2019 7:41 am

Hello, Yes this is my way of proceeding. Otherwise the Forum don't work
With this technique I was able to place the button "accept response" before the others (viewtopic_body_post_buttons_after.html).

Here is a picture of the one that must be first
IMG_20190530_095245_opt.jpg
IMG_20190530_095245_opt.jpg (14.56 KiB) Viewed 826 times

User avatar
Mannix_
Registered User
Posts: 509
Joined: Sun Oct 25, 2015 2:56 pm
Contact:

Re: Topic Solved: [SOLVED] Prefix Placement

Post by Mannix_ » Thu May 30, 2019 9:14 am

chuppito wrote:
Thu May 30, 2019 7:41 am
Hello, Yes this is my way of proceeding. Otherwise the Forum don't work
With this technique I was able to place the button "accept response" before the others (viewtopic_body_post_buttons_after.html).

Here is a picture of the one that must be first

IMG_20190530_095245_opt.jpg
You want to move that green check mark icon in front of the logos text? If so i would try viewtopic_body_post_subject_before.html
-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
HexagonHexagonRebornCleanSilverProject Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Want me to port a style to 3.2.x etc. contact me here or on twitter.

User avatar
mrgoldy
Jr. Extension Validator
Posts: 1163
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: Topic Solved: [SOLVED] Prefix Placement

Post by mrgoldy » Thu May 30, 2019 9:28 am

Chuppito, I already explained that in this topic, but you are refering to the Post Subject, not the topic title.
See one of my earlier replies in this topic to clearly see the difference.

If you want to put it infront of the Post subject, it's a bit more difficult, you can use viewtopic_body_post_subject_before as mentioned, but that is not inside, so outside, the post subject's h3 element, which is a block element. So you might be able to do some CSS magic and make it float infront or what ever.

And you do not have to disable the extension, if you purge the cache and force refresh the page (Ctrl + F5), that usually works for me.

chuppito
Registered User
Posts: 10
Joined: Sun May 26, 2019 2:08 pm

Re: Topic Solved: [SOLVED] Prefix Placement

Post by chuppito » Fri May 31, 2019 11:23 am

Hello and thank you for your help. I didn't do it, it'll stay that way.
The developer did not answer this question :?

Thanks

Post Reply

Return to “phpBB Custom Coding”