I need to execute a internal php function to insert a record in database when user login in joomla. How can I do this creating on component, plugin or extensior?
the event onUserLogin works on joomla 2.5? thank you.
You would need to create a plugin and use the event hooks in joomla. So trigger the event and it will talk to your plugin and do w/e it is you want in this case take some user details.
I don't know how to help you code it out if you don't post code so here are some good links to take a look at
Documentation on user events ---> http://docs.joomla.org/J1.5:Plugin/Events/User
Documentation on events ---> http://docs.joomla.org/Plugin/Events
Notice a lot are being "moved" so click through the links to get to the new pages and notice the name changes in the deprecated events.
Hope this helps and post back some code for more feed back.
Related
Is there a way to create a page in ClickFunnels(https://www.clickfunnels.com/) website and when I submit that page, I need to store the form details in my rails app(into a particular table). Which means I want to display my database in the clickfunnels integrations list. I googled hours but couldn't get much information on this.
can anyone suggest me if you have done this. A reference link also much appreciated.
We couldn't find any way to do this inside clickfunnels itself, if there is a easy way to add custom systems to their integrations I too look forward to seeing those answers. Until then, here's what we did: We just put our custom form on their page and used ajax to send it back out the end point in our system it needed to hand that data too.
Then, since we also needed to submit the same info to click funnels, we build a fake CF form(I think we actually put one on the page, but used CSS to hide it, then filled it out dynamically from our custom form), and call submit on that form, sending the user through the normal click funnels submission process and sending them to the next page in the funnel.
Maybe my request is simple, maybe not. I'm fairly new to ruby and everything and face the problem that I need to add a history item from a plugin. I refer to the ticket system Redmine.
Is there a simple way to trigger an event which adds a predefined comment (like "News sent on [date]")? Preferrably the event should be triggered by pressing a button or clicking a link in the redmine web frontend. Like an additional button/link next to the default ones "edit, watch,...).
Can anyone help me here?
The easiest way would be to add a link, with a href to call a javascript function:
Add news entry
The function should add the text you want in the "issue_notes" text field, and send a submit to the "issue-form" form:
function addNewsEntry() {
$('#issue-notes').value = "News sent on [date]";
$('#issue-form').submit();
}
A good example of this is the status_button redmine plugin, this might be a good reference for you as:
it does add some links to the issue page (you also want to add a link to add a new note)
it does change the status on the issue form and submit it (you also want to change a form field and submit it)
I want to create a simple event after a article is posted, e.q when admin post a article with category sale I want to fire a event and send SMS to subscribed users.
Is it possible
Regards
Try this,
Its sample content plugin for Joomla,
In this plugin I used onContentPrepare() instead of this you have to use onContentAfterSave.
Hope its helps..
Currently i have been using an iframe component to display a php page that i have written. the reason i used iframe rather than writing a joomla component in the first place was for 2 reasons, the information that is displayed in that page is from a remote mssql sever and the second was that i didnt really understand how to write one.
Now i have completed the creation of the php page that i display within the iframe, but now i need to be able to have it inherent within the joomla site, for both display reasons and security.
basically its a single page that displays information in a bunch of drop down boxes and then a submit button is clicked and it posts that information to another php page that again queries the mssql server and displays the results based on the post from the previous page.
query.php, posts some variables to results.php and is displayed in a table.
i have the functionality perfect, but i dont understand the documentation i have read so far. is there any simple component i can see the code of so that i can try and work out whats going on?
You might want to look at http://docs.joomla.org/J3.1:Developing_a_MVC_Component/Introduction and follow the process outlined.
I am aiming to create a payment module. Its users shall be redirected away from the site's URL in order for the transaction to be processed by a third party at a different URL. I would then like customers to be redirected back to a generic 'success' page that notifies them the order was a success. I have tried redirecting to the default success page (checkout.thankyou.php), but I get lots of errors; all the constants etc. that the application requires have obviously been lost during the redirect.
I would like to be able to retrieve the theme currently enabled in the configuration and use it to insert some basic HTML into the view. I would also like to access the database to perform some queries.
Can anybody advise? I am very stuck, and cannot find anything useful in the documentation! Thank you.
Can you be more specific about what type of information you want in your success page? If you just want basic HTML, then there's no reason you can't just write a basic Joomla article and redirect to that instead of trying to redirect to a VM partial. Again, if it's just basic HTML (no data from the transaction), then you can simply use a code inspector (like FireFox Inspect Element) to track down the CSS classes you like from the template and simply use them in your Joomla article to make it look like the VM template. You can find most of them in components/com_virtuemart/themes/default/themes.css.
If you need to display actual transaction data in your Thank You message, be prepared for a bit more work. You're probably going to have to write a cookie containing the record data BEFORE it gets sent offsite, and then read the cookie just prior to rendering the Thank You page.