Bluepearl Design
Go Back   Bluepearl Design > Bluepearl Templates > Free phpBB Templates > ClanzDarkness

Darkness Theme with Profile Control Panel Hack.

Our popular dark gaming template for phpBB
    

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 05-26-2004, 01:37 AM   #1 (permalink)
 
Title: Member
Join Date: May 2004
Posts: 3
Rep Power: 0 Chewie is on a distinguished road
Re: Darkness Theme with Profile Control Panel Hack.

Hi,

I recently installed your theme onto my bb, but i am also using the Profile Control Panel hack by Ptirhiik which can be downloaded from http://www.phpbbhacks.com/viewhack.php?id=1477

The PCP hack works fine on my forum with subsilver and a couple of other templates also, but when i try and set the forum to use the darkness theme, it just reverts back to subsilver.

I have noted that it seems to be the functions.php page that is causing the error as when i remove the code that the hack from that page only (leaving all the other pages hacked), the darkness theme loads fine, but obviously the PCP hack does not.

I was wondering if anyone had any idea why the PCP hack seems to not like working with the darkeness theme?

Below is an extract from the pcp install for functions.php

[code:1:3cef794c89]
#-----[ OPEN ]------------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : language settings -----------------------------------------------------------------------
//-- mod : mods settings ---------------------------------------------------------------------------
//-- mod : profile cp ------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
if ( $userdata['user_id'] != ANONYMOUS )
{
if ( !empty($userdata['user_lang']))
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : profile cp ------------------------------------------------------------------------------
//-- add
global $admin_level, $level_prior, $level_desc;
global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;
global $list_yes_no;

include_once( $phpbb_root_path . './profilcp/functions_profile.' . $phpEx);
//-- fin mod : profile cp --------------------------------------------------------------------------
//-- mod : mods settings ---------------------------------------------------------------------------
//-- add
global $db, $mods, $userdata;

// get all the mods settings
$dir = @opendir($phpbb_root_path . 'includes/mods_settings');
while( $file = @readdir($dir) )
{
if( preg_match("/^mod_.*?\." . $phpEx . "$/", $file) )
{
include_once($phpbb_root_path . 'includes/mods_settings/' . $file);
}
}
@closedir($dir);
//-- fin mod : mods settings -----------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
//
// Set up style
//
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : language settings -----------------------------------------------------------------------
//-- add
include($phpbb_root_path . './includes/lang_extend_mac.' . $phpEx);
//-- fin mod : language settings -------------------------------------------------------------------

#
#-----[ FIND ]------------------------------------------------
#
static $translate;
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : profile cp ------------------------------------------------------------------------------
//-- add
global $userdata, $db;

if ( !isset($board_config['summer_time']) )
{
$board_config['summer_time'] = false;
$sql = "INSERT INTO " . CONFIG_TABLE . " (config_name,config_value) VALUES('summer_time','0')";
if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Could not add key summer_time in config table', '', __LINE__, __FILE__, $sql);
}
$switch_summer_time = ( $userdata['user_summer_time'] && $board_config['summer_time'] ) ? true : false;
if ($switch_summer_time) $tz++;
//-- fin mod : profile cp --------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
function generate_pagination($base_url, $num_items, $per_page, $start_item, $add_prevnext_text = TRUE)
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : profile cp ------------------------------------------------------------------------------
// here we added
// , $start_field='start'
//-- modify
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, $add_prevnext_text = TRUE
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, $start_field='start'
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : profile cp --------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
$init_page_max = ( $total_pages > 3 ) ? 3 : $total_pages;

for($i = 1; $i < $init_page_max + 1; $i++)
{
$page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&start=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
#
#-----[ REPLACE WITH ]----------------------------------------
#
$init_page_max = ( $total_pages > 3 ) ? 3 : $total_pages;

for($i = 1; $i < $init_page_max + 1; $i++)
{
//-- mod : profile cp ------------------------------------------------------------------------------
// here we replaced
// start
// with
// $start_field
//-- modify
$page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&$start_field=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
//-- fin mod : profile cp --------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
for($i = $init_page_min - 1; $i < $init_page_max + 2; $i++)
{
$page_string .= ($i == $on_page) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&start=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
#
#-----[ REPLACE WITH ]----------------------------------------
#
for($i = $init_page_min - 1; $i < $init_page_max + 2; $i++)
{
//-- mod : profile cp ------------------------------------------------------------------------------
// here we replaced
// start
// with
// $start_field
//-- modify
$page_string .= ($i == $on_page) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&$start_field=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
//-- fin mod : profile cp --------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
for($i = $total_pages - 2; $i < $total_pages + 1; $i++)
{
$page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&start=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
#
#-----[ REPLACE WITH ]----------------------------------------
#
for($i = $total_pages - 2; $i < $total_pages + 1; $i++)
{
//-- mod : profile cp ------------------------------------------------------------------------------
// here we replaced
// start
// with
// $start_field
//-- modify
$page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&$start_field=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
//-- fin mod : profile cp --------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
else
{
for($i = 1; $i < $total_pages + 1; $i++)
{
$page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&start=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
#
#-----[ REPLACE WITH ]----------------------------------------
#
else
{
for($i = 1; $i < $total_pages + 1; $i++)
{
//-- mod : profile cp ------------------------------------------------------------------------------
// here we replaced
// start
// with
// $start_field
//-- modify
$page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&$start_field=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
//-- fin mod : profile cp --------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
if ( $on_page > 1 )
{
$page_string = ' <a href="' . append_sid($base_url . "&start=" . ( ( $on_page - 2 ) * $per_page ) ) . '">' . $lang['Previous'] . '</a>  ' . $page_string;
#
#-----[ REPLACE WITH ]----------------------------------------
#
if ( $on_page > 1 )
{
//-- mod : profile cp ------------------------------------------------------------------------------
// here we replaced
// start
// with
// $start_field
//-- modify
$page_string = ' <a href="' . append_sid($base_url . "&$start_field=" . ( ( $on_page - 2 ) * $per_page ) ) . '">' . $lang['Previous'] . '</a>  ' . $page_string;
//-- fin mod : profile cp --------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
if ( $on_page < $total_pages )
{
$page_string .= '  <a href="' . append_sid($base_url . "&start=" . ( $on_page * $per_page ) ) . '">' . $lang['Next'] . '</a>';
#
#-----[ REPLACE WITH ]----------------------------------------
#
if ( $on_page < $total_pages )
{
//-- mod : profile cp ------------------------------------------------------------------------------
// here we replaced
// start
// with
// $start_field
//-- modify
$page_string .= '  <a href="' . append_sid($base_url . "&$start_field=" . ( $on_page * $per_page ) ) . '">' . $lang['Next'] . '</a>';
//-- fin mod : profile cp --------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
global $starttime;
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : profile cp ------------------------------------------------------------------------------
//-- add
global $admin_level, $level_prior;
//-- fin mod : profile cp --------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
}

if ( empty($template) )
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : language settings -----------------------------------------------------------------------
//-- add
include($phpbb_root_path . './includes/lang_extend_mac.' . $phpEx);
//-- fin mod : language settings -------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : profile cp ------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
global $user_ip, $session_length, $starttime;
global $userdata;
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : profile cp ------------------------------------------------------------------------------
//-- add
global $admin_level, $level_prior;
//-- fin mod : profile cp --------------------------------------------------------------------------
[/code:1:3cef794c89]

Thanx for reading and all help/ideas are greatly appreciated.
Chewie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2004, 07:11 AM   #2 (permalink)
 
Title: Bryan
Join Date: Jan 2004
Location: Dundee
Age: 21
Posts: 3,544
Rep Power: 8 wasahobo is on a distinguished road
Send a message via AIM to wasahobo Send a message via MSN to wasahobo
Re: Darkness Theme with Profile Control Panel Hack.

my brian hurts from reading that lol ill leave it up to griffy to help you
__________________
BluePearl-Design + 3sStudios = Unlimited Possibilities.


Current Project: http://www.3sstudios.com/cloud.htm
wasahobo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2004, 11:41 AM   #3 (permalink)
 
Sean's Avatar
 
Title: Founder/Admin
Join Date: Jan 2004
Location: Sydney, Australia
Age: 28
Posts: 8,839
Images: 386
Blog Entries: 3
Rep Power: 10 Sean will become famous soon enough
Send a message via MSN to Sean Send a message via Skype™ to Sean
Re: Darkness Theme with Profile Control Panel Hack.

If the mod works with SubSilver the mod should work with Darkness.

Did u properly modify the darkness files?
Sean is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2004, 07:59 PM   #4 (permalink)
 
Title: Member
Join Date: May 2004
Posts: 3
Rep Power: 0 Chewie is on a distinguished road
Re: Darkness Theme with Profile Control Panel Hack.

^ Yeah i'm sure i editied all the files correctly. I have gone over and done it loadsa times, and also i have installed PC on a fair few other templates in the past also.

Like i said earlier, the template was fine with "modifications" to the tpl files as long as i didnt use the modified functions.php page.

There is one thing however, it asks to make some modifications to the overall header. I noticed that the darkness theme doesnt have any css in the overall header which is unlike subsilver and a few other themes. I tried testing PCP with darkness without adding the css code into overall header, and also with copying the CSS from the darkness.css file into overall_header.tpl so that i could add the CSS in from the code below, but niether idea worked.

Here is the overall_header.tpl modifications, as you can see its only CSS thats being added and a javascript popup.

[code:1:fa1c26c4e0]
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------------
#
# at top of the file
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!-- mod : profile cp -->
#
#-----[ FIND ]------------------------------------------------
#
.helpline { background-color: {T_TR_COLOR2}; border-style: none; }
#
#-----[ AFTER, ADD ]------------------------------------------
#
/*-- mod : profile cp --*/
.foundercolor, a.foundercolor, a.foundercolor:link, a.foundercolor:active, a.foundercolor:visited {
color: #FE00FE;
font-weight: bold;
}
a.foundercolor:hover {
color: #FF0000;
text-decoration: underline;
}

.admincolor, a.admincolor, a.admincolor:link, a.admincolor:active, a.admincolor:visited {
color: {T_FONTCOLOR3};
font-weight: bold;
}
a.admincolor:hover {
color: {T_BODY_HLINK};
text-decoration: underline;
}

.modcolor, a.modcolor, a.modcolor:link, a.modcolor:active, a.modcolor:visited {
color: {T_FONTCOLOR2};
font-weight: bold;
}
a.modcolor:hover {
color: {T_BODY_HLINK};
text-decoration: underline;
}

.usercolor, a.usercolor, a.usercolor:link, a.usercolor:active, a.usercolor:visited {
color : {T_BODY_LINK};
font-weight: bold;
}
a.usercolor:hover {
color: {T_BODY_HLINK};
text-decoration: underline;
}
/*-- fin mod : profile cp --*/
#
#-----[ FIND ]------------------------------------------------
#
<!-- END switch_enable_pm_popup -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN birthday_popup -->
<script language="Javascript" type="text/javascript">
<!--
window.open('{birthday_popup.U_BIRTHDAY_POPUP}', '_phpbbbirthday', 'HEIGHT=225,resizable=yes,WIDTH=400');
//-->
</script>
<!-- END birthday_popup -->
[/code:1:fa1c26c4e0]

Thanx again for reading.
Chewie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2004, 09:26 PM   #5 (permalink)
 
Sean's Avatar
 
Title: Founder/Admin
Join Date: Jan 2004
Location: Sydney, Australia
Age: 28
Posts: 8,839
Images: 386
Blog Entries: 3
Rep Power: 10 Sean will become famous soon enough
Send a message via MSN to Sean Send a message via Skype™ to Sean
Re: Darkness Theme with Profile Control Panel Hack.

My theme uses a external CSS instead of the internal CSS.
Sean is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-27-2004, 04:14 AM   #6 (permalink)
 
Title: Member
Join Date: May 2004
Posts: 3
Rep Power: 0 Chewie is on a distinguished road
Re: Darkness Theme with Profile Control Panel Hack.

Quote:
Originally Posted by Griffin
My theme uses a external CSS instead of the internal CSS.
Yeah, thats what i was saying above, other than the code i posted, i am sure that all my tpl edits are correct.

I was wondering if anyone else on here had managed to get PCP to run with the darkness theme.
Chewie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads for: Darkness Theme with Profile Control Panel Hack.
Thread Thread Starter Forum Replies Last Post
Darkness - Free vBulletin Template Sean Darkness 109 08-31-2008 03:16 AM
[vB3.0.x] Darkness theme [download] Sean Darkness 5 06-27-2007 03:50 AM
Darkness theme ICY Rippers Exposed 15 07-05-2004 06:50 PM
Clan Darkness theme question... DrChaos ClanzDarkness 2 06-21-2004 12:17 AM


  
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Bluepearl Templates

All times are GMT +11. The time now is 10:02 AM.

 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52