Developing (v7+)

Is user in a group set?

Hi all, I am wandering if there is a single command that decides if a user is in a Group Set. This would reduce the three if conditions: if(!$u->inGroup($Administrators) && !$u->inGroup($Editors) && !$u->inGroup($Moderators)) to one! Thanks, …

Inspiration for a sports team website - can this be done ?

I'm an Oracle developer who has built a couple of C5 website's this last year and I'm in need of some advice/inspiration. I've been approached by a local team to build a website (no problem there), start a newsletter (again no problem) and create some …

Adding routes to concrete5?

I have a customer who I am trying to convert to C5. They have one requirement I have not figured out how to work around. They have a large number of pdf files strewn about the directory structures of their website. They want to be able to keep these in…

pagelist thumbnail image from a block (no attribute image) ?

how can I get a thumbnail from the image of an custom block. in the blog_index_thumbnail template I found this : [code]$ts = $cobj->getBlocks('MyCustomBlock'); if (is_object($ts[0])) { $tsb = $ts[0]->getInstance(); $thumb = $tsb->getFileO…

Styling block with setBlockWrapperStart does not work + date 1970?

Hi, I want to hide a block if empty and show if there is something so I have the following code and it works but it does not get styled with the class I have given the div .xxxxx. it also does nto show the text behind the div "tatatat" I put it there …

Login Timing Out

Hi, I built a site that allows my clients to login and submit information to me through the Advanced Forms and Data Display blocks. I customized both blocks quite a bit and am happy with how it's all working. However, a couple of clients have had so…

Items Calendar Add-on not working

Hello, I'm trying to include the Items Calendar add-on in a site I am building. I downloaded and installed the add-on correctly, however when I go to create a new calendar I get this SQL error. mysqlt error: [1054: Unknown column 'Array' in 'where…

Add address attribute programtically

Hi all, I am currently styling up my profile pages by adding in User Attributes programmatically like such: [code] [/code] But am getting stuck on how to …

Auto resize images to screen width

I would like the images of my web autoresize to the screen width when you visit it in tablets or mobiles. Is there any way or add-on to do so, without messing around with css or code (because I have no idea)? Thanks.

Filter Posts