vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - Donation Feature with vBExperience (https://vborg.vbsupport.ru/showthread.php?t=199703)

DanTHEGREAT 12-23-2008 10:00 PM

Donation Feature with vBExperience
 
1 Attachment(s)
Donation Feature With vBExperience

what is this? This is a simple template modification so that all your users may donate to one another with a simple click of a button. Here, I will be showing you how to add a donation button on the postbit for the better. :)

Installation

1. go to your admin cp>styles and templates>search in templates
2. search for the "postbit_legacy" template and click it for one of your skins
3.

Find:
Code:

                                <div>
                                        $vbphrase[posts]: $post[posts]
                                </div>

Add BELOW:
Code:

<br></br>
<a href="xperience.php?go=shop&do=own"><b><u>Donate To A Friend</b></u></a><br></br>

4. You're done!

If you have any questions, you can either private message me or you can post below.
If there are any errors, please post below and I will gladly help you.

iBardia 02-13-2009 09:29 AM

I'm not using postbit legacy

KrU$ty 02-13-2009 09:35 AM

Quote:

I'm not using postbit legacy
Alot of the time, if you want something to show in the postbit, you need to add it to the postbit_legacy template.

yotsume 07-24-2009 10:32 AM

1 Attachment(s)
Move Donate Link Above Avatar:

I wanted to move the donate link to be above the avatar. I have the experience bars showing above the avatars. The donate link would go better below the bars but above the avatar. So this is what I did:

FIND:
Code:

$vbphrase[posts]: $post[posts]
                </div>

ADD BELOW:
Code:

<br></br>
<div class="smallfont"><a href="xperience.php?go=shop&do=own"><b>Donate Points to Friends</b></a><br></br>

MY EDITS:
  1. Removed Underline: In my version of the link code I removed the underline from the link by removing the <u></u> from the original link code.
  2. Control Font Size: Added Font Size Code: Because the link code is now located above the avatar you need to tell the link to use a small font or else it might display too large and break to a second line. (This happens in the default theme). To solve this issue I added: <div class="smallfont"> to the start of the link.
  3. Relabeled: I relabeled the link to: "Donate Points to Friends" because I think it is clearer being labeled that way right under the experience bars which use the term "points".
Check out my screenshot...

Thanks for this edit! Now I have to learn how to make the experience bars show up in vbBlogs postbit as well as your cool donate link!

s-p0k 07-25-2009 02:26 AM

Install but not to get off topic where do u guys get them user bars from..in them pic?

Prettyeyes4you 07-27-2009 07:15 AM

Thanks for this, my owner has been asking for a donate function since I put experience in.

Maybe a foolish question, is this to donate points only, or can you also use it to send gifts.

We find it a bit complicated to have to buy something then have to go to your inventory then gift it. I had hoped that the new version of experience would allow a straight gift to someone, can your mod do this?

Also would it be possible to include a note with the donation, .I've been trying to get that into our experience, haven't quite got it right yet

Appreciate your work, just being to donate points is a BIG deal for us

Thanks


All times are GMT. The time now is 11: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.02323 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete