[DISC] My Dashboard Ultra

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Locked
safeTsurfa
I've Been Banned!
Posts: 1959
Joined: Sat May 08, 2004 10:21 am
Location: United Kingdom
Contact:

[DISC] My Dashboard Ultra

Post by safeTsurfa »

What does it do?
My Dashboard displays a personal panel at the top of every page, displaying posting statistics plus links to private messages and useful search results. The panel has rapid contact links to the Site Admin, so users can alert them of any problems at the board.

What's new in Ultra?
My Dashboard Ultra is a roll-up version bringing Basic and Advanced into a single installation. It adds a "My Dashboard" panel to the profile offering the following user-selectable options:
  • show or hide My Dashboard on the page;
  • select display in basic or advanced mode;
  • include your personal avatar in the display,
    (not shown if Admin has disabled avatars);
  • Minimise and restore the dashboard direct from the title bar;
  • db_update.php file included for MySql users.
Latest news:
2004-08-25 - Minimise and restore feature added to the dashboard. Update Patch 2 released (1.0.2 to 1.1.0).
2004-08-17 - Now installs using Nuttzy's EasyMOD.
2004-08-16 - Traditional Chinese language pack added, written by StickyKid.
2004-08-15 - Update Patch 1 released (v1.0.0 to v1.0.1/2) Upgrade patches for Advanced or Basic users added. OmegaQuest's instructions to set up My Dashboard Ultra in Ptirhiik's Profile Control Panel added.

Latest version: v1.1.0 released 2004-08-25

Download: My_Dashboard_Ultra.zip (37,657 bytes)

Screenshots:

Display showing advanced mode:
Image

Configuration panel in user profile:
Image

Feature List:
  • Includes a bug fix in privmsgs.php which counts unread messages incorrectly;
  • Displays a welcome showing the user name which links to their edit profile page;
  • Optionally displays the user's avatar next to their user name;
  • Displays the number of new and unread messages the user has, and links to the Inbox;
  • Contact links to send Admin email or private message;
  • Number of topics the user is watching, links to search page showing these;
  • Number of total posts or topics and replies the user has made, links to search page showing these:
  • Number of unanswered topics the user has made, links to search page showing these (useful for "bumping");
  • Number of total posts or topics and replies since last visit, links to search page showing these;
  • Number of unanswered topics on the board, links to search page showing these;
  • Number of new and total announcements, with links to search page showing these;
  • If the user is not logged in, the Login area is displayed in place of My Dashboard;
  • Configuration panel in profile so the user can hide it, or select the display mode;
  • Installs using Nuttzy's EasyMOD and Ptirhiik's Profile Control Panel (instructions included);
  • Language packs included:
    1. Traditional Chinese (Taiwan).

Code: Select all

