How To Adding CZEnhanced Themes

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   re: How To Adding CZEnhanced Themes
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,440
   
You have a very nice looking community! Im glad your enjoying the stuff we provide. icon_biggrin.gif




_________________
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
#2   re: How To Adding CZEnhanced Themes
Cyberian
CZ Super Newbie
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Nov 11, 2003
0.00 posts per day
Posts: 35
Points: 15,546
   
Telli, quick question. I followed the directions for these and got most of them except for the bbcode one. I am getting a parse error:

Parse error: parse error, unexpected '<' in /home/cyberian/public_html/h2ksite/includes/bbcode.php(9icon_cool.gif : eval()'d code on line 66



Back to top Reply with quote
#3   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,440
   
Looks your editng the bbcode.php you dont edit that. You edit the bbcode.tpl for the new theme your adding.




_________________
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
#4   
Cyberian
CZ Super Newbie
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Nov 11, 2003
0.00 posts per day
Posts: 35
Points: 15,546
   
Nope never even touched that file. I will supply the coding for that file though to show what it is pointing to.



Back to top Reply with quote
#5   re: How To Adding CZEnhanced Themes
Cyberian
CZ Super Newbie
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Nov 11, 2003
0.00 posts per day
Posts: 35
Points: 15,546
   
Sorry forgot to add the code and when I tried, it wouldn't add right. Anyway, sorry.

<?php
/***************************************************************************
*                              bbcode.php
*                            -------------------
*   begin                : Saturday, Feb 13, 2001
*   copyright            : (C) 2001 The phpBB Group
*   email                : [ Register or login to view links on this board. ]
*
*   $Id: bbcode.php,v 1.36.2.27 2003/06/09 20:01:18 psotfx Exp $
*
***************************************************************************/
/***************************************************************************
* phpbb2 forums port version 2.0.5 (c) 2003 - Nuke Cops (http://nukecops.com)
*
* Ported by Nuke Cops to phpbb2 standalone 2.0.5 Test
* and debugging completed by the Elite Nukers and site members.
*
* You run this package at your sole risk. Nuke Cops and affiliates cannot
* be held liable if anything goes wrong. You are advised to test this
* package on a development system. Backup everything before implementing
* in a production environment. If something goes wrong, you can always
* backout and restore your backups.
*
* Installing and running this also means you agree to the terms of the AUP
* found at Nuke Cops.
*
* This is version 2.0.5 of the phpbb2 forum port for PHP-Nuke. Work is based
* on Tom Nitzschner's forum port version 2.0.6. Tom's 2.0.6 port was based
* on the phpbb2 standalone version 2.0.3. Our version 2.0.5 from Nuke Cops is
* now reflecting phpbb2 standalone 2.0.5 that fixes some bugs and the
* invalid_session error message.
***************************************************************************/
/***************************************************************************
*   This file is part of the phpBB2 port to Nuke 6.0 (c) copyright 2002
*   by Tom Nitzschner (tom@toms-home.com)
*   http://bbtonuke.sourceforge.net (or http://www.toms-home.com)
*
*   As always, make a backup before messing with anything. All code
*   release by me is considered sample code only. It may be fully
*   functual, but you use it at your own risk, if you break it,
*   you get to fix it too. No waranty is given or implied.
*
*   Please post all questions/request about this port on http://bbtonuke.sourceforge.net first,
*   then on my site. All original header code and copyright messages will be maintained
*   to give credit where credit is due. If you modify this, the only requirement is
*   that you also maintain all original copyright messages. All my work is released
*   under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.
*
***************************************************************************/
/***************************************************************************
*
*   This program is free software; you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation; either version 2 of the License, or
*   (at your option) any later version.
*
***************************************************************************/

if ( !defined('IN_PHPBB') )
{
        die("Hacking attempt");
}

define("BBCODE_UID_LEN", 10);

[b]// global that holds loaded-and-prepared bbcode templates, so we only have to do[/b]
// that stuff once.

$bbcode_tpl = null;

/**
* Loads bbcode templates from the bbcode.tpl file of the current template set.
* Creates an array, keys are bbcode names like "b_open" or "url", values
* are the associated template.
* Probably pukes all over the place if there's something really pruned
* with the bbcode.tpl file.
*
* Nathan Codding, Sept 26 2001.
*/
function load_bbcode_template()
{
        global $template;
        $tpl_filename = $template->make_filename('bbcode.tpl');
        $tpl = fread(fopen($tpl_filename, 'r'), filesize($tpl_filename));

        // replace \ with \\ and then ' with \'.
        $tpl = str_replace('\\', '\\\\', $tpl);
        $tpl  = str_replace('\'', '\\\'', $tpl);

        // strip newlines.
        $tpl  = str_replace("\n", '', $tpl);

        // Turn template blocks into PHP assignment statements for the values of $bbcode_tpls..
        $tpl = preg_replace('#<!-- BEGIN (.*?) -->(.*?)<!-- END (.*?) -->#', "\n" . '$bbcode_tpls[\'\\1\'] = \'\\2\';', $tpl);

        $bbcode_tpls = array();

        eval($tpl);

        return $bbcode_tpls;
}


Here's the first 100 lines of code. The bold lettered line is line 66. It is a very odd error.


Back to top Reply with quote
#6   re: How To Adding CZEnhanced Themes
Cyberian
CZ Super Newbie
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Nov 11, 2003
0.00 posts per day
Posts: 35
Points: 15,546
   
Telli,

The CZ-1 Theme is not downloadable from the forums here. I only saw the regular one on the site. Anywhere else I can get it from?



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