Desktop Plus Mod -- Need some porting help

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Desktop Plus Mod -- Need some porting help
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
I saw this mod on phpbbhacks, and wanted to try it on my desktop. The mod download can be found here:
[ Register or login to view links on this board. ]

Here's what I have changed so far, but I am missing something because now I am getting an error. Could someone take a look at this and see what I am missing?

#################################################################
## Mod Title:       Desktop Plus
## Author:          Matt Ratcliff < [ Register or login to view links on this board. ] > (Matt Ratcliff) http://www.psanime.com
## Description:       This is a desktop based addition in which
##            members can enable their active desktop and
##            link to this page to view the following:
##
##            o   Login Status
##            o   Recent Topics
##            o   Who's online
##
##            This information is updated every 60 seconds.
##            To change this read below
##            OPTIONAL : ALTER DURATION.
##
##            If you have color groups installed read below
##            OPTIONAL : COLOR GROUPS.
##
## Mod Version:       1.0.1
##
## Installation Level:    Easy
## Installation Time:    ~5 Minutes
## Files To Edit:    3
##             language/lang_english/lang_main.php
##            desktop.php    (optional)
##            desktop_body.tpl    (optional)
##
## Included Files:   2
##            desktop_body.tpl
##            desktop.php
##
#################################################################
## Authors Notes:
##
##   For any concerns please contact me at http://www.psanime.com
##
##    Thanks goes to Ptirhiik at http://rpgnet.clanmckeen.com/demo/
##
##   For encouragment
#################################################################
## MOD History:
##
##   2004-07-07 - Version 1.0.1
##      - Altered Login Status text: Logged in (blue), Logged Out (red)
##
##   2004-07-01 - Version 1.0.0
##      - Beta
##
#################################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################

#
#-----[ OPEN ]--------------------------------------------
#

desktop_body.tpl

#
#-----[ FIND ]--------------------------------------------
# Change this according to your template

<link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css">

# I changed this to:
#<link rel="stylesheet" href="themes/your_theme/forums/forums.css" type="text/css">

#
#-----[ OPEN ]--------------------------------------------
#

language/lang_english/lang_main.php

# I changed this to:
# modules/Forums/language/lang_english/lang_main.php
#
#-----[ FIND ]--------------------------------------------
#

//
// That's all, Folks!
// -------------------------------------------------

#
#-----[ BEFORE, ADD ]-------------------------------------
#

// Desktop phpbb (Matt Ratcliff)
$lang['Logged_in_title'] = 'Status: %s';
$lang['Logged_in'] = 'Logged In';
$lang['Logged_out'] = 'Logged Out';
$lang['Logged_in_explain'] = 'You are currently logged in as <b>%s</b>.';
$lang['Logged_out_explain'] = 'You are currently logged out, click %shere%s to login.';
// Desktop phpbb

#
#-----[ COPY ]--------------------------------------------
#

copy desktop_body.tpl to templates/******/desktop_body.tpl

# I changed this to:
# copy desktop_body.tpl to themes/your_theme/forums/desktop_body.tpl

copy desktop.php to your_phpbb_root/desktop.php

# I changed this to:
# copy desktop.php to your phpnuke_root/desktop.php

#
#-----[ POST ]--------------------------------------------
#

Post this information for your members in your forums.

If you wish to have the recent topics from the site to display on your desktop do this(using windows xp, although it should be similar with win95/98/me):

1- Right-Click on your desktop
2- Select 'Properties'
4- Click on the 'Customize Desktop' Button
5- Click on the 'Web' tab
6- Click on where it says 'new' (next to a list of webpages)
7- Add the following location http://your_wesite/desktop.php (make sure you click on the checkbox next to the address after you add it to the list)
8- Click 'OK' on all windows

#
# EOM
#

#
# I did not port below this line  ~~ Dauthus
#

###########################################################
#          OPTIONAL : ALTER DURATION        #
###########################################################

#
#-----[ OPEN ]--------------------------------------------
#

desktop_body.tpl

#
#-----[ FIND ]--------------------------------------------
#

<meta http-equiv="Refresh" content="60;url=desktop.php">

#
#-----[ IN-LINE FIND ]------------------------------------
#

60

#
#-----[ REPLACE WITH ]-----------------------------------------
#

Replace with the duration of every X seconds, the information
will be updated in that X of seconds

#
#-----[ SAVE & UPLOAD ]-----------------------------------
#

#
#EOM
#

###########################################################
#          OPTIONAL : COLOR GROUPS        #
###########################################################

#
#-----[ OPEN ]--------------------------------------------
#

desktop.php

#
#-----[ FIND ]--------------------------------------------
#

            $style_color = '';
            if ( $row['user_level'] == ADMIN )
            {
               $row['username'] = '<b>' . $row['username'] . '</b>';
               $style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
            }
            else if ( $row['user_level'] == MOD )
            {
               $row['username'] = '<b>' . $row['username'] . '</b>';
               $style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
            }
            if ( $row['user_allow_viewonline'] )
            {
               $user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>';
               $logged_visible_online++;
            }
            else
            {
               $user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>';
               $logged_hidden_online++;
            }

#
#-----[ REPLACE WITH ]------------------------------------------
#
            $user_online_link = color_group_colorize_name($row['user_id']);
            if ( $row['user_allow_viewonline'] )
            {
               $logged_visible_online++;
            }
            else
            {
               $logged_hidden_online++;
            }

#
#-----[ SAVE & UPLOAD ]-----------------------------------
#

#
#EOM
#


After all of that I get the following error:

Fatal error: Cannot instantiate non-existent class: sql_db in /home/virtual/site1/fst/var/www/html/nuke/db/db.php on line 86



Back to top Reply with quote
#2   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 43
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.03 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
I ported it and tested it out and everything works fine. I attached the ported files. You had to edit some stuff in the actual files as well.

Everything should work now. Let me know how it goes.



Attached Files
Desktop Plus PHPnuke.zip (78.65 KB, Downloaded: 5256 Time(s))


Back to top Reply with quote
#3   re: Desktop Plus Mod -- Need some porting help
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
It says I am not authorized to view this page.



Back to top Reply with quote
#4   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 43
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.03 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
When doing what? Is desktop.php uploaded to modules/forums/ and you are accessing the file thru [ Register or login to view links on this board. ]



Back to top Reply with quote
#5   re: Desktop Plus Mod -- Need some porting help
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
LOL

No, when I try to download the zip file off this site.

I haven't got to the install yet....Heh



Back to top Reply with quote
#6   re: Desktop Plus Mod -- Need some porting help
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Everything works fine until the page tries to refresh. Then I get the ol' reliable

"Page Cannot Be Found" error.

Suggestions?

EDIT: Also, I seem to have scroll bars on the side and bottom. Any idea how to get rid of those?



Back to top Reply with quote
#7   re: Desktop Plus Mod -- Need some porting help
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Ok, got rid of the page not found error. (I gotta watch replacing code)

Now looking for a way to get rid of the scroll bars. I am going to try and add something to the desktop_body.tpl



Back to top Reply with quote
#8   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 43
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.03 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
All you have to do is resize the window that appears on your desktop that will get rid of the scrollbars.



Back to top Reply with quote
#9   re: Desktop Plus Mod -- Need some porting help
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
I wish it was that easy. The "actual" image size is the entire size of my desktop. For some reason it includes my header below the picture. Here is a screenshot of the "expanded" version.




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#10   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 43
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.03 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
That's strange. It works fine for me. Maybe is conflicting with the theme. Do you have another theme to try it on?



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum