vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - Donations Progress Image (Wiki lookalike) (https://vborg.vbsupport.ru/showthread.php?t=137348)

scan-pa 01-30-2007 02:20 PM

Can anyone help do a vbA module for these 2 hacks? Or point me to the instructions.

TIA

scan-pa 01-30-2007 04:37 PM

Quote:

Originally Posted by scan-pa (Post 1170558)
Can anyone help do a vbA module for these 2 hacks? Or point me to the instructions.

TIA

Never mind. I found it with a little more looking.

for anyone who wants to add the donation module to there vBadv portal, here is the link.

http://www.vbadvanced.com/forum/show...onation+module


Works fine on vB 3.6.4

masons 01-30-2007 05:38 PM

Hello everyone, it WORKS! great
http://www.novusordosaeculorum.com/index.php

But a question,

On the left site, under statistics, I like to add a small list with the latest donations, and I have no idea how to hack that! Can someone tell me or post the cut and paste and locations?

Thanks you?

masons 01-30-2007 05:42 PM

Also, it says 53 dollars in donations, and I really dont have any! how can i fix this?

scan-pa 01-30-2007 10:20 PM

Quote:

Originally Posted by masons (Post 1170713)
Also, it says 53 dollars in donations, and I really dont have any! how can i fix this?

I noticd that my donation page says:

We have collected a total of $85.59 since Jan. 15, 2007

However the amount should say $110.00

everything else is working. I looked in the db to find the $85.59 but could not find it stored anywhere.

anyone know where this info is contained in the db?

Ahsin1 01-30-2007 10:46 PM

Quote:

Originally Posted by Mr Chad (Post 1170276)
can you export your donation_goals table and post it here

I dont knw how export them lol


Is tht wht u talking abut

PHP Code:

<td colspan="2" class="alt1">$title - <if condition="$vboptions['base_currency'] == 'USD' OR $vboptions['base_currency'] == 'AUD' OR $vboptions['base_currency'] == 'CAD'">$<else /><if condition="$vboptions['base_currency'] == 'EUR'">?<else /><if condition="$vboptions['base_currency'] == 'GBP'">?<else /><if condition="$vboptions['base_currency'] == 'JPY'">?</if></if></if></if>$amount</td>
                        </
tr>
                        <
tr>
                            <
td class="alt2" width="50%">$description</td>
                            <
td class="alt2">
                                
$vbphrase[we_have_collected] <if condition="$vboptions['base_currency'] == 'USD' OR $vboptions['base_currency'] == 'AUD' OR $vboptions['base_currency'] == 'CAD'">$<else /><if condition="$vboptions['base_currency'] == 'EUR'">?<else /><if condition="$vboptions['base_currency'] == 'GBP'">?<else /><if condition="$vboptions['base_currency'] == 'JPY'">?</if></if></if></if>$total_donated $vbphrase[in_donations_towards_our_goal_of] <if condition="$vboptions['base_currency'] == 'USD' OR $vboptions['base_currency'] == 'AUD' OR $vboptions['base_currency'] == 'CAD'">$<else /><if condition="$vboptions['base_currency'] == 'EUR'">?<else /><if condition="$vboptions['base_currency'] == 'GBP'">?<else /><if condition="$vboptions['base_currency'] == 'JPY'">?</if></if></if></if>$amount
                                
<br />
                                <
br />
                                <
img src="$vboptions[bburl]/includes/pp_image.php?fill=$vboptions[bar_fill_color]&border=$vboptions[bar_border_color]&background=$vboptions[bar_background_color]&percentage=$percentage&width=200&height=9">
                                <
br />
                                
$vbphrase[we_have_collected$percentage%
                                <
br />
                                
$vbphrase[thank_you]!
                            </
td>
                        </
tr>
$end 


Mr Chad 01-30-2007 11:01 PM

Quote:

Originally Posted by Ahsin1 (Post 1170909)
I dont knw how export them lol


Is tht wht u talking abut

PHP Code:

<td colspan="2" class="alt1">$title - <if condition="$vboptions['base_currency'] == 'USD' OR $vboptions['base_currency'] == 'AUD' OR $vboptions['base_currency'] == 'CAD'">$<else /><if condition="$vboptions['base_currency'] == 'EUR'">?<else /><if condition="$vboptions['base_currency'] == 'GBP'">?<else /><if condition="$vboptions['base_currency'] == 'JPY'">?</if></if></if></if>$amount</td>
                        </
tr>
                        <
tr>
                            <
td class="alt2" width="50%">$description</td>
                            <
td class="alt2">
                                
$vbphrase[we_have_collected] <if condition="$vboptions['base_currency'] == 'USD' OR $vboptions['base_currency'] == 'AUD' OR $vboptions['base_currency'] == 'CAD'">$<else /><if condition="$vboptions['base_currency'] == 'EUR'">?<else /><if condition="$vboptions['base_currency'] == 'GBP'">?<else /><if condition="$vboptions['base_currency'] == 'JPY'">?</if></if></if></if>$total_donated $vbphrase[in_donations_towards_our_goal_of] <if condition="$vboptions['base_currency'] == 'USD' OR $vboptions['base_currency'] == 'AUD' OR $vboptions['base_currency'] == 'CAD'">$<else /><if condition="$vboptions['base_currency'] == 'EUR'">?<else /><if condition="$vboptions['base_currency'] == 'GBP'">?<else /><if condition="$vboptions['base_currency'] == 'JPY'">?</if></if></if></if>$amount
                                
<br />
                                <
br />
                                <
img src="$vboptions[bburl]/includes/pp_image.php?fill=$vboptions[bar_fill_color]&border=$vboptions[bar_border_color]&background=$vboptions[bar_background_color]&percentage=$percentage&width=200&height=9">
                                <
br />
                                
$vbphrase[we_have_collected$percentage%
                                <
br />
                                
$vbphrase[thank_you]!
                            </
td>
                        </
tr>
$end 


no lol. im talking about the values in your mysql database.

Ahsin1 01-31-2007 01:19 AM

got it check attachment

Mr Chad 01-31-2007 02:22 AM

ok in the php file find:
PHP Code:

$query_goals $vbulletin->db->query("SELECT * FROM ".TABLE_PREFIX."donation_goals WHERE active = '1' ORDER BY title ASC LIMIT 0,2"); 

and try changing the end ASC LIMIT 0,2");

try these 5 combos
  • 0,0
  • 0,1
  • 1,1
  • 1,2
  • 2,2

Ahsin1 01-31-2007 03:33 AM

I tried all of them dosent work

0,1 seems to work buh its only showing 1 goals ammount

Mr Chad 01-31-2007 03:56 AM

you want both?

Ahsin1 01-31-2007 03:59 AM

yeh i want both

Mr Chad 01-31-2007 04:29 AM

find:
PHP Code:

$query_goals $vbulletin->db->query("SELECT * FROM ".TABLE_PREFIX."donation_goals WHERE active = '1' ORDER BY title ASC LIMIT 0,2");
while (
$row $vbulletin->db->fetch_array($query_goals)){
$amount $row['amount'];
$amount_formatted number_format($row['amount'], 2'.'',');
$goal_total $row['total_donated'];
$goal_total_formatted number_format($row['total_donated'], 2'.'',');
if (
$row['amount'] > 0){
  
$percentage round(($goal_total/$amount)*1002);
} else {
  
$percentage '0';
}


replace with:
PHP Code:

$amount 0;
$goal_total 0;
$query_goals $vbulletin->db->query("SELECT * FROM ".TABLE_PREFIX."donation_goals WHERE active = '1' ORDER BY title ASC LIMIT 0,2");
while (
$row $vbulletin->db->fetch_array($query_goals)){
$amount $amount $row['amount'];
$amount_formatted number_format($row['amount'], 2'.'',');
$goal_total $goal_total $row['total_donated'];
$goal_total_formatted number_format($row['total_donated'], 2'.'',');
if (
$row['amount'] > 0){
  
$percentage round(($goal_total/$amount)*1002);
} else {
  
$percentage '0';
}


i have not tested this so please respond with results.

Ahsin1 01-31-2007 04:43 AM

Working Perfect Thanks a lot for ur help :)

Mr Chad 01-31-2007 04:55 AM

Quote:

Originally Posted by Ahsin1 (Post 1171098)
Working Perfect Thanks a lot for ur help :)

glad to hear :D

masons 01-31-2007 05:22 AM

can I pay someone to fix mine up a little bit? I dont know how to make it appear on the left site column instead of at the top without it messing up the column width.

Also why is it showing $53 when it should be $20?

Mr Chad 01-31-2007 05:59 AM

Quote:

Originally Posted by masons (Post 1171112)
can I pay someone to fix mine up a little bit? I dont know how to make it appear on the left site column instead of at the top without it messing up the column width.

Also why is it showing $53 when it should be $20?

can you export your donation_goals table and post it here (from your database).

masons 01-31-2007 06:33 AM

Hi, Here it is!

Quote:

-- phpMyAdmin SQL Dump
-- version 2.9.0.3
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 31, 2007 at 01:32 AM
-- Server version: 5.0.24
-- PHP Version: 4.4.4
--
-- Database: `peter_mason`
--

-- --------------------------------------------------------

--
-- Table structure for table `donation_goals`
--

CREATE TABLE `donation_goals` (
`id` int(255) NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`description` text NOT NULL,
`amount` decimal(10,2) NOT NULL default '0.00',
`total_donated` decimal(10,2) NOT NULL default '0.00',
`active` tinyint(1) NOT NULL default '1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--
-- Dumping data for table `donation_goals`
--

INSERT INTO `donation_goals` (`id`, `title`, `description`, `amount`, `total_donated`, `active`) VALUES
(2, 'Running of servers', 'We like to think of this site as a community, as such we hope we can all share in the cost of running this.', '200.00', '0.00', 1);
Also, I really dont know how to make the information look better and placed in the left column, any advise is welcome!

Mr Chad 01-31-2007 02:10 PM

hmm did you CHMOD the image 777 ? because there seems to be no donations so there is no reason for it to say any amount of money. also connect the donation buttons to your goal or it will not be recorded. I'm not sure what you mean abt your left column.

frandy 02-01-2007 09:38 PM

Is it possible to change the color/style of the image? Like have a gradient in the background? change the positioning of the text etc?

Mr Chad 02-01-2007 11:19 PM

Quote:

Originally Posted by frandy (Post 1172513)
Is it possible to change the color/style of the image? Like have a gradient in the background? change the positioning of the text etc?

yes, read the php source...

frandy 02-02-2007 08:31 PM

heh, you dont happen to have a list of the colors do you? cuz I dont understand all that 0x33 stuff

Mr Chad 02-02-2007 08:47 PM

well 0x33 is in HEX like 0x33,0x33,0x33 is the same as HEX #333333 or you can just use RGB and put the number values like 255,255,255

frandy 02-02-2007 08:51 PM

Nice, nice thanks and also speedy response!

Mr Chad 02-02-2007 10:11 PM

no problem.

GNDI 02-15-2007 04:37 PM

When I run the shedule I'll get this error

Quote:

Donations Image

Warning: Cannot modify header information - headers already sent by (output started at /includes/adminfunctions.php:283) in /includes/cron/donationsimage.php on line 28

Done
But I don't see the connections here

Quote:

// print out the page header
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . "\r\n";
echo "<html dir=\"$stylevar[textdirection]\" lang=\"$stylevar[languagecode]\"$htmlattributes>\r\n";
echo "<head>
<title>$titlestring</title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$stylevar[charset]\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"../cpstyles/" . $vbulletin->options['cpstylefolder'] . "/controlpanel.css\" />" . iif($headinsert != '', "
$headinsert") . "
<script type=\"text/javascript\">
<!--
var SESSIONHASH = \"" . $vbulletin->session->vars['sessionhash'] . "\";
function set_cp_title()

Mr Chad 02-16-2007 01:36 AM

what the hells all that?

did it make an image?

T_Richardson 02-17-2007 09:47 PM

I would like to have this bar for my website.

I see that you need the donation mod before installing this one. So, I downloaded the "donations.zip" you specified in this thread, and it seems to be missing the install files.

Attached is what I have. And I'm installing it on vB 3.6.4

Quantnet 03-09-2007 08:04 AM

very nice.

So bad I have a different paypal donation mod which this image does not work with.

Would you be able to make this image read from some manually input amount and goal ?
Say I enter the amount and goal somewhere and have the code read from it and write to the image ?

thanks

blastup 04-06-2007 09:24 PM

hey can you help me.. idk why.. my donations don't work.. http://indexspot.com/donate.php

blastup 04-06-2007 09:25 PM

i added the donations. but.. it does not show..

blastup 04-06-2007 09:26 PM

and when i tried to run the schedule task wiki image.. it does not work..
Quote:

The image “http://www.indexspot.com/admincp/cro...onid=43” cannot be displayed, because it contains errors.


All times are GMT. The time now is 06:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01355 seconds
  • Memory Usage 1,875KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete