Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
RPG Pets [Mini_fixes & UserCP options] Details »»
RPG Pets [Mini_fixes & UserCP options]
Version: 1.00, by rob01 rob01 is offline
Developer Last Online: Oct 2022 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.1.0 Rating:
Released: 12-29-2010 Last Update: Never Installs: 4
Uses Plugins Template Edits
Re-useable Code Translations Is in Beta Stage  
No support by the author.

hello, this are just temporal mini-fixes for the RPG Pet addon which it was already release by DarkgamerVN, @ RPG PETS.

Download: (RPG PETS) vb.org link

or https://vborg.vbsupport.ru/showthrea...hlight=RPG+PET

Okay lets start!

List of fixes:
(1) Temp
(2) UserCP (legacy)




(1) Temp:
Un-Catched templates:
rpgpet_board (1)
rpgpet_rpg (1)
rpgpet_started (1)

Fix:
1.- Add a new plugin
2.- Write this:

Title: RPG PET Catched Templates (or any title name you want)
Hook Location : cache_templates

Plugin PHP Code:
Code:
$cache = array_merge((array)$cache, array(
	'rpgpet_board',
'rpgpet_rpg',	
'rpgpet_started'
));
Plugin is Active : ON


(1) UserCP : this will let users to either turn on/off their pet (from showing @ postbit_legacy)

First: Go to User Profile Fields
- Add New User Profile Field
- then select : Single-Selection Radio Buttons (i prefer buttons rather than a list menu)

Okay lets create it:
Title: RPG Pet Postbit
Description: This will either turn on/off your pet from your postbit (between threads view.

Options: ON , OFF

it must look like this:
ON
OFF

Set Default : ON (If you want it to be by OFF by default just change the order)

Field Editable by User: Yes

Field Searchable on Members List: No

Show on Members List: No

Allow user to input their own value for this option: No

Let the other on default mode

Which page displays this option? edit profile (seems to be the best option, in my point of view)



Okay we are almost done, now we add the conditionals.

First go to -> Styles and templates
-Search in Templates
- postbit_legacy

Then Replace:
Code:
This:
         {vb:raw showinfopet}

For this:
                     <vb:if condition="$post[fieldx] == 'ON'">
                                {vb:raw showinfopet}
                               </vb:if>
Just change the fieldx with your number




I will try to add more fixes, and improve the installation with a easy mini mod installer.
thanks
robert

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-30-2010, 03:47 AM
rob01 rob01 is offline
 
Join Date: Sep 2008
Location: Mexico
Posts: 410
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pictures:



And the other edit just removes a un catched template.





btw im not a pro coder

cheers
Reply With Quote
  #3  
Old 01-04-2011, 11:04 AM
Kraxell's Avatar
Kraxell Kraxell is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tag it! Some Screenshots?
Reply With Quote
  #4  
Old 08-15-2011, 10:51 PM
Ravallojr Ravallojr is offline
 
Join Date: Jun 2011
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Visit the link he provided, it;s alot more information and betetr explanations on that thread.
Reply With Quote
  #5  
Old 02-09-2012, 02:38 PM
xhells21 xhells21 is offline
 
Join Date: Aug 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Database error in vBulletin 4.1.10:

Invalid SQL:
SELECT * FROM rpg_pet WHERE class ='1'(('))")""';

RPG Pet is vulnerable for sql injection

use at own risk

my forum got hacked a few days ago cause of it and kbank
Reply With Quote
Благодарность от:
Kraxell
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:40 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04293 seconds
  • Memory Usage 2,257KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (1)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete