Page 1 of 1
New block config not showing in ACP

Posted:
Wed Apr 12, 2006 3:34 pm
Author: Dragonsys
I am playing around with the Blog MOD Block, and I have created a .cfg file for it, and I have added the config options in Block Variables, but the options are not showing up in Portal Configuration, so i cannot makes changes to them. Is there any thing else I should have to change/edit to make them show?

Posted:
Thu Apr 13, 2006 12:33 pm
Author: Michaelo
Give me a link to the blog and I will add it to my test site, also include you cfg file so I can see whats happening... Mike
Re: New block config not showing in ACP

Posted:
Thu Apr 13, 2006 12:41 pm
Author: Dragonsys
Download The Blog Mod -
http://www.dragonsys.org/portal/dload.p ... &file_id=5here is what I have:
blocks/blocks_imp_blogs.cfg
- Code: Select all
<php>sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't obtain weblogs information.", "", __LINE__, __FILE__, $sql); $recent_blogs .= "No Blogs"; } else { $recent_entries = array(); while ( $row = $db->sql_fetchrow($result) ) { $recent_entries[] = $row; } foreach ($recent_entries as $current) { $recent_blogs .= "»" . "<a><b>"; // Entry Link $recent_blogs .= $current['entry_subject']; // Subject $recent_blogs .= "</b></a><br>n "; // End and html formatting $recent_blogs .= "by <a>"; // User Link $recent_blogs .= $current['username'] . "</a> on "; // User Name $recent_blogs .= date("D M j, Y g:i a",$current['entry_time']); // Post Date $recent_blogs .= "</b></a><br><br>n "; // End and html formatting } if($portal_config['md_blogs_style']){ $style_row = 'scroll'; }else { $style_row = 'static'; } $template->assign_block_vars($style_row,""); $template->assign_vars(array( 'RECENT_BLOGS' => $recent_blogs, 'YOUR_BLOG' => $userdata['user_weblog'] ) ); } } } imp_blogs_block_func(); ?>
When I tried to change the .tpl file I get errors, since I cannot set these options in the ACP, so for now, the .tpl file has not changed.
Re: New block config not showing in ACP

Posted:
Thu Apr 13, 2006 6:21 pm
Author: Helter
not sure if the two are related or not, but it seems since I updated the forum either to phpBB2.0.19, or the secrurity update, I have had to delete the cache in ACP/IM Portal every time I make a change of this nature. Im not sure which update is responsible as I did them both at the same time
Re: New block config not showing in ACP

Posted:
Tue Apr 18, 2006 7:10 am
Author: Dragonsys
That worked. Thanks!
Re: New block config not showing in ACP

Posted:
Wed Apr 19, 2006 8:44 am
Author: Dragonsys
ok, now they show in the Block Variabales page, but they do not show in the Portal COnfiguration page. So I cannot make any changes to the block...
Ok I got this. I had to add the variables to the portal_config table in the DB