bartman Posted July 14, 2010 Share Posted July 14, 2010 what i need to do is alter header.tpl and add the following to the html tag when i install a module and obviously remove it when the module is uninstalled xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml" I know i can open the file for reading loop through it looking for certain text then replace it with the corrected text, but is their an easier waythe hook in header.tpl is not in the correct place to achieve what i need to do,thanksChris Link to comment Share on other sites More sharing options...
tomerg3 Posted July 14, 2010 Share Posted July 14, 2010 you can create a new hook, but it would probably be easier to just hard code that text. Link to comment Share on other sites More sharing options...
bartman Posted July 14, 2010 Author Share Posted July 14, 2010 I have it hardcoded at the moment, can a module create a new hook, obviously it can create the db, but i would be in the same situation of writing the hook location to a file, maybe i am trying to do to much with a module, but I am trying to make it totally standalone without having to edit any files manuallyregardsChris Link to comment Share on other sites More sharing options...
tomerg3 Posted July 14, 2010 Share Posted July 14, 2010 Creating a new hook requires 4 things:Adding it to the hooks database.Adding a call to it in the php file.Adding the variable in the tpl file.Transplanting it in the backoffice.Since you only need 2 lines that are static, hard coding would make most sense Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now