Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Ddraig

Asked Modified Viewed 30,353 times
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
  • Started this discussions
asked
Veteran Member

www.php-fusion.co.uk/infusions/marketplace/uploads/image/t_1273.png

A Simple and Clean theme

Features:
• this theme features a Theme Control Panel. Is basically an infusion which gives you the ability to change theme
settings like width without having to alter any theme files.
• the search field in the header. It will automatically add the option to search the website area you are on.
• avatar for the last user which made the post in a forum or thread.
• winter mode, adds some winter/snow styling effects to the theme
• the "sticky thread" was replaced icon with a nice "PINNED" green tag
• added to Locked threads a "LOCKED" red tag
• better quote formatting
• "edit note" on edited posts is better and nicer formatted
• a scroll-to-top script that can be reused for any anchor to do a smooth scroll to it
to reuse the script add class='scroll' to the link or class='scroll clean' if you don't want the #hash to be added
to url after scrolling is done
• several SEO optimizations



-- View this Addon --

GET THE LATEST VERSION of DDRAIG FROM
upload.wikimedia.org/wikipedia/commons/thumb/2/29/GitHub_logo_2013.svg/140px-GitHub_logo_2013.svg.png
0 replies

36 posts

J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
  • Started this discussions
answered
Veteran Member

Hmmm I think it occurs in the first version of DDraig released, try the latest version from https://github.com/JoiNNN/Ddraig-theme
0 replies
G
Gillette
G
Gillette 10
  • Senior Member, joined since
  • Contributed 335 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

Replacing theme.php with the theme.php from your github worked fine.Thanks joiNNN ;)
Solution Corrected / Resolved
I didn't replace the whole theme,but works fine.

<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2013 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: theme.php
| Author: JoiNNN
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------+
| This file is part of the PHPFusion Theme standard.
+--------------------------------------------------------+
| Theme: Ddraig
| PHPFusion version: 7.02.05
| Theme version: 1.0.2
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

//Theme settings
require_once THEME."theme_settings.php";

define("THEME_BULLET", "<img src='".THEME."images/bullet.png' class='bullet' width='3' height='5' alt='>' />");
require_once THEME."includes/functions.php";
require_once INCLUDES."theme_functions_include.php";

function get_head_tags(){
        echo "<!--[if lte IE 7]><style type='text/css'>hr{height: 2px;} .panelcap .title{float: left;} .button,button,input[type=submit]{padding: 4px 6px} button.button {display:inline} .clearfix {display:inline-block;} * html .clearfix{height: 1px;}</style><![endif]-->\n";
        //Theme width class
        echo "<style type='text/css'>.theme-width {max-width: ".THEME_MAXWIDTH.";min-width: ".THEME_MINWIDTH."}</style>\n";
}

if (function_exists("add_handler")) {
        add_handler("theme_output");
}

function render_page($license=false) {
global $aidlink, $locale, $settings, $main_style, $setting;

//Check for locale
if (file_exists(THEME."locale/".$settings['locale'].".php")) {
        include THEME."locale/".$settings['locale'].".php";
} else {
        include THEME."locale/English.php";
}

//Open Sans font
add_to_head("<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />");

//Header
$links = showsublinks("","link");
        //Home link as icon
        if (HOME_AS_ICON == 1) {
                $links = preg_replace("#(<li class=')link( first-link)?( current-link)?('><a href=')(\.\./|\.\./\.\./)?(".$settings['opening_page']."|index.php)?('.*)#si", "$1link home$2$4$5$6$7", $links, 1);
        }
        //add class last-link
        $links = preg_replace("#(.*<li class=')link( current-link)?( home)?('.*)#si", "$1link last-link$2$3$4", $links, 1);
        $links = preg_replace("#<ul>#i", "<ul class='navigation'>", $links, 1);
        echo "<div id='header' class='clearfix'>";
        echo "<div id='mainheader' class='center clearfix'>";

        echo "<div id='logo'>".showbanners()."</div>";
        //Search based on the website area you are on
        if (SEARCH_HEAD == 1) {
                echo "<form id='top-search' name='top-search' action='".BASEDIR."search.php' method='get'>";
                echo "<div class='search-input-wrap textbox flleft'>";
                include THEME."includes/header_search_includes.php";
                if ($stype != "") {
                        echo "<span id='search_area' class='search button mini flleft'>".$text." &nbsp;X</span>";
                        echo "<input type='hidden' value='".$stype."' id='search_type' name='stype' />";
                }
                echo "<span id='splaceholder' class='flleft'>Search</span><input id='sinput' type='text' class='textbox-search flleft' value='' name='stext' /></div>";
                echo "<button type='submit' class='button search flleft'><img src='".THEME."images/search.png' alt='Search' /></button>";
                echo "</form>";
        }

        //Winter Mode
        if (WINTER == 1) {
                echo "<span class='top-snow'></span>";
                add_to_head("<link type='text/css' href='".THEME."css/winter.css' rel='stylesheet' media='screen' />");
        }
        echo "</div>";

        echo "<div id='subheader'>";
                //Navigation links
                echo "<div class='theme-width clearfix center'>".$links."</div>";
        echo "</div>";

        echo "</div>";
        echo "<div id='main' class='$main_style theme-width center clearfix'>";

//Panels structure
        echo (LEFT ? "<div id='side-border-left' class='sides flleft'>\n".LEFT."</div>\n" : "");
        echo (RIGHT ? "<div id='side-border-right' class='sides flright'>\n".RIGHT."</div>\n" : "");
//Main structure
        echo "<div id='main-bg'><div id='container'>";
        echo (U_CENTER ? "<div class='upper-block'>".U_CENTER."</div>" : "");
        echo "<div class='main-block'>".CONTENT."</div>";
        echo (L_CENTER ? "<div class='lower-block'>".L_CENTER."</div>" : "");
        echo "</div></div></div>\n";

//Footer
        echo "<div id='footer'>";
        //Scroll to top link
        echo "<div class='scroll-top center'><a href='#header' id='top-link' class='scroll clean' title='".$locale['scroll_top']."'><span>".$locale['scroll_top']."</span></a></div>";
        echo "<div class='footer center theme-width'>";
        echo "<div class='footernav flleft'>";
        //Footer links
        require_once THEME."includes/footer_links.php";
        echo "</div></div>";

        //Subfooter       
        echo "<div id='subfooter'>";                       
        echo "<div id='copyright'><div class='flleft'><img width='40' src='".THEME."images/8ight.png' alt='Logo' /></div><div class='flleft' style='width: 40%; padding-left: 10px'>".(!$license ? showcopyright() : "")."<br />Theme designed by <a href='http://www.php-fusion.co.uk'>JoiNNN</a></div>";
        echo "<div class='flright alright' style='width: 40%;'>".stripslashes($settings['footer'])."</div></div>";
        echo "<div class='subfooter clearfix'>";
        echo "<div class='flleft' style='width: 50%'>";
                if ($settings['rendertime_enabled'] == 1 || ($settings['rendertime_enabled'] == 2 && iADMIN)) {echo showrendertime();}
        echo "</div>";
        echo "<div class='flright alright' style='width: 50%;'>".showcounter()."</div>";
        echo "</div></div></div>\n";

//Show warning if Theme Control Panel is not infused and if user has access to Infusions
if (!TCPINFUSED && checkrights("I")) {
        //Render the warning
        replace_in_output("<!--error_handler-->", "<!--error_handler-->".$locale['tcp_warning']);
        //Message close script
        add_to_footer("<script type='text/javascript' src='".THEME."js/jquery.cookie.js'></script>");
        add_to_footer("<script type='text/javascript'>
        $('#tcp-warn').click( function() {
                $('.tcp-warn').fadeTo('slow',0.01,function(){
                        $(this).slideUp('slow',function(){
                                $(this).hide()
                        });
                $.cookie('showWarn', 'hide', {expires: 1, path:'/'});
                });
        });
        var showWarn = $.cookie('showWarn');
        if (showWarn == 'hide') {
                $('.tcp-warn').hide();
        }
        </script>");         
}
add_to_footer("<script type='text/javascript' src='".THEME."js/jquery.mousewheel.js'></script>");
add_to_footer("<script type='text/javascript' src='".THEME."js/scrolltopcontrol.js'></script>");
add_to_footer("<script type='text/javascript'>/*<![CDATA[*/
        //Header search - area script
        $('#search_area').click( function() {
                $(this).fadeTo('slow',0,function(){
                        $(this).animate({'width': '0', 'padding': '0'}, 300, function(){
                                $(this).remove()
                        });
                });
        $('#search_type').attr({'disabled': 'disabled'}) //disabling(instead of removing) keeps input field value after page reload
        });
        $('#search_type').removeAttr('disabled') //if is disabled, stays disabled after page reload. Remove attribute on page load

        //Header search - placeholder script
        var text = $('#splaceholder').html();
        if ($('#sinput').attr('value') != '') {
                $('#splaceholder').html('') //remove placeholder text if other value is kept after page reload
        }
        //remove placeholder text when typing
        $('#sinput').bind('input propertychange', function() {
                if ($(this).attr('value') != '') {
                        $('#splaceholder').html('') //remove
                } else {
                        $('#splaceholder').html(text) //add it back if no text input
                }
        });

        //Verticaly align the logo
        $('#main-logo').css({'top': '50%', 'margin-top': '-' + $('#main-logo').height()/2 + 'px'});"

        //Thread preview script
        .((THREAD_PREV == 1 && FUSION_SELF == 'viewforum.php') ? "
        //Thread preview
        $('a.preview-link').click(function (e) {
                e.preventDefault();
                var el                = $(this),
                        parts        = this.href.split('='),
                        trgt        = parts[1],
                        thistr        = el.parent().parent();
                        thid        = $('#thid' + trgt),
                        preview = '".$locale['prev_thread']."',
                        close_preview = '".$locale['close_prev']."';
                //Closing the preview
                if (thid.hasClass('expanded')) {
                        thid.children('div').stop(true, true).slideToggle('fast');
                        thid.removeClass('expanded');
                        thistr.removeClass('previewing');
                        el.removeClass('close').addClass('expand').attr('title', preview);
                //Expanding the preview after was loaded
                } else if (thid.hasClass('loaded') && !thid.hasClass('expanded')) {
                        thid.children('div').stop(true, true).slideToggle('fast');
                        thid.addClass('expanded');
                        thistr.addClass('previewing');
                        el.removeClass('expand').addClass('close').attr('title', close_preview);
                //Loading and expanding the preview
                } else if(!el.hasClass('loading')) {
                        el.removeClass('expand').addClass('loading');
                        $.ajax({url:'".THEME."includes/th_preview.php?thread_id=' + trgt,
                                success: function(result){
                                        thistr.after('<tr><td id=\'thid' + trgt + '\' class=\'preview expanded loaded\' colspan=\'5\'>' + result + '<\/td><\/tr>');
                                        thistr.addClass('previewing');
                                        el.removeClass('loading').addClass('close').attr('title', close_preview);
                                        $('#thid' + trgt).children('div').stop(true, true).slideToggle('fast');
                                  },
                                error: function () {
                                        el.removeClass('loading').addClass('expand');
                                }
                        });
                }
        });" : "")."
        /*]]>*/
        </script>");
//Relative time script
if (REL_TIME == 1) {
        add_to_footer("<script type='text/javascript' src='".THEME."js/relative-date.js'></script>");
        add_to_footer("<script type='text/javascript'>/*<![CDATA[*/
        var timenow = '".(iMEMBER ? showdate("longdate", time()) : strftime($settings['longdate'], (time())+($settings['serveroffset']*3600)))."';
        $('".REL_TIME_EL."').toRelativeTime(".(($settings['locale'] != "English" && file_exists(THEME."locale/".$settings['locale'].".php")) ? "{
        'seconds': '".$locale['seconds']."',
        'minute': '".$locale['minute']."',
        'minutes': '".$locale['minutes']."',
        'today': '".$locale['today']."',
        'yesterday': '".$locale['yesterday']."',
        'thisWeek': '".$locale['thisWeek']."',
        'other': '".$locale['other']."',
        'monthNames': ".$locale['monthNames'].",
        'monthNamesShort': ".$locale['monthNamesShort'].",
        'dayNames': ".$locale['dayNames'].",
        'dayNamesShort': ".$locale['dayNamesShort']."
        }" : "").");
        /*]]>*/
        </script>");
}

}

//Render News
function render_news($subject, $news, $info) {
global $locale, $settings;
        opentable($subject, "post", $info, "N");
        echo "<ul class='item-info news-info'>\n";
        //Author
        echo "<li class='author'>".profile_link($info['user_id'], $info['user_name'], $info['user_status'])."</li>\n";
        //Date
        echo "<li class='dated'>".showdate("newsdate", $info['news_date'])."</li>\n";
        //Category
        echo "<li class='cat'>\n";
                if ($info['cat_id']) {
                        echo "<a href='".BASEDIR."news_cats.php?cat_id=".$info['cat_id']."'>".$info['cat_name']."</a>\n";
                } else {
                        echo "<a href='".BASEDIR."news_cats.php?cat_id=0'>".$locale['global_080']."</a>";
                }
        echo "</li>\n";
        //Reads
        if ($info['news_ext'] == "y" || ($info['news_allow_comments'] && $settings['comments_enabled'] == "1")) {
        echo "<li class='reads'>\n";
                echo $info['news_reads'].$locale['global_074'];
        echo "</li>\n";}
        //Comments
        if ($info['news_allow_comments'] && $settings['comments_enabled'] == "1") { echo "<li class='comments'><a ".(isset($_GET['readmore']) ? "class='scroll'" : "")." href='".BASEDIR."news.php?readmore=".$info['news_id']."#comments'>".$info['news_comments']."".($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a></li>\n"; }
        echo "</ul>\n";
        //The message
        echo $info['cat_image'].$news;

        //Read more button
        if (!isset($_GET['readmore']) && $info['news_ext'] == "y") {
                echo "<div class='readmore flright'><a href='".BASEDIR."news.php?readmore=".$info['news_id']."' class='button'><span class='rightarrow icon'>".$locale['global_072']."</span></a></div>\n";
        }
        echo "<!--news_id-".$info['news_id']."_end-->";
        closetable();
}

//Render Articles
function render_article($subject, $article, $info) {
global $locale, $settings;
        opentable($subject, "article", $info, "A");
        echo "<ul class='item-info article-info'>\n";
        //Author
        echo "<li class='author'>".profile_link($info['user_id'], $info['user_name'], $info['user_status'])."</li>\n";
        //Date
        echo "<li class='dated'>".showdate("newsdate", $info['article_date'])."</li>\n";
        //Category
        echo "<li class='cat'>\n";
                if ($info['cat_id']) {
                        echo "<a href='".BASEDIR."articles.php?cat_id=".$info['cat_id']."'>".$info['cat_name']."</a>";
                } else {
                        echo "<a href='".BASEDIR."articles.php?cat_id=0'>".$locale['global_080']."</a>";
                }
        echo "</li>\n";
        //Reads
        echo "<li class='reads'>".$info['article_reads'].$locale['global_074']."</li>\n";
        //Comments
        if ($info['article_allow_comments'] && $settings['comments_enabled'] == "1") { echo "<li class='comments'><a class='scroll' href='".BASEDIR."articles.php?article_id=".$info['article_id']."#comments'>".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a></li>\n"; }
        echo "</ul>\n";
        //The message
        echo ($info['article_breaks'] == "y" ? nl2br($article) : $article)."\n";
        echo "<!--article_id-".$info['article_id']."_end-->";
        closetable();
}

//Render comments
function render_comments($c_data, $c_info){
global $locale, $settings;
        if ($c_info['admin_link'] !== FALSE) {
                echo "<div class='comment-admin floatfix'>".$c_info['admin_link']."</div>\n";
        }
        if (!empty($c_data)){
                echo "<div class='user-comments floatfix'>\n";
                $c_makepagenav = '';
                if ($c_info['c_makepagenav'] !== FALSE) {
                        echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>".$c_info['c_makepagenav']."</div>\n";
                }
                foreach($c_data as $data) {
                        echo "<div id='c".$data['comment_id']."' class='comment'>\n";
                        //User avatar
                        if ($settings['comments_avatar'] == "1") { echo "<span class='user_avatar'>".$data['user_avatar']."</span>\n"; $noav = ""; } else { $noav = "noavatar"; }
                        echo "<div class='tbl1 comment-wrap $noav'>";
                        //Pointer tip
                        if ($settings['comments_avatar'] == "1") { echo "<div class='pointer'><span>&lt;</span></div>\n"; }
                        //Options
                        echo "<div class='comment-info'>";
                        if ($data['edit_dell'] !== FALSE) {
                                echo "<div class='actions flright'>".$data['edit_dell']."\n</div>\n";
                        }
                        //Info
                        echo "<a class='scroll' href='".FUSION_REQUEST."#c".$data['comment_id']."'>#".$data['i']."</a> |\n";
                        echo "<span class='comment-name'>".$data['comment_name']."</span>\n";
                        echo "<span class='small'>".$data['comment_datestamp']."</span></div>\n";
                        //The message
                        echo "<div class='comment-msg'>".$data['comment_message']."</div></div></div>\n";
                }
                echo $c_makepagenav;
                echo "</div>\n";
        } else {
                echo "<div class='nocomments-message spacer'>".$locale['c101']."</div>\n";
        }
}

function itemoptions2($item_type, $item_id, $info) {
global $locale, $aidlink; $res = "";
        if ($item_type == "N") {
                //Edit
                if (iADMIN && checkrights($item_type)) { $res .= "<span class='edit'><!--article_news_opts--> <a href='".ADMIN."news.php".$aidlink."&amp;action=edit&amp;news_id=".$item_id."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' width='16' height='16' style='border:0;' /></a></span>\n"; }
                //Print
                $res .= "<!--news_opts--><span class='print'><a href='print.php?type=N&amp;item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' title='".$locale['global_075']."' width='20' height='16' style='border:0;' /></a></span>\n";
        } elseif ($item_type == "A") {
                //Edit
                if (iADMIN && checkrights($item_type)) { $res .= "<span class='edit'><!--article_admin_opts--> <a href='".ADMIN."articles.php".$aidlink."&amp;action=edit&amp;article_id=".$item_id."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' width='16' height='16' style='border:0;' /></a></span>\n"; }
                //Print
                $res .= "<!--article_opts--><span class='print'><a href='print.php?type=A&amp;item_id=".$info['article_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' title='".$locale['global_075']."' width='20' height='16' style='border:0;' /></a></span>\n";
        }
        return $res;
}

//Content Panels
function opentable($title, $custom_class="", $info="", $type="") {
global $p_data;
        //News and Articles IDs, and Options(Edit/Print)
        $id = "";
        $options = "";
        if ($type == "N") {
                $id = "id='news-".$info['news_id']."'";
                $options = itemoptions2("N", $info['news_id'], $info);
        } elseif ($type == "A") {
                $id = "id='article-".$info['article_id']."'";
                $options = itemoptions2("A", $info['article_id'], $info);
        }

        //Wrapp panel in div with class based on panel name
        $class = $p_data['panel_filename'];
        if ($class == "" && $custom_class == "") {
                //Panel with no custom class and no panel name file
                $class = "panel";
        } elseif ($class == "" && $custom_class != "") {
                //Panel with custom class and no panel name file
                $class = $custom_class." panel";
        } else {
                //Panel with panel name file
                $class = str_replace("_panel", " panel", $class);
        }

        echo "<div ".$id." class='".$class."'>";
        echo "<h1 class='maincap'>";
        echo "<span class='title'>".$title."</span>";
        if ($info != "") {
                echo "<span class='options'>";
                echo $options;
                echo "</span>";
        }
        echo "</h1>\n";
        echo "<div class='contentbody clearfix'>";
}

function closetable() {
        echo "</div></div>\n";
}

//Side panels
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse, $p_data; $panel_collapse = $collapse;
        //Wrap panel in div with class based on panel name
        $class = $p_data['panel_filename'];
        if ($class == "") {        $class = "panel"; } else { $class = str_replace("_panel", " panel", $class); }

        echo "<div class='".$class."'>";
        echo "<h2 class='panelcap'>";
        echo "<span class='title'>".$title."</span>\n";
        if ($collapse == true) {
                $boxname = str_replace(" ", "", $title);
                echo "<span class='switcherbutton flright'>".panelbutton($state, $boxname)."</span>\n";
        }
        echo "</h2>";
        echo "<div class='panelbody clearfix'>\n";
        if ($collapse == true) { echo panelstate($state, $boxname); }
}

function closeside() {
global $panel_collapse;
        echo "</div>\n";
        echo "</div>\n";
        if ($panel_collapse == true) { echo "</div>\n"; }
}

?>
0 replies
— 2 months later —
C
Charon
C
Charon 10
Nothing Like the Taste of Death to Help You Appreciate Life
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 3 threads in the forums
answered
Junior Member

Is there a way to make fusiontube addon work with ddraig theme.
I tested with other themes infusion works fine. But not with ddraig theme.

What can be the possible reasons? Where shall I check?
Any ideas guys?
0 replies
S
spunk
S
spunk 10
www.duesseltag.de/../../images/banner/banner209x69.png
  • Member, joined since
  • Contributed 92 posts on the community forums.
  • Started 6 threads in the forums
answered
Member

http://www.php-fusion.co.uk/forum/viewthread.php?thread_id=31752&pid=177374#post_177364
0 replies
C
Charon
C
Charon 10
Nothing Like the Taste of Death to Help You Appreciate Life
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 3 threads in the forums
answered
Junior Member

I appriciate Spunk. Thank you very much. And I am so ashamed that I did not look for the solution enough to find it in the forums.

Thanks again.
0 replies
— 8 months later —
R
Rudios
R
Rudios 10
  • Member, joined since
  • Contributed 145 posts on the community forums.
  • Started 16 threads in the forums
answered
Member

Great theme. Thanks you!

I have downloaded version 1.02 and I have two questions:
How can I align my site banner in the middle?
Is it possible to move the search field above the navigation panel or somewhere else than the header?
Thanks.
0 replies
D
dimki
D
dimki 10
  • Senior Member, joined since
  • Contributed 246 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

new version hiar in test https://www.php-fusion.co.uk/forum/vi...d_id=35208

You can too many If you know little php fusion Ddraig in main site new little different like this http://www.hellasplus.com/news.php :G
0 replies
R
Rudios
R
Rudios 10
  • Member, joined since
  • Contributed 145 posts on the community forums.
  • Started 16 threads in the forums
answered
Member

Thank you for the link dimki. I read: "This version is under development and is not production ready, use at your own risk", so imho not a good idea for an active site. Long ago i did some programming (prolog, basic... etc) but i forgot 98% of it and i also get a little older, so I'm not going to mess around with php, css and the like. For now i only need to know how i can center my website banner and how to move the search files to another place. Thanks again.
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
  • Started this discussions
answered
Veteran Member

@Rudios to center the logo you add your own in Admin panel > Banners and you wrap it in <center>your logo code here</center>.
About moving the search bar I'll look into making that easy to do.
And just wanted to mention that the disclaimer is in place for not for security concerns but rather design, simply because I haven't finished it yet and might not look as expect on some devices.
0 replies
R
Rudios
R
Rudios 10
  • Member, joined since
  • Contributed 145 posts on the community forums.
  • Started 16 threads in the forums
answered
Member

JoiNNN, thank you for your fast reply. If possible i would prefer not to use banners for the website logo (i can not get it clickable anyway). If you could just show/tell me the right code in styles.css? Thanks agian.

#logo {
padding: 10px 0;
margin: 0 8px 0 20px;
min-height: 78px;
}
#main-logo {
position: absolute;
0 replies
R
Rudios
R
Rudios 10
  • Member, joined since
  • Contributed 145 posts on the community forums.
  • Started 16 threads in the forums
answered
Member

@JoiNNN, got the Banner <Center> working in SystemAdmin>Banners, but i prefer the styles.css solution if possible.
Thanks!
0 replies
— 5 months later —
R
razin
R
razin 10
  • Junior Member, joined since
  • Contributed 41 posts on the community forums.
  • Started 19 threads in the forums
answered
Junior Member

Hello,

News 1: LG G Flex 2 innowacyjno&#347;&#263; w zakrzywieniu - Add date 12.03.2015, IE 11 Ok, Chrome: A MOMENT AGO

Screen in att.

Web: http://www.lgmobile.pl
razin attached the following file:
1_2.png [No information available / 44 Downloads]
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
  • Started this discussions
answered
Veteran Member

The date has to respect the RFC2822 for Date and Time format for the script that converts dates to relative format to work. This means unless you have English set as locale disable it in Theme Control Panel. Firefox also supports other standards check this out https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse this means you can use just digits for the date, that might work if you have other locale set.
0 replies
— 4 months later —
R
razin
R
razin 10
  • Junior Member, joined since
  • Contributed 41 posts on the community forums.
  • Started 19 threads in the forums
answered
Junior Member

Hello

How to add Date and time in Ddraig. Screen in attch.

Website http://www.lgmobile.pl
razin attached the following file:
date_and_time_1.png [No information available / 50 Downloads]
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

in the DATE AND TIME, replace.

echo date("d-M-Y", time());


The format for d-M-Y to your preference.


$today = date("F j, Y, g:i a");                 // March 10, 2001, 5:16 pm
$today = date("m.d.y");                         // 03.10.01
$today = date("j, n, Y");                       // 10, 3, 2001
$today = date("Ymd");                           // 20010310
$today = date('h-i-s, j-m-y, it is w Day');     // 05-16-18, 10-03-01, 1631 1618 6 Satpm01
$today = date('\i\t \i\s \t\h\e jS \d\a\y.');   // it is the 10th day.
$today = date("D M j G:i:s T Y");               // Sat Mar 10 17:16:18 MST 2001
$today = date('H:m:s \m \i\s\ \m\o\n\t\h');     // 17:03:18 m is month
$today = date("H:i:s");                         // 17:16:18
$today = date("Y-m-d H:i:s");                   // 2001-03-
0 replies
R
razin
R
razin 10
  • Junior Member, joined since
  • Contributed 41 posts on the community forums.
  • Started 19 threads in the forums
answered
Junior Member

Hello

I add code to theme.php

After


//add class last-link
   $links = preg_replace("#(.*<li class=')link( current-link)?( home)?('.*)#si", "$1link last-link$2$3$4", $links, 1);
   $links = preg_replace("#<ul>#i", "<ul class='navigation'>", $links, 1);
   echo "<div id='header' class='clearfix'>";
   echo "<div id='mainheader' class='center clearfix'>";


This code


echo "<div class='member-wrap flright'>";
         require_once THEME."includes/user_info.php";
         require_once THEME."includes/custom_login_panel.php";
         echo "</div>";


Login panel in attachment

What is wrong

Image

www.php-fusion.pl/forum/attachments/1_6.png
razin attached the following file:
custom_login_panel.zip [No information available / 174 Downloads]
0 replies
R
razin
R
razin 10
  • Junior Member, joined since
  • Contributed 41 posts on the community forums.
  • Started 19 threads in the forums
answered
Junior Member

Hello i have bug in viewforum

images67.fotosik.pl/1195/d1c746facd3b4a06.png
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 36 posts
  • Votes 0 votes
  • Topic users 19 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet