Create a new custom ddblock theme

How to create your own custom dynamic display block theme

This page gives a detailed step by step instruction on how to create your own custom dynamic display block theme.

This example assumes that you want to make a new theme: custom40-a using the existing theme upright40.

  1. Go to directory: sites/all/[YOUR_THEME_NAME]/custom/modules/ddblock
  2. Create a copy of ddblock-cycle-block-content-upright40.tpl.php and save as ddblock-cycle-block-content-custom40-a.tpl.php.
  3. Edit ddblock-cycle-block-content-custom40-a.tpl.php
  4. Replace all occurrences of upright40 with custom40-a.
  5. Replace all occurrences of $template with $custom_template
    1. From the code:
        drupal_add_css($directory .'/custom/modules/ddblock/'.$template. '/ddblock-cycle-'.$template. '.css', 'template', 'all', FALSE); 

      Change to:

      drupal_add_css($directory .'/custom/modules/ddblock/'.$custom_template. '/ddblock-cycle-'.$custom_template. '.css', 'template', 'all', FALSE);

    2. From the code:
      <div id="ddblock-<?php print $delta ?>" class="ddblock-cycle-<?php print $template ?> clear-block">

      Change to:

      <div id="ddblock-<?php print $delta ?>" class="ddblock-cycle-<?php print $custom_template ?> clear-block">

  6. Create a copy of ddblock-cycle-pager-content-upright40.tpl.php and save as ddblock-cycle-pager-content-custom40-a.tpl.php.
  7. Edit ddblock-cycle-pager-content-custom40-a.tpl.php
  8. Replace all occurrences of upright40 to custom40-a.
  9. Create a copy of the upright40 directory and save as custom40-a.
  10. Goto the custom40-a directory
  11. Rename ddblock-cycle-upright40.css to ddblock-cycle-custom40-a.css.
  12. Edit ddblock-cycle-custom40-a.css
  13. Replace all occurrences of upright40 with custom40-a.
  14. You can now edit the template files and the css file to get your desired advanced dynamic display block layout.

Comments

indians jerseys reds

indians jerseys
reds jerseys
rockies jerseys
coach factory outlet online
canada goose outlet store
pandora sale clearance
jimmy choo
nike shoes outlet
longchamp outlet online
coach factory outlet online
adidas superstar shoes
canada goose jackets
canadian goose jacket
fake rolex
pandora charms sale
adidas shoes
pandora charms outlet
discount oakley sunglasses
air more money
ugg boots
kobe shoes
coach outlet store online
ralph lauren
dr martens
toms outlet online
dr martens boots
adidas yeezy shoes
jimmy choo shoes
cheap air jordans
philipp plein
ugg outlet
coach factory outlet online
moncler outlet online
canada goose parka
ugg outlet
fendi handbags
coach factory outlet
coach outlet store online
ugg outlet store
cheap jordans
kate spade outlet online
christian louboutin shoes
louboutin shoes
hermens
moncler jackets
michael kors outlet store
moncler
louis vuitton factory outlet
christian louboutin sale
red bottom
ralph lauren sale
asics outlet
kate spade handbags
nike outlet store online
adidas outlet
christian louboutin shoes
canada goose jackets
michael kors bags
ralph lauren outlet online
coach factory outlet online
burberry outlet store
pandora jewelry store
canada goose
tory burch outlet store
cheap ray ban sunglasses
adidas nmd r1
ugg outlet store
kate spade outlet
canada goose
cartier watches
adidas superstars
ecco shoes for women
fitflop shoes
ralph lauren sale clearance uk
birkenstock shoes
coach outlet online
louis vuitton outlet store
nike air max 97
coach factorty outlet store
rolex replica watches for sale
marlins jerseys
tory burch outlet online
coach outlet
ugg boots
kate spade outlet online
coach canada
nike free 5.0
brewers jerseys
pandora jewelry
new balance outlet
athletics jerseys
coach outlet canada
ray ban glasses
kate spade outlet store
pandora charms sale clearance
louis vuitton outlet
christian louboutin shoes
coach outlet store online clearance
mulberry
timberland boots outlet
clb20180901

