Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vbBux / vbPlaza
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[How To] Admin Donate from Postbit Details »»
[How To] Admin Donate from Postbit
Version: , by cOuNtErFiET cOuNtErFiET is offline
Developer Last Online: Feb 2008 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-15-2006 Last Update: Never Installs: 0
 
No support by the author.

ok i want to add Admin Donate to the Postbit so what i was thinking is wrap an <if> statement around this code for the donate, but im unsure of what to put in the if statement to call the usergroups that i want to be able to do this action...plz help ty

Code:
<a href="vbplaza.php?do=donate&amp;userid=$post[userid]">$vbphrase[vbplaza_donate]</a><br />
so im thinking it would be something like this (see below)?

Code:
<if condition="USERGROUP=6">
<a href="vbplaza.php?do=action&itemid=12&amp;userid=$post[userid]">Admin Donate</a><br />
</if>

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-16-2006, 01:54 AM
cOuNtErFiET cOuNtErFiET is offline
 
Join Date: Feb 2006
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nobody knows? c'mon this should be easy..lol
Reply With Quote
  #3  
Old 04-18-2006, 05:15 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use "is_member_of"

Something like:

Code:
<if condition="is_member_of($vbulletin->userinfo, 6)">
-CMX
Reply With Quote
  #4  
Old 05-06-2006, 03:53 AM
cOuNtErFiET cOuNtErFiET is offline
 
Join Date: Feb 2006
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and multiple groups would i add , then usergroup like below? or have to use a whole nother if statement?
Code:
<if condition="is_member_of($vbulletin->userinfo, 6,9)">
also when i click admin donate it doesn't pull the username and put it in the "donate to" box like the regular donate does, any idea on what i got messed up in the link? using the one that i have in first post

thanks
CF
Reply With Quote
  #5  
Old 05-07-2006, 04:01 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where are u using it at?

If u r using it from the postbit, it should enter the Userid properly.

Code:
<a href="vbplaza.php?do=action&itemid=12&amp;userid=$post[userid]">Admin Donate</a>
The link that u click, does it say userid=somenumber?

-CMX
Reply With Quote
  #6  
Old 05-28-2006, 11:12 PM
cOuNtErFiET cOuNtErFiET is offline
 
Join Date: Feb 2006
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that is what im using, what you have in the code box and not pulling the userid...hmmm
Reply With Quote
  #7  
Old 06-20-2006, 05:43 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

U r editing it for the postbit template right?

-CMX
Reply With Quote
  #8  
Old 09-30-2006, 12:46 PM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone ever figure this out? I cant get it to fill in the username for admin donate.
Reply With Quote
  #9  
Old 10-19-2006, 01:39 AM
cOuNtErFiET cOuNtErFiET is offline
 
Join Date: Feb 2006
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no i cant get it too either and i have played with it a lil bit

it must be the admin donate page not recognizing the $post[userid] part or something
Reply With Quote
  #10  
Old 04-08-2007, 10:38 PM
Lyricsmama Lyricsmama is offline
 
Join Date: Jan 2005
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

never mind.
Reply With Quote
Reply


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. The time now is 07:34 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.07119 seconds
  • Memory Usage 2,290KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete