Search found 20 matches
- Sun Oct 09, 2011 6:55 am
- Forum: Modules/Add-Ons
- Topic: SOLVED: Using the CMSexcel module
- Replies: 1
- Views: 858
Re: Using the CMSexcel module
Found the solution to this $excel_db = &$gCms->GetDb(); $excel_query = 'SELECT * from '.cms_db_prefix().'module_iminvitation_invited WHERE invitation_id = ?'; $excel_result = $excel_db->Execute($excel_query, array($record->id)); $aData = array(); while ($excel_result !== false && $excel_...
- Fri Oct 07, 2011 11:41 am
- Forum: Modules/Add-Ons
- Topic: SOLVED: Using the CMSexcel module
- Replies: 1
- Views: 858
SOLVED: Using the CMSexcel module
Hello I am trying to export some data via a link to an excel sheet. I have tried using some classes, but every time I export I get the whole admin page exported with it :-( I have a link (this is backend BTW) pointing to a file like so: $record->link_export = $this->CreateLink($id, 'list_export', $r...
- Thu Aug 04, 2011 8:22 pm
- Forum: Developers Discussion
- Topic: How to get the $id and $returnid from a module
- Replies: 3
- Views: 2743
Re: How to get the $id and $returnid from a module
Still need it - what I mean is I need a way to get the $id and $returnid (this one I can get now though) from the $this object I get in my own methods of the module. Basically I made a new function inside the module php file, and inside that I need a frontendlink made where I need to have the $id an...
- Fri Jul 29, 2011 9:41 am
- Forum: Developers Discussion
- Topic: How to get the $id and $returnid from a module
- Replies: 3
- Views: 2743
How to get the $id and $returnid from a module
Hello guys,
have been searching this forum for a solution - but found none.
I need to get the $id and $returnid used by DoAction files to create a link from outside the module (in an ajax file).
I have an instance of the module - how do I get the module $id and module $returnid?
have been searching this forum for a solution - but found none.
I need to get the $id and $returnid used by DoAction files to create a link from outside the module (in an ajax file).
I have an instance of the module - how do I get the module $id and module $returnid?
- Tue Mar 16, 2010 7:45 pm
- Forum: Developers Discussion
- Topic: Need help on sorting an array for output in smarty template [SOLVED]
- Replies: 1
- Views: 1421
Re: Need help on sorting an array for output in smarty template [SOLVED]
Here is the solution function sortStdArray($array,$index) { $sort=array() ; $return=array() ; for ($i=0; isset($array[$i]); $i++) $sort[$i]= $array[$i]->{$index}; natcasesort($sort) ; foreach($sort as $k=>$v) $return[]=$array[$k] ; return $return; } Then just call $records = sortStdArray($records,&q...
- Tue Mar 16, 2010 7:37 pm
- Forum: Developers Discussion
- Topic: Need help on sorting an array for output in smarty template [SOLVED]
- Replies: 1
- Views: 1421
Need help on sorting an array for output in smarty template [SOLVED]
Hello people, how do I go about sorting an array I have made for input in the smarty template so I do not have to make the sort in SQL. Here is the code that makes declarations to place via smarty in the template $records = array(); while ($catresult !== false && $catrow = $catresult->FetchR...
- Sun Mar 14, 2010 4:56 pm
- Forum: Developers Discussion
- Topic: Using CMSMS search function on my custom module
- Replies: 0
- Views: 1052
Using CMSMS search function on my custom module
Hello guys and girls,
how do I go about it so the implemented search function also searches my custom module.
how do I go about it so the implemented search function also searches my custom module.
- Wed Feb 17, 2010 1:56 pm
- Forum: Modules/Add-Ons
- Topic: [SOLVED?] Any way to use Jquery instead of Prototype for backend/admin?
- Replies: 4
- Views: 1379
Re: [SOLVED?] Any way to use Jquery instead of Prototype for backend/admin?
Think I found the solution on the conflict. Jquery has the jquery.noConflict() - use it like so: jQuery.noConflict(); var $j = jQuery; This way you keep on using $ for prototype and $j for jquery. Now I just gotta find out if my module will load the js file into the part with the $head = <.......
- Wed Feb 17, 2010 1:23 pm
- Forum: Modules/Add-Ons
- Topic: [SOLVED?] Any way to use Jquery instead of Prototype for backend/admin?
- Replies: 4
- Views: 1379
Re: Any way to use Jquery instead of Prototype for backend/admin?
Also how do I do that? (Load any js file I want for my admin panel in my module)
- Wed Feb 17, 2010 7:43 am
- Forum: Modules/Add-Ons
- Topic: [SOLVED?] Any way to use Jquery instead of Prototype for backend/admin?
- Replies: 4
- Views: 1379
Re: Any way to use Jquery instead of Prototype for backend/admin?
But wont the $ script collide with the use of prototype $, since prototype is set as default for admin part of CMS?
- Tue Feb 16, 2010 8:37 pm
- Forum: Modules/Add-Ons
- Topic: [SOLVED?] Any way to use Jquery instead of Prototype for backend/admin?
- Replies: 4
- Views: 1379
[SOLVED?] Any way to use Jquery instead of Prototype for backend/admin?
Is it at all possible?
I only want to use it for the admin part of a module I have made.
Is it possible for a specific module to load different javascript files than default will?
I only want to use it for the admin part of a module I have made.
Is it possible for a specific module to load different javascript files than default will?
- Tue Feb 09, 2010 10:44 pm
- Forum: Developers Discussion
- Topic: Need help on how to implement xajax in the admin part of my module
- Replies: 0
- Views: 978
Need help on how to implement xajax in the admin part of my module
Hello guys and girls, am making a small module - am listing some sql rows of data in the same style as page content list etc (alternating colors and hover). Now I need to be able to move the sql entries up and down in the list, and saw that some xajax function is being used for this. Want to do the ...
- Mon Jun 16, 2008 2:59 pm
- Forum: Modules/Add-Ons
- Topic: How do I check for FEU user login state in an external .php file?
- Replies: 1
- Views: 1092
- Sat Jun 14, 2008 4:10 pm
- Forum: Modules/Add-Ons
- Topic: How do I check for FEU user login state in an external .php file?
- Replies: 1
- Views: 1092
How do I check for FEU user login state in an external .php file?
Hello I am currently running a external php file using lightwindow from the CMSMS site In this php file I wish to have some sort of security based on the FrontEndUser module and perhaps also CustomContent if that makes it easier Only way to transfer the account id ATM is by sending it as a variable ...
- Tue Jul 10, 2007 5:35 pm
- Forum: CMSMS Core
- Topic: Transfered a site and got this error
- Replies: 1
- Views: 1174
Transfered a site and got this error
Hello! After I exported the SQL, wrote new info to the config.php and uploaded the site to its proper place (its a site I sold and created via a subdomain on my own server) I get this error when trying to alter anything on the site - that be pages content or templates Actually it doesnt matter if I ...