armani exchange prada outlet

armani exchange
prada outlet online
timberland outlet store
ralph lauren outlet online
epic react flyknit
vans outlet
nike air max 97
ray ban glasses
pandora charms outlet
saint laurent handbags
lacoste polo shirts
cheap ugg boots
converse all star
coach factory outlet online
coach outlet store online clearance
canada goose jacket
supreme clothing
ray ban sunglasses outlet
christian louboutin sale
givenchy handbags
mont blanc pens
ralph lauren outlet online
cheap jordans free shipping
cheap oakley sunglasses
danner boots
bally outlet
michael kors outlet online
pandora charms outlet
ugg boots women
columbia shoes
cheap air jordans
durant shoes
moncler coats
tiffany outlet
teva sandals
burberry outlet canada
polo ralph lauren outlet
red bottom heels
jordan shoes
canada goose coats
michael kors outlet online
moncler jackets
moncler sale
kyrie 4
birkenstock outlet
fitflops uk
air max shoes
michael kors outlet online
coach outlet store
burberry outlet store
adidas outlet online
hermes bag
coach outlet online
yeezy boost
canada goose jackets
moncler sale
prana clothing
ysl outlet
coach outlet online
tiffany and co outlet
pandora sale clearance
adidas yeezy
coach factory outlet online
cheap oakley sunglasses
air max 90
pandora outlet store
adidas outlet online
coach factory outlet
the north face jackets
pandora jewelry
harden vol 1
canada goose
adidas yeezy shoes
birkenstock outlet store
florsheim shoes
coach outlet online
valentino
air more money
nike air max 2019
mammut boots
tory burch outlet online
nfl jerseys
toms shoes
coach factory outlet
coach outlet canada
birkenstock sale
red bottom
louis vuitton outlet
jimmy choo
nike outlet online
fitflop shoes
birkenstock shoes outlet
pandora jewelry
cheap oakley sunglasses
uggs outlet
salvatore ferragamo shoes
harry winston jewelry
underarmour outlet
mlb jerseys wholesale
michael kors bags
cheap oakley sunglasses
air foamposite
nike zoom
nike air presto
michael kors outlet
coach factory outlet online
coach outlet online
coach factory outlet
allen edmonds shoes
oakley sunglasses outlet
coach factory outlet
yeezy shoes
salvatore ferragamo
valentino outlet
michael kors outlet clearance
adidas superstars
discount oakley sunglasses
nba jerseys wholesale
air more uptempo
yeezy boost 350
coach outlet online
asics outlet store
cheap air max
canada goose jackets
moncler uk
salvatore ferragamo outlet
louis vuitton outlet online
swarovski crystal
coach outlet online
cartier watches
givenchy handbags
nike free 3.0
longchamp outlet store
cheap jordans
michael kors outlet store
coach factory outlet
cole haan shoes
ralph lauren sale clearance uk
lowa boots
polo ralph lauren outlet online
mulberry outlet uk
pandora charms
kate spade outlet store
swarovski outlet
coach outlet online
mcm bags
ray bans
pandora jewelry
ugg boots
nike outlet store
asolo boots
coach outlet store
lebron james shoes
rolex replica watches
keen sandals
michael kors outlet online
pandora charms sale
canada goose jackets
canada goose jackets
tory burch outlet store
nike react shoes
timberland outlet
ysl handbags
coach factory outlet online
michael kors outlet online
nike outlet store
jordan shoes
dolce and gabbana handbags
saint laurent outlet
fitflops sale clearance
nike tessen
toms outlet online
oakey sunglasses outlet store
canada goose sale
louboutin shoes
cheap jordan shoes
hermens
adidas superstar shoes
adidas originals
michael kors handbags
cheap ray ban sunglasses
ferragamo outlet
mulberry handbags
garmont boots
dr martens boots
moncler jackets
cheap ray ban sunglasses
ugg boots
timberland outlet
rolex replica watches
coach outlet online
red bottoms
air max
salomon outlet
canada goose outlet store
arcteryx boots
nike outlet online
michael kors outlet store
chch handbags
adidas shoes
dr martens
michael kors outlet online
michael kors handbags
pandora charms sale
kate spade bags
birkenstock shoes
timberland boots outlet
cheap nfl jerseys wholesale
mlb jerseys cheap
toms outlet store
air jordan shoes
yeezy boost 350
cheap jordan shoes
ray ban sunglasses discount
ralph lauren uk
nike outlet
cheap jordan shoes
mlb jerseys cheap
valentino outlet
versace handbags
moncler jacket
dooney and bourke handbags
vasque boots
cheap nike shoes
canada goose sale
north face outlet
ugg outlet store
air max 95
fitflops sale
fitflops sale
adidas ultra boost
canada goose
adidas yeezy boost
nike outlet store
gucci outlet online
kate spade handbags
retro 11
jordan shoes for sale
tory burch outlet online
nike air max zero
michael kors outlet online
polo ralph lauren outlet
ferragamo shoes
cole haan outlet
hermes outlet
adidas yeezy boost
pandora charms sale clearance
pg 2 shoes
salvatore ferragamo outlet
kate spade outlet
nike sneakers
polo ralph lauren outlet
the north face outlet
oakley sunglasses wholesale
michael kors outlet store
canada goose sale
coach outlet store online
coach outlet
christian louboutin shoes
kate spade outlet
mbt shoes sale
ralph lauren outlet online
cheap jordan shoes
coach factory outlet online
discount oakley sunglasses
canada goose jackets
michael kors outlet
michael kors outlet store
new balance outlet
ralph lauren
pandora rings
coach outlet online
coach outlet online
air max 270
air max 87
louis vuitton outlet
reef sandals
pandora jewelry outlet
michael kors canada
coach factory outlet online
coach outlet online
coach factory outlet online
ugg boots
timberland boots
cheap jordans for sale
canada goose jackets
supra for sale
berluti shoes
birkenstock outlet store
burberry handbags
coach outlet store online
nike shoes outlet
asics outlet
michael kors outlet clearance
pandora charms outlet
ralph lauren uk
uggs outlet
hermes bags
adidas store
oakey sunglasses outlet
coach canada outlet
coach outlet store
moncler uk
michael kors outlet clearance
cheap jordan shoes
fitflop sandals
adidas shoes
coach factory outlet online
yeezy shoes
ecco shoes
nike outlet
adidas nmd r1
canada goose jackets
nike sneakers
adidas yeezy
kate spade outlet online
supra for sale
supreme shirts
salvatore ferragamo shoes
canada goose jackets
christian louboutin shoes
pandora outlet
polo ralph lauren outlet online
vionic sandals
canada goose sale
nike huarache shoes
kate spade handbags
air jordan retro
moncler outlet online
abercrombie kids
birkenstock uk
coach outlet
ralph lauren outlet
louis vuitton outlet store
adidas nmd runner
kobe shoes
ralph lauren sale clearance uk
salomon shoes
canada goose
nike dunks
longchamp outlet
philipp plein
adidas outlet
michael kors outlet store
louis vuitton handbags
ray ban sunglasses outlet
ralph lauren sale
fitflop sandals
keen shoes
coach outlet online
pandora charms sale clearance
oakley sunglasses outlet
nba jerseys cheap
coach factorty outlet online
vasque shoes
canada goose parka
nmd adidas
kenneth cole shoes
fitflops sale
van cleef and arpels jewelry
kate spade outlet online
nike huarache shoes
louboutin shoes
coach outlet online
nike air max 97
nike shoes
coach outlet store online
pandora jewelry store
pandora outlet
coach factory outlet online
michael kors outlet clearance
kate spade handbags
yeezy shoes
ugg boots sale
fitflops sale clearance
michael kors handbags
ecco outlet
michael kors outlet store
dr martens boots
john lobb boot maker shoes
tods shoes
polo ralph lauren outlet
coach factory outlet online
ugg canada
longchamp bags
polo ralph lauren
ralph lauren outlet online
converse outlet
michael kors canada
columbia outlet
pandora charms
pandora charms outlet
pandora jewelry
ecco outlet
cheap ray ban sunglasses
ralph lauren outlet
air force 1
nike free 5.0
pandora charms
kate spade handbags
michael kors outlet online
air max 1
nfl jerseys
nike shox shoes
air max
adidas outlet store
timberland outlet
coach factorty outlet store
burberry outlet online
yeezy boost 350
mulberry
pandora charms outlet
mikimoto pearls
kate spade outlet online
moncler outlet online
coach factorty outlet online
cheap air jordans
skechers outlet
cheap air jordans
nike running shoes
coach factorty outlet online
the frye company shoes
mbt
moncler
pandora charms
louboutin outlet
polo ralph lauren
jordans
coach canada
ralph lauren uk
michael kors outlet clearance
cheap jordan shoes
puma outlet
ecco shoes for women
michael kors outlet store
unomagli shoes
chopard watches
adidas yeezy boost
kate spade outlet online
canada goose
louis vuitton outlet online
jimmy choo shoes
coach outlet store online
fred perry polo shirts
nike cortez classic
ralph lauren
coach outlet store online
longchamp sale
supreme uk
yeezy boost 350
air max outlet
michael kors canada
polo outlet online
louis vuitton factory outlet
michael kors outlet store
coach outlet online
mont blanc pen
fendi handbags
kate spade outlet
canada goose
canada goose jackets uk
converse shoes
ralph lauren sale
adidas nmd r1
adidas outlet online
mlb jerseys
louboutin outlet
coach factory outlet online
merrell shoes
canada goose coats
pandora jewelry outlet
moncler coats
hermes handbags
coach outlet online
ugg outlet store
philipp plein outlet
gap polo shirts
alden shoes
tory burch handbags
pandora charms outlet
hermes bags
louis vuitton factory outlet
supreme shirts
new balance outlet store
mbt
adidas sneakers
ralph lauren uk
cheap jordan shoes
prada shoes
air max axis
dior handbags
jimmy choo outlet
dansko shoes
canada goose jackets
coach outlet online
givenchy outlet
birkenstock outlet
kobe shoes
michael kors
rihanna shoes
tiffany and co jewelry
ugg outlet online
fitflop uk
naot sandals
nike cortez classic
ecco outlet
uggs outlet
christian louboutin shoes
nike air max 2018
nike air max 90
adidas nmd r1
adidas outlet store
moncler outlet online
ugg outlet online
mulberry uk
coach factory outlet online
kate spade outlet online
birkin handbags
ugg outlet
ralph lauren outlet online
red wing shoes
polo ralph lauren outlet
pandora charms outlet
birkenstock outlet online
ugg boots outlet
pandora jewelry outlet
discount oakley sunglasses
salewa shoes
coach factory outlet
michael kors outlet online
air max shoes
caterpillar boots
vans outlet store
canada goose
reebok outlet
basketball shoes
pandora charms sale
timberland shoes
coach outlet online
nike air max 2018
coach factorty outlet store
mcm outlet store
tory burch shoes
birkenstock sandals
nike outlet store online
nike zoom shoes
coach outlet store online
teva shoes
polo ralph lauren outlet online
adidas yeezy boost 350
air jordans
wolverine boots
kate spade outlet online
johnston and murphy outlet
abercrombie and fitch canada
red wing outlet
coach factory outlet
cheap jordans
christian louboutin shoes
rolex replica watches for sale
coach outlet online
ugg sale
moncler outlet online
ugg boots
pandora canada
manolo blahnik shoes
adidas campus shoes
fred perry outlet
adidas stan smith
pandora jewelry

