How to add more ajax function in joomsocial?



Today I work with joomsocial ofjoomla 2.5. Joomsocial is a big commercial component, but we sometime have to edit it to fit our require. I has written a new form that let users transfer point from one to one. I try to write new ajax function but it meet some errors.

Firstly, I found the instruction in file jooms.ajax.js to call a new ajax function:

01.joms.ajax.call(sFunc, sArgs, settings)
02.joms.ajax.call('controller,function', [arg1, arg2] {
03.success: function(data) {
04.// What to do when the ajax call is successful
05.},
06.error: function(data) {
07.// What to do when the ajax call is not successful
08.// e.g. timeout, 404, 500, etc.
09.},
10.
11.// For more settings to fiddle with, look up jQuery.ajax() docs.
12.});

And then I write a function

01.function showform()
02.{
03.joms.ajax.call('profile,ajaxGetForm', [echo $userid?>], function(data)
04.{
05.console.log(data.url); // output http://www.jomsocial.com
06.console.log(data.caption); // output JomSocial
07.});
08.
09.}

and add a function ajaxGetForm in profile.php of controller.

but it just displays nothing.

then, i turn on firebug, move to console, I read that error is function not found. I thought that there must be a place for define these function. Finally i found it jax.community.php, and I add this line $jaxFuncNames[] = 'profile,ajaxGetForm'; in line175.

Finally, It run well. Now I have new function ajax in joomsocial. It is so good for us to develop more for joomsocial.

Hope that this is helpful for you.

[Read More...]


How to remove power by joomsocial in email?



If anyone use the version joomsocial 2.6, which runs onjoomla 2.5.x, you easily find that in all emails contain the sentence "power by joomsocial" above the line of copyright.

It takes long time to look around, but people say that you must by pro version to get rid of it.

I look back again the code, and I finally think about listbingo component, maybe it has the same technique, and i'm right. It 's all in CTemplate like in GTemplate of listbingo.

Now I will show you how to remove it. Open the file components/com_community/library/template.php. Go to line 308 and remove the code:

1.if (!COMMUNITY_PRO_VERSION) {
2.//POWERED BY LINK//
3.$jConfig = JFactory::getConfig();
4.$siteName = $jConfig->getValue( 'sitename' );
5.$powerBy = 'Powered by http://www.jomsocial.com/">JomSocial for . JURI::root() . '">' .$siteName . '';
6.}

Test again, everything 's done. Hope this is helpful for you.

[Read More...]


How to remove the tag meta generator" in joomla 1.7 and joomla 2.5?



Some time we want to remove the tag joomla 1.5 ,Joomla 1.7 orjoomla 2.5. I found some ways to do that.

First, you can edit the joomla core file: : \libraries\joomla\document\html\renderer \ head.php at line 91

Finally you can edit at index.php in the template that you use. Please find this line:

1.code="">include type="head" />

And add this just above: setMetaData('generator','my site'); ?>

and finally you have

1.$this->setMetaData('generator','my site'); ?>
2."head" />

In some template, it is in the header blog and maybe in header.php. In template of T3, it is in plugins\system\jat3\jat3\base-themes\default\blocks ... Find this could be difficult for you, but i will help you understand more your template and it good for you in further development.

[Read More...]


plugin_adsmanager 2.6.5 joomla 2.5.2 for xmap component



I have used Xmap component of joomla (joomla 1.5 ,Joomla 1.7,joomla 2.5) for long time, I have to say that it is really wonderful and the most important thing is it 's free. It runs well in every version of joomla. Today, I use plugin adsmanager 2.6.5 with xmap (joomla 1.7, joomla 2.5) but get some errors. Plugins that shared on the internet cause some errors such as:

1.Unable to detect manifest file
2.Error installing COM_INSTALLER_TYPE_TYPE_XMAP_EXT

I try to figure out in two forums: http://forum.joomprod.com; http://joomla.vargas.co.cr/en/forum?task=viewtopic&f=2&t=3908&view=print but there is no solution. I have changed this plugin and it run well with Joomla 1.7.5, joomla 2.5, joomla 2.5.1, joomla 2.5.2; Xmap 2.2.1 or xmap 2.0, xmap 2.2.2; Ads Manager 2.6.x.(2.6.5)

And this plugin is free. I understand the sense of people who want to solve this problem, if you have any question, please leave a comment here, i will try to help you.

Download free here: plugin_adsmanager 2.6.5 joomla 2.5.2 for xmap component

[Read More...]


How to modify categories view in virtuemart?



In virtuemart forjoomla 1.5 , the category view is difficult to find out where to modify. Specially, the default number of columns is 4, and now you want to change to 3, you don't have any option to change. I have taken all day to find out where it is and how the virtuemart runs.
Firstly, the home page of virtuemart is set by the file administrator/components/com_virtuemart/html/shop.index.php, and the template is components/com_virtuemart/themes/default/template/common/shop.index.tpl.php. For example, if you don't want to display categories view at the front page you can delete
echo $categories at line 7.
You can read more How to modify categories view in virtuemart? at jw-extension.net
[Read More...]


 

Link Liên kết

Thông tin liên hệ

YH: huonggiangdhtn
Skype: tthuonggiang
Return to top of page Copyright © 2010 | joomla extensions jw-extension.net