|
|
| |
Forums ⇒ DragonflyCMS ⇒ Theme / Image / Logo requests ⇒ Help to convert FiSubsilver Shadow Theme to 9.2.1
Help to convert FiSubsilver Shadow Theme to 9.2.1Ask for theme, logo or image design in here. Requests for addition/upgrade of abandoned themes should also be placed here.
Go to page 1, 2 Next
|
View previous topic :: View next topic |
| Author |
Message |
Troop8113 Newbie


Offline Joined: Dec 28, 2007 Posts: 11
|
Posted: Wed Feb 06, 2008 8:12 pm Post subject: Help to convert FiSubsilver Shadow Theme to 9.2.1 |
|
Hi everoyne,
I am a noob when it comes to changing the coding of themes to make them compatable with 9.2.1 from 9.1.2.1.
The theme I am trying to convert is the FiSubsilver Shadow Theme. Could someone please help me replace the code necessary in the header / other files needed to work with 9.2.1?
Thank you very much!
my website is here www.troop8113.org
Troop8113's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Siteground/ Dragonfly CMS 9.2.1
|
|
| Back to top |
|
 |
Mel Forum Admin


Offline Joined: Jul 21, 2004 Posts: 1386 Location: Eastern Time Zone
|
Posted: Wed Feb 06, 2008 8:26 pm Post subject: Re: Help to convert FiSubsilver Shadow Theme to 9.2.1 |
|
topic heading corrected to address the subject, since the whole forum is themes.
Mel please enter your server specs in your user profile!
|
|
| Back to top |
|
 |
macavity Heavy poster


Offline Joined: Jun 23, 2004 Posts: 199
|
Posted: Tue Feb 26, 2008 8:07 pm Post subject: Re: Help to convert FiSubsilver Shadow Theme to 9.2.1 |
|
Hi Troop8113,
Did you make any progress with this? I'd also like to be able to use the FiSubsilver Shadow Theme after upgrading.
Thanks!
_________________ Note: WWW Private Listing - Staff Only
macavity's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) FreeBSD/Apache 2.0/MySQL 5.0.77/PHP 5.2.10/Dragonfly 9.2.1
|
|
| Back to top |
|
 |
rosbif 500+ Posts Club


Offline Joined: Jan 13, 2005 Posts: 593 Location: Paris, France
|
Posted: Tue Feb 26, 2008 9:51 pm Post subject: Re: Help to convert FiSubsilver Shadow Theme to 9.2.1 |
|
rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) ChantillyExpat.com - Others-
|
|
| Back to top |
|
 |
macavity Heavy poster


Offline Joined: Jun 23, 2004 Posts: 199
|
Posted: Wed Feb 27, 2008 12:23 am Post subject: Re: Help to convert FiSubsilver Shadow Theme to 9.2.1 |
|
Nice. Thanks very much rosbif!
_________________ Note: WWW Private Listing - Staff Only
macavity's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) FreeBSD/Apache 2.0/MySQL 5.0.77/PHP 5.2.10/Dragonfly 9.2.1
|
|
| Back to top |
|
 |
rosbif 500+ Posts Club


Offline Joined: Jan 13, 2005 Posts: 593 Location: Paris, France
|
|
| Back to top |
|
 |
macavity Heavy poster


Offline Joined: Jun 23, 2004 Posts: 199
|
Posted: Thu Feb 28, 2008 12:05 pm Post subject: Re: Help to convert FiSubsilver Shadow Theme to 9.2.1 |
|
No, not yet, I feel exactly the same!
_________________ Note: WWW Private Listing - Staff Only
macavity's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) FreeBSD/Apache 2.0/MySQL 5.0.77/PHP 5.2.10/Dragonfly 9.2.1
|
|
| Back to top |
|
 |
Maveric_LOL Newbie


Offline Joined: Sep 05, 2007 Posts: 4
|
Posted: Fri Mar 07, 2008 1:26 pm Post subject: Help modifying FI Sub silver to work with latest Dfly versio |
|
I have made some changes so far using the guidelines in the upgrade tutorial RE the theme.php file. Here is what i have so far
While it runs, the blocks dont show up so something is clearly still broke.
You can view the results here www.thelegionoflight.n.../index.php
Scroll down to the very bottm, i have turned on debugging and it gives the error:
includes/classes/blocks.php
Notice line 77: Undefined property: ltr
Notice line 77: Undefined property: right
Any help i can get resolving this issue and getting this theme back working would be greatly appreciated.
Maveric_LOL's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 9.1.2.1
|
|
| Back to top |
|
 |