Petter

Following reading through your own weblogs, We therefore wish to launch my very own essayteam too! what is infertility in women

Petter

I'm keen on ones write-up. It truly is beneficial to discover people verbalize on the cardiovascular system in addition to understanding within this significant theme is usually simply discovered. guidance check out web page. legal steroids that really work

This is a bit longer and

This is a bit longer and complicated process but thanks a lot for it. With rushanessay.com, I was able to follow through and now, editing those files has become so much easier. That's all because of you guys.

It might be the demonstration

It might be the demonstration of pushing substance out to others or just conceding computerized access rights to certain substance to one or more people. Later that substance may be superseded by an alternate form of the substance and in this way resigned.
personal statement nursing

Very nice.Thanks a lot for

Very nice.Thanks a lot for sharing.
Software Development

Pager position

Something that took me a while to figure out that your theme *name* also acts as a container of settings. The first '0' in the theme name followed by a 'p' means the pager positions Left and Right will be stripped from the admin interface. If you do not have a '0' followed by a 'p', positions Top and Bottom will be stripped from the drop down for pager position.

And the kicker is that if you have a theme based on one of the included upright themes but with a position Left or Right, the pager will not be displayed at all.

Drupal 7?

Is there an equivalent for Drupal 7x? Or should these instructions be the same? :)

