Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - live627
91
Features / Additional rows inn generic list
« on June 17th, 2012, 03:07 AM »
I'd like some changes to the additional rows inn generic list. Namely,

top_of_list to be moved above the title bar. Should it stay within the form?

below_title: why is it wrapped within a div that is floated to the right?

above_column_headers is wrapped in two divs: pagenav and one that is floated to the right. Could it be moved outside?

bellow_table_data is wrapped in two divs: pagenav and one that is floated to the right. Could it be moved outside and above the page index? This, so it can be more uniform, as above_column_headers is stuck between the top index and the main table.

bottom_of_list is wrapped in two divs: pagenav and one that is floated to the right. Could it be moved outside?
92
Features / Proposed change to add_linktree()
« on June 17th, 2012, 12:29 AM »
For those of you who don't know (or remember), add_linktree() iis a small helper function to append a link to the breadcrumb chain.

I would like to see the $name param first and $url next, as an optional param. That way, it can be used to add an item without an anchor.
93
Plugins / Monthly Statistics on Profile
« on June 10th, 2012, 04:16 AM »
Notwithstanding the hints of overhauling the profile area(s), I've made a seemingly simple plugin today that will show  a member's overall post count for the month, day, and year. Unlike its equivalent SMF mod, it'll show those days where they haven't made any posts..

94
Bug reports / No error box on preview
« on June 6th, 2012, 12:05 AM »
No error box appears when previewing a new topic without a subject, even though the subject label turns red, indicating an error.
95
Archived fixes / Thought autofocus
« on May 31st, 2012, 11:24 PM »
When  reply or quote is clicked, the text box should get focus IMHO.
96
Bug reports / My fixes to Subs-Boards
« on May 11th, 2012, 09:22 AM »

@@ -649,6 +649,18 @@
       $boardUpdateParameters['language'] = $boardOptions['language'];
    }
 
+   if (isset($boardOptions['board_type']))
+   {
+      $boardUpdates[] = 'board_type = {string:board_type}';
+      $boardUpdateParameters['board_type'] = $boardOptions['board_type'];
+   }
+
+   if (isset($boardOptions['id_owner']))
+   {
+      $boardUpdates[] = 'id_owner = {int:id_owner}';
+      $boardUpdateParameters['id_owner'] = $boardOptions['id_owner'];
+   }
+
    // Do the updates (if any).
    if (!empty($boardUpdates))
       wesql::query('
@@ -1100,12 +1112,12 @@
 
 // Load a lot of useful information regarding the boards and categories.
 // Restrict to their own boards anyone who's not an admin
-function getBoardTree($restrict = false)
+function getBoardTree($restrict = false, $id_owner = null)
 {
-   global $cat_tree, $boards, $boardList, $txt, $settings, $user_info;
+   global $cat_tree, $boards, $boardList, $txt, $settings;
 
-   $restriction = $user_info['is_admin'] || !$restrict ? '' : '
-            AND b.id_owner = ' . (int) $user_info['id'];
+   $restriction = $id_owner && $restrict ? '
+            AND b.id_owner = ' . (int) $id_owner : '';
 
    // Getting all the board and category information you'd ever wanted.
    $request = wesql::query('
@@ -1115,7 +1127,7 @@
          b.redirect_newtab, b.num_posts, b.language, b.num_topics, c.id_cat, c.name AS cat_name, c.cat_order, c.can_collapse
       FROM {db_prefix}categories AS c
          LEFT JOIN {db_prefix}boards AS b ON (b.id_cat = c.id_cat)' . $restriction . '
-      ORDER BY c.cat_order, b.child_level, b.board_order',
+      ORDER BY c.cat_order, b.board_order, b.child_level',
       array()
    );
    $cat_tree = array();
@@ -1170,7 +1182,7 @@
          $prevBoard = $row['id_board'];
          $last_board_order = $row['board_order'];
 
-         if (empty($row['child_level']))
+         if (empty($row['child_level']) || !$boards[$row['id_parent']])
          {
             $cat_tree[$row['id_cat']]['children'][$row['id_board']] = array(
                'node' => &$boards[$row['id_board']],

  • Add to modifyBoard()
  • Change how a board owner is defined: what if a moderator decides to modify a user's board in their behalf? Also, in the future profile boards section, I think an admin should only see the boards with a defined owner. (I should note that this will affect the existing boards management; at least one said area imposes the restriction.
  • Change the sorting order of the query. I had a second-level board appear appear after a first-level board when they were supposed too be flipped. After changing the code, I played with moving some boards around and all appears to work as expected.
  • A second-level board had no parent according to the function because its parent had a different owner. This would trigger an error. The changed code doesn't feel right, but prevents the error.
97
Archived fixes / New indicator isn't showing in wireless mode
« on April 30th, 2012, 07:27 AM »
New indicator isn't showing in wireless mode in the display template.
98
Archived fixes / sb refresh does not update scrollbar
« on April 30th, 2012, 07:22 AM »
The scrollbar is not updated when refreshing the select box object when it contains a dozen items. Since the scrollbar variable is set on the open event, it just needs cleared when refreshing.
99
Archived fixes / Minor display glitches in Wireless
« on April 29th, 2012, 09:39 AM »
  • The board list on the message index needs updated to reflect the changes done to the main board index
  • Main message index also has columns on the right, making the subject areas quite narrow
  • Signature space dwarfs the poster info bar
  • There are two lines below the posts which don't look right if nobody has liked that particular post
100
Archived fixes / Board positioning lists don't update
« on April 29th, 2012, 09:13 AM »
The two select boxes for the board position in ManageBoards don't update. Their change events should invoke sb() to refresh disabled states.
101
Archived fixes / Undefined index in wetem::find
« on April 25th, 2012, 08:04 AM »
If the target layer/block doesn't exist, $to is never defined.

Case in point: I have added a block to the body, which works fine, The problem comes in XML mode, where the layer isn't registered.
102
Archived fixes / Buffer hook never called
« on April 22nd, 2012, 09:37 AM »
Need to add ob_start($call) to obExit in Subs-Template, right under where it loads the files. Then it'll work as expected :)
103
Off-topic / QapTcha
« on April 19th, 2012, 06:41 AM »
http://www.myjqueryplugins.com/QapTcha

This is a very interesting take on user validation. It is a jQuery plugin that generates a random string and puts it into a hidden input. The widget looks and behaves much like the iPod control to unlock it right after you turn it on. Once you slide it to the right, it "unlocks" the form for submission. Once that happens, a session variable is injected and the input element is emptied.

There is one fundamental flaw with it, though: if javascript is disabled, you're out of luck. They even admit it! However, they also note that the server-side validation will then fail, unconditionally.

However half-assed this implementation is, it seems like a nice idea.
104
Other software / Customisation site rewrrite
« on April 10th, 2012, 08:59 AM »
http://www.simplemachines.org/community/index.php?topic=377288.msg3310030#msg3310030

Now they seem to want to dump existing code and want to base it on SM Core. Really.

I just don't see it rolled out for another three years, and I'd say that's quite optimistic. And I like how quick Suki is to tell Nas that it's not dead.
105
Plugins / [Plugin Screenshots] Invitation Only Topics
« on April 5th, 2012, 07:21 AM »
This plugin allows your members to restrict topics to those members they choose.


User details:
- Uses board permission too allow/deny users the ability too invite members to a topic. Note that guests cannot do this.
- Sidebar block for members who are invited to topic