![]() |
Quote:
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. |
^ 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?
|
Quote:
|
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. |
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?
|
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> Code:
$cyb_paypal_donate_link |
Quote:
Even i need solution to this problem. |
Alright guys try this instead ... If this doesn't work, then I dunno ...
In the navbar Template FIND: Code:
vbphrase[user_cp]</a></td> Code:
<td class="vbmenu_control"><a href="misc.php?do=donate">$vbphrase[cybpaypal_donate]</a></td> |
thank you, that worked.
|
Quote:
Don't give up! |
All times are GMT. The time now is 12:39 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|