Can't get cycleblock to display

I have been banging my head on setting up an advanced slideshow for far too long.

I am 99.9% sure I followed your tutorial to the T, but I can't get the slideshow to display once I set it to "Cycleblock"
It will display as "Default," but not with the pretty formatting of my chosen theme.
I've tried different themes, and that doesn't make a difference.

When I delete my view, suddenly the images I had uploaded into my news_items display on my page, until I go and edit my blocks. I've tried making a new view and displaying the block again, and it goes back to showing me nothing.

My site is here: http://www.spokanebuddhisttemple.org/dev

Can you help? I'm beyond stumped.

Re: Can't get cycleblock to display

Please make an issue in the issue queue of the module

Thanks for such nice and detailed tutorial.

I am very grateful to the author of this nice tutorial. The best part of the tutorial is that it does not leave any chance for a newbee to make a mistake or to mis-understand an issue. I created an advanced dynamic display from this tutorial.
Note: If someone is follwing the tutorial and still does not get the desired result. Then make sure to empty cache as the last step. I had this problem. Even after placing the preprocess functions in template.php file, there were no images displaying in the block, but only heading of the block. Then i emptied the cache and the block was successfully working.
Thanks again for this nice tutorial.

I can't see any image after following the above steps

Hello ppblauuw,

Sincerely nice work. However, I have followed the steps described above but after changing the theme to custom in the block configuration, I can't seem to see any image get displayed. I don't know where i'm missing it.

