Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > OpenTracker
Reply
  #1  
Old 26th August 2012, 20:17
lafouine022's Avatar
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Default donation
http://www.packupload.com/9FA1GMRA2KR

Upload in root web

run sql

PHP Code:
CREATE TABLE IF NOT EXISTS `{PREFIX}donation` (
  `
donation_actuint(11NOT NULL default '0',
  `
donation_maxint(11NOT NULL default '0',
  `
donation_emailtext
ENGINE=MyISAM DEFAULT CHARSET=latin1
remplace in template/(template use)/template.php

PHP Code:
<div id="header"
by

PHP Code:
<div id="header">
    <div class="progress-bar orange shine">
    <?php
        $db 
= new DB("donation");
        
$db->setColPrefix("donation_");
        
$db->select();
        
$db->nextRecord();
        
$donation $db->actu*100/$db->max
        
    ?>
    
            <span style="width: <?php echo $donation ?>%"><center><?php echo $donation ?>%</center></span>
            <p><a href="<?php echo page("donation"?>"><center>Fair un Don</center></a></p>
        </div>
add this lines in template/(template use)/css/style.css

PHP Code:
div#header .progress-bar {
    
background-color#204066;
    
height15px;
    
text-alignleft;
    
color#ffffff;
    
padding3px;
    
width130px;
    
margin0px 780px;            
    -
moz-border-radius5px;
    -
webkit-border-radius5px;
    
border-radius5px;
    -
moz-box-shadow0 1px 5px #000 inset, 0 1px 0 #444;
    
-webkit-box-shadow0 1px 5px #000 inset, 0 1px 0 #444;
    
box-shadow0 1px 5px #000 inset, 0 1px 0 #444;              
}

div#header .progress-bar a{
    
color#ffffff;
}
div#header .progress-bar span {
    
displayinline-block;
    
height100%;    
    -
moz-border-radius3px;
    -
webkit-border-radius3px;
    
border-radius3px;
    -
moz-box-shadow0 1px 0 rgba(255255255.5inset;
    -
webkit-box-shadow0 1px 0 rgba(255255255.5inset;
    
box-shadow0 1px 0 rgba(255255255.5inset;
        -
webkit-transitionwidth .4s ease-in-out;
        -
moz-transitionwidth .4s ease-in-out;
        -
ms-transitionwidth .4s ease-in-out;
        -
o-transitionwidth .4s ease-in-out;
        
transitionwidth .4s ease-in-out;    
}


.
orange span {
      
background-color#fecf23;
      
background-image: -webkit-gradient(linearleft topleft bottomfrom(#fecf23), to(#fd9215));
      
background-image: -webkit-linear-gradient(top#fecf23, #fd9215);
      
background-image: -moz-linear-gradient(top#fecf23, #fd9215);
      
background-image: -ms-linear-gradient(top#fecf23, #fd9215);
      
background-image: -o-linear-gradient(top#fecf23, #fd9215);
      
background-imagelinear-gradient(top#fecf23, #fd9215);  
}    




.
shine span {
    
positionrelative;
}

.
shine span::after {
    
content'';
    
opacity0;
    
positionabsolute;
    
top0;
    
right0;
    
bottom0;
    
left0;
    
background#fff;
    
-moz-border-radius3px;
    -
webkit-border-radius3px;
    
border-radius3px;            
    
    -
webkit-animationanimate-shine 2s ease-out infinite;
    -
moz-animationanimate-shine 2s ease-out infinite;             
}

@-
webkit-keyframes animate-shine 
    
0% {opacity0width0;}
    
50% {opacity.5;}
    
100% {opacity0width95%;}
}


@-
moz-keyframes animate-shine {
    
0% {opacity0width0;}
    
50% {opacity.5;}
    
100% {opacity0width95%;}


ok go in siteadmin/template/toolbar.php and remplace

PHP Code:
 <li>
                        <a href="<?php echo page("admin""widgets"); ?>">
                            <i class="icon"><img src="images/admin/widgets.png" width="16px"></i>&nbsp;Widgets
                        </a>
                    </li>
                    <li>
by

PHP Code:
<li>
                        <a href="<?php echo page("admin""widgets"); ?>">
                            <i class="icon"><img src="images/admin/widgets.png" width="16px"></i>&nbsp;Widgets
                        </a>
                    </li>
                    <li>
                        <a href="<?php echo page("admin""donation"); ?>">
                            <i class="icon"><img src="images/admin/donation.png" width="16px"></i>&nbsp;Donation
                        </a>
                    </li>
go in your panel admin donnation and add more information


enjoy...
Reply With Quote
  #2  
Old 26th August 2012, 20:49
Wuild's Avatar
Wuild Wuild is offline
Senior Member
 
Join Date: Jun 2012
P2P
Posts: 33
Default
Awsome, but what you can do is add the sql in a install file for the addon.
Ive done this in the shoutbox addon.

You can check the Addon repository on how i made this.
Reply With Quote
  #3  
Old 19th September 2012, 15:24
Roddan's Avatar
Roddan Roddan is offline
Member
 
Join Date: Sep 2012
Sweden
Posts: 11
Default
This is not working i just get.

PHP Code:
could not load library /var/www/CMS/applications/notifications/library/main.php 
Reply With Quote
  #4  
Old 19th September 2012, 16:13
l3on's Avatar
l3on l3on is offline
Coder
 
Join Date: Jul 2012
Posts: 154
Default fix
donwnload 1.0.7 stable fixed overwrite files done or go to 1.0.7stable the sticky 1 scoll down and download the missing file and extract that CMS / applications
Reply With Quote
  #5  
Old 26th September 2012, 00:03
GuldlocK's Avatar
GuldlocK GuldlocK is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 22
Default
any screens ? thx god work
Reply With Quote
  #6  
Old 16th October 2012, 03:11
eedu's Avatar
eedu eedu is offline
Member
 
Join Date: Oct 2012
Brazil
Posts: 6
Exclamation Error
Warning: Division by zero in /home/gupix/www/templates/default/template.php on line 98
%
Fair un Don
/------------------------------------------------------/
93 <?php
94 $db = new DB("donation");
95 $db->setColPrefix("donation_");
96 $db->select();
97 $db->nextRecord();
98 $donation = $db->actu*100/$db->max
99
100 ?>
/------------------------------------------------------/
Reply With Quote
  #7  
Old 17th September 2013, 19:59
Filmub's Avatar
Filmub Filmub is offline
Member
 
Join Date: May 2011
Sweden
Posts: 10
Exclamation
Anyone having this file?? It's deleted from the link above...
Reply With Quote
  #8  
Old 20th October 2013, 19:58
LeeHowarth's Avatar
LeeHowarth LeeHowarth is offline
TT
 
Join Date: Nov 2008
Posts: 100
Default
Code:
$donation = 0;
if ( $db -> actu > 0 )
{
     $donation = $db -> actu * 100 / $db -> max;
}
May work...
Reply With Quote
Reply

Tags
donation

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 07:04. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.