PDA

View Full Version : Mini Mods - vbExperience 4.0 - Vaultwiki and other Customized plugins!


waylandprod
02-12-2013, 11:00 PM
So, I'm not the best programmer, but I did a lot of extra work on some plugins for our website that I wanted to share. Hopefully it's what you are looking for.

First, let me give props the Phalanx who made the original plugin. I just modded it for my needs.


File 1: Vaultwiki plugin - Counts how many edits you have made and allows you to make that a condition inside of the experience plugin.

File 2: A Blank XML plugin - YOU HAVE TO EDIT THIS FILE!

In the beginning there is commented code:
<!-- DELETE EVERY COMMENT LINE AFTER COMPLETED!
<!-- Variables to replace. Do a SEARCH, FIND AND REPLACE with the values you require
<!-- VARIABLE1 = Product ID -- EX: "ARCADE_IPB_XP"
<!-- VARIABLE2 = Product Title -- EX: "Arcade XP"
<!-- VARIABLE3 = Product Description -- EX: "Gives points for Arcade XP"
<!-- VARIABLE4 = Short ID -- EX: "arcadexp"
<!-- VARIABLE5 = Fieldname for source -- EX: "Arcadepoints_received"
<!-- VARIABLE6 = Tablename for Source -- EX: "User" or "dbtech_thanks_statistics" -->

All you have to do is do a search and replace function with each variable and all the setting will be correct below.

File 3: DragonByte Tech: Advanced Post Likes Fix - The LIKES system plugin that was included in vbExperience 4.0 doesn't seem to work any more, so I made my own. You can use this as another sample of how you can customize your own experience plugin.

ADDED: File 4: DragonByte Tech: Advanced Post Thanks Fix - Same as the Likes plugin above, but for the thanks function.


Other Customizations with the BLANKPLUGIN:

$user_VARIABLE4 = $vbulletin->db->query_first("
SELECT VARIABLE5
FROM " . TABLE_PREFIX . "VARIABLE6
WHERE userid = " . $user['userid'] . "
");

This section can be edited however you see fit, using "COUNT" instead of "SELECT", and well, whatever query you see fit.


There it is! If you ask questions, I MAY be able to answer them. A lot of what I did was trial and error, but hopefully this may be handy to whomever is looking to make this old system still work. After all, it is free :)

waylandprod
02-13-2013, 07:50 PM
Reserved for any notes.

sweetpotato
02-14-2013, 07:01 AM
I don't have Vaultwiki or Arcade. I have DragonbyteTech likes. What exactly I have to do to make DBTech Like work in file 2 when you say
do a search and replace function with each variable and all the setting will be correct below

sweetpotato
02-14-2013, 10:29 AM
Just installed DragonByte Tech: Advanced Post Likes Fix. This seems to be for likes only. How abount thanks feature?
I installed this as a product without editing any more. Hope it works, :D

waylandprod
02-14-2013, 04:56 PM
Just installed DragonByte Tech: Advanced Post Likes Fix. This seems to be for likes only. How abount thanks feature?
I installed this as a product without editing any more. Hope it works, :D

I'll add it, but here's the variables I used:
<!-- DELETE EVERY COMMENT LINE AFTER COMPLETED!
<!-- Variables to replace. Do a SEARCH, FIND AND REPLACE with the values you require
<!-- DB_thanks = Product ID -- EX: "ARCADE_IPB_XP"
<!-- Thanks Integration = Product Title -- EX: "Arcade XP"
<!-- Gives points for Thanks = Product Description -- EX: "Gives points for Arcade XP"
<!-- thanksxp = Short ID -- EX: "arcadexp"
<!-- thanks_received = Fieldname for source -- EX: "Arcadepoints_received"
<!-- dbtech_thanks_statistics = Tablename for Source -- EX: "User" or "dbtech_thanks_statistics" -->

waylandprod
02-14-2013, 05:00 PM
Just installed DragonByte Tech: Advanced Post Likes Fix. This seems to be for likes only. How abount thanks feature?
I installed this as a product without editing any more. Hope it works, :D

File uploaded! "Thanks" fix uploaded.

Wow 1 star for such a simple little add-on. Oh well-

sweetpotato
02-14-2013, 05:52 PM
File uploaded! "Thanks" fix uploaded.

Wow 1 star for such a simple little add-on. Oh well-
Voted for what I love :D

BirdOPrey5
02-21-2013, 12:46 PM
Where is the original plugin you modified? Is it marked as allowing people to modify & re-release it?

sweetpotato
02-21-2013, 01:16 PM
In vbExperience there are many plugins such as DragonByte Tech like and thanks but I think here he write new ones.

waylandprod
02-21-2013, 04:42 PM
Where is the original plugin you modified? Is it marked as allowing people to modify & re-release it?

Here you go:

https://vborg.vbsupport.ru/showthread.php?t=258841&highlight=vbexperience

Marked as Re-usable code, so I would assume so.

EDIT: Just in case I'm gonna contact the original maker of vbExperience 4.0 and make sure he's ok with it as well since this adds on to his plugin.