By tkrn on
Here is what I am trying to do. I have to seperate systems, Drupal and WHMCS. Ultimately, I am looking to modify WHMCS template to call some sort of functions that pulls the current theme, blocks, etc out of Drupal's core since WHSCS templates support PHP directly.
To tell you the truth, I do not know what functions to even start with or even Drupal's API has anything to do such a task.
ANY guidance would be helpful. Thank you,
Comments
This might be hacky, but you
This might be hacky, but you could pull out the html using javascript and pass it as POST data to a PHP script that would insert it into the WHSCS framework.
That would be a way but I
That would be a way but I would have moral concerns with that way LOL. Anything through the API?
tkrn, it's your own website
tkrn, it's your own website pulling your own website, so I don't see a real moral concern
I have a similar question, but my concern is workload.
I want to pull some events(the data from the nodes, or a view of them) but not all the navigation and the rest of the page surrounding it. It's a microsite that is just done in php and not a CMS(it really doesn't need it).
Actually thinking now I could just make an sql query and grab what I want directly from the database, by passing Drupal (reading the sql query from the view setup page if needed). Sorry this won't help you if you wanted the processed HTML with the templated stuff, but it's like the opposite of what I want.
I've got the SQL working
I've got the SQL working well(with a few LEFT JOINS) to pull my events out and display them on the non-drupal page.
Some content though has some apostrophes that appear as "�"(a question mark in a diamond) though. Can someone tell me how I can replace these with working apostrophes using PHP please? It's a hard thing to search for, I think I might need to know the character code it is.
this is what i did...
I started with the HTML Export project, modified the crap out of it and made it my own project basically which I've called "Index Chunks". In a nutshell it sub strings pieces of the full html rendered index into chunks, such as the header, middle content, and footer which are controlled by <--STARTCONTENT-->, <--ENDCONTENT-->, <--STARTHEADER-->, and so on but with the ! after <, you wouldnt be able to see if i included ! in the full string since it is ment to be hidden. You get the idea this was applied to my drupal template.
I took all the pieces which I needeed to use in my other system (WHMCS) and insert this Smarty code into the WHMCS template
{php}
include('/home/etechg00/public_html/sites/default/files/index_chunks/index_header.html');
{/php}
Anyways..... This is much better than this guys idea http://drupal.org/node/309494 since a click of a SINGLE button it updates what is used by WHMCS.
Voila! What do you think of that solution? i hate posting links online to the website but if you want to check it out, shoot me a message, if you want the module as well, message me too. I do not plan on writing documentation or maintaining this module but if some one else wants to, so be it. It is at a point (the module) does what i needed it to do. I suppose if there was a large group of people that wanted this module to be maintained and published then i probably would
Link
Sounds like a good solution, can you post a link or message it to me?
Need your theming support
Hello,
I have integrated WHMCS within the drupal website.
Everything is working fine by default.
Now I'm looking for integrating the theme of drupal website to the WHMCS theme.
My Drupal website has dynamic menus and footer content.
So what i need is how can we incorporate the dynamic menu content in the header of the whmcs theme.
Do we have any functions to call the menus into the whmcs theme header.tpl
Please suggest me asap.
Thanks..!
Krishna
New updated URL for index_chunks
New updated URL!
http://www.nerdthinking.com/software-scripts/index-chunks-a-drupal-modul...