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