- You are here:
- Main › Forum › Application Support
Help Tab Recent Topics
5 posts
• Page 1 of 1
-
- nhatchanh
- Posts: 3
- Joined: Sun Oct 14, 2012 3:56 am
- Location: http://www.nhatchanh.info
Sun Oct 14, 2012 4:01 am • via Web
Hello !
I speak English very bad...
I have one question: Want to add one Tab on block recent topic how?
for cbb-blockgets-1.0.2.
Help help help
I speak English very bad...
I have one question: Want to add one Tab on block recent topic how?
for cbb-blockgets-1.0.2.
Help help help
- IvanPF
- Administrator
- Posts: 2010
- Joined: Fri Jun 17, 2011 12:15 am
- Location: España (Spain)
Sun Oct 14, 2012 6:44 pm • via Android
That data you want to display on the tab?
-
- nhatchanh
- Posts: 3
- Joined: Sun Oct 14, 2012 3:56 am
- Location: http://www.nhatchanh.info
Mon Oct 15, 2012 3:59 am • via Web
add tab Newest members
add tab Top Post members
help...
When install MOD : Subject Prefix (https://www.phpbb.com/community/viewtopic.php?f=70&t=2091731), cbb-blockgets error bloks Calendar with events + MOD Chat-Mini.
Admin fix ?
add tab Top Post members
help...
When install MOD : Subject Prefix (https://www.phpbb.com/community/viewtopic.php?f=70&t=2091731), cbb-blockgets error bloks Calendar with events + MOD Chat-Mini.
Admin fix ?
- IvanPF
- Administrator
- Posts: 2010
- Joined: Fri Jun 17, 2011 12:15 am
- Location: España (Spain)
Mon Oct 15, 2012 4:22 pm • via Web
nhatchanh wrote:add tab Newest members
add tab Top Post members
To add these tabs will require several changes.
I am attaching the files of "recent_topics" block with the changes.
Just upload them to the server and clear the cache from the ACP.
nhatchanh wrote:When install MOD : Subject Prefix (https://www.phpbb.com/community/viewtopic.php?f=70&t=2091731), cbb-blockgets error bloks Calendar with events + MOD Chat-Mini.
Admin fix ?
This mod has been marked as abandoned and causes many errors.
I should not offer support for abandoned mods but I will also indicate the changes to be made to solve the problem.
Open /includes/hooks/hook_subject_prefix.php
Find and Delete:
- Code: Select all
array(
'phpbb_user_session_handler',
'subject_prefix_init',
),
Find:
- Code: Select all
$phpbb_hook->register($hook[0], 'sp_hook::' . $hook[1]);
}
Add After:
- Code: Select all
// Load all the classes
$classes = array('sp_phpbb', 'sp_cache', 'sp_core');
foreach ($classes as $class)
{
if (!class_exists($class))
{
require "{$phpbb_root_path}includes/mods/subject_prefix/{$class}.{$phpEx}";
}
}
Find and Delete:
- Code: Select all
/**
* A hook that is used to initialise the Subject Prefix core
* @param phpbb_hook $phpbb_hook The phpBB hook object
* @return void
*/
static public function subject_prefix_init(&$hook)
{
global $phpbb_root_path, $phpEx;
// Load all the classes
$classes = array('sp_phpbb', 'sp_cache', 'sp_core');
foreach ($classes as $class)
{
if (!class_exists($class))
{
require "{$phpbb_root_path}includes/mods/subject_prefix/{$class}.{$phpEx}";
}
}
}
- Attachments
-
- recent-topics-block-with-members.zip
- (8.41 KB) Downloaded 186 times
-
- nhatchanh
- Posts: 3
- Joined: Sun Oct 14, 2012 3:56 am
- Location: http://www.nhatchanh.info
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests
- External Links
- phpBB Official
- phpBB Official (Spanish)
- Raul Arroyo Monzo
- PasionReef
- About CaniDev
- Terms of use
- Privacy Policy
- About Us
- Contact
- © 2011-2024 CaniDev