My question is apart from changing $template to $custom_template in the custom template, is there any variable that needs to be modified? What about the template override in the template.php file, should the override be removed? i don't know. I just need help.

Thanks.

Nevermind I got a solution.

Nevermind I got a solution. Nice work.

Error on creating custom template files

I copied the template files as per the instructions above except that I used connect2mason as the name.
My directory structure is:
sh-3.2$ ls *
ddblock-cycle-block-content-connect2mason.tpl.php ddblock-cycle-pager-content-connect2mason.tpl.php NOTES.txt
ddblock-cycle-block-content-upright40.tpl.php ddblock-cycle-pager-content-upright40.tpl.php

connect2mason:
ddblock-cycle-connect2mason.css

images:
readmore-hover.png readmore.png transparent_bg.png

TMP:
ddblock-cycle-block-content.tpl.php ddblock-cycle-block-content-upright30.tpl.php ddblock-cycle-pager-content-upright10.tpl.php ddblock-cycle-pager-content-upright50.tpl.php upright30
ddblock-cycle-block-content-upright10.tpl.php ddblock-cycle-block-content-upright50.tpl.php ddblock-cycle-pager-content-upright20.tpl.php upright10 upright50
ddblock-cycle-block-content-upright20.tpl.php ddblock-cycle-pager-content.tpl.php ddblock-cycle-pager-content-upright30.tpl.php upright20

upright40:
ddblock-cycle-upright40.css

