Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
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.1
Ask 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
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  ThemesTheme / Image / Logo requests

View previous topic :: View next topic  
Author Message
Troop8113
Newbie
Newbie

Offline Offline
Joined: Dec 28, 2007
Posts: 11

PostPosted: 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
View user's profile Visit poster's website
Mel
Forum Admin
Forum Admin

Offline Offline
Joined: Jul 21, 2004
Posts: 1386
Location: Eastern Time Zone
PostPosted: 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! Crying or Very sad
Back to top
View user's profile Visit poster's website
macavity
Heavy poster
Heavy poster

Offline Offline
Joined: Jun 23, 2004
Posts: 199

PostPosted: 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
View user's profile
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Tue Feb 26, 2008 9:51 pm
Post subject: Re: Help to convert FiSubsilver Shadow Theme to 9.2.1

Already done here:

www.dizfunkshunal.com/...ails&id=97


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
macavity
Heavy poster
Heavy poster

Offline Offline
Joined: Jun 23, 2004
Posts: 199

PostPosted: 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
View user's profile
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Thu Feb 28, 2008 9:32 am
Post subject: Re: Help to convert FiSubsilver Shadow Theme to 9.2.1

No worries - out of interest, have you tried an upgrade to 9.2 with this theme? Am thinking of trying to upgrade, but a little daunted by the process..


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
macavity
Heavy poster
Heavy poster

Offline Offline
Joined: Jun 23, 2004
Posts: 199

PostPosted: 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! Shocked

_________________
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
View user's profile
Maveric_LOL
Newbie
Newbie

Offline Offline
Joined: Sep 05, 2007
Posts: 4

PostPosted: 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

PHP:

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
View user's profile Visit poster's website
Maveric_LOL
Newbie
Newbie

Offline Offline
Joined: Sep 05, 2007
Posts: 4

PostPosted: 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
View user's profile Visit poster's website
Mel
Forum Admin
Forum Admin

Offline Offline
Joined: Jul 21, 2004
Posts: 1386
Location: Eastern Time Zone
PostPosted: 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! Crying or Very sad
Back to top
View user's profile Visit poster's website
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Mon Mar 10, 2008 7:27 pm
Post subject: Re: Help to convert FiSubsilver Shadow Theme to 9.2.1

I've taken the plunge and gone for the upgrade (see the site in my sig). There were a couple of issues with the theme that I am working my way through but I haven't had a single module or block issue - That's pretty impressive so thanks to all who've put the work in!

I've just got to work out exactly what I've gained in upgrading now, and how to work the new blocks admin...


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Mon Mar 10, 2008 8:21 pm
Post subject: Re: Help to convert FiSubsilver Shadow Theme to 9.2.1

www.dizfunkshunal.com/...id=22.html

_________________
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
View user's profile Send e-mail Visit poster's website Yahoo Messenger
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Mon Mar 10, 2008 9:00 pm
Post subject: Re: Help to convert FiSubsilver Shadow Theme to 9.2.1

Ah, my 9.2 is completely different from that!


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: 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
View user's profile Send e-mail Visit poster's website Yahoo Messenger
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Tue Mar 11, 2008 7:36 am
Post subject: Re: Help to convert FiSubsilver Shadow Theme to 9.2.1

It's all changed in 9.2 I think - how do you do a screengrab in vista? ctrl-prtscn doesn't seem to work...


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  ThemesTheme / Image / Logo requests
Page 1 of 2
All times are GMT
Go to page 1, 2  Next



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


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

Gehiago irakurri . . .

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy