Bruno36 wrote:Bruno36 wrote:Bruno36 wrote:Bonjour!
How to make a block Board3Portal_v1.0.2 ?
Bruno36 wrote:Bruno36 wrote:Bruno36 wrote:Bonjour!
How to make a block Board3Portal_v1.0.2 ?
Bruno36 wrote:Bruno36 wrote:Bruno36 wrote:Bruno36 wrote:Bonjour!
How to make a block Board3Portal_v1.0.2 ?
If it ever gets release.A portal block has now been written for board3 portal, this will be included within the contrib folder of the next release.
Ill adapt it so it also works for phpbb3portal, although this should be a direct drop in i believe
I like it... Please share!Gleasonator wrote:What do you guys think of my modified OurTube layout? http://gleasonator.com/tube/index.php
I'd be willing to provide the template files if anyone is interested.
Code: Select all
while ($row = $db->sql_fetchrow($result))
{
$x++;
$y++;
$sql2 = 'SELECT COUNT(item_id)
FROM ' . TUBE_ITEMS_TABLE . "
WHERE category_id = '" . $db->sql_escape($row['category_id']) . "'";
$result2 = $db->sql_query($sql2);
$row2 = $db->sql_fetchrow($result2);
$template->assign_block_vars('category', array(
'S_ROW' => $x % 3,
'S_COL' => $y,
'U_CATEGORY' => append_sid("{$phpbb_root_path}tube/index.$phpEx", "mode=category&id=" . $row['category_id']),
'CATEGORY' => $row['title'],
'COUNT' => $row2['COUNT(item_id)'],
'DESCRIPTION' => (strlen($row['description']) > 150) ? substr($row['description'], 0, 150) . '...' : $row['description'],
'THUMB' => ($row['thumb'] != '') ? (($row['youtube'] != '') ? $row['thumb'] : append_sid("{$phpbb_root_path}" . $row['thumb'])) : '',
));
$db->sql_freeresult($result2);
}
Code: Select all
$db->sql_freeresult($result);
make_tabs($id);
$template->assign_vars(array(
'U_CATEGORY' => append_sid("{$phpbb_root_path}tube/index.$phpEx", "mode=category&id=" . $id),
'CATEGORY' => $category,
'PAGINATION' => generate_pagination(append_sid("{$phpbb_root_path}tube/index.$phpEx", 'mode=category&id=' . $id), $total_items, 12, $start),
'PAGE_NUMBER' => on_page($total_items, 12, $start),
));
$template->assign_block_vars('navlinks', array(
'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}tube/index.$phpEx"),
'FORUM_NAME' => $user->lang['TUBE'],
));
$template->assign_block_vars('navlinks', array(
'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}tube/index.$phpEx", "mode=category&id=" . $id),
'FORUM_NAME' => $category,
));
$template->set_filenames(array(
'body' => 'tube_category.html')
);
$page_title = $user->lang['TUBE'] . ' • ' . $category;
Code: Select all
'U_TUBE' => append_sid("{$phpbb_root_path}tube/index.$phpEx"),
Code: Select all
'S_TUBE' => true,
Code: Select all
Powered by <a href="http://www.phpbb.com/">phpBB</a> © 2000, 2002, 2005, 2007 phpBB Group
Code: Select all
<!-- IF S_TUBE -->Powered by 'OurTube' written by <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2872753">Daemonic</a><br />& JW FLV Player written by <a href="http://www.jeroenwijering.com/?item=JW_FLV_Player">Jeroen Wijering</a><br /><!-- ENDIF --
Code: Select all
img_button_add_video = button_add_video.gif*25*90
Code: Select all
.post-icon span { background: transparent none 0 0 no-repeat; }
Code: Select all
.addvideo-icon span { background: transparent none 0 0 no-repeat; }
Code: Select all
.buttons div.reply-icon { width: {IMG_BUTTON_TOPIC_REPLY_WIDTH}px; height: {IMG_BUTTON_TOPIC_REPLY_HEIGHT}px; }
Code: Select all
.buttons div.addvideo-icon { width: {IMG_BUTTON_ADD_VIDEO_WIDTH}px; height: {IMG_BUTTON_ADD_VIDEO_HEIGHT}px; }
Code: Select all
.reply-icon span { background-image: url("{IMG_BUTTON_TOPIC_REPLY_SRC}"); }
Code: Select all
.addvideo-icon span { background-image: url("{IMG_BUTTON_ADD_VIDEO_SRC}"); }
Code: Select all
'button_topic_locked', 'button_topic_new', 'button_topic_reply',
Code: Select all
'button_topic_locked', 'button_topic_new', 'button_topic_reply', 'button_add_video',
The first file edit in my post should fix at least the categories issue.
Find out if your host has shell access and you can manually install all this stuff. I remember you asked earlier to direct you to a host if I found one. It's much nicer to have all this stuff preinstalled if you can (since manually installing is quite a learning curve), but I've been able to get this all installed manually on dreamhost.comameisez wrote:will this work on shared host?
What files did you edit? As i see no change.Gleasonator wrote:The first file edit in my post should fix at least the categories issue.
As for the button, maybe it needs to be added via the ACP... go to ACP > Styles > Imagesets, find your style and choose the "Edit" option. On the next page, change the "Select image" dropdown to Localised buttons > Add video [en]. Then under the "Image" dropdown, set it to Localised > button_add_video.gif Then submit.
And let me know if that works. Thanks.