The error I receive is
The block configuration has been saved.
warning: include(./sites/all/themes/tao/custom/modules/ddblock/ddblock-cycle-pager-content.tpl.php) [function.include]: failed to open stream: No such file or directory in /home/drupal/public_html/includes/theme.inc on line 1020.
warning: include() [function.include]: Failed opening './sites/all/themes/tao/custom/modules/ddblock/ddblock-cycle-pager-content.tpl.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/drupal/public_html/includes/theme.inc on line 1020.
warning: include(./sites/all/themes/tao/custom/modules/ddblock/ddblock-cycle-block-content.tpl.php) [function.include]: failed to open stream: No such file or directory in /home/drupal/public_html/includes/theme.inc on line 1020.
warning: include() [function.include]: Failed opening './sites/all/themes/tao/custom/modules/ddblock/ddblock-cycle-block-content.tpl.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/drupal/public_html/includes/theme.inc on line 1020.

Re: Error on creating custom template files

The error says that it can not find the files

ddblock-cycle-block-content.tpl.php
ddblock-cycle-pager-content.tpl.php

You need to have:

ddblock-cycle-block-content.tpl.php
ddblock-cycle-pager-content.tpl.php

in the directory
/sites/all/themes/tao/custom/modules/ddblock/

Otherwise files like:
ddblock-cycle-block-content-connect2mason.tpl.php 
ddblock-cycle-pager-content-connect2mason.tpl.php

can not be used.

Same as you need:

node.tpl.php

in the same directory of your theme when you want to use template files per node content_type like
node-[my content type].tpl.php

Hope this helps you further, please let me know.

warning: Invalid argument

warning: Invalid argument supplied for foreach() in F:\wamp\www\netcare\sites\all\themes\xinonetworks\custom\modules\ddblock\ddblock-cycle-block-content-upright10.tpl.php on line 47.
why?
thank you!

Re: warning Invalid argument

Have a look at the faq question warning: Invalid argument supplied for foreach() in... solution?

Hope this helps you further, please let me know.

If not please make an issue in the issue queue of the module.

Additional themes

I got the upright package working and now I would like to add your additional weekly themes. I have tried copying these into the formers' folder estructure, so that they will coexist. But this method replaces some files from upright and doesn't seem to work. How can I have the new themes available without deleting others?
Thank you so much,

How to change location

How do you change the path to the theme?

I would like to have the path be: [MY-THEME]/ddblock/
instead of: [MY-THEME]/custom/modules/ddblock/[TEMPLATE]/

Re: How to change location

Move the ddblock directory from:
[MY-THEME]/custom/modules/
to
[MY-THEME]/

delete the custom directory including the subdirectory modules

Clear the cache at Administer > Site configuration > Performance

Hope this helps you further, please let me know.

worked

That works, thanks for the help.

dd block displays only 4 slides

Hello! I have used dd block for one drupal website and i want to display 6 slides. Currently it only displays 4.
Can anyone help me ?
Thanks in advance

Re: dd block displays only 4 slides

Probably the view used with the ddblock module is set to display only 4 slides.
If not please create an issue in the issue queue of the module.

Thanks

Yes that was it, it was a view problem. Thanks and bests

DDblock works fine for me,

DDblock works fine for me, except custom theme in drupal 7.

- I copy upright60p folder and rename it into upright60me.
- rename css file in this folder into "ddblock-cycle-upright60me.css"
- modify every element in the css file from upright60p to upright60me.
- copy "ddblock-cycle-block-content--upright60p.tpl.php" and rename it into "ddblock-cycle-block-content--upright60me.tpl.php"
- copy "ddblock-cycle-pager-content--upright60p.tpl.php" and rename it into "ddblock-cycle-pager-content--upright60me.tpl.php"

Everything seems ok, but whenever I use this custom theme, my slideshow block disappears. Is there something wrong? Can anyone out there help me please...

The best piece of the

The best piece of the instructional exercise is that it doesn't leave any shot for a newbee to commit an error or to mis-comprehend an issue. I made a propelled dynamic show from this instructional exercise. You may have more content about it at https://cahomeworkhelp.com/do-my-english-homework-for-me/ and therefore i'm sharing this link here.