BBtoNUKE v2.0.21 for PHP-Nuke v8.0 [ ONLY ]

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   BBtoNUKE v2.0.21 for PHP-Nuke v8.0 [ ONLY ]
westaha
CZ Newbie
westaha has been a member for over 11 year's 11 Year Member
newzealand.gif
Age: 33
Website: unknowninc.net
Status: Offline
Joined: Sep 08, 2006
0.00 posts per day
Posts: 3
Points: 1,295
   
hey all

After Searching around for a workable version of bbtonuke 2.0.21 for PHP-Nuke v8.0 and not being successful, decided to fix it myself.

Just a matter of changing the paths within the bbtonuke files to point to the new 'includes' location in PHP-Nuke v8.0 which has now been put in the Forums folder..

has been tested on a clean installation of PHP-Nuke v8.0...

problems, visit: UnknownInc.Net

chur,
WesTaha



Attached Files
BBtoNuke2021-v8.zip (119.94 KB, Downloaded: 5237 Time(s))


Back to top Reply with quote
#2   re: BBtoNUKE v2.0.21 for PHP-Nuke v8.0 [ ONLY ]
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 12 year's 12 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 36
Website: www.clanthemes.com
Status: Offline
Joined: Feb 26, 2006
0.11 posts per day
Posts: 520
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
I will give this a test go in a bit. I know a few others who had requested a working copy of .21. Does your forum admin acp work correctly? That was peoples main complaint.

P.S Nice site (its been a long time since deep blue look so good) I am a fan of customization myself.



Back to top Reply with quote
#3   
westaha
CZ Newbie
westaha has been a member for over 11 year's 11 Year Member
newzealand.gif
Age: 33
Website: unknowninc.net
Status: Offline
Joined: Sep 08, 2006
0.00 posts per day
Posts: 3
Points: 1,295
   
yeah the ACP works..
Check everything that was updated in .21. no problems that I can find.

thanxs..



Back to top Reply with quote
#4   re: BBtoNUKE v2.0.21 for PHP-Nuke v8.0 [ ONLY ]
westaha
CZ Newbie
westaha has been a member for over 11 year's 11 Year Member
newzealand.gif
Age: 33
Website: unknowninc.net
Status: Offline
Joined: Sep 08, 2006
0.00 posts per day
Posts: 3
Points: 1,295
   
hey

heres a fix for ppl using PHP-Nuke v8.0. Found a problem when trying to delete a forum in the ACP.

Open 'Prune.php'
- - - - Find - -> Around Line 28-29.

if (defined('FORUM_ADMIN')) {
    require("modules/Forums/includes/functions_search.php");
} else {
    require("modules/Forums/includes/functions_search.php");
}

- - - -REPLACEWITH - ->

if (defined('FORUM_ADMIN')) {
    require("../../../modules/Forums/includes/functions_search.php");
} else {
    require("modules/Forums/includes/functions_search.php");
}


The problem was it cannot find the 'functions_search.php'

sweet, well its working for me icon_smile.gif


Back to top Reply with quote
#5   re: BBtoNUKE v2.0.21 for PHP-Nuke v8.0 [ ONLY ]
kenspa
CZ Newbie
kenspa has been a member for over 13 year's 13 Year Member
spain.gif
Status: Offline
Joined: Mar 24, 2005
0.00 posts per day
Posts: 7
Points: 118
   
This fix has been great for me, thx!!

I have a prob with avatar management: I can't delete those uploaded avatars from ACP.. It gives me 404 error.

Appreciate any help!!



Back to top Reply with quote
#6   
Telli
Site Admin
Telli has been a member for over 15 year's 15 Year Member
Occupation: Self Employed
Age: 40
Fav. Sports Team: Detroit Red Wings
Website: www.codezhost.com
Status: Offline
Joined: May 26, 2003
1.45 posts per day
Posts: 8090
Points: 494,345
   
What the URL your accessing to delete the avatars? (the page your going to when you get the 404)




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#7   re: BBtoNUKE v2.0.21 for PHP-Nuke v8.0 [ ONLY ]
kenspa
CZ Newbie
kenspa has been a member for over 13 year's 13 Year Member
spain.gif
Status: Offline
Joined: Mar 24, 2005
0.00 posts per day
Posts: 7
Points: 118
   
Hi,
The error message that appear beside the phpBB administration panel is:


Not Found
The requested URL /cursos/modules/Forums/admin/modules.php was not found on this server.

thx



Back to top Reply with quote
#8   
Telli
Site Admin
Telli has been a member for over 15 year's 15 Year Member
Occupation: Self Employed
Age: 40
Fav. Sports Team: Detroit Red Wings
Website: www.codezhost.com
Status: Offline
Joined: May 26, 2003
1.45 posts per day
Posts: 8090
Points: 494,345
   
Paste the modules/Forums/admin/admin_avatar.php here please.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#9   re: BBtoNUKE v2.0.21 for PHP-Nuke v8.0 [ ONLY ]
kenspa
CZ Newbie
kenspa has been a member for over 13 year's 13 Year Member
spain.gif
Status: Offline
Joined: Mar 24, 2005
0.00 posts per day
Posts: 7
Points: 118
   
here goes:

define('IN_PHPBB', 1);
if( !empty($setmodules) )
{
$file = basename(__FILE__);
$module['General']['Avatar_Management'] = "$file";
return;
}


$root_path = "./../";
$phpbb_root_path = './../';
require($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
require('pagestart.' . $phpEx);

//include($root_path . 'includes/constants.'.$phpEx);
//include($root_path . 'includes/db.'.$phpEx);


// Any mode passed?
if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
{
$mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
$target = ( isset($HTTP_GET_VARS['target']) ) ? $HTTP_GET_VARS['target'] : $HTTP_POST_VARS['target'];
}
else
{
$mode = "";
}

// Read in the board config to maintain dynamic
$config_result = $db->sql_query("select config_name,config_value from ". CONFIG_TABLE ."");
while ($config_row = $db->sql_fetchrow($config_result))
{
$board_config[$config_row[config_name]] = $config_row[config_value];
}

// Select all avatars and usernames that have an uploaded avatar currently
$sql = "SELECT user_id, username, user_avatar FROM " . USERS_TABLE . "
WHERE user_avatar_type = " . USER_AVATAR_UPLOAD . " AND user_avatar IS NOT NULL";

if(!$result = $db->sql_query($sql))
{
$error = $db->sql_error();
die("Could not get avatar information! $error[code] : $error[message]");
}

// Create a hash to keep track of all the user that is using the uploaded avatar
while ($avatar_rowset = $db->sql_fetchrow($result))
{
$avatar_usage[$avatar_rowset[user_avatar]] = $avatar_rowset[username];
}

// This is the variable that points to the path of the avatars
// You may need to ajust this to meet your needs icon_wink.gif
$real_avatar_dir = $phpbb_root_path . '../../' . $board_config['avatar_path'];

echo '<h1>Avatar Management</h1>

<p>The table below shows all currently stored uploaded avatars. These are only the avatars which were selected to be
uploaded by users, this will not show avatars currently in the gallery. If any of the listed avatars are no longer used
by any user an option to delete it will appear. This is a permanent delete, once you have selected to delete an
avatar it will be removed from the server and no longer be available. You will be prompted for confirmation (requires
Javascript).</p>';

switch( $mode )
{
case "delete":
echo '<table cellpadding=4 cellspacing=1 border=0 class=forumline>';
if ( unlink($real_avatar_dir.'/'.$target) )
{
print "<tr><td>Success, $target deleted!</td></tr><tr><td><a href=\"./admin_avatar.php\">Continue</a></td></tr></table>";
}
else
{
print "<tr><td>FAILED to delete $target!</td></tr><tr><td><a href=javascript:history.go(-1)>Go Back</a></td></tr></table>";
}
break;

default:
echo '<style>
<!--
td.avatar_listing { font-family: Verdana; font-size: xx-small; text-align: center; }
th.avatar_listing { font-family: Verdana; font-size: x-small; text-align: center; font-weight: bold;
background-color: #cccccc; }
-->
</style>

<table cellpadding=4 cellspacing=1 border=0 class=forumline>
<tr>
<th class=avatar_listing width=40%>Avatar</th>
<th class=avatar_listing width=20%>Size</th>
<th class=avatar_listing width=20%>Usage</th>
<th class=avatar_listing width=20%>Edit user</th>
</tr>';

$alt1 = '#CCCCFF';
$alt2 = '#EEEEEE';
$alter = $alt2;

// This is where we go through the avatar directory and report whether they are not
// used or if they are used, by who.
if ($avatar_dir = @opendir($real_avatar_dir))
{
while( $file = @readdir($avatar_dir) )
{
// This is where the script will filter out any file that doesn't match the patterns
if( $file != "." && $file != ".." && ereg("\.(gif|jpg|jpeg|png)$",$file) )
{
$stats = stat($real_avatar_dir.'/'.$file);

// Alternating row colows code
if ($alter == $alt1) { $alter = $alt2; }
elseif ($alter == $alt2) { $alter = $alt1; }
if (isset($avatar_usage[$file]) )
{
// Since we need to supply a link with a valid sid later in html, let's build it now
$av_id = $avatar_usage[$file];
$sql = "SELECT user_id FROM " . USERS_TABLE . "
WHERE username = '$av_id'";
if(!$result = $db->sql_query($sql))
{
$error = $db->sql_error();
die("Could not get user information! $error[code] : $error[message]");
}
$av_uid = $db->sql_fetchrow($result);
$avatar_uid = $av_uid['user_id'];
$edit_url = append_sid("./admin_users.php?mode=edit&u=$avatar_uid");
// Bingo, someone is using this avatar
print "<tr><td class=avatar_listing bgcolor=$alter><img src=$real_avatar_dir/$file><br>$file</td>
<td class=avatar_listing bgcolor=$alter>$stats[7] Bytes</td>
<td class=avatar_listing bgcolor=$alter>$avatar_usage[$file]</td>
<td class=avatar_listing bgcolor=$alter>
<a href=\"$edit_url\"> Edit $avatar_usage[$file]</a></td></tr>\n";

}
else
{
// Not used, safe to display delete link for admin
$delete_html = append_sid("$PHP_SELF?mode=delete&target=$file");
print "<tr><td class=avatar_listing bgcolor=$alter><img src=$real_avatar_dir/$file><br>$file</td>
<td class=avatar_listing bgcolor=$alter>$stats[7] Bytes</td>
<td class=avatar_listing bgcolor=$alter>Not Used<br><a href=$delete_html onClick=\"if(confirm('Are you sure you want to delete: $file ?')) return true; else return false;\">Delete</a></td>
<td class=avatar_listing bgcolor=$alter>&nbsp;</td>
</tr>\n";
}
}
}
}
else
{
// If we made it to this else there was a problem trying to read the avatar directory
// If you see this error message check this variable:
// $real_avatar_dir -> This may be set incorrectly for your site.
print "Avatar directory unavailable!";
}

echo '</table>';
break;
}



Back to top Reply with quote
#10   re: BBtoNUKE v2.0.21 for PHP-Nuke v8.0 [ ONLY ]
kenspa
CZ Newbie
kenspa has been a member for over 13 year's 13 Year Member
spain.gif
Status: Offline
Joined: Mar 24, 2005
0.00 posts per day
Posts: 7
Points: 118
   
Hey Telli, I fixed this by changing this line in admin_avatar.php:

Old line:
$delete_html = append_sid("$PHP_SELF?mode=delete&target=$file");

New one:
$delete_html = append_sid("./admin_avatar.php?mode=delete&target=$file");

and BINGOOOO icon_mrgreen.gif



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