Maveric_LOL Newbie


Offline Joined: Sep 05, 2007 Posts: 4
|
Posted: Fri Mar 07, 2008 1:28 pm Post subject: Re: Help modifying FI Sub silver to work with latest Dfly ve |
|
sorry about that the theme.php code did not show up, so here it is
| Code:: |
<?php
/* Theme Name: fisubsilver shadow */
/* Theme Design: coldblooded (www.nukemods.com) */
/* version 3.0 */
/* Theme inspired by the phpbb2 style legion by */
/* Daz (http://www.forumimages.com/) */
/* CPG NUKE 9.0 COMPLIANT */
/* Released under GNU GPL */
if (!defined('CPG_NUKE')) { exit; }
$gfxcolor = '#C0C000';
$bgcolor1 = '#FFFFFF';
$bgcolor2 = '#D3DFE3';
$bgcolor3 = '#EFEFEF';
$bgcolor4 = '#FFC53A';
$textcolor1 = '#009900';
$textcolor2 = '#000000';
$hr = 1; # 1 to have horizonal rule in comments instead of table bgcolor
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo"<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">"
. " <tr>"
. " <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">"
. " <tr>"
. " <td bgcolor=\"#006699\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"
. " <tr>"
. " <td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">"
. " <tr> "
. " <td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">"
. " <tr> "
. " <td>"
."";
}
function CloseTable() {
echo"</td>"
. " </tr>"
. " </table></td>"
. " </tr>"
. " </table></td>"
. " </tr>"
. " </table></td>"
. " </tr>"
. "</table>"
. "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"tbl\"><tr><td class=\"tbll\"><img src=\"images/spacer.gif\" alt=\"\" width=\"8\" height=\"4\" /></td><td class=\"tblbot\"><img src=\"images/spacer.gif\" alt=\"\" width=\"8\" height=\"4\" /></td><td class=\"tblr\"><img src=\"images/spacer.gif\" alt=\"\" width=\"8\" height=\"4\" /></td></tr></table>"
. "</td>"
. " </tr>"
. "</table>"
."";
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo"<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">"
. " <tr>"
. " <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">"
. " <tr>"
. " <td bgcolor=\"#006699\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"
. " <tr>"
. " <td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">"
. " <tr> "
. " <td bgcolor=\"#EAEDF4\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">"
. " <tr> "
. " <td>"
."";
}
function CloseTable2() {
echo"</td>"
. " </tr>"
. " </table></td>"
. " </tr>"
. " </table></td>"
. " </tr>"
. " </table></td>"
. " </tr>"
. "</table>"
. "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"tbl\"><tr><td class=\"tbll\"><img src=\"images/spacer.gif\" alt=\"\" width=\"8\" height=\"4\" /></td><td class=\"tblbot\"><img src=\"images/spacer.gif\" alt=\"\" width=\"8\" height=\"4\" /></td><td class=\"tblr\"><img src=\"images/spacer.gif\" alt=\"\" width=\"8\" height=\"4\" /></td></tr></table>"
. "</td>"
. " </tr>"
. "</table>"
."";
}
function themeheader() {
global $slogan, $sitename, $banners, $mainindex, $adminindex, $cpgtpl,
$themeblockside, $showblocks, $site_logo, $userinfo, $Blocks;
$imgr = $imgl = '';
if ($showblocks) {
if ((_TEXT_DIR == 'left' && $showblocks > 1) || (_TEXT_DIR == 'right' && !isset($_GET['hideleftblocks']))) {
$img = 'minus.gif';
if ($Blocks->hideblock('601')) {
//block is collapsed so hide it
$img = 'plus.gif';
}
$imgr = '<img align="right" alt="Toggle Content" title="Toggle Content" id="pic601" src="themes/legion/images/'.$img.'" onclick="blockswitch(\'601\');" style="cursor:pointer" />';
}
if ((_TEXT_DIR == 'ltr' && !isset($_GET['hideleftblocks'])) || (_TEXT_DIR == 'rtl' && $showblocks > 1)) {
$img = 'minus.gif';
if ($Blocks->hideblock('600')) {
$img = 'plus.gif';
}
$imgl = '<img align="left" alt="Toggle Content" title="Toggle Content" id="pic600" src="themes/legion/images/'.$img.'" onclick="blockswitch(\'600\');" style="cursor:pointer" />';
}
}
$cpgtpl->assign_vars(array(
'PUBLIC_HEADER' => !defined('ADMIN_PAGES'),
'B_L_VISIBLE' => $Blocks->hideblock('600') ? 'style="display: none"' : '',
'B_L_HIDDEN' => $Blocks->hideblock('600') ? '' : 'style="display: none"',
'G_LEFTIMAGE' => $imgl,
'G_RIGHTIMAGE' => $imgr,
'S_IS_ADMIN' => is_admin(),
'S_CAN_ADMIN' => can_admin(),
'S_IS_USER' => is_user(),
'S_LEFTBLOCKS' => ($imgl != ''),
'S_LOGO' => $site_logo,
'S_SITENAME' => $sitename,
'S_HOME' => _HOME,
'S_DOWNLOADS' => is_active('Downloads') ? _DownloadsLANG : false,
'S_FORUMS' => _ForumsLANG,
'S_USERNAME' => $userinfo['username'],
'S_MY_ACCOUNT' => _Your_AccountLANG,
'S_ADMIN' => _ADMINISTRATION,
'S_BANNER' => ($banners) ? viewbanner() : '',
'U_MAININDEX' => $mainindex,
'U_DOWNLOADS' => getlink('Downloads'),
'U_FORUMS' => getlink('Forums'),
'U_MY_ACCOUNT' => getlink('Your_Account'),
'U_ADMININDEX' => $adminindex,
'I18N' => 'enctype="multipart/form-data" accept-charset="utf-8"'
)
);
$themeblockside = 'left';
$Blocks->display(_TEXT_DIR);
$themeblockside = '';
}
function themefooter() {
global $showblocks, $banners, $cpgtpl, $foot1, $foot2, $foot3, $copyright, $start_time, $db, $themeblockside, $Blocks;
$Blocks->display('right');
$cpgtpl->assign_vars(array(
'B_R_VISIBLE' => $Blocks->hideblock('601') ? 'style="display: none"' : '',
'B_R_HIDDEN' => $Blocks->hideblock('601') ? '' : 'style="display: none"',
'S_FOOTER' => footmsg()
)
);
$cpgtpl->set_filenames(array('footer' => 'footer.html'));
$cpgtpl->display('footer');
}
/***********************************************************************************
void themesidebox
Output the specific block to left or right
$title : the title of the block
$content: all formatted content for the block
$bid : the database record ID of the block
************************************************************************************/
function themesidebox($title, $content, $bid=0) {
global $cpgtpl, $themeblockside;
$cpgtpl->assign_block_vars($themeblockside.'block', array(
'S_TITLE' => $title,
'S_CONTENT' => $content,
'S_BID' => $bid,
'S_VISIBLE' => hideblock($bid) ? 'style="display:none"' : '',
'S_HIDDEN' => hideblock($bid) ? '' : 'style="display:none"',
'S_IMAGE' => 'themes/legion/images/'.(hideblock($bid) ? 'plus.gif' : 'minus.gif')
)
);
if ($themeblockside == '') {
$cpgtpl->set_filenames(array('block' => 'block.html'));
$cpgtpl->display('block');
}
}
/***********************************************************************************
string theme_open_form
Creates start tag for form
$get_link : link for action default blank
$form_name : useful for styling and nbbcode
$legend: optional string value is used in form lagend tag
$border: optional use 1 to not show border on fieldset from stylesheet
************************************************************************************/
function theme_open_form($link, $form_name=false, $legend=false,$tborder=false) {
$leg = $legend ? "<legend>$legend</legend>" : '';
$bord = $tborder ? $tborder : '';
$form_name = $form_name ? ' name="'.$form_name.'" id="'.$form_name.'"' :'';
return '<fieldset '.$bord.'>'.$leg.'<form method="post" action="'.$link.'"'.$form_name.' enctype="multipart/form-data" accept-charset="utf-8">';
}
function theme_close_form() {
return '</form></fieldset>';
}
/***********************************************************************************
string theme_yesno_option
Creates 2 radio buttons with a Yes and No option
$name : name for the <input>
$value: current value, 1 = yes, 0 = no
************************************************************************************/
function theme_yesno_option($name, $value=0) {
$sel[(!$value)] = '';
$sel[$value] = ' selected="selected"';
$select = '<select class="set" name="'.$name.'" id="'.$name."\">\n";
$select .= '<option value="1"'.$sel[1].">"._YES."</option>\n";
$select .= '<option value="0"'.$sel[0].">"._NO."</option>\n";
return $select.'</select>';
//$sel[intval($value)] = ' checked="checked"';
//return '<input type="radio" name="'.$name.'" value="1"'.$sel[1].' title="'._YES.'" />
//<label class="yes" for="'.$name.'">'._YES.'</label>
//<input type="radio" name="'.$name.'" value="0" '.$sel[0].' title="'._NO.'" />
//<label class="no" for="'.$name.'">'._NO.'</label> ';
}
/***********************************************************************************
string theme_select_option
Creates a selection dropdown box of all given variables in the array
$name : name for the <select>
$value: current/default value
$array: array like array("value1","value2")
************************************************************************************/
function theme_select_option($name, $value, $array) {
$sel[$value] = ' selected="selected"';
$select = '<select class="set" name="'.$name.'" id="'.$name."\">\n";
foreach($array as $var) {
$select .= '<option'.(isset($sel[$var])?$sel[$var]:'').">$var</option>\n";
}
return $select.'</select>';
}
/***********************************************************************************
string theme_select_box
Creates a selection dropdown box of all given variables in the multi array
$name : name for the <select>
$value: current/default value
$array: array like array("value1 => title1","value2 => title2")
************************************************************************************/
function theme_select_box($name, $value, $array) {
$select = '<select class="set" name="'.$name.'" id="'.$name."\">\n";
foreach($array as $val => $title) {
$select .= "<option value=\"$val\"".(($val==$value) ? ' selected="selected"' : '').">$title</option>\n";
}
return $select.'</select>';
}
|
Maveric_LOL's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 9.1.2.1
|
|
| Back to top |
|
 |
