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?

Infused Theme

Asked Modified Viewed 14,018 times
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
  • Started this discussions
asked
Fusioneer

[mp]964[/mp]
0 replies

6 posts

N
NetriX
N
NetriX 10
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Mon-Thurs. Send me a PM if urgent.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
answered
Senior Member

Great idea Craig.

As a suggestion I would like to see additional features if you release future updates:

[olist=1]Logo Upload
Styles.css Editor
Footer/Header Content (such as add to header / footer)
[/olist]
All directly editable from the infusion, of course.
1 reply
L
lifeguard
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
answered
Member

I think, when you make a mix between this and Omni theme... you have a winning theme. A nice responsive theme, wich will be easy to style :)
I dont know how hard it is, but i think you make many people happy then. More then you already did/do :G
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
  • Started this discussions
answered
Fusioneer

Hi lifeguard,

I will admit we will need a better layout for the next version of Infused Theme. I am thinking something more along the lines of the theme on Mods UK now.

Imagine the Dev Blog Responsive 2 Theme being just like Infused, able to change your colours, turn things like, sub menu, footer links on and off. Be able to insert your own text or panel into the footer links. The options would be nice and working together with that theme would be something nice for us all. Do not push me for it but I am seriously thinking about that as another fun theme infusion project and, well my Dev Blog Responsive 2 Theme is nice so why not blow the lid off it and go completely over the top and make it just like Infused.

Let me think more on this one! If I do start on that I will most likely keep it quiet until I am finished. Let's just wait and see.

Regards
Craig
0 replies
L
lifeguard
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
answered
Member

Nice, as you know, maybe not, i ask a week of 3 ago when you release de dev blog theme :)
If this will be mixed with this, then i already know a default theme of my site

Keep up the good work !
Edited by N/A on 02-12-2015 20:00,
0 replies
— 1 year later —
S
sleepout9
S
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

How can I use logo in this theme? Infused...

https://www.php-fusion.co.uk/infusions/addondb/view.php?addon_id=964
0 replies
K
KasteR
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums
answered
Senior Member

sleepout9, the top-navigation div is fixed to the top of the page. Keeping that in mind, you can lay a logo within that div. More than likely you will need to scale your image down, since the top-navigation is only 40px in height. Here's a simple aproach that may require minor tweaking (depending on your logo height).

infusions/infused_theme_control_panel/header.php
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2014 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: site_links.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| Infused Theme Control Panel
| Filename: infused_theme_control_panel_settings.php
| Version: 1.00
| Author: PHPFusion Mods UK
| Developer: Craig
| Site: http://www.phpfusionmods.co.uk
+--------------------------------------------------------+
| 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).
|--------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Name: Quick Sign
| Version: 2.00
| File Name: infused_theme_control_panel.php
| Author: Fangree Productions
| Site: http://www.fangree.co.uk
| Contact: admin@fangree.co.uk
| Developers: Fangree_Craig
| Based on Perfect signin dropdown box like Twitter Turorial by
| http://aext.net/2009/08/perfect-sign-in-dropdown-box-likes-twitter-with-jquery/
+--------------------------------------------------------+
| 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).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

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

$infused_theme_control_panel_check = dbquery("SELECT * FROM ".DB_INFUSIONS. " WHERE inf_folder='infused_theme_control_panel'");

if (dbrows($infused_theme_control_panel_check) > 0) {


include LOCALE.LOCALESET."global.php";
include INFUSIONS."infused_theme_control_panel/infusion_db.php";

$infused_theme_control_settings = dbarray(dbquery("SELECT * FROM ".DB_INFUSED_THEME_SETTINGS));
add_to_head("<link type='text/css' rel='stylesheet' href='".INFUSIONS."infused_theme_control_panel/includes/infused_theme_control_styles.php' />");
add_to_head("<style>.top-logo>a>img{width:135px;}</style>");
if ($infused_theme_control_settings['infused_theme_control_enableheadstrip'] =="1") {
global $userdata, $settings, $aidlink;
echo"<div style='padding-bottom: 2px; margin-right: 35px;' id='container'>";
 echo "<div class='top-logo'>".showbanners()."</div>\n";
 echo "<div  class='top-navigation'>\n";
 

 
   $list_open = false;
   $result = dbquery(
      "SELECT link_name, link_url, link_window, link_visibility FROM ".DB_INFUSED_THEME_LINKS."
      WHERE link_name !='' OR link_url !='' ORDER BY link_order"
   );
   
if (dbrows($result)) {

   $i = 0;


   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
            if (!$list_open) { echo "<ul>\n"; $list_open = true; }
            $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
               echo "<li>\n";
               echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='side'>\n";
               echo "<span>".parseubb($data['link_name'], "b|i|u|color|img")."</span></a></li>\n";   
         
      }
   }
   if ($list_open) { echo "</ul>\n"; }

   }
