Duplicate Blocks?
Chris Hall 40
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Duplicate Blocks?
Philipp
From: Austria
Administrator
1342From: Austria
Yes, it should work.
1 Re: Duplicate Blocks?
Chris Hall
OP
40
From: -
From: -
Does this still work with the most recent version?
1 Re: Duplicate Blocks?
Philipp
From: Austria
Administrator
1342From: Austria
Only with a small modification. I plan to add the ability to clone blocks in one of the next releases.
Here is how you can clone the module manually:
1) Run the following SQL query in phpMyAdmin:
2) Copy /blocks/forum_new.php to /blocks/forum_new2.php and /blocks/conf/forum_new.php to /blocks/conf/forum_new2.php
3) Edit /blocks/forum_new.php in an editor and change:
to:
4) Edit /blocks/conf/forum_new.php and change:
to:
5) Now you can add the new block in the admin section:
Blocks => Add New Block => Select PHP Block Script => "Forum new2"
Here is how you can clone the module manually:
1) Run the following SQL query in phpMyAdmin:
INSERT INTO esselbach_ct_preferences VALUES (NULL, '1', '0', '5', '831', 'WEBSITE_FORUM_NEW2', '', '5', 'forum_new2.php', '', '', '', '::1');
2) Copy /blocks/forum_new.php to /blocks/forum_new2.php and /blocks/conf/forum_new.php to /blocks/conf/forum_new2.php
3) Edit /blocks/forum_new.php in an editor and change:
$input_block_options = $system -> decode_array( $preferences[ 'website_forum_new'] );
to:
$input_block_options = $system -> decode_array( $preferences[ 'website_forum_new2'] );
4) Edit /blocks/conf/forum_new.php and change:
$input_block_options = $system -> decode_array( $preferences[ 'website_forum_new'] );
to:
$input_block_options = $system -> decode_array( $preferences[ 'website_forum_new2'] );
5) Now you can add the new block in the admin section:
Blocks => Add New Block => Select PHP Block Script => "Forum new2"
For example, if I wanted to have the latest forum posts in the right column that displays posts from all forums and in the center header (but only on the front page) have the latest forum post from a single forum (in this case announcements)?