Mel Forum Admin


Offline Joined: Jul 21, 2004 Posts: 1386 Location: Eastern Time Zone
|
Posted: Fri Mar 07, 2008 1:44 pm Post subject: Re: Help to convert FiSubsilver Shadow Theme to 9.2.1 |
|
merged ...
_________________ DF TIPS | Upgrade| Find Your Signature Specs|
"A bug in the code is worth two in the documentation. "
Mel please enter your server specs in your user profile!
|
|
| Back to top |
|
 |
rosbif 500+ Posts Club


Offline Joined: Jan 13, 2005 Posts: 593 Location: Paris, France
|
|
| Back to top |
|
 |
Dizfunkshunal Platinum Supporter


Offline Joined: Mar 23, 2006 Posts: 2064
|
Posted: Mon Mar 10, 2008 8:21 pm Post subject: Re: Help to convert FiSubsilver Shadow Theme to 9.2.1 |
|
_________________ Diz Web Design Status: Open (Use of resources requires registration.)
Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Multiple Setups
|
|
| Back to top |
|
 |
rosbif 500+ Posts Club


Offline Joined: Jan 13, 2005 Posts: 593 Location: Paris, France
|
|
| Back to top |
|
 |
Dizfunkshunal Platinum Supporter


Offline Joined: Mar 23, 2006 Posts: 2064
|
Posted: Tue Mar 11, 2008 12:54 am Post subject: Re: Help to convert FiSubsilver Shadow Theme to 9.2.1 |
|
Then something is not correct
_________________ Diz Web Design Status: Open (Use of resources requires registration.)
Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Multiple Setups
|
|
| Back to top |
|
 |
rosbif 500+ Posts Club


Offline Joined: Jan 13, 2005 Posts: 593 Location: Paris, France
|
|
| Back to top |
|
 |
|
|
All times are GMTGo to page 1, 2 Next
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
|
| |
 |
 Welcome Anonymous
|
|
|
|