FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » "INJECTION_POINT" (What does this do?)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
"INJECTION_POINT" [message #165448] Sat, 18 June 2011 11:35 Go to next message
Dayo is currently offline  Dayo   Bahrain
Messages: 101
Registered: April 2011
Karma: 0
Senior Member
Hi.

Noticed this two bits of code in header.tmpl and footer.tmpl respectively and wondered what they did.

<!-- {INJECTION_POINT: left_block}<td class="ForumBackground" valign="top"> -->

and

<!-- <td class="ForumBackground" valign="top">{INJECTION_POINT: right_block}</td> -->

Also, I was wondering why the one in the footer is in a cell that is opened and closed while the one in the header is not.

Finally, I was wondering why they are commented out.

Thanks
Re: "INJECTION_POINT" [message #165450 is a reply to message #165448] Sat, 18 June 2011 14:00 Go to previous messageGo to next message
Dayo is currently offline  Dayo   Bahrain
Messages: 101
Registered: April 2011
Karma: 0
Senior Member
Looking at this further, it doesn't seem the cell opened just before the injection point thing in the header ever gets closed.

Should the code read "<!-- <td class="ForumBackground" valign="top">{INJECTION_POINT: left_block}</td> --><td class="ForumBackground" valign="top">"

... instead of ...

"<td class="ForumBackground" valign="top"><!-- {INJECTION_POINT: left_block}<td class="ForumBackground" valign="top"> -->"

Forgetting about what the injection point does for the moment (I assume it is used to inject html blocks into the output).

Thanks
Re: "INJECTION_POINT" [message #165454 is a reply to message #165450] Sun, 19 June 2011 07:46 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Yes, it's an attempt to allow plugins to add custom HTML to FUDforum's output.
This feature is not yet fully implemented and may even be removed from future releases.
Re: "INJECTION_POINT" [message #165456 is a reply to message #165454] Sun, 19 June 2011 12:46 Go to previous messageGo to next message
Dayo is currently offline  Dayo   Bahrain
Messages: 101
Registered: April 2011
Karma: 0
Senior Member
I see.

Can you take a look at the implementation in header.tmpl? It looks like there is a html error there.

There is an extra table cell there that never gets closed. I think the pattern should be like it is in footer.tmpl.
Re: "INJECTION_POINT" [message #165462 is a reply to message #165456] Mon, 20 June 2011 11:14 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Are you referring to the default FUDforum 3.0.2 header?
FUDforum 3.0.3 won't have any table cells in its header and footer templates.
Re: "INJECTION_POINT" [message #165463 is a reply to message #165462] Mon, 20 June 2011 11:33 Go to previous message
Dayo is currently offline  Dayo   Bahrain
Messages: 101
Registered: April 2011
Karma: 0
Senior Member
Yeah, the current 3.0.2 header. I didn't check the svn version.

Had a look and can see it has been resolved for 3.0.3.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Moving discussion board to a host
Next Topic: Delete Account
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 20:53:29 GMT 2024

Total time taken to generate the page: 0.02015 seconds