collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 400
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Author Topic: Admin Dashboard - everything you need ;)  (Read 75384 times)

0 Members and 3 Guests are viewing this topic.

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Admin Dashboard - everything you need ;)
« on: May 04, 2009, 03:25:33 PM »
[FOR SMF 2.0 ONLY]

I think that an Admin Dashboard is needed so I did one with:

* Moderator Reports
* Arcade (SMF Arcade Mod)
* Downloads (Download System Mod)
* Gallery (SMF Gallery Mod)
* Media Gallery (SMG Gallery Mod - old version)
* Media Gallery (AEVA Media Gallery - new version) «----- ADDED!
* Articles (SMF Articles Mod)
* Links (SMF Links Mod)
* Error Log
* Last Members
* Quick Stats

I hope you like it and if you want to add something to the admin dashboard just say something (I'll try to make you dream come true eheh ;D)

I've attached the images if you want to put it hosted in your website in /Themes/default/images/sp/


Note: It's a smart block. If you don't have one of the mods installed the admin info of it does not appear


Screenshot:


SMG Gallery & AEVA Gallery:


Don't forget to upload the images (from the zip files) to your SP image folder.

Here is the code (a lot smaller thanks to [SiNaN]):
Code: [Select]
// FOR SIMPLE PORTAL -- Admin Dashboard -- Made by Blue
global $smcFunc, $sourcedir, $scripturl, $context;

$areas = array();

$result = $smcFunc['db_query']('','
   SELECT COUNT(*) AS reports
   FROM {db_prefix}log_reported
   WHERE closed = {int:not_closed}',
   array(
      'not_closed' => 0,
   )
);
list ($closed_reports) = $smcFunc['db_fetch_row']($result);
$smcFunc['db_free_result']($result);

$result = $smcFunc['db_query']('','
   SELECT COUNT(*) AS reports
   FROM {db_prefix}log_reported
   WHERE closed = {int:closed}',
   array(
      'closed' => 1,
   )
);
list ($open_reports) = $smcFunc['db_fetch_row']($result);
$smcFunc['db_free_result']($result);

$areas['mod_reports'] = array(
   'title' => 'Moderation Reports',
   'items' => array(
      'open' => array(
         'icon' => 'report_open',
         'label' => 'Open',
         'url' => '?action=moderate;area=reports;sa=open',
         'value' => $open_reports,
      ),
      'closed' => array(
         'icon' => 'report_closed',
         'label' => 'Closed',
         'url' => '?action=moderate;area=reports;sa=closed',
         'value' => $closed_reports,
      ),
   ),
);

if (file_exists($sourcedir . '/Arcade.php'))
{
   $areas['arcade'] = array(
      'title' => 'Arcade',
      'items' => array(
         'install' => array(
            'icon' => 'game_install',
            'label' => 'Install Game',
            'url' => '?action=admin;area=managegames;sa=install',
         ),
         'upload' => array(
            'icon' => 'game_upload',
            'label' => 'Upload Game',
            'url' => '?action=admin;area=managegames;sa=upload',
         ),
         'edit' => array(
            'icon' => 'game_edit',
            'label' => 'Edit Game',
            'url' => '?action=admin;area=managegames;sa=main',
         ),
      ),
   );
}

if (file_exists($sourcedir . '/Downloads2.php'))
{
   $result = $smcFunc['db_query']('','
      SELECT COUNT(*) AS files
      FROM {db_prefix}down_file
      WHERE approved = {int:not_approved}',
      array(
         'not_approved' => 0,
      )
   );
   list ($waiting_files) = $smcFunc['db_fetch_row']($result);
   $smcFunc['db_free_result']($result);

   $result = $smcFunc['db_query']('','
      SELECT COUNT(*) AS reports
      FROM {db_prefix}down_report',
      array(
      )
   );
   list ($reported_files) = $smcFunc['db_fetch_row']($result);
   $smcFunc['db_free_result']($result);

   $result = $smcFunc['db_query']('','
      SELECT COUNT(*) AS comments
      FROM {db_prefix}down_comment
      WHERE approved = {int:not_approved}',
      array(
         'not_approved' => 0,
      )
   );
   list ($waiting_comments) = $smcFunc['db_fetch_row']($result);
   $smcFunc['db_free_result']($result);

   $result = $smcFunc['db_query']('','
      SELECT COUNT(*) AS reports
      FROM {db_prefix}down_creport',
      array(
      )
   );
   list ($reported_comments) = $smcFunc['db_fetch_row']($result);
   $smcFunc['db_free_result']($result);

   $areas['downloads'] = array(
      'title' => 'Downloads',
      'items' => array(
         'waiting_files' => array(
            'icon' => 'file_approve',
            'label' => 'File Approval',
            'url' => '?action=admin;area=downloads;sa=approvelist',
            'value' => $waiting_files,
         ),
         'reported_files' => array(
            'icon' => 'file_report',
            'label' => 'Reported Files',
            'url' => '?action=admin;area=downloads;sa=reportlist',
            'value' => $reported_files,
         ),
         'waiting_comments' => array(
            'icon' => 'comments_add',
            'label' => 'Comment Approval',
            'url' => '?action=admin;area=downloads;sa=commentlist',
            'value' => $waiting_comments,
         ),
         'reported_comments' => array(
            'icon' => 'comments_delete',
            'label' => 'Reported Comments',
            'url' => '?action=admin;area=downloads;sa=commentlist',
            'value' => $reported_comments,
         ),
      ),
   );
}

if (file_exists($sourcedir . '/Gallery2.php'))
{
   $result = $smcFunc['db_query']('','
      SELECT COUNT(*) AS pictures
      FROM {db_prefix}gallery_pic
      WHERE approved = {int:not_approved}',
      array(
         'not_approved' => 0,
      )
   );
   list ($waiting_pictures) = $smcFunc['db_fetch_row']($result);
   $smcFunc['db_free_result']($result);

   $result = $smcFunc['db_query']('','
      SELECT COUNT(*) AS reports
      FROM {db_prefix}gallery_report',
      array(
      )
   );
   list ($reported_pictures) = $smcFunc['db_fetch_row']($result);
   $smcFunc['db_free_result']($result);

   $areas['gallery'] = array(
      'title' => 'Gallery',
      'items' => array(
         'waiting_files' => array(
            'icon' => 'picture_add',
            'label' => 'Picture Approval',
            'url' => '?action=admin;area=gallery;sa=approvelist',
            'value' => $waiting_pictures,
         ),
         'reported_files' => array(
            'icon' => 'picture_delete',
            'label' => 'Reported Pictures',
            'url' => '?action=admin;area=gallery;sa=reportlist',
            'value' => $reported_pictures,
         ),
      ),
   );
}

if (file_exists($sourcedir. '/Subs-MGallery.php'))
{   
$dbresult1 = $smcFunc['db_query']('', "
SELECT
COUNT(*) as notapproveditems
FROM {db_prefix}mgallery_media
WHERE approved = 0");
$row2 = $smcFunc['db_fetch_assoc']($dbresult1);
$notapproveditems = $row2['notapproveditems'];
$smcFunc['db_free_result']($dbresult1);

$dbresult2 = $smcFunc['db_query']('', "
SELECT
COUNT(*) as reportitems
FROM {db_prefix}mgallery_variables
WHERE type = 'item_report'");
$row2 = $smcFunc['db_fetch_assoc']($dbresult2);
$reportitems = $row2['reportitems'];
$smcFunc['db_free_result']($dbresult2);

$dbresult3 = $smcFunc['db_query']('', "
SELECT
COUNT(*) as notapprovedalbums
FROM {db_prefix}mgallery_albums
WHERE approved = 0");
$row2 = $smcFunc['db_fetch_assoc']($dbresult3);
$notapprovedalbums = $row2['notapprovedalbums'];
$smcFunc['db_free_result']($dbresult3);
   
$dbresult4 = $smcFunc['db_query']('', "
SELECT
COUNT(*) as notapprovedcomments
FROM {db_prefix}mgallery_comments
WHERE approved = 0");
$row2 = $smcFunc['db_fetch_assoc']($dbresult4);
$notapprovedcomments = $row2['notapprovedcomments'];
$smcFunc['db_free_result']($dbresult4);
   
$dbresult5 = $smcFunc['db_query']('', "
SELECT
COUNT(*) as reportcomments
FROM {db_prefix}mgallery_variables
WHERE type = 'comment_report'");
$row2 = $smcFunc['db_fetch_assoc']($dbresult5);
$reportcomments = $row2['reportcomments'];
$smcFunc['db_free_result']($dbresult5);

   $areas['smgallery'] = array(
      'title' => 'Gallery',
      'items' => array(
         'smg_items' => array(
            'icon' => 'picture_add',
            'label' => 'Picture Approval',
            'url' => '?action=mgallery',
            'value' => $notapproveditems,
         ),
         'smg_reportitems' => array(
            'icon' => 'picture_delete',
            'label' => 'Reported Pictures',
            'url' => '?action=mgallery',
            'value' => $reportitems,
         ),
         'smg_albums' => array(
            'icon' => 'gall_album',
            'label' => 'Albums Approval',
            'url' => '?action=mgallery',
            'value' => $notapprovedalbums,
         ),
         'smg_comments' => array(
            'icon' => 'comments_add',
            'label' => 'Comm. Approval',
            'url' => '?action=mgallery',
            'value' => $notapprovedcomments,
         ),
         'smg_reportcomments' => array(
            'icon' => 'comments_delete',
            'label' => 'Comm. Reported',
            'url' => '?action=mgallery',
            'value' => $reportcomments,
         ),
      ),
   );
}

if (file_exists($sourcedir. '/Aeva-Gallery2.php'))
{   
$dbresult1 = $smcFunc['db_query']('', "
SELECT
COUNT(*) as notapproveditems
FROM {db_prefix}aeva_media
WHERE approved = 0");
$row2 = $smcFunc['db_fetch_assoc']($dbresult1);
$notapproveditems = $row2['notapproveditems'];
$smcFunc['db_free_result']($dbresult1);

$dbresult2 = $smcFunc['db_query']('', "
SELECT
COUNT(*) as reportitems
FROM {db_prefix}aeva_variables
WHERE type = 'item_report'");
$row2 = $smcFunc['db_fetch_assoc']($dbresult2);
$reportitems = $row2['reportitems'];
$smcFunc['db_free_result']($dbresult2);

$dbresult3 = $smcFunc['db_query']('', "
SELECT
COUNT(*) as notapprovedalbums
FROM {db_prefix}aeva_albums
WHERE approved = 0");
$row2 = $smcFunc['db_fetch_assoc']($dbresult3);
$notapprovedalbums = $row2['notapprovedalbums'];
$smcFunc['db_free_result']($dbresult3);
   
$dbresult4 = $smcFunc['db_query']('', "
SELECT
COUNT(*) as notapprovedcomments
FROM {db_prefix}aeva_comments
WHERE approved = 0");
$row2 = $smcFunc['db_fetch_assoc']($dbresult4);
$notapprovedcomments = $row2['notapprovedcomments'];
$smcFunc['db_free_result']($dbresult4);
   
$dbresult5 = $smcFunc['db_query']('', "
SELECT
COUNT(*) as reportcomments
FROM {db_prefix}aeva_variables
WHERE type = 'comment_report'");
$row2 = $smcFunc['db_fetch_assoc']($dbresult5);
$reportcomments = $row2['reportcomments'];
$smcFunc['db_free_result']($dbresult5);

   $areas['smgallery'] = array(
      'title' => 'Gallery',
      'items' => array(
         'smg_items' => array(
            'icon' => 'picture_add',
            'label' => 'Picture Approval',
            'url' => '?action=media;area=moderate;sa=submissions',
            'value' => $notapproveditems,
         ),
         'smg_reportitems' => array(
            'icon' => 'picture_delete',
            'label' => 'Reported Pictures',
            'url' => '?action=media;area=moderate;sa=reports',
            'value' => $reportitems,
         ),
         'smg_albums' => array(
            'icon' => 'gall_album',
            'label' => 'Albums Approval',
            'url' => '?action=media;area=moderate;sa=submissions',
            'value' => $notapprovedalbums,
         ),
         'smg_comments' => array(
            'icon' => 'comments_add',
            'label' => 'Comm. Approval',
            'url' => '?action=media;area=moderate;sa=submissions',
            'value' => $notapprovedcomments,
         ),
         'smg_reportcomments' => array(
            'icon' => 'comments_delete',
            'label' => 'Comm. Reported',
            'url' => '?action=media;area=moderate;sa=reports',
            'value' => $reportcomments,
         ),
      ),
   );
}

if (file_exists($sourcedir . '/Articles2.php'))
{
   $result = $smcFunc['db_query']('','
      SELECT COUNT(*) AS articles
      FROM {db_prefix}articles
      WHERE approved = {int:not_approved}',
      array(
         'not_approved' => 0,
      )
   );
   list ($waiting_articles) = $smcFunc['db_fetch_row']($result);
   $smcFunc['db_free_result']($result);

   $result = $smcFunc['db_query']('','
      SELECT COUNT(*) AS comments
      FROM {db_prefix}articles_comment
      WHERE approved = {int:not_approved}',
      array(
         'not_approved' => 0,
      )
   );
   list ($waiting_comments) = $smcFunc['db_fetch_row']($result);
   $smcFunc['db_free_result']($result);

   $areas['downloads'] = array(
      'title' => 'Articles',
      'items' => array(
         'waiting_articles' => array(
            'icon' => 'article_add',
            'label' => 'Article Approval',
            'url' => '?action=admin;area=articles;sa=alist',
            'value' => $waiting_articles,
         ),
         'waiting_comments' => array(
            'icon' => 'comments_add',
            'label' => 'Comment Approval',
            'url' => '?action=admin;area=articles;sa=comlist',
            'value' => $waiting_comments,
         ),
      ),
   );
}

if (file_exists($sourcedir . '/Links2.php'))
{
   $result = $smcFunc['db_query']('','
      SELECT COUNT(*) AS links
      FROM {db_prefix}links
      WHERE approved = {int:not_approved}',
      array(
         'not_approved' => 0,
      )
   );
   list ($waiting_links) = $smcFunc['db_fetch_row']($result);
   $smcFunc['db_free_result']($result);

   $areas['links'] = array(
      'title' => 'Links',
      'items' => array(
         'waiting_links' => array(
            'icon' => 'links_approval',
            'label' => 'Link Approval',
            'url' => '?action=links;sa=alist',
            'value' => $waiting_links,
         ),
      ),
   );
}

$result = $smcFunc['db_query']('','
   SELECT COUNT(*) AS errors
   FROM {db_prefix}log_errors',
   array(
   )
);
list ($total_errors) = $smcFunc['db_fetch_row']($result);
$smcFunc['db_free_result']($result);

$areas['error_log'] = array(
   'title' => 'Error Log',
   'items' => array(
      'errors' => array(
         'icon' => 'error_new',
         'label' => 'Errors',
         'url' => '?action=admin;area=logs;sa=errorlog',
         'value' => $total_errors,
      ),
   ),
);

foreach ($areas as $area)
{
   echo '
<div class="sp_center" style="color: #FF9900">
   <strong>', $area['title'], '</strong>
</div>
<hr />
<ul class="sp_list">';

   foreach ($area['items'] as $item)
      echo '
   <li>', sp_embed_image($item['icon']), ' <a href="', $scripturl, $item['url'], '">', $item['label'], (isset($item['value']) ? ': [' . $item['value'] . ']' : ''), '</a></li>';

   echo '
</ul>';
}



ADDONS

Addons are little extras for your Admin Dashboard. Some people want it, some don't. So, if you are one that want it, just add the addons' code after the Admin Dashboard code in the SP php block.

Don't forget to upload the images (from the zip files) to your SP image folder.

Configuration Addon (Version 2) (request made by aceflybye & by amlucent)



Code: [Select]
//CONFIGURATION BLOCK | FOR ADMIN DASHBOARD <> by [Blue] @ Chrome!
global $scripturl, $smcFunc;

$dbresult = $smcFunc['db_query']('', '
SELECT COUNT(*) as requests
FROM {db_prefix}log_group_requests');
$row2 = $smcFunc['db_fetch_assoc']($dbresult);
$requests = $row2['requests'];
$smcFunc['db_free_result']($dbresult);

$areas = array(
   array(
      'icon' => 'brick_go',
      'url' => '?action=admin;area=packages',
      'label' => 'Browse Packages',
   ),
   array(
      'icon' => 'brick_add',
      'url' => '?action=admin;area=packages;sa=packageget;get',
      'label' => 'Upload Package',
   ),
   array(
      'icon' => 'group_gear',
      'url' => '?action=admin;area=membergroups',
      'label' => 'Edit Membergroups',
   ),
    array(
      'icon' => 'group_add',
      'url' => '?action=moderate;area=groups;sa=requests',
      'label' => 'Group Requests',
  'value' => $requests
   ), 
   array(
      'icon' => 'layout_edit',
      'url' => '?action=admin;area=manageboards',
      'label' => 'Modify Boards',
   ),
   array(
      'icon' => 'pilcrow',
      'url' => '?action=admin;area=postsettings;sa=censor',
      'label' => 'Censored Words',
   ),
);

echo '
<div class="sp_center" style="color: #FF9900;">
   <strong>Configuration</strong>
</div>
<hr />
<ul class="sp_list">';

   foreach ($areas as $area)
      echo '
   <li>', sp_embed_image($area['icon']), ' <a href="', $scripturl, $area['url'], '">', $area['label'], (isset($area['value']) ? ': [' . $area['value'] . ']' : ''), '</a></li>';

   echo '
</ul>';
//[END] CONFIGURATION BLOCK | FOR ADMIN DASHBOARD

Members Waiting Activation Addon (Version 2)



Code: [Select]
//MEMBERS WAITING ACTIVATION BLOCK v2.0 | FOR ADMIN DASHBOARD

// Title
echo'
<div style="text-align:center; color:#FF9900; font-weight:bold;">Members Waiting Act.</div>
<hr />';

// Code ;)
global $smcFunc, $scripturl, $txt;

$request = $smcFunc['db_query']('','
SELECT id_member, real_name, date_registered
FROM {db_prefix}members
WHERE is_activated = {int:is_activated}
ORDER BY id_member DESC',
array(
'is_activated' => 0,
)
);
$activations = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$activations[] = array(
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'date' => timeformat($row['date_registered'], '%d %b %y'),
);
}
$smcFunc['db_free_result']($request);

if (empty($activations))
{
echo '
', $txt['error_sp_no_members_found'];
return;
}

echo '
<ul class="sp_list">';

foreach ($activations as $activation)
echo '
<li>', sp_embed_image('dot'), ' ', $activation['link'], ' - ', $activation['date'], '</li>';

echo '
</ul>';
« Last Edit: July 19, 2011, 03:57:31 PM by Blue »
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline aceflybye

  • Semi Newbie
  • *
  • Posts: 12
  • Gender: Male
  • Life is Art - Art is Life
    • AceFlyBye.com
  • SMF Version: None
  • SP Version: None
Re: [BLOCK] Admin Dashboard - everything you need ;)
« Reply #1 on: May 04, 2009, 04:38:55 PM »
whats the zip file for? and how do I use it?

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: [BLOCK] Admin Dashboard - everything you need ;)
« Reply #2 on: May 04, 2009, 04:47:23 PM »
The zip file only has the codes and images apart.

I'm giving the images if you want to change the links and host them in your website since the imgs are hosted in ImageShack.

So, basically, you don't need to use the zip file. Just copy the code above to a php block ;)
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline aceflybye

  • Semi Newbie
  • *
  • Posts: 12
  • Gender: Male
  • Life is Art - Art is Life
    • AceFlyBye.com
  • SMF Version: None
  • SP Version: None
Re: [BLOCK] Admin Dashboard - everything you need ;)
« Reply #3 on: May 04, 2009, 04:51:32 PM »
when i add the block my home page turns white. any ideas?

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: [BLOCK] Admin Dashboard - everything you need ;)
« Reply #4 on: May 04, 2009, 04:57:10 PM »
Yes.

You don't have one of these mods installed:
* Downloads (Download System Mod)
* Gallery (SMF Gallery Mod)
* Articles (SMF Articles Mod)
* Links (SMF Links Mod)

Which is the mod that you don't have?
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline aceflybye

  • Semi Newbie
  • *
  • Posts: 12
  • Gender: Male
  • Life is Art - Art is Life
    • AceFlyBye.com
  • SMF Version: None
  • SP Version: None
Re: [BLOCK] Admin Dashboard - everything you need ;)
« Reply #5 on: May 04, 2009, 04:58:24 PM »
Could you actually give me links to the mods so i can get them I think they maybe more useful to have then to not

Could it also maybe have arcade controls, like install game so I don't have to go in to the admin every time.

if not thats ok great work
« Last Edit: May 04, 2009, 05:00:49 PM by aceflybye »

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: [BLOCK] Admin Dashboard - everything you need ;)
« Reply #6 on: May 04, 2009, 05:01:22 PM »
Hum... Yes, I can.

Here they are:
Download System
SMF Gallery
SMF Articles
SMF Links

Yes, I can add "Install game" but you need to give me the link for it since I don't have SMF Arcade installed.

So, go to the install game admin page and give me the link after index.php. It begins with "?action=" ok? :)
« Last Edit: May 04, 2009, 05:05:18 PM by Blue »
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline aceflybye

  • Semi Newbie
  • *
  • Posts: 12
  • Gender: Male
  • Life is Art - Art is Life
    • AceFlyBye.com
  • SMF Version: None
  • SP Version: None
Re: [BLOCK] Admin Dashboard - everything you need ;)
« Reply #7 on: May 04, 2009, 05:05:58 PM »
link to install arcade

/index.php?action=admin;area=managegames;sa=install;d2019da6d=8656836ef1bf75a86cd4d96883c31b57

link to upload game

/index.php?action=admin;area=managegames;sa=upload;d2019da6d=8656836ef1bf75a86cd4d96883c31b57

if you can add them that would be so great

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: [BLOCK] Admin Dashboard - everything you need ;)
« Reply #8 on: May 04, 2009, 05:12:12 PM »
Done! See if it works in a new php block ;)

Code: [Select]
//ARCADE BLOCK | FOR ADMIN DASHBOARD <> by [Blue] @ Chrome!

// Title
echo'
<center><font color="#FF9900"><b>Arcade</b></font></center>
<hr>';

// Code Install
echo'
<img src="http://img218.imageshack.us/img218/2686/install.png" align="abscenter" > <a href="' . $scripturl . '?action=admin;area=managegames;sa=install">Install Game</a>
<br/ >';

// Code Upload
echo'
<img src="http://img362.imageshack.us/img362/2597/upload.png" align="abscenter" > <a href="' . $scripturl . '?action=admin;area=managegames;sa=upload">Upload Game</a>
<br/ >';

//[END] ARCADE BLOCK | FOR ADMIN DASHBOARD

If it does I'll add it to the Admin Dashboard ;D
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline aceflybye

  • Semi Newbie
  • *
  • Posts: 12
  • Gender: Male
  • Life is Art - Art is Life
    • AceFlyBye.com
  • SMF Version: None
  • SP Version: None
Re: [BLOCK] Admin Dashboard - everything you need ;)
« Reply #9 on: May 04, 2009, 05:17:25 PM »
Perfect

