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)

Darkwaltz4 08-18-2007 05:36 PM

for now until 1.4, you have to edit the plugin that says display credits in postbits.

youll have to edit it twice within that plugin, and it requires a little bit of php knowledge. now you know why i am switching that out of the plugins :-p if you cant figure it out i might post some of the 1.4 plugin and postbit code so you can modify the templates instead, and itll be much easier

solinarius 08-18-2007 10:41 PM

Hello.
Any idea how to change this mod for rpg integration hack?
I have some problems with that, error like that appears:
Quote:

Invalid SQL:

SELECT `userid`, `rpg`, `items`, `inventory`, `uttpoints` AS `points`
FROM `vb_user`
WHERE `userid` = '2342';

MySQL Error : Unknown column 'uttpoints' in 'field list'

Darkwaltz4 08-18-2007 11:00 PM

is that for lite or full version?

solinarius 08-18-2007 11:11 PM

Its different rpg system, You can find it here:
https://vborg.vbsupport.ru/showthread.php?t=108790
But im stupid, that's all. I just saw one person which asked about that before, so i thought this mod need special integration, but i had to change vbulletin options->rpg hack cash options
"uttpoints" for "credits" and that's it, You can add this rpg mod to list of hacks working with vBcredits.
Anyway, thanks for trying and sorry for disturbing .

Darkwaltz4 08-18-2007 11:53 PM

:-p that would be the 'lite' version, and if youd said that I would have told you about the points row :D

the full version is getting a converter

habasabi 08-19-2007 06:27 AM

WOOT finally got the chance to install this!!! It's great!

Ba$im 08-19-2007 01:20 PM

I would if u have time tell me what word
should I edite to make it show Number of xxx credite on postbit withe red color
cuz when I make check on what code add on postbit
<if condition="$show['credits_postadd']">
<span id="creditsmenu_$post[postid]"><a href="credits.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="credits_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/credits.gif" alt="<phrase 1="$post[username]" 2="$vbphrase[credits]">$vbphrase[credits_threadaward]</phrase>" border="0" /></a></span>
<if condition="$show['popups']"><script type="text/javascript"> vbcdt_register("$post[postid]")</script></if>&nbsp;
</if>

now this code I try play aroun it but I confused
cuz there are nothing like $post[cedit]
cuz if was that will be more esaire to make it with red color

Darkwaltz4 08-19-2007 02:44 PM

thats template code. i said plugin. 1.4 is different, but for now...

Display Credits in Postbit:
PHP Code:

$credits_this = array($this->post['postid'], $this->post['userid'], vb_number_format($this->post['credits'], $this->registry->options['credits_decimals']));
$template_hook['postbit_userinfo_right'] = str_replace('<div class="info"><a href="credits.php?' $this->registry->session->vars['sessionurl'] . 'u=' $GLOBALS['credits_last'][1] . '">' $vbphrase['credits'] . '</a>: <span id="cdt_' $GLOBALS['credits_last'][0] . '_' $GLOBALS['credits_last'][1] . '">' $GLOBALS['credits_last'][2] . '</span></div>'''$template_hook['postbit_userinfo_right']);
if (
$this->registry->options['credits_public'] == OR ($this->registry->options['credits_public'] == AND ($this->post['userid'] == $this->registry->userinfo['userid'] OR ($this->registry->bf_ugp['creditpermissions']['credit_special'] & $this->registry->userinfo['permissions']['creditpermissions']))))
{
 
$template_hook['postbit_userinfo_right'] .= '<div class="info"><a href="credits.php?' $this->registry->session->vars['sessionurl'] . 'u=' $credits_this[1] . '">' $vbphrase['credits'] . '</a>: <span id="cdt_' $credits_this[0] . '_' $credits_this[1] . '">' $credits_this[2] . '</span></div>';
}
$GLOBALS['credits_last'] = $credits_this

to colorize it you have to change it in two places:
'">' . $GLOBALS['credits_last'][2] . '</span></div>' to like
'"><font color="red">' . $GLOBALS['credits_last'][2] . '</font></span></div>'

and then
'">' . $credits_this[2] . '</span></div>' to like
'"><font color="red">' . $credits_this[2] . '</font></span></div>'

again, this is kinda messy, but its been redone in 1.4, and if you want that plugin before release you have to come talk to me.

Ba$im 08-19-2007 06:09 PM

work gr8 thanks
also credit on navbar
I don’t want be as a link
what should I do?

Darkwaltz4 08-19-2007 08:08 PM

edit the show credits in navbar PLUGIN

again, also changed to templates in 1.4


All times are GMT. The time now is 06:52 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.03937 seconds
  • Memory Usage 1,764KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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