if (!iMEMBER) {


if (!preg_match('/login.php/i',FUSION_SELF)) {
      $action_url = FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "");
      if (isset($_GET['redirect']) && strstr($_GET['redirect'], "/")) {
         $action_url = cleanurl(urldecode($_GET['redirect']));
      }
            
      


echo"<div id='inner-container'>
      
  <div id='topnav' class='topnav'> ".$locale['qsp_001']." <a href='login' class='signin'><span>".$locale['global_100']."</span></a></div>
  <fieldset id='signin_menu'>
   <form name='loginform' method='post' action='".$action_url."'>
       <label  for='username'><span class='username-span'>".$locale['global_101']."</span></label>
        <span id='username_tip' style='vertical-align: middle;' title='".$locale['qsp_005']."'> <input id='username' name='user_name' value='' title='username' tabindex='4' type='text' /></span>
         <p>
           <label for='password'><span class='username-span'>".$locale['global_102']."</span></label>
              <span id='password_tip' style='vertical-align: middle;' title='".$locale['qsp_006']."'><input id='password' name='user_pass' value='' title='password' tabindex='5' type='password' /></span>
               </p>
              <p class='remember'>
             <input id='remember' name='remember_me' value='1' tabindex='6' type='checkbox' />
            <label for='remember'>".$locale['global_103']."</label>
          <input id='signin_submit' name='login' class='button' value='".$locale['global_104']."' tabindex='7' type='submit' />
         </p>
        <p class='forgot'> <a id='resend_password_link' title='".$locale['qsp_003']."' href='".BASEDIR."lostpassword.php'>".$locale['qsp_004']."</a> </p>\n";
      if ($settings['enable_registration']) {
     echo" <p class='forgot'> <a id='no_account_link' title='".$locale['qsp_002']."' href='".BASEDIR."register.php'>".$locale['global_107']."</a> </p>\n";
    }
    echo" </form>
   </fieldset>
</div>\n";

add_to_footer("<script type='text/javascript'>
$(document).ready(function() {

$('.signin').click(function(e) {         
   e.preventDefault();
     $('fieldset#signin_menu').slideToggle('fast');
     $('.signin').toggleClass('menu-open');
    });

$('fieldset#signin_menu').mouseup(function() {
   return false
   });
$(document).mouseup(function(e) {
  if($(e.target).parent('a.signin').length==0) {
    $('.signin').removeClass('menu-open');
    $('fieldset#signin_menu').hide();
  }
});         

});
</script>

<script src='".INFUSIONS."infused_theme_control_panel/includes/javascripts/jquery.tipsy.js' type='text/javascript'></script>
<script type='text/javascript'>
    $(function() {
     $('#resend_password_link').tipsy({gravity: 'e'}); 
       $('#no_account_link').tipsy({gravity: 'e'});
       $('#username_tip').tipsy({gravity: 'e'}); 
     $('#password_tip').tipsy({gravity: 'e'});
    });
  </script>");
  }
 
  }else{
 

   
echo"<div id='inner-container'>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
$subm_count = dbcount("(submit_id)", DB_SUBMISSIONS);
if ($subm_count) {
echo "&nbsp;<a href='".ADMIN."submissions.php".$aidlink."' class='user-cp'>".sprintf($locale['qsp_007'], $subm_count);
echo ($subm_count == 1 ? $locale['global_128'] : $locale['global_129'])."</a>\n";
}
}
echo "&nbsp;&nbsp;<a class='user-cp' href='".BASEDIR."edit_profile.php' title='".$locale['global_120']."' >".$locale['global_120']."</a>&nbsp;\n";
   $msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0' AND message_folder='0'");
    if ($msg_count !=0) {
      echo "&nbsp;<a href='".BASEDIR."messages.php' style='color: #00CC00;'  class='user-cp'>".sprintf($locale['global_125'], $msg_count).($msg_count == 1 ? $locale['global_126'] : $locale['global_127'])."</a>&nbsp;\n";
        }else{
         echo"&nbsp;<a href='".BASEDIR."messages.php' title='".$locale['global_121']."' class='user-cp'>".$locale['global_121']."</a>&nbsp;\n";
          }
        echo"&nbsp;<a href='".BASEDIR."members.php' title='".$locale['global_122']."' class='user-cp'>".$locale['global_122']."</a>\n";
      if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
     echo"&nbsp;&nbsp;<a href='".ADMIN."index.php".$aidlink."' title='".$locale['global_123']."' class='user-cp'>".$locale['global_123']."</a>&nbsp;&nbsp;\n";
    }
   if (!iADMIN) { echo"&nbsp;&nbsp;"; }
  echo "<a href='".BASEDIR."setuser.php?logout=yes' title='".$locale['global_124']."' class='user-cp2'>".$locale['global_124']."</a> \n";
echo"</div>";
}
echo"</div>";
   echo"</div>";
   }
}else{
if (iADMIN && checkrights("I")) {
echo"<div class='admin-message' style='position:fixed; top:0; left:0; z-index:100; width:100%;'>".$locale['itc_033']."</div>";
}
}

?>


You can adjust the height by modifying 135px to whatever you need to.

Quote

add_to_head("<style>.top-logo>a>img{width:135px;}</style>");
Edited by KasteR on 04-12-2015 03:00,
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 6 posts
  • Votes 0 votes
  • Topic users 6 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet