Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] PHP code for HTML Description
#5
Not Solved
(12-28-2017, 07:14 PM)laie_techie Wrote: @Noobly, how are you going to populate it for each thread? Who is going to write each thread's description?

You can modify the showthread template to include variables after $headerinclude, then have a plugin register a function on the showthread_start hook (I'd have to look at the code to verify this hook's real name) to populate that variable.

I assumed the default behavior for myBB would be to use the first 100 chars of the OP as the description, if that is not the case then it must be added to the development board as it's a critical aspect of SEO and must be native behavior.
Reply


Messages In This Thread
PHP code for HTML Description - by Noobly - 12-27-2017, 06:10 PM
RE: PHP code for HTML Description - by .m. - 12-28-2017, 02:36 AM
RE: PHP code for HTML Description - by Noobly - 12-28-2017, 02:06 PM
RE: PHP code for HTML Description - by Noobly - 12-30-2017, 12:15 PM
RE: PHP code for HTML Description - by Noobly - 03-05-2018, 06:47 AM
RE: PHP code for HTML Description - by RateU - 03-05-2018, 06:27 PM
RE: PHP code for HTML Description - by Noobly - 03-06-2018, 06:39 AM
RE: PHP code for HTML Description - by RateU - 03-06-2018, 01:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)