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)
-   -   Major Additions - vBCredits - Ultimate Points System (https://vborg.vbsupport.ru/showthread.php?t=151924)

barny11 07-27-2007 05:09 PM

Quote:

Originally Posted by PlymWS (Post 1302080)
To edit a template :

Admin CP -> Styles & Templates -> Style Manager

In the right hand pane select the down arrow in between "All Style Options" and the "Go" button and select Edit Templates

In the resulting window scroll down using the vertical scroll bar until you see PostBit Templates. Double click Postbit templates to expand it and scroll down until you see postbit or postbit_legacy ( if you use the old style panel on the left hand side of every post )

Double click on postbit or postbit_legacy

An edit window will appear.

In the "Find" box at the bottom of the editing window paste this and click find:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]

This will highlight that line. Create a blank line above this by going to the left hand side of the line highlighted and press enter. Click in this new blank line and enter :

$template_hook[postbit_userinfo_right]

The template should now look like this :

id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
$template_hook[postbit_userinfo_right]
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>

Click the save button at the bottom of the edit window to save the template. This will perform the template edit you need to get the credits to display in your postbit fields.

Wow thanks for that m8 :)

Quote:

Originally Posted by Darkwaltz4 (Post 1302336)
I suggest you read this: https://vborg.vbsupport.ru/showthread.php?t=39142
I try to write my instructions for people who understand the things on this page, otherwise it would irritate the majority who do. Furthermore, did you try the template hook instructions at the bottom of the Instructions.txt file?

Thanks PlymWS for writing up the detailed instructions for me though :) And I'll include that in 1.4 :D

Thanks for that m8 and also for the pm :)

Just re read my post and it sounded a little blunt which it really wasnt meant to be :eek:.
The hack is just what we have been looking for since vbplaza had to be removed and now with vpager having to go as well things are getting a bit messy in the templates and just needed a pointer as to were the hook instructions were best placed as i had put them in but still got nothing showing in postbits etc :o

will give installing another go soon and if i get stuck will deffo be shouting your name out for help LOL

Terrasoft 07-27-2007 07:09 PM

Dude, Waltz...you rock so much man! Im so glad to see the arcade add-on! =D

Any progress reports on vbcommerce? Or somewhere I can see the progress?

I would vote MOTM, but I already did. ^_^ I believe this will along with vbcommerce will blow vbplaza 2.0 out of the water.

...I need to figure out some things for you to add on now. >_0

Phil4387 07-27-2007 07:18 PM

Thanks for the update, but I found another mistake. When you choose the "Perform all of the transactions..." option it includes any awards that were given out as if they were normal transactions.

Darkwaltz4 07-27-2007 07:24 PM

Thanks for the support everyone, as well as those who have donated !

Only a couple more days to see if I made it into MOTM - be sure to vote again on the poll if i did :D

Quote:

Originally Posted by Ba$im (Post 1303047)
u r best coder I see work hardly
thank u very much
plz keep this
also about vbcommerce
can be include something like this
http://www.christianforums.com/characters

thanks

Yes, vBCommerce will be an itemshop just like that and a lot more :-p

Quote:

Originally Posted by simunaqv (Post 1302908)
Hello, is somebody using vbCredits with RPG-Integration Hack?

I know you can specify the table and row for the points hack, use the settings at the top of the screen.

Quote:

Originally Posted by Phil4387 (Post 1303315)
Thanks for the update, but I found another mistake. When you choose the "Perform all of the transactions..." option it includes any awards that were given out as if they were a normal transaction.

Not a bug: i chose to include everything for addon support as well for addons which save to the transaction log. such as vBCredit$ notes how much was purchased -- and if THAT wasnt returned to your users they would probably get pissed :-p

Phil4387 07-27-2007 07:46 PM

Quote:

Originally Posted by Darkwaltz4 (Post 1303319)
Not a bug: i chose to include everything for addon support as well for addons which save to the transaction log. such as vBCredit$ notes how much was purchased -- and if THAT wasnt returned to your users they would probably get pissed :-p

Sorry, I wasn't clear enough. What I meant was that if I give someone a 500 credit award and then appropriate credits using the option to perform all transactions. It will give that person the 500 credits, which is fine, but it will also subtract 500 credits from the person who gave them the award as if it was a donation.

Darkwaltz4 07-27-2007 07:48 PM

OOH, thats right, i totally forgot about the new award type... the one through profiles and not attached to posts >.< well, its not major enough to warrant an update, but will be included. Thanks for pointing it out :)

if you want to fix it yourself, change in admincp/credits_admin.php
PHP Code:

     else if ($log['action'] != 'post'

replace with
PHP Code:

     else if (!in_array($log['action'], array('post''award'))) 


Dark_Konoko 07-27-2007 08:29 PM

Sorry if this has already been answered in this thread, I skimmed through and could see nothing, but I was wondering how one would go about changing the formula used to calculate total points given for specific actions. Most of the values seem fine except for the fact that users get an amazing amount of points just for rating a thread and I'd love to change this to balance the economy of my forums.

Thank you in advance folks :)

Darkwaltz4 07-27-2007 08:44 PM

You can set the amount for thread rating in the usergroup settings. Also, there is a global setting which allows you to vary the amount against the rating, and I think you have it set to yes and you want it to be no ;)

Dont forget ALL awards can be negative and fractional (even 'bad' actions can be positive, and vice versa)

G_Man 07-27-2007 09:18 PM

Quote:

Originally Posted by Darkwaltz4 (Post 1303340)
OOH, thats right, i totally forgot about the new award type... the one through profiles and not attached to posts >.< well, its not major enough to warrant an update, but will be included. Thanks for pointing it out :)

if you want to fix it yourself, change in admincp/credits_admin.php
PHP Code:

     else if ($log['action'] != 'post'

replace with
PHP Code:

     else if (!in_array($log['action'], array('post''award'))) 


This will be in 1.4, correct?

Also, I don't need the appropriations now so I can also wait for 1.4?

and of course... Cheers!!

Darkwaltz4 07-27-2007 09:30 PM

yeah, i just dont want to put out another update with such a trivial fix :-p

it only affects if you made awards through the profile, and you are rebuilding the credits.


All times are GMT. The time now is 06:37 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.01777 seconds
  • Memory Usage 1,767KB
  • 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_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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