vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Cyb - PayPal Donate (https://vborg.vbsupport.ru/showthread.php?t=122997)

mfyvie 07-05-2007 08:08 PM

Quote:

Originally Posted by Dannyloski (Post 1283779)
Can anyone help me figure out what I need to do to make this work? I dont know much of this stuff, so I thought it would work with something like what I did here, but no. Cybernetec or anyone who knows, can you help me? I want to add the image for those who have donated.

That condition in the template should be a variable like $isdonator. If you set $isdonator = true, then your condition will fire.

But you'll need a plugin in order to set that variable up before the template is called (postbit). If you set the variable in your plugin, then when the template runs the conditional will trigger.

However, before you set the variable you'll need to decide whether to set the variable. You'll have to build a database query to check the database to see if a donation has been made by this user. If it has, set it to true, if not, set to false.

Note that this is a very quick and dirty method, and won't be very efficient. It will add a query for every post on the page. BUt if you don't have a really busy forum, it probably won't matter.

If this is your first plugin go to the tutorials section for the basics of creating a product and a plugin. There are also tutorials on building a database query.

Dannyloski 07-05-2007 08:46 PM

^ Thanks for the reply I appreciate it and I appreciated the help you provided me with before ... Ummm, is there any other way to do it that's not using another query?

mfyvie 07-05-2007 10:02 PM

Quote:

Originally Posted by Dannyloski (Post 1283839)
^ Thanks for the reply I appreciate it and I appreciated the help you provided me with before ... Ummm, is there any other way to do it that's not using another query?

Well there's always other ways, but I would say if this is your first attempt, don't get fancy, keep it simple. It might not be totally elegant, but it will work on your board and others. Once you understand more, you can work on improving it.

Dannyloski 07-06-2007 02:10 AM

ahhhhhh, I give up I read the tutorials and tried doing some stuff, but no luck (I've been sitting in this computer for hours, I haven't eaten anything yet, lol) - This php coding crap is just not for me, much props to all coders, I must say ... I'll just have to live without having an image displayed next to the member's username if they have donated. I'll stick to what I know (HTML, CSS, etc) ... PHP is not my thing hahah ...

I wonder if Cybernetec would consider this add-on as a feature in a new release of this Hack ... I'll cross my fingers.

wireless0ne 07-06-2007 03:43 AM

I know this has been asked numerous times, but i havent found an answer yet, i have installed this and upgraded to latest version, but i cannot get the donate link to appear in my navbar on my advanced cmps page and that is where i need it the most, how do i do this?

Dannyloski 07-06-2007 03:14 PM

wireless0ne, did you follow the instructions for the customized styles?

In the navbar Template (You have to do this for each of your Custom Styles that you want to show the "Donate" link) - This is what I did and it shows on my vBadvance CMPS page

FIND:
Code:

vbphrase[user_cp]</a></td>
AFTER IT ADD:
Code:

$cyb_paypal_donate_link

navjotjsingh 07-06-2007 06:02 PM

Quote:

Originally Posted by Dannyloski (Post 1284432)
wireless0ne, did you follow the instructions for the customized styles?

In the navbar Template (You have to do this for each of your Custom Styles that you want to show the "Donate" link) - This is what I did and it shows on my vBadvance CMPS page

FIND:
Code:

vbphrase[user_cp]</a></td>
AFTER IT ADD:
Code:

$cyb_paypal_donate_link

I have the same problem as wireless0ne, and I tried your method, but instead of adding it to the vbaCMPS page, it adds twice to the Forum main page.

Even i need solution to this problem.

Dannyloski 07-06-2007 08:19 PM

Alright guys try this instead ... If this doesn't work, then I dunno ...

In the navbar Template

FIND:
Code:

vbphrase[user_cp]</a></td>
AFTER IT ADD:
Code:

<td class="vbmenu_control"><a href="misc.php?do=donate">$vbphrase[cybpaypal_donate]</a></td>
Make sure that you have the Automatically add link to Donate page to NavBar option in the AdminCP set to No if you do the above, so that it doesn't show twice ...

wireless0ne 07-07-2007 11:50 AM

thank you, that worked.

mfyvie 07-07-2007 11:54 AM

Quote:

Originally Posted by Dannyloski (Post 1284024)
ahhhhhh, I give up I read the tutorials and tried doing some stuff, but no luck (I've been sitting in this computer for hours, I haven't eaten anything yet, lol) - This php coding crap is just not for me, much props to all coders, I must say ... I'll just have to live without having an image displayed next to the member's username if they have donated. I'll stick to what I know (HTML, CSS, etc) ... PHP is not my thing hahah ...

Danny - you probably know more than you think you do. The first time I read through all those tutorials it went over my head as well and I felt like it was too much. If you feel weak on php, then start out with some basic php tutorials and build some really simple little programs on your own PC. You'll see that it really is quite easy, and before long more and more of those tutorials will make sense. I've re-read many of them at different times, and at each stage of my own personal development I found I understood something new each time. I feel a lot more confident now than I did a month ago - that's for sure.

Don't give up!

wireless0ne 07-10-2007 10:56 PM

ok, new problem, my donators page is showing a donation from a member, but no donation is showing in my paypal account?

and is there a add-on bar to donation progress?

Dannyloski 07-10-2007 11:17 PM

Quote:

Originally Posted by wireless0ne
ok, new problem, my donators page is showing a donation from a member, but no donation is showing in my paypal account?

Just delete it then ... If someone inputs an amount and hits the Donation button it will be added to the list automatically, but as unconfirmed until you confirm it yourself. If you checked PayPal and it's not there, then just delete the Donation from the list - If later on you find out that the member did donate, then manually add it back to the Donation's List - that's the beauty of this hack :up: ...

Quote:

Originally Posted by wireless0ne
and is there a add-on bar to donation progress?

What?!? I dont understand what you're asking ... Explain please ...

SuthernKumfort 07-11-2007 02:58 AM

I have two problems I need help with.

1st. When I tell it to add a link in my user cp, it doesnt do it. Any idea why?

2nd. What is the address to view the donators that have donated. I know the address for donating, but what about viewing the donors?

Thanks,
Soko

Valter 07-11-2007 09:58 PM

Donate:
FORUM/misc.php?do=donate

Donations:
FORUM/misc.php?do=donlist

Millenium IT 07-21-2007 05:37 PM

Navbar => Quick Links => Misc =>

404 Not Found
The requested URL /test_forum/index.p/misc.php?do=donlist does not exist.

Is this because I do not have a Business or Premier account ?

Dannyloski 07-21-2007 05:45 PM

^ No that's because you are requesting the incorrect page ...

Quote:

/test_forum/index.p/misc.php?do=donlist

Its suppose to be /test_forum/index.php/misc.php?do=donlist

Millenium IT 07-21-2007 05:52 PM

Quote:

Originally Posted by Dannyloski (Post 1297548)
^ No that's because you are requesting the incorrect page ...




Its suppose to be /test_forum/index.php/misc.php?do=donlist


omfg what a nooby mistake of me to overlook something that obvious :p thanks man :)

