Search found 74 matches
- Wed Apr 04, 2012 12:51 pm
- Forum: Modules/Add-Ons
- Topic: cggooglemaps Uncaught ReferenceError: my_location is not def
- Replies: 7
- Views: 2843
Re: cggooglemaps Uncaught ReferenceError: my_location is not
I've just downloaded the latest version and ran into this problem with the directions function. You have two options for fixing this: 1. Under the "Advanced" tab when you edit the map, set the "Supply Geographic location information to the map" option to "Yes" (this ena...
- Thu Feb 16, 2012 8:06 pm
- Forum: Help Wanted (commercial)
- Topic: Need someone for ongoing assistance [thanks]
- Replies: 1
- Views: 1891
Re: Need someone for ongoing assistance
I believe I may be able to help with this, I've sent you a PM with my full contact info and further details.
Tom
Tom
- Fri Nov 18, 2011 9:21 am
- Forum: The Lounge
- Topic: [solved] Get value of {title} tag and use it in PHP script
- Replies: 6
- Views: 5718
Re: Get value of {title} tag and use it in PHP script
You can use the cms_utils class in your UDT. It has a method called get_current_content that will return a ref to the content object for the current page. If you look in "lib/classes/class.ContentBase.php" you'll find all the accessor methods you need to get at the content properties. Some...
- Tue Sep 27, 2011 12:53 pm
- Forum: Developers Discussion
- Topic: Posting Arrays
- Replies: 10
- Views: 4803
Re: Posting Arrays
I've just come across the same issue so I did some checking. On the front end, parameters are passed to the cleanParamHash method in misc.functions.php for cleaning. Unfortunately, this method does't recurse down the arrays so they are interpreted as strings, hence the "Array to string..."...
- Mon Aug 15, 2011 3:14 pm
- Forum: Developers Discussion
- Topic: Decreasing footprint of memory by using classes. But how?
- Replies: 2
- Views: 2396
Re: Decreasing footprint of memory by using classes. But how
I've been doing a similar thing with some modules I've been working on. In order to make it work you have to have a "lib" folder in your module directory and put the classes in there. They are then picked up by the CMSMS autoloader (can be found in " CMS_ROOT /lib/autoload.php")....
- Thu Jun 02, 2011 5:23 pm
- Forum: CMSMS Core
- Topic: Duplicated URLs - Bug In Page URL System?
- Replies: 0
- Views: 731
Duplicated URLs - Bug In Page URL System?
I'm having a problem with the "Page URL" system added in the 1.9 series. Using the latest version (1.9.4.2) with pretty URL's enabled, I created a page with the alias "page-1". Next, I created another page with an alias of "page-2" but set the "Page URL" to &q...
- Mon May 09, 2011 10:11 am
- Forum: CMSMS Core
- Topic: Access DB name within UDT?
- Replies: 1
- Views: 1259
Re: Access DB name within UDT?
You can access the config stuff like this: $config =& cmsms()->GetConfig(); However, if you're doing database operations you can just get a reference to the db object and run your query: $db =& cmsms()->GetDb(); $result = $db->Execute('SELECT * FROM tablename WHERE id = ?', array('1')); Best...
- Fri Apr 22, 2011 10:43 am
- Forum: CMSMS Core
- Topic: Many CMSMS on one Website
- Replies: 7
- Views: 2587
Re: Many CMSMS on one Website
I would think that these upgrades would just append a new definition to the file.. I don't think it would modify the existing information. That may well be the case but the point I was making is that you don't know what future changes will be made and that you cannot expect support from the dev tea...
- Wed Apr 20, 2011 8:41 am
- Forum: CMSMS Core
- Topic: Many CMSMS on one Website
- Replies: 7
- Views: 2587
Re: Many CMSMS on one Website
Each website needs it's own "cache" and "templates_c" folders. It isn't enough to just dynamically change these in the config file based on the url. Fileloc.php has some hardcoded defines which also need to be dynamically set based on the requested site. Also, I think I'm right i...
- Tue Apr 19, 2011 8:41 am
- Forum: CMSMS Core
- Topic: Many CMSMS on one Website
- Replies: 7
- Views: 2587
Re: Many CMSMS on one Website
It is possible to do this kind of thing (I've done it before) and make it work. It does mean modifying the core files though so any official support goes out of the window (you would need to be completely comfortable with php and have a good understanding of how CMSMS works). As wishbone points out,...
- Wed Dec 22, 2010 3:16 pm
- Forum: CMSMS Core
- Topic: Link parameter to set different template?
- Replies: 3
- Views: 1720
Re: Link parameter to set different template?
As far as I'm aware it's not possible. However, there are other means like alternative stylesheets (using media="print, handheld, etc"). Also, you could create multiple content blocks in your template ({content block="block1, block2, etc"}) and show different content that way. ...
- Mon Dec 20, 2010 11:35 am
- Forum: CMSMS Core
- Topic: Link parameter to set different template?
- Replies: 3
- Views: 1720
Re: Link parameter to set different template?
You could use an additional get variable in the url and then use smarty to vary the output in your main template. For example:
Then in the template:
Hope this helps!
Code: Select all
www.yoursite.co.uk/page?printable=true
Code: Select all
{if $smarty.get.printable}
print only stuff
{else}
normal stuff
{/if}
- Wed Dec 15, 2010 5:13 pm
- Forum: CMSMS Core
- Topic: Help Needed.
- Replies: 8
- Views: 2611
Re: Help Needed.
Of all the hundreds of web sites/templates I've built never has IE6,7,8 given me that error/pop up... Just because you haven't seen the error before doesn't mean it doesn't exist! The problem is with the SWFObject code, it doesn't work properly on IE6 if the base tag isn't closed (see: http://code....
- Sat Nov 27, 2010 5:50 pm
- Forum: CMSMS Core
- Topic: Creating an intro within the menu - can it be done?
- Replies: 1
- Views: 1202
Re: Creating an intro within the menu - can it be done?
Take a look at this post, I think it has everything you need:
http://forum.cmsmadesimple.org/index.ph ... #msg228841
http://forum.cmsmadesimple.org/index.ph ... #msg228841
- Fri Nov 12, 2010 12:46 pm
- Forum: Modules/Add-Ons
- Topic: [solved] Custom username to FrontEndUsers
- Replies: 2
- Views: 1013
Re: Custom username to FrontEndUsers
Look at the "Builtin Authentication" tab in FEU. The option is on there.