############################################################## 
## MOD Title:    My Dashboard Ultra
## MOD Author: safeTsurfa < safetsurfa@hotmail.com > (n/a) http://www.safetsurfa.co.uk
## MOD Description: Adds a user panel to the top of the page with links to contact 
## admin, check messages, plus shows posting statistics with linked search results. 
## The display also has a minimize and restore feature, and there are additional 
## display options available in the user profile to provide full customisation. 
## If the user is not logged in, the login box is displayed. 
## MOD Version:  1.1.0 
## 
## Installation Level:   Intermediate 
## Installation Time:   15 minutes 
## 
## Files To Edit: 9 
##	privmsg.php 
##	search.php 
##	includes/constants.php 
##	includes/functions.php 
##	includes/page_header.php
##	includes/usercp_register.php
##	language/lang_english/lang_main.php 
##	templates/subSilver/overall_header.tpl 
##	templates/subSilver/profile_add_body.tpl 
## Included Files: 4
## 	db_update.php
## 	dashboard.php
##	templates/subSilver/images/dashboard_close.gif
##	templates/subSilver/images/dashboard_open.gif
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the latest 
## version of this MOD. Downloading this MOD from other sites could cause malicious 
## code to enter into your phpBB Forum. As such, phpBB will not offer support for 
## MOD's not offered in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
## This MOD is tested on phpBB 2.0.10, but should work on version 2.0.6 or later. 
## It will install and has been successfully tested using Nuttzy's EasyMOD. 
## 
## This MOD is designed for use with standard phpBB installations. It has not been 
## tested on portals or pre-modded boards, and is not guaranteed to work with them. 
## Support will NOT be given where this is installed on a portal or pre-modded board. 
## 
## The images in the templates\subSilver\images folder are 16*15 pixels. There are 
## larger images (20*18 px) in the 'Large Images' folder for styles which use them. 
## The images use the background from images supplied in the subSilver SDK. 
## The subSilver SDK is (c) phpBB Group and not released under the GPL. 
## 
## IMPORTANT! The db_update.php file is only designed for use on MySql databases. 
## Upload it into the phpbBB root folder, then in your browser enter the following, 
## using the correct URL and replacing {phpbb2} with the name of the phpBB folder: 
## http://www.yourdomain.com/{phpbb2}/db_update.php 
## REMEMBER to delete the file from the phpBB folder once you have used it! 
## 
## Greets and thanks fly out to:
## - Fredol < fredol@lovewithsmg.com > for bug fixes and code proof reading, and 
## - Drathbun < http://www.momentsoflight.com > for help with sql queries syntax. 
## - StickyKid < jason.hacker@msa.hinet.net > (Jason Hacker) http://www.loveloli.net 
##   for providing the Traditional Chinese language pack.
## Acknowledgements and credit to John B Abela's Welcome and Avatar on Index MOD, 
## from which the image display code is adapted. 
############################################################## 
## MOD History: 
## 
## 2004-08-14 - Version 1.0.0 
## - Roll-up mod combining Basic and Advanced versions into a single installation. 
## - Now includes display mode selection and disable options in the user profile. 
## - Revamped old code to pre-define display in php file and reduce tpl editing. 
##
## 2004-08-15 - Version 1.0.1 
## - Fixed a small bug to make avatar display obey ACP general config restrictions. 
## - Added switch to hide show avatar option if avatars disabled for board or user. 
## 
## 2004-08-17 - Version 1.0.2 
## - Now EasyMOD compliant with test installation done on a clean board. 
## 
## 2004-08-25 - Version 1.1.0 
## - Added minimize and restore buttons to the dashboard display. 
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
Last edited by safeTsurfa on Wed Aug 25, 2004 7:42 pm, edited 16 times in total.
safeTsurfa
Need help? First READ THIS
Personal projects: My Mods
User avatar
OmegaQuest
Registered User
Posts: 76
Joined: Mon Sep 01, 2003 9:12 pm
Location: Washington, DC

Post by OmegaQuest »

It says I have 7 Unread messages in my Inbox but there are none...

Also can you make this mod work with users that have PCP installed....

Thanks
Last edited by OmegaQuest on Sat Aug 14, 2004 1:37 pm, edited 1 time in total.
safeTsurfa
I've Been Banned!
Posts: 1959
Joined: Sat May 08, 2004 10:21 am
Location: United Kingdom
Contact:

Post by safeTsurfa »

Check you are correct about the unread messages, this is not the same thing as new messages. An unread message is any message which you have not actually opened and read, whereas a new message means one which arrived since you last visited your Inbox. Thus if you got a new message and went to your Inbox, but never opened the message itself, it would no longer be new, but would still be unread.

I do not intend making my MODs fit other MODs. They are designed for use on a straight phpBB board, sorry but I won't install other Mods just to "make them fit" with mine.
Last edited by safeTsurfa on Sat Aug 14, 2004 1:39 pm, edited 1 time in total.
safeTsurfa
Need help? First READ THIS
Personal projects: My Mods
User avatar
OmegaQuest
Registered User
Posts: 76
Joined: Mon Sep 01, 2003 9:12 pm
Location: Washington, DC

Post by OmegaQuest »

Yes I am Sure:

My inbox: 0 new :: 7 unread

and there are NO messages anywhere, read or unread....


Thanks anyways about the PCP, I might try to take this one and post it, cause a LOT of people use PCP... Thanks Again :)
safeTsurfa
I've Been Banned!
Posts: 1959
Joined: Sat May 08, 2004 10:21 am
Location: United Kingdom
Contact:

