new custom block

Hi all

I need to create a new custom block to put on pages like HTML block or RSS feed block (Builders -> Page blocks)

The content of this custom block gonna be picked up by a php include() function.

I would use HTML block for that, but PHP inside a HTML block is not working.

I searched for a tutorial or manual, but didint find anything about creating custom blocks, can someone help me?

Thanks in advice!

Quote · 30 Dec 2009

Try searching the Forum for 'PHP Block' instead. You will find your tutorial:

http://www.boonex.com/unity/forums/?action=goto&topic_id=Add-PHP-blocks-to-Pagebuilder-for-D7

Chris

Nothing to see here
Quote · 30 Dec 2009

Yes I should have searched for PHP Block instead Frown

thank you very much!!!

Quote · 30 Dec 2009

No need to do any file edits as mentioned above

Its really quite easy. you can goto table `sys_page_compose` then insert info...leave id blank fill out the rest in Func section make sure you put PHP

you can also use my little quick file

just unzip and put it in your root and call it in browser...www.site.com/addphpblock.php this will add block to index. Once its done you have to goto admin and open and close it to set the cache

edit the file and change green to whatever page you want it on.

"INSERT INTO `sys_page_compose` (`Page`, `PageWidth`, `Desc`, `Caption`, `Column`, `Order`, `Func`, `Content`, `DesignBox`, `ColWidth`, `Visible`, `MinWidth`)
VALUES ('index', '960px', 'php code block', 'php code block', 2, 2, 'PHP', 'require_once(''join.php'');', 1, 50, 'non,memb', 0)"

38 choices:

all_members
articles_home
articles_single
browse_page
bx_avatar_main
bx_blogs
bx_photos_home
bx_photos_rate
bx_photos_view
bx_sounds_home
bx_sounds_rate
bx_sounds_view
bx_videos_home
bx_videos_rate
bx_videos_view
categ_calendar
categ_module
categ_search
communicator_page
feedback
friends
index
join
mail_page
mail_page_compose
mail_page_view
member
my_friends
pedit
profile
profile_info
search
search_home
tags_calendar
tags_home
tags_module
tags_search
wall

I have video tutorials to help you mrpowless.com
Quote · 30 Dec 2009

Thanks Mrpowless,

Quick question what would go into the content field if I wanted to show only  the info I would get when I click on the Spy Friends menu button?

Quote · 13 Jan 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.