here is the other things other may find useful having

link to edit games

index.php?action=admin;area=managegames;sa=main;d2019da6d=8656836ef1bf75a86cd4d96883c31b57
« Last Edit: May 04, 2009, 05:20:35 PM by aceflybye »

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: [BLOCK] Admin Dashboard - everything you need ;)
« Reply #10 on: May 04, 2009, 05:26:02 PM »
Try this :P

Code: [Select]
//ARCADE BLOCK | FOR ADMIN DASHBOARD <> by [Blue] @ Chrome!

// Title
echo'
<center><font color="#FF9900"><b>Arcade</b></font></center>
<hr>';

// Code Install
echo'
<img src="http://img218.imageshack.us/img218/2686/install.png" align="abscenter" > <a href="' . $scripturl . '?action=admin;area=managegames;sa=install">Install Game</a>
<br/ >';

// Code Upload
echo'
<img src="http://img362.imageshack.us/img362/2597/upload.png" align="abscenter" > <a href="' . $scripturl . '?action=admin;area=managegames;sa=upload">Upload Game</a>
<br/ >';

// Code Edit
echo'
<img src="http://img218.imageshack.us/img218/775/edite.png" align="abscenter" > <a href="' . $scripturl . '?action=admin;area=managegames;sa=main">Edit Game</a>
<br/ >';