Post by safeTsurfa »

That is annoying, because the message part has been there since Basic was launched in beta, it hasn't been changed at all, and it works perfectly on my site. I guess I'll need to double check, but I'd also like you to do the same with your installation please? :(
safeTsurfa
Need help? First READ THIS
Personal projects: My Mods
User avatar
OmegaQuest
Registered User
Posts: 76
Joined: Mon Sep 01, 2003 9:12 pm
Location: Washington, DC

Post by OmegaQuest »

Looking in the Database for anything that has 7 on it...

Under the; user_unread_privmsg it DOES say 7 yet there are no Unread.....

So I will just take that part off the dashboard ...

Thanks
safeTsurfa
I've Been Banned!
Posts: 1959
Joined: Sat May 08, 2004 10:21 am
Location: United Kingdom
Contact:

Post by safeTsurfa »

There must be a conflict between mods. I just tested this on a clean board at a private site, and it works correctly.
safeTsurfa
Need help? First READ THIS
Personal projects: My Mods
ayusuf
I've Been Banned!
Posts: 917
Joined: Fri Feb 06, 2004 11:00 pm
Location: Orlando,Fl
Contact:

Post by ayusuf »

What about the javascript thingy which you can minimize and maximize.
safeTsurfa
I've Been Banned!
Posts: 1959
Joined: Sat May 08, 2004 10:21 am
Location: United Kingdom
Contact:

Post by safeTsurfa »

Not going to happen, as I don't do javascript, and I dislike the stuff anyway. It is a scripting form which is dependent on the client's browser, so once you get a browser which doesn't use it, like a text reader or one with it disabled as a security measure, then it is going to fail.

If there is enough interest in such a feature, I may look at enabling this using the php code itself, by leaving the title bar visible even when My Dashboard is hidden, and having a toggle button on it.

Right now though, that is not a priority, as I have something in mind in response to a number of posts on a certain configuration, which I want to be changeable via the Admin Panel.
safeTsurfa
Need help? First READ THIS
Personal projects: My Mods
bcs10
Registered User
Posts: 1525
Joined: Mon Jul 14, 2003 4:45 am
Location: Chicago, IL

Post by bcs10 »

hi there,
nice mod. but werent you going to be making update instructions for us too???? It would be a big help if you did... I am updateing from the Advanced version...

Thanks a lot,
Davood aka bcs10
/DD
Shof515
Registered User
Posts: 1169
Joined: Wed Mar 19, 2003 4:36 am

Post by Shof515 »

i have the advance verison of dashboard,is there a way to upgrade,without un-installing the old dashboard?
Whos missing up my sig?
bcs10
Registered User
Posts: 1525
Joined: Mon Jul 14, 2003 4:45 am
Location: Chicago, IL

Post by bcs10 »

Shof515 wrote: i have the advance verison of dashboard,is there a way to upgrade,without un-installing the old dashboard?
shof... that is what i asked.... no need to repeate a question two times in a row
/DD
User avatar
OmegaQuest
Registered User
Posts: 76
Joined: Mon Sep 01, 2003 9:12 pm
Location: Washington, DC

Post by OmegaQuest »

ok Here is the PCP How-To I made for this Mod....

-------------------------------

Creating the new panel

-------------------------------
Language key:
Choose 'Custom Language Pack': normal option in "Languages Management".
Click 'Add a new language key' button:
Language main key entry = profil_dashboard
English = My Dashboard
hit Submit.

-------------------------------

Mapping the input panels:

-------------------------------
In 'Map definition' navigate to:
PCP -> profil -> profile_prefer -> base
Click - 'Add new map':
Map name = dashboard
New column = no
Program used = Dedicated program
Map title = profil_dashboard
hit Submit.

-------------------------------

Adding the Fields:

-------------------------------
Values List:
You will need to create a list of options to select. To do this go into the 'Values List' in the PCP admin menu.

