vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - vBExperience 4 (https://vborg.vbsupport.ru/showthread.php?t=245023)

Phalynx 08-29-2010 05:49 PM

Quote:

Originally Posted by Jimbolosey (Post 2090543)
I'm wondering about creating custom conditions for my Awards and Achievements. Suppose I want users to be able to get an award for winning a gaming tournament (like in CoD4 or something). I want to choose "Custom" from the conditions panel. However, "Custom" doesn't mean anything...

How would I go about doing this? Like, give them an award if they have a topic taht's been viewed 500+ times? etc. Stuff like that.

"Custom" means that points from the Custom Points (assigned from admin) are taken into calculation. "Custom Achievements" can only be done by creating a CDP Plugin, see ZIP\extras, Plugins and CDP

Quote:

Originally Posted by Sw0rDz (Post 2090590)
Where would I start if I wanted to make a custom achievement based of a custom condition. For example, I have a shop mod installed. I want to program a custom achievement that happens when a person owns 10 or so items. I really just want to code something in php, that either returns a value, and then use this value for the custom condition. I haven't really seen anything for this in the CDP.

See my answer above, as it is the same question.


Quote:

Originally Posted by Storyteller69 (Post 2090626)
In the german translation the link-part "member.php?u=" is missing in the following two phrases:
phrase name="xperience_activity_x_earn"
phrase name="xperience_activity_x_lose"
So for example the links to the member-profiles in the Recent Activity-Block don't work well without the missing part.

Greetings
Storyteller

Fixed in next version.

woffie 08-29-2010 05:59 PM

I have an odd issue. I installed this and everything was working right. I created some new achievements and found I had accidentally created some blank achievements. I deleted the blank ones and now none of the achievements are showing in the user info in the threads.

Phalynx 08-29-2010 06:12 PM

Quote:

Originally Posted by woffie (Post 2091217)
I have an odd issue. I installed this and everything was working right. I created some new achievements and found I had accidentally created some blank achievements. I deleted the blank ones and now none of the achievements are showing in the user info in the threads.

Clear issued achievements and run a recount on achievements.

Sunka 08-30-2010 01:04 AM

Quote:

Originally Posted by Phalynx (Post 2088263)
- Added: Place the bars freely in postbit ($xperience_postbit / $xperience_achievements_postbit / $xperience_awards_postbit)


Not working for me:

https://vborg.vbsupport.ru/external/2010/08/5.jpg https://vborg.vbsupport.ru/external/2010/08/6.jpg

woffie 08-30-2010 08:28 AM

Quote:

Originally Posted by Phalynx (Post 2091227)
Clear issued achievements and run a recount on achievements.

That fixed it, thanks

exportforce 08-30-2010 09:53 AM

On last activity there is a bugged Link. Instead of linking to the user it links to: http://www.bloodpatches.net/forum/USERID (instead of userid it's the userid)
On any other link it is okay.

micheal332001 08-30-2010 11:32 AM

is this right in the class file

PHP Code:

$awardfieldq =$vbulletin->db->query_read("SHOW COLUMNS FROM " TABLE_PREFIX "xperience_stats WHERE Field='".$awardfield."'"); 

as im getting a database error.

PHP Code:

Invalid SQL:
SHOW COLUMNS FROM vb4_xperience_stats WHERE  Field='points_threads';

MySQL Error   You have an error in your SQL  syntaxcheck the manual that corresponds to your MySQL server version for the  right syntax to use near 'WHERE Field='points_threads'' at line 1 

any ideas on this.

Phalynx 08-30-2010 11:49 AM

Quote:

Originally Posted by Sunka (Post 2091358)
Not working for me:

Fixed in 4.0.3

Quote:

Originally Posted by exportforce (Post 2091489)
On last activity there is a bugged Link. Instead of linking to the user it links to: http://www.bloodpatches.net/forum/USERID (instead of userid it's the userid)
On any other link it is okay.

This is a problem with the german translation. Fixed in 4.0.3


Quote:

Originally Posted by micheal332001 (Post 2091517)
is this right in the class file

PHP Code:

$awardfieldq =$vbulletin->db->query_read("SHOW COLUMNS FROM " TABLE_PREFIX "xperience_stats WHERE Field='".$awardfield."'"); 

as im getting a database error.

PHP Code:

Invalid SQL:
SHOW COLUMNS FROM vb4_xperience_stats WHERE  Field='points_threads';

MySQL Error   You have an error in your SQL  syntaxcheck the manual that corresponds to your MySQL server version for the  right syntax to use near 'WHERE Field='points_threads'' at line 1 

any ideas on this.

Yes, it is right.

Which MySQL Version are you using?

exportforce 08-30-2010 11:59 AM

Quote:

Originally Posted by Phalynx (Post 2091521)
This is a problem with the german translation. Fixed in 4.0.3

Can you name the fix a bit more detailed, so I don't need to leave it as it is ? :)

Phalynx 08-30-2010 12:08 PM

Quote:

Originally Posted by exportforce (Post 2091527)
Can you name the fix a bit more detailed, so I don't need to leave it as it is ? :)

Change the phrases:
xperience_activity_x_earn
to:
Code:

<a href="member.php?u={1}">{2}</a> hat {3} erhalten
and the phrase
xperience_activity_x_lose
to:
Code:

<a href="member.php?u={1}">{2}</a> hat {3} verloren


All times are GMT. The time now is 02:11 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.03172 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
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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