//[END] ARCADE BLOCK | FOR ADMIN DASHBOARD
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline aceflybye

  • Semi Newbie
  • *
  • Posts: 12
  • Gender: Male
  • Life is Art - Art is Life
    • AceFlyBye.com
  • SMF Version: None
  • SP Version: None
Re: [BLOCK] Admin Dashboard - everything you need ;)
« Reply #11 on: May 04, 2009, 05:28:57 PM »
Perfect lol now  for them all to be together. so awesome by the way ty for doing this  :applause:

Wish there was like karma or something to thank. sadly smf 2.0 don't have a mod for it. 

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: Admin Dashboard - everything you need ;)
« Reply #12 on: May 04, 2009, 05:30:44 PM »
No problem ;) I'm glad I helped you ;D

Wish there was like karma or something to thank. sadly smf 2.0 don't have a mod for it. 

Are you refering to SMF or Simple Portal Website? I'm asking because SMF has a karma system built in :P
« Last Edit: May 04, 2009, 05:35:49 PM by Blue »
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Admin Dashboard - everything you need ;)
« Reply #13 on: May 04, 2009, 05:34:21 PM »
Moved to the "Blocks and Modifications" board.

Looks very nice. My only comment is that you could add checking to see if the specific mods are installed, so that they don't cause errors if you don't have them installed. Something like the code below will work for the arcade mod.

Code: [Select]
global $sourcedir;
if (file_exists($sourcedir . '/Arcade.php'))
{
// normal code
}

You can change it for each mod. :)
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: Admin Dashboard - everything you need ;)
« Reply #14 on: May 04, 2009, 05:37:12 PM »
Cool, thanks LHVWB.

I was thinking of adding "intelligent blocks" like your Shop Block. Thanks for providing me the code ;)
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline aceflybye

  • Semi Newbie
  • *
  • Posts: 12
  • Gender: Male
  • Life is Art - Art is Life
    • AceFlyBye.com
  • SMF Version: None
  • SP Version: None
Re: Admin Dashboard - everything you need ;)
« Reply #15 on: May 04, 2009, 05:37:35 PM »
Works like a dream thank you. and awesome and i mean awesome work

No problem ;) I'm glad I helped you ;D

Wish there was like karma or something to thank. sadly smf 2.0 don't have a mod for it. 

Are you refering to SMF or Simple Portal Website? I'm asking because SMF has a karma system built in :P

I have not found how to turn it on or found it in any of the settings. and i wish that simple portal had it enabled if it has it.
« Last Edit: May 04, 2009, 05:40:21 PM by aceflybye »

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: Admin Dashboard - everything you need ;)
« Reply #16 on: May 04, 2009, 05:49:44 PM »
Updated: Added "Smart Blocks".
Now, if you don't have the mods installed, the admin info about it will not appear. Therefore, you don't need to remove anything from the code ;)

