Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/overall_header.html
#
#-----[ FIND ]------------------------------------------
#
<a class="icon-home" href="{U_INDEX}" accesskey="h">{L_INDEX}</a>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<a class="icon-home" href="{U_PORTAL}">{L_PORTAL}</a> » <a href="{U_INDEX}" accesskey="h">{L_INDEX}</a>
#
#-----[ FIND ]------------------------------------------
#
<!-- IF TRANSLATION_INFO --><br />{TRANSLATION_INFO}<!-- ENDIF -->
Code: Select all
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/overall_footer.html
should be:"Web site Name" is a formation *suplying services with no intention of any revenue. Anyone who wants to support this formation can do it by donating so that the cost of server, the domain and etc. could be paid *of.
If it was up to me, I would reword the entire paragraph to read something like this:"Web site Name" is a formation supplying services with no intention of any revenue. Anyone who wants to support this formation can do it by donating so that the cost of server, the domain and etc. could be paid off.
"Web site name" is an organization supplying services with no intention of generating revenue. Anyone who wishes to support our organization may do so by sending a donation. Your generosity will be used to cover the costs associated with hosting this web site.
After editing the files in, root->styles-prosilver(ex.)->template->bb3portal->block->file.htmlStatic_Rage wrote:hey guys ive just uploaded the files for the portal (it looks great by the way) but when i go to edit the files as per the instructions, i cant find ANY of the lines it says to edit in any of the files, the whole portal seems to run fine though!? Another thing, does this portal have any kind of CP? Since i cant see how to edit the blocks...
When I tried this I got this error above the portal header although it does sort the announcements issueBillyBobBongo wrote:Okay!
1 problem down...one to go!
I got hold of an older version of this mod from a friend of mine. After replacing the root/bb3portal/block/recent.php file I was able to get the announcements to appear at last! I will post the code of this file just in case anyone else is having this issue as well!
Still unable to see polls however on the portal. If I get it worked out I'll post my findings once again!Code: Select all
<?php /* * * @name recent.php * @package phpBB3 Portal a.k.a canverPortal * @version $Id: recent.php,v 1.3 2007/02/21 12:37:42 angelside Exp $ * @copyright (c) Canver Software - www.canversoft.net * @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ if (!defined('IN_PHPBB')) { exit; } /** */ // // Exclude forums // $sql_where = ''; if ($CFG['exclude_forums']) { $exclude_forums = explode(',', $CFG['exclude_forums']); foreach ($exclude_forums as $i => $id) { if ($id > 0) { $sql_where .= ' AND forum_id != ' . trim($id); } } } // // Recent announcments // $sql = 'SELECT topic_title, forum_id, topic_id FROM ' . TOPICS_TABLE . ' WHERE topic_status <> 2 AND topic_approved = 1 AND ( topic_type = 2 OR topic_type = 3 ) ' . $sql_where . ' ORDER BY topic_time DESC'; $result = $db->sql_query_limit($sql, $CFG['max_topics']); while( ($row = $db->sql_fetchrow($result)) && ($row['topic_title'] != '') ) { // auto auth if ( ($auth->acl_get('f_read', $row['forum_id'])) || ($row['forum_id'] == '0') ) { $template->assign_block_vars('latest_announcments', array( 'TITLE' => character_limit($row['topic_title'], $CFG['recent_title_limit']), 'FULL_TITLE' => censor_text($row['topic_title']), 'U_VIEW_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&t=' . $row['topic_id']) ) ); } } $db->sql_freeresult($result); // // Recent hot topics // $sql = 'SELECT topic_title, forum_id, topic_id FROM ' . TOPICS_TABLE . ' WHERE topic_approved = 1 AND topic_replies >=' . $config['hot_threshold'] . ' ' . $sql_where . ' ORDER BY topic_time DESC'; $result = $db->sql_query_limit($sql, $CFG['max_topics']); while( ($row = $db->sql_fetchrow($result)) && ($row['topic_title'] != '') ) { // auto auth if ( ($auth->acl_get('f_read', $row['forum_id'])) || ($row['forum_id'] == '0') ) { $template->assign_block_vars('latest_hot_topics', array( 'TITLE' => character_limit($row['topic_title'], $CFG['recent_title_limit']), 'FULL_TITLE' => censor_text($row['topic_title']), 'U_VIEW_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&t=' . $row['topic_id']) ) ); } } $db->sql_freeresult($result); // // Recent topic (only show normal topic) // $sql = 'SELECT topic_title, forum_id, topic_id FROM ' . TOPICS_TABLE . ' WHERE topic_status <> 2 AND topic_approved = 1 AND topic_type = 0 ' . $sql_where . ' ORDER BY topic_time DESC'; $result = $db->sql_query_limit($sql, $CFG['max_topics']); while( ($row = $db->sql_fetchrow($result)) && ($row['topic_title'] != '') ) { // auto auth if ( ($auth->acl_get('f_read', $row['forum_id'])) || ($row['forum_id'] == '0') ) { $template->assign_block_vars('latest_topics', array( 'TITLE' => character_limit($row['topic_title'], $CFG['recent_title_limit']), 'FULL_TITLE' => censor_text($row['topic_title']), 'U_VIEW_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&t=' . $row['topic_id']) ) ); } } $db->sql_freeresult($result); ?>