New block config not showing in ACP

Support for IntegraMOD 140

Moderator: Integra Moderator

New block config not showing in ACP

PostAuthor: Dragonsys » Wed Apr 12, 2006 3:34 pm

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?
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: Michaelo » Thu Apr 13, 2006 12:33 pm

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
Last edited by Michaelo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1646
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 0.00
Location: Dublin, Ireland

Re: New block config not showing in ACP

PostAuthor: Dragonsys » Thu Apr 13, 2006 12:41 pm

Download The Blog Mod - http://www.dragonsys.org/portal/dload.p ... &file_id=5



here 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 .= "&raquo;" . "<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.
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: New block config not showing in ACP

PostAuthor: Helter » Thu Apr 13, 2006 6:21 pm

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
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4178
Likes: 2 posts
Liked in: 3 posts
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 258.50
Location: Seattle Wa
IntegraMOD version: IM 3

Re: New block config not showing in ACP

PostAuthor: Dragonsys » Tue Apr 18, 2006 7:10 am

That worked. Thanks!
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: New block config not showing in ACP

PostAuthor: Dragonsys » Wed Apr 19, 2006 8:44 am

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
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX


Return to IntegraMOD 140

Who is online

Registered users: Bing [Bot], Google [Bot], Helter, Unspecified Bot