[aceflybye, you should ask how you turn on/off karmas in SMF Oficial website but... go to admin>features and options and turn karma on eheh :P (or add this next to your index.php: ?action=admin;area=featuresettings)]
« Last Edit: May 04, 2009, 05:58:07 PM by Blue »
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

willerby

  • Guest
Re: Admin Dashboard - everything you need ;)
« Reply #17 on: May 04, 2009, 07:00:10 PM »
Good work Blue... very impressed

Thanks

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: Admin Dashboard - everything you need ;)
« Reply #18 on: May 04, 2009, 07:05:25 PM »
Thank you willerby :) If you need to add something to the Admin Dashboard just say so and I'll help you ;D
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline aceflybye

  • Semi Newbie
  • *
  • Posts: 12
  • Gender: Male
  • Life is Art - Art is Life
    • AceFlyBye.com
  • SMF Version: None
  • SP Version: None
Re: Admin Dashboard - everything you need ;)
« Reply #19 on: May 04, 2009, 10:50:36 PM »
Hate to drop a list on you.. but Some settings that would be nice to quickly get to would be the following.  you can just ignore this all if you rather lol

Package Config

link to BROWSE PACKAGES
index.php?action=admin;area=packages

Link to DOWNLOAD PACKAGES
index.php?action=admin;area=packages;sa=packageget


Memeber Groups

Link to EDIT MEMBERGROUPS
index.php?action=admin;area=membergroups;sa=index


Forum Settings

Link to MODIFY BOARDS
index.php?action=admin;area=manageboards;sa=main

Link to CENSORED WORDS
index.php?action=admin;area=postsettings;sa=censor