Valter 07-24-2007 10:11 AM

v3.9.1 - Jul 23. 2007.
-Fixed security Exploits

To upgrade:
-Import product XML, allow overwrite.
-Revert hack templates if any modified.

Mecho 07-24-2007 11:17 AM

Thanks cyb for fix the problem ... :) Updated

Mrdby 07-24-2007 01:11 PM

I noticed when checking to see if the paypal screen comes up and not submit payment..it still shows you as donating when you look it up under quick links..why is that?

SVTCobraLTD 07-24-2007 01:25 PM

This does do US dollars correct? Also does this put anything in the users profile/posts to indicated that he/she is a supporting member or donator?

SVT

epoc fitness 07-24-2007 01:30 PM

Quote:

Originally Posted by SVTCobraLTD (Post 1300162)
This does do US dollars correct? Also does this put anything in the users profile/posts to indicated that he/she is a supporting member or donator?

SVT

You can use user rank and then use the donate list under quick links change their status and then hit confirm.

Mrdby 07-24-2007 01:30 PM

us dollars and doesn't show on profile or in post.

SVTCobraLTD 07-24-2007 02:15 PM

When I go to http://www.mysite.com/forums/index.php?do=donate it just redirects me to the home page. Also I cannot find this..
Quote:

Open template "navbar" and add "$cyb_paypal_donate_link" after "vbphrase[user_cp]</a></td>"
SVT

Valter 07-24-2007 03:00 PM

As I said it many times:

Donate page is here:
FORUM/misc.php?do=donate
NOT:
FORUM/index.php?do=donate

Donations listing is here:
FORUM/misc.php?do=donlist
NOT:
FORUM/index.php?do=donlist

princeedward 07-24-2007 04:42 PM

great indeed...thanks for the update bro cyb... ;)

