vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vbBux / vbPlaza (https://vborg.vbsupport.ru/forumdisplay.php?f=171)
-   -   [How To] Admin Donate from Postbit (https://vborg.vbsupport.ru/showthread.php?t=113063)

cOuNtErFiET 04-15-2006 12:53 AM

[How To] Admin Donate from Postbit
 
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>


cOuNtErFiET 04-16-2006 01:54 AM

nobody knows? c'mon this should be easy..lol

CMX_CMGSCCC 04-18-2006 05:15 PM

Use "is_member_of"

Something like:

Code:

<if condition="is_member_of($vbulletin->userinfo, 6)">
-CMX

cOuNtErFiET 05-06-2006 03:53 AM

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

CMX_CMGSCCC 05-07-2006 04:01 PM

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

cOuNtErFiET 05-28-2006 11:12 PM

that is what im using, what you have in the code box and not pulling the userid...hmmm

CMX_CMGSCCC 06-20-2006 05:43 PM

U r editing it for the postbit template right?

-CMX

fly 09-30-2006 12:46 PM

Anyone ever figure this out? I cant get it to fill in the username for admin donate.

cOuNtErFiET 10-19-2006 01:39 AM

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

Lyricsmama 04-08-2007 10:38 PM

never mind.


All times are GMT. The time now is 08:27 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.02099 seconds
  • Memory Usage 1,725KB
  • 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_code_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
  • (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