vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - vBExperience (https://vborg.vbsupport.ru/showthread.php?t=171014)

KURTZ 06-13-2008 01:37 PM

Quote:

Originally Posted by Phalynx (Post 1548408)
Updated XML - please import the new one.

OK now it works ... :)

Phalynx 06-13-2008 01:40 PM

Puuuh, I hate ; after a line's end in php...

Ideal Web Tech 06-13-2008 01:41 PM

Are you sure you included the template hook in the xml? I searched thro the xml file looking for it to figure out just how you add it set up and I couldn't find a single reference to it.

macc 06-13-2008 01:43 PM

works fine now!

thanks

macc

Phalynx 06-13-2008 01:46 PM

Quote:

Originally Posted by Ideal Web Tech (Post 1548412)
Are you sure you included the template hook in the xml? I searched thro the xml file looking for it to figure out just how you add it set up and I couldn't find a single reference to it.

There was an outdated XML in the package. After the last update it contains the newest also with that hook.

Ideal Web Tech 06-13-2008 01:49 PM

Now to figure out how I want to setup these modules. ;)

Phalynx 06-13-2008 01:51 PM

Maybe I will do an addon product next week to demonstrate the hooks.

Darkstarproject 06-13-2008 02:15 PM

Love this hack, however I have some problems / questions.

1 - creating custom awards - I *think* i made one, but it doesnt show up even after a recount and cron job run

2 - how do you modify which awards show in order.

Ideal Web Tech 06-13-2008 02:31 PM

Quote:

Originally Posted by Phalynx (Post 1548423)
Maybe I will do an addon product next week to demonstrate the hooks.

I have already figured out how to utilize it and am more then halfway done with an ibProArcade Champs addon. ;)

Found a problem with your current hook setup.

Quote:

This hook can be used to calculate own data and add it to existing main provider count_misc

To add points to misc:
Code:

                $xperience['count_misc'] += $xperience['count_misc_YOURPROVIDER'];

Well the problem with that is when xperience_calcdata is called in its before the $xperience['count_misc'] gets set to 0. xperience_sqlupdate hook is also to late to update it.

Suggestion: Initialize the counting array element before the hook is called.

Example:
PHP Code:

//This is just an example.  You could initialize them all up here and then build their counts below.  This would allow us to fully alter the different areas if we come up with a place to add new stats to one of them.
    
$xperience['count_misc'] = 0;

    (
$hook vBulletinHook::fetch_hook('xperience_calcdata')) ? eval($hook) : false;

    
$xperience['count_misc'] += $xperience['count_misc_ldm'];
    
$xperience['count_misc'] += $xperience['count_misc_dl2'];
    
$xperience['count_misc'] += $xperience['count_misc_ppg'];
    
$xperience['count_misc'] += $xperience['count_misc_ppd'];
    
$xperience['count_misc'] += $xperience['count_misc_vbblog'];
    
$xperience['count_misc'] += $xperience['count_misc_custom']; 


Namaless 06-13-2008 02:38 PM

Fixed Italian Language.

Few days and finish to all phrases..

Regards.


All times are GMT. The time now is 09:13 PM.

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.02288 seconds
  • Memory Usage 1,746KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (4)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