r5e 07-24-2007 09:10 PM

Cybernetic, thanks very much for the update, your code is much appreciated.

Just one question - What was the exploit and what was the fix?
The reason I ask is that there were a few mods that were transferred to the "graveyard" when this exploit was announced. I can understand that the public was not told what the exploit was, only the authors. However, for the unsupported mods, this makes it difficult for the community to fix it themselves and those mods will just stay in the graveyard.

I'd like to have a go at fixing one of the unsupported mods that I use and posting it up for everyone else. If you could please let me know what code was changed, I can see if I can apply it elsewhere. (To save me comparing the files for changes myself). If you don't want to post this here, then please PM me.

Nathan2006 07-24-2007 09:55 PM

Thank you for the update :)

TR?PST?R 07-26-2007 08:48 PM

For some reason people donate but I cannot see them on the donlist page to confirm them but it says their is 6 uncofirmed but I cant see nething.

manofphat 07-29-2007 10:10 PM

I just installed this. It looks very nice! Is there a way to have the output of misc.php?do=donate appear in an AJAX pop-up from the navbar like the Quick Links?

raagaswaram 07-31-2007 02:24 AM

i can't able to see the donator list do u know whts the url so i can see if is working directly

http://www.tamilthunder.com/forum/misc.php?donlist

Valter 07-31-2007 08:42 AM

Check previous page.

cosy 07-31-2007 02:57 PM

dunno why but i click donate and just reload the page

raagaswaram 07-31-2007 04:31 PM

Quote:

Originally Posted by Cybernetec (Post 1306015)
Check previous page.

i did but when i do this http://www.tamilthunder.com/forum/in...php?do=donlist
it still doesn't work

Valter 08-01-2007 12:38 AM

Quote:

Originally Posted by raagaswaram (Post 1306285)
i did but when i do this http://www.tamilthunder.com/forum/in...php?do=donlist
it still doesn't work

If you look at your link carefully I'm sure you'll see where the problem is.
Code:

http://www.tamilthunder.com/forum/index.php/misc.php?do=donlist

Dannyloski 08-01-2007 12:44 AM

Cybernetec, why dont you just tell him what the problem is?

raagaswaram, since he wont tell you, I'll tell you ... It suppost to be this:

Code:

http://www.tamilthunder.com/forum/misc.php?do=donlist
you added "index.php/" and it does not need to be there ...


cosy, make sure your using misc.php instead of index.php in your links (that's most likely the issue).

Code:

http://www.yoursite.com/forum/misc.php?do=donlist
Code:

http://www.yoursite.com/forum/misc.php?do=donate
I no longer have this Hack installed, but I know a lot of people were having the same problem when I was using it and it was cause they had index.php instead of misc.php ... It tells you in the First Post that it changed and you needed to update your links ...

cosy 08-01-2007 02:36 AM

yes i use the link misc.php?do=donate
and on i get the smiles misc.php?do=donlist

raagaswaram 08-02-2007 02:17 PM

Hello,
thanks but that doesn't work too
http://www.tamilthunder.com/forum/misc.php?do=donlist
it goes the smilies page for some reason
thanky ou
Quote:

Originally Posted by Dannyloski (Post 1306649)
Cybernetec, why dont you just tell him what the problem is?

raagaswaram, since he wont tell you, I'll tell you ... It suppost to be this:

Code:

http://www.tamilthunder.com/forum/misc.php?do=donlist
you added "index.php/" and it does not need to be there ...


cosy, make sure your using misc.php instead of index.php in your links (that's most likely the issue).

Code:

http://www.yoursite.com/forum/misc.php?do=donlist
Code:

http://www.yoursite.com/forum/misc.php?do=donate
I no longer have this Hack installed, but I know a lot of people were having the same problem when I was using it and it was cause they had index.php instead of misc.php ... It tells you in the First Post that it changed and you needed to update your links ...


Valter 08-02-2007 09:38 PM

Quote:

Originally Posted by raagaswaram (Post 1308105)
Hello,
thanks but that doesn't work too
http://www.tamilthunder.com/forum/misc.php?do=donlist
it goes the smilies page for some reason
thanky ou

It works for me. There are 8 unconfirmed donations currently.

Dannyloski 08-03-2007 02:40 AM

Works for me too ... You have to Clear your Browser's Cache, that's most likely the issue ...


All times are GMT. The time now is 04:07 AM.

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.03051 seconds
  • Memory Usage 1,840KB
  • 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
  • (13)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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