Click on 'Add a new values list':
Name = list_dashboard
Values = (In this field you need to add each entry in turn clicking on the 'add a new value' for each new one you need to create.
Value Text
1 On
0 Off
Once complete hit submit.

Click on 'Add a new values list':
Name = list_dashboard_mode
Values = (In this field you need to add each entry in turn clicking on the 'add a new value' for each new one you need to create.
Value Text
0 Basic Mode
1 Advanced Mode
Once complete hit submit.

Click on 'Add a new values list':
Name = list_dashboard_avatar
Values = (In this field you need to add each entry in turn clicking on the 'add a new value' for each new one you need to create.
Value Text
1 Yes
0 No
Once complete hit submit.

-------------------------------

Creating the field:

-------------------------------
In 'Fields definition' create a new field:
Base Definitions:
Field name = dashboard_show
Legend of the field = Display
Output:
Class = real
Type = TINYINT
Display function = pcp_output_value_list
Input:
Get mode = LIST_RADIO
Values list = list_dashboard
Hit Submit
Choose 'Click Here to return to the fields list'

In 'Fields definition' create a new field:
Base Definitions:
Field name = dashboard_mode
Legend of the field = Display
Output:
Class = real
Type = TINYINT
Display function = pcp_output_value_list
Input:
Get mode = LIST_RADIO
Values list = list_dashboard_mode
Hit Submit
Choose 'Click Here to return to the fields list'

In 'Fields definition' create a new field:
Base Definitions:
Field name = dashboard_avatar
Legend of the field = Display
Output:
Class = real
Type = TINYINT
Display function = pcp_output_value_list
Input:
Get mode = LIST_RADIO
Values list = list_dashboard_avatar
Hit Submit
Choose 'Click Here to return to the fields list'

-------------------------------

Generating the input fields:

-------------------------------
Maps Definition:
Navigate to: PCP -> profil -> profile_prefer -> base -> dashboard

Click 'Edit' (at the bottom of the table)
Click 'add new field':
Base Definitions:
Field name = dashboard_show
Legend of the field = profil_dashboard
Output:
Class = real
Type = TINYINT
Display function = pcp_output_value_list
Input:
Get mode = LIST_RADIO
Not a config value = yes
Values list = list_dashboard
Hit Submit
Hit Submit again

Click 'add new field':
Base Definitions:
Field name = dashboard_mode
Legend of the field = Dashboard Mode
Output:
Class = real
Type = TINYINT
Display function = pcp_output_value_list
Input:
Get mode = LIST_RADIO
Not a config value = yes
Values list = list_dashboard_mode
Hit Submit
Hit Submit again

Click 'add new field':
Base Definitions:
Field name = dashboard_avatar
Legend of the field = Dashboard Avatar
Output:
Class = real
Type = TINYINT
Display function = pcp_output_value_list
Input:
Get mode = LIST_RADIO
Not a config value = yes
Values list = list_dashboard_avatar
Hit Submit
Hit Submit again

You can now check your profile - you should have a My Dashboard field which you can edit and submit the changes.
safeTsurfa
I've Been Banned!
Posts: 1959
Joined: Sat May 08, 2004 10:21 am
Location: United Kingdom
Contact:

Post by safeTsurfa »

@bcs10 and Shof515

My apologies, I just posted about that. They are going to be done as the update is substantial and both earlier versions do need changing. I posted about this in the other two versions' threads as I removed the old MOD codes, but forget to mention it here as well.

@ OmegaQuest

Thank you. If that does work correctly would you mind if I included it as part of the download pack? Whilst I do not set out to make my work compatible with non-standard phpBB, if anyone else does so for a popular MOD related to the same area, then I will be happy to include it in the download as long as the author provides the support for any problems it may have.
safeTsurfa
Need help? First READ THIS
Personal projects: My Mods
bcs10
Registered User
Posts: 1525
Joined: Mon Jul 14, 2003 4:45 am
Location: Chicago, IL

Post by bcs10 »

safeTsurfa wrote: @bcs10 and Shof515

My apologies, I just posted about that. They are going to be done as the update is substantial and both earlier versions do need changing. I posted about this in the other two versions' threads as I removed the old MOD codes, but forget to mention it here as well.
not a problem... thanks a lot
/DD
Locked

Return to “[2.0.x] MODs in Development”