Messages - BurkeKnight
1
Bug reports / Re: Moved Topic not being marked as 'Read'
« on November 30th, 2014, 12:21 PM »
Confirmed.
I had to go to board index, and hit the Mark as Read button in order to finally get it marked.
2
Features: Posts & Topics / Re: Likes
« on October 24th, 2014, 04:43 PM »
AEVA in my opinion, is a very good core feature. Look how many people download or ask about media galleries at the SMF site.

Mentions.... I agree, that should also be added as a core feature.
3
Support / Two errors, each time log into Admin Panel
« on October 19th, 2014, 11:01 PM »
Seems to me that this happens every time log into admin panel.
Yet, once log in, they stop. Maybe something that happens after a scheduled task is run?

Type of error: General
URL /index.php?action=viewremote;filename=current-version.js
2: call_user_func() expects parameter 1 to be a valid callback, function 'ViewRemote' not found or invalid function name
File: /index.php


Type of error: Template
URL index.php?action=viewremote;filename=current-version.js
Unable to find the "main" template block.
4
Archived fixes / Re: Member's List Custom Fields do not line up
« on October 18th, 2014, 09:50 PM »
Fixed? No, not fixed...
Unless not showing custom fields is a "fix"... ;)
5
Archived fixes / Re: Member's List Custom Fields do not line up
« on October 13th, 2014, 08:30 PM »
Well, what is there in what you posted, has nothing to do with the custom profile fields, but it is strange that you have 3 value areas that seem a bit out of sorts, color and shape wise.

However, I do not see any custom fields listed in that screenshot, so I can't tell if anything changed in that regard.
6
Support / Re: How to make custom bbc?
« on October 13th, 2014, 08:20 PM »
I meant, reading here, I keep seeing something about custom bbc integration, with UI, that Arantor had been working on, but I guess it never got finished.

I have looked, and can not find out where to see the source on the bbc buttons in post editor.
Text, I just hard coded for now...
This is way more difficult than making a bbc for SMF right now (meaning on the first one), but once get the hang of it, bet I'll start pumping bbc plugins out....LOL :)
7
Support / Re: How to make custom bbc?
« on October 13th, 2014, 06:47 PM »
I keep seeing stuff about the custom bbc integration...
However, I have not seen anything about it in admin, so I guess it's still not in there at all?

So, how do I fix this plugin, so it works, and has the bbc button?
8
Support / Re: How to make custom bbc?
« on October 13th, 2014, 06:32 PM »
Now, I got it partly done up, but I need to figure out how to get the language string to work.
That, and how to get the BBC image into the editor's bbc buttons.

plugin-info.xml
Code: [Select]
<?xml version="1.0" standalone="yes" ?>
<plugin id="BurkeKnight:OffTopicBBC">
<name>OffTopicBBC</name>
<author url="http://www.burkeknight.com/">BurkeKnight</author>
<description>Off Topic BBC</description>
<version>1.0</version>
<bbcodes>
<bbcode tag="ot" type="parsed" block-level="yes">
<before-code><![CDATA[<div class="quoteheader">' . $txt['bbc_off_topic'] . '</div><div class="information">]]></before-code>
<after-code><![CDATA[</div>]]></after-code>
</bbcode>
</bbcodes>

<hooks>
<language filename="$plugindir/OffTopicBBC.english" />
</hooks>

<readmes>
<readme lang="english">$plugindir/readme.english.txt</readme>
</readmes>
</plugin>

OffTopicBBC.english.php

Code: [Select]
<?php
/**
 * BurkeKnight: OffTopicBBC
 *
 * Language strings for the OffTopicBBC's display.
 *
 * @package BurkeKnight-OffTopicBBC
 * @copyright 2014 BurkeKnight Enterprises
 * @license Creative Commons Attribution-ShareAlike 3.0 Unported License - http&#58;//creativecommons.org/licenses/by-sa/3.0/deed.en_US
 */

$txt['bbc_off_topic'] = 'Off-Topic';
9
Support / Re: How to make custom bbc?
« on October 13th, 2014, 05:34 PM »
I'll try that. Thank you. :)

On a side note, speaking of bbc, I notice an issue with the code tag.
When paste into the code tag, it shows fine.
However, when take from it, and paste into something, it is all without the spaces. Example, I just selected what you had there, and here's how it shows when I paste it:

Code: [Select]
<?xml version="1.0" standalone="yes" ?>
<plugin id="BurkeKnight:TestBBC">
<name>TestBBC</name>
<author>BurkeKnight</author>
<description>Example test.</description>
<version>1.0</version>
<bbcodes>
<bbcode tag="examplebbc" type="parsed" block-level="yes">
<before-code><![CDATA[<div class="windowbg2 wrc">]]></before-code>
<after-code><![CDATA[</div>]]></after-code>
</bbcode>
</bbcodes>
</plugin>
10
Support / How to make custom bbc?
« on October 13th, 2014, 12:35 AM »
Okay, I see core/app/Subs-BBC.php
Yet, I for the life of me, can't figure out how to add my own bbc in that...lol
I had made bbc for SMF, and wanted to add them to my site, yet no idea how.
11
Archived fixes / Re: Member's List Custom Fields do not line up
« on October 12th, 2014, 03:01 PM »
If it was okay, we'd not be having this discussion... ;)

The custom fields are put in after that bit of code.
That is why I have been unable to figure out a fix.

core/app/Memberlist.php
Code: [Select]
// Set up the columns...
$context['columns'] = array(
'is_online' => array(
'label' => $txt['online_status'],
'width' => '60',
),
'name' => array(
'label' => $txt['username']
),
'email' => array(
'label' => $txt['email'],
'width' => '25'
),
'website' => array(
'label' => $txt['website'],
'width' => '70',
'link_with' => 'website',
),
'group' => array(
'label' => $txt['position']
),
'registered' => array(
'label' => $txt['date_registered']
),
'posts' => array(
'label' => $txt['posts'],
'width' => '115',
'colspan' => '2',
'default_sort_rev' => true,
)
);

$context['colspan'] = 0;
$context['disabled_fields'] = isset($settings['disabled_profile_fields']) ? array_flip(explode(',', $settings['disabled_profile_fields'])) : array();
foreach ($context['columns'] as $key => $column)
{
if (isset($context['disabled_fields'][$key]) || isset($column['link_with'], $context['disabled_fields'][$column['link_with']]))
{
unset($context['columns'][$key]);
continue;
}

$context['colspan'] += isset($column['colspan']) ? $column['colspan'] : 1;
}

// Are there any custom fields for the memberlist? (Ordering as per the member options code!)
$context['custom_fields'] = array();
$request = wesql::query('
SELECT col_name, field_name, can_see
FROM {db_prefix}custom_fields
WHERE show_mlist = {int:show_mlist}
ORDER BY position',
array(
'show_mlist' => 1,
)
);
while ($row = wesql::fetch_assoc($request))
{
$row['can_see'] = explode(',', $row['can_see']);
foreach ($row['can_see'] as $k => $v)
$row['can_see'][$k] = (int) $v;
if (!we::$is_admin && count(array_intersect($row['can_see'], we::$user['groups'])) == 0)
continue;

// We get this both for the main column list and for our own reference for later.
$context['custom_fields'][$row['col_name']] = array(
'label' => $row['field_name'],
'no_sort' => true,
);
$context['colspan']++;
}
if (!empty($context['custom_fields']))
$context['columns'] = array_insert($context['columns'], 'id_group', $context['custom_fields']);

add_linktree($txt['members_list'], '<URL>?action=mlist');

$context['can_send_pm'] = allowedTo('pm_send');

// Jump to the sub action.
if (isset($subActions[$context['listing_by']]))
$subActions[$context['listing_by']][1]();
else
$subActions['all'][1]();
}

// List all members, page by page.

core/html/Memberlist.template.php
Code: [Select]
// Display each of the column headers of the table.
foreach ($context['columns'] as $column)
{
// We're not able (through the template) to sort the search results right now...
if (isset($context['old_search']))
echo '
<th', isset($column['class']) ? ' class="' . $column['class'] . '"' : '', isset($column['width']) ? ' style="width: ' . $column['width'] . 'px"' : '', isset($column['colspan']) ? ' colspan="' . $column['colspan'] . '"' : '', '>', $column['label'], '</th>';
// This is a selected column, so underline it or some such.
elseif ($column['selected'])
echo '
<th class="nowrap', isset($column['class']) ? ' ' . $column['class'] : '', '" style="width: auto"' . (isset($column['colspan']) ? ' colspan="' . $column['colspan'] . '"' : '') . '><a href="' . $column['href'] . '" rel="nofollow">' . $column['label'] . ' <span class="sort_' . $context['sort_direction'] . '"></span></a></th>';
// This is just some column... show the link and be done with it.
else
echo '
<th', isset($column['class']) ? ' class="' . $column['class'] . '"' : '', isset($column['width']) ? ' style="width: ' . $column['width'] . 'px"' : '', isset($column['colspan']) ? ' colspan="' . $column['colspan'] . '"' : '', '>', $column['link'], '</th>';
}
echo '
</tr>
</thead>
<tbody>';
12
Archived fixes / Re: Member's List Custom Fields do not line up
« on October 12th, 2014, 02:23 PM »
My first screenshot showed same thing, just different field name and value...

I tried to go in and see if I could fix it, but the way it is coded, I have no idea how to fix it...LOL
13
Archived fixes / Re: Member's List Custom Fields do not line up
« on October 12th, 2014, 02:12 PM »
Quote from CerealGuy on October 12th, 2014, 02:02 PM
Look at your screenshot, the Titles/values are in the wrong order. Title is github, but field is online.
That is what I've been saying, but it seems that Freñçh does not notice it.

Does not matter what the field is, it does that on all.
If add more, they all have the titles before the Online title, yet all field values are after website.
14
Archived fixes / Re: Member's List Custom Fields do not line up
« on October 12th, 2014, 02:02 PM »
Man... Look at your own screenshot!!!!

What I am saying is right there!

Look at where it says GitHub on the title bar, compared to where it shows your link in the member's line.
15
Archived fixes / Re: Member's List Custom Fields do not line up
« on October 12th, 2014, 01:51 PM »
I just set up another test site, nothing done to it, except to add the same custom profile field, and getting same results.
I have since set permissions, so guests can see the memberlist:

http://www.bkdevelopment.cc.nf/index.php?action=mlist