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 :)
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 :)