Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   OpenTracker (http://www.bvlist.com/forumdisplay.php?f=125)
-   -   donation (http://www.bvlist.com/showthread.php?t=8231)

lafouine022 26th August 2012 20:17

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...

Wuild 26th August 2012 20:49

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.

Roddan 19th September 2012 15:24

This is not working i just get.

PHP Code:

could not load library /var/www/CMS/applications/notifications/library/main.php 


l3on 19th September 2012 16:13

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

GuldlocK 26th September 2012 00:03

any screens ? thx god work

eedu 16th October 2012 03:11

Error
 
Warning: Division by zero in /home/gupix/www/templates/default/template.php on line 98
%
Fair un Don
/------------------------------------------------------/
93 94 $db = new DB("donation");
95 $db->setColPrefix("donation_");
96 $db->select();
97 $db->nextRecord();
98 $donation = $db->actu*100/$db->max
99
100 ?>
/------------------------------------------------------/

Filmub 17th September 2013 19:59

Anyone having this file?? It's deleted from the link above...

LeeHowarth 20th October 2013 19:58

Code:

$donation = 0;
if ( $db -> actu > 0 )
{
    $donation = $db -> actu * 100 / $db -> max;
}

May work...


All times are GMT +2. The time now is 19:40.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.