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

Home » FUDforum » How To » "INJECTION_POINT" (What does this do?)
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
"INJECTION_POINT" [message #165448] Sat, 18 June 2011 07:35 Go to next message
Dayo is currently offline  Dayo   Bahrain
Messages: 101
Registered: April 2011
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
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 10:00 Go to previous messageGo to next message
Dayo is currently offline  Dayo   Bahrain
Messages: 101
Registered: April 2011
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
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 03:46 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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 08:46 Go to previous messageGo to next message
Dayo is currently offline  Dayo   Bahrain
Messages: 101
Registered: April 2011
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
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 07:14 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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 07:33 Go to previous message
Dayo is currently offline  Dayo   Bahrain
Messages: 101
Registered: April 2011
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
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.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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 Oct 21 10:16:54 EDT 2017

Total time taken to generate the page: 0.00701 seconds