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.

Messages - live627
556
Features / Re: Action buttons: positioning
« on May 13th, 2012, 06:57 AM »
Nao, it works fine in Firefox 12 (ugh, why the hell do they do this??). But, then again, what doesn't? :)
557
Features / Re: Action buttons: positioning
« on May 11th, 2012, 09:34 AM »
Quote
Plus, the item is no longer clikable when the menu is opened. I'm not sure why, because there are no z-indexes involved any longer...
My only guess is that the margin is in the way.
Quote
I'd like for more opinions from other users, too... you CAN post, you know!
I like it moved as well... not more nor less than with it encompassing the original item.
558
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.
559
Off-topic / Re: Post count fever
« on May 10th, 2012, 11:27 PM »
Quote from PantsManUK on May 10th, 2012, 10:15 AM
Quote from live627 on May 10th, 2012, 09:32 AM
...and  I'm now within the four-digit range!
No, live, now you're into the four-digit range ;)
heh, grammar nazi :P
560
Off-topic / Re: Post count fever
« on May 10th, 2012, 09:32 AM »
...and  I'm now within the four-digit range!
Posted: May 10th, 2012, 06:13 AM

To celebrate, I've made a SP-style avatar that might remotely resemble me. The shirt has "1000", which lost it's readability during resize. Yes, I always dress semi-casually.
561
Off-topic / Re: Bridges between other softwares and Wedge
« on May 10th, 2012, 01:17 AM »
Quote from nend on May 9th, 2012, 06:57 AM
Can we have a bridge for SMF? :eheh: :whistle:
lmao
562
Features / Re: New revs - Public comments
« on May 6th, 2012, 06:51 AM »
Cowboy?? Am I missing something?
563
Features / Re: Action buttons: positioning
« on May 5th, 2012, 06:58 AM »
btw, I voted to put the buttons on Mars because I could. Where''s the red space dust? :P
564
The Pub / Re: The Cookie Law (in the UK at least)
« on May 5th, 2012, 06:54 AM »
hehehehe
565
Features / Re: Action buttons: positioning
« on May 5th, 2012, 05:31 AM »
Quote
You know, I think it might be better if the like button were actually a button in the style of the other buttons
Too many borders and lines. I like it more minimalistic like how it is now.
566
I'm REALLY considering this a lot... would be a good excuse to restart/continue a SMF fork.
567
Features / Re: New revs - Public comments
« on May 1st, 2012, 10:25 PM »
Quote
I also miss the date and time of the post. I'm not sure if this is an bug, or intended, but I just really miss it.
Isn't it on the top right of the post?
568
Off-topic / Re: HTML5 Upload Progress.
« on May 1st, 2012, 10:16 PM »
Quote
Anybody else play around with this new feature?
I have...

You just need to ensure that sendForm returns false to prevent the form from being submitted.
569
Archived fixes / Re: sb refresh does not update scrollbar
« on May 1st, 2012, 12:58 AM »
You won''t notice, then. Try it with 12 - 15 options.
570
Archived fixes / Re: sb refresh does not update scrollbar
« on May 1st, 2012, 12:03 AM »
How many options do you have in your test case?