vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Paypal Donations for vBulletin 3.0.7 (https://vborg.vbsupport.ru/showthread.php?t=82978)

DemonJester 06-24-2005 04:36 PM

Quote:

Originally Posted by aranthorn
When using a module designed for the vBa CMPS v1 in v2, the default type doesn't carry over. So All I did was:

Go to your admincp--vBa CMPS--Edit Modules--Donations

In the dropdown list for 'Change Module Type' select PHP

File to include:
Code:

donate.php
Module parent:
Code:

none
Templates Used:
Code:

adv_portal_donate, adv_portal_donate_goals, adv_portal_donate_goals_user
Clean File Output
Code:

No
Those are my settings, works no problem-o :D


Anyone get this to work for vBa CMPS V2?? I tried it twice and I dont get any sideblock displayed.

BTW Excellent Hack!!! Just need to get it working with cmps v2 ;)


EDIT: Nevermind I got it figured out.. It was an ID10T error on my part..

dsboyce8624 06-24-2005 08:43 PM

Quote:

Originally Posted by DemonJester
Anyone get this to work for vBa CMPS V2?? I tried it twice and I dont get any sideblock displayed.

BTW Excellent Hack!!! Just need to get it working with cmps v2 ;)


EDIT: Nevermind I got it figured out.. It was an ID10T error on my part..

It happens. I missed something in the instructions for a hack yesterday, and even told the author he should add it.

But it was right there.

Go figure.

DemonJester 06-25-2005 12:58 AM

Quick question. I performed all of the template edits including the optional ones, and now everyone of my members has a DONOR button under the icons in their post. After looking at the template edits this makes sense as one of the edits puts it there.

Can I make a request for a possible future addition. Is there any way to add some kind of check at the postbit/postbit legacy and MemberInfo section and see if the user in fact has donated, and if so display the DONOR image. If they didnt donate, display a DONATE button. I am sure this probably wouldnt be too difficult since the DONORS are already stored in a table that can be queried to see if it matches the users id, problem is I am not a coder so I have no idea how to do it.

Of course if you add the new usergroup function you stated in a previous post that could also be used as a check.

Just a suggestion.

Thanks again for the great hack.

caimakale 06-25-2005 05:18 AM

Quote:

Originally Posted by DemonJester
Quick question. I performed all of the template edits including the optional ones, and now everyone of my members has a DONOR button under the icons in their post. After looking at the template edits this makes sense as one of the edits puts it there.

Can I make a request for a possible future addition. Is there any way to add some kind of check at the postbit/postbit legacy and MemberInfo section and see if the user in fact has donated, and if so display the DONOR image. If they didnt donate, display a DONATE button. I am sure this probably wouldnt be too difficult since the DONORS are already stored in a table that can be queried to see if it matches the users id, problem is I am not a coder so I have no idea how to do it.

Of course if you add the new usergroup function you stated in a previous post that could also be used as a check.

Just a suggestion.

Thanks again for the great hack.

Actually, the donor button shouldn't show up in postbit unless the user has donated. It sounds like you missed part of the opening <if> statement.

Here is the code to show the "Donor" buttton for those that donated, and the "Donate" button for those who haven't donated.

In postbit or posbit legacy (edit the file you use for your forums, or both) find:
Code:

<if condition="$post['donor'] != '0'"><div><a href="$vboptions[bburl]/donate.php"><img src="$stylevar[imgdir_button]/donate_donor.gif" border="0"></a></div></if>
And replace it with:
Code:

<if condition="$post['donor'] != '0'"><div><a href="$vboptions[bburl]/donate.php"><img src="$stylevar[imgdir_button]/donate_donor.gif" border="0"></a></div><else /><div><a href="$vboptions[bburl]/donate.php"><img src="$stylevar[imgdir_button]/donate_button.gif" border="0"></a></div></if>
It's a very simple hack to cloudrunners existing code.

dsboyce8624 06-25-2005 05:39 AM

Is it me, or are they both the same?

caimakale 06-25-2005 05:51 AM

no...there is an <else /> statement in the second one.

dsboyce8624 06-25-2005 02:12 PM

Quote:

Originally Posted by caimakale
no...there is an <else /> statement in the second one.

LOL, musta been really tired.

Cloudrunner 06-25-2005 04:20 PM

The all users showing as a donor is a verified bug folks, I am fixing that as I write this.

Sorry for the length of time in replies, had to play daddy for a week to satiate my wife (I cut my son's long two year old hair for the first time, let's just say she was less than pleased with me...).

Anyway, expect an interrim update shortly...

vonedaddy 06-25-2005 04:24 PM

Someone please help:

I love this hack and need help with two small things.

1) I cant get the pp_image.php to work. All the images dont show up.

2) Is there a way to clear the total every month?

I appreciate anyones help on this.

Cloudrunner 06-25-2005 04:27 PM

Quote:

Originally Posted by vonedaddy
Someone please help:

I love this hack and need help with two small things.

1) I cant get the pp_image.php to work. All the images dont show up.

pp_image ONLY draws the graphics bars for the goal totals folks, that's all it does...if you are having problems with broken images check to make sure that you have uploaded the supplied images to the misc and buttons directories within the ./images directory, and have your style settings pointing to the correct directory for the buttons and the misc directory...
Quote:

Originally Posted by vonedaddy
2) Is there a way to clear the total every month?

I appreciate anyones help on this.

Yes, you can go into your adminCP and edit the goal itself and set the total donated to '0'


All times are GMT. The time now is 05:31 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.01617 seconds
  • Memory Usage 1,751KB
  • 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
  • (6)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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