Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases

Closed Thread
 
Thread Tools
vB3 Pets Details »»
vB3 Pets
Version: 1.00, by AutomatikStudio AutomatikStudio is offline
Developer Last Online: Aug 2011 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-29-2004 Last Update: Never Installs: 10
Is in Beta Stage  
No support by the author.

vB3 Pets Beta v0.2

THIS HACK IS NOW IN THE FULL RELEASES SECTION IN THIS THREAD.

Show Your Support

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

Comments
  #12  
Old 01-30-2004, 11:18 AM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AutomatikStudio
+For some reason when you make your selections for type, gender, and name they weren't getting inserted into the database so I had to use $_POST to make it work. That obviously needs fixing. Any help there would be good.
I wouldn't really say that needs fixing, however if your reffering to say $_POST['gender'] working and $gender not working then you need to run the variables through the globalize() function, take alook at it in functions.php and how vB's file use it. I assume thats the issue, but I haven't looked at your code yet

I also asume if this is just a straight forward port you have the origional authors permission?
  #13  
Old 01-30-2004, 01:17 PM
AutomatikStudio's Avatar
AutomatikStudio AutomatikStudio is offline
 
Join Date: Dec 2003
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cyricx
Question
What about someone like me who has other animals that I want to add?
I'm trying to figure it out, but for the life of me, I can't seem to. It could be the 2 hours of sleep in 72 hours, or it's just not there.
Cyricx
It's not really as easy as just "adding" one...you have to make multiple changes. You also would have to have a male and female version of your new pets, otherwise you'll have a broken image in your postbit. If you're still interested, let me know and I'll type it all out. In future versions I'll include a guide to adding new pets...possibly even a way to add them through the Admin CP

Quote:
Originally Posted by NTLDR
I wouldn't really say that needs fixing, however if your reffering to say $_POST['gender'] working and $gender not working then you need to run the variables through the globalize() function, take alook at it in functions.php and how vB's file use it. I assume thats the issue, but I haven't looked at your code yet
Yes that is indeed what I'm refering too...I'll take a look in functions.php. Thanks!

Quote:
Originally Posted by NTLDR
I also asume if this is just a straight forward port you have the origional authors permission?
Yep. I actually just got done talking to Ember (original Pet hack creator).
  #14  
Old 01-30-2004, 01:46 PM
AutomatikStudio's Avatar
AutomatikStudio AutomatikStudio is offline
 
Join Date: Dec 2003
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NTLDR
I wouldn't really say that needs fixing, however if your reffering to say $_POST['gender'] working and $gender not working then you need to run the variables through the globalize() function, take alook at it in functions.php and how vB's file use it. I assume thats the issue, but I haven't looked at your code yet
Good googly moogly...I just read almost all 3600 lines of functions.php and still can't figure out exactly where to put what. Any ideas?
  #15  
Old 01-30-2004, 01:50 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Instead of:

PHP Code:
//##### Begin vB3 Pets #####    
$pettype $_POST['pettype'];
$petgender $_POST['petgender'];
$petname $_POST['petname'];
//##### End vB3 Pets ##### 
Use:

PHP Code:
//##### Begin vB3 Pets #####    
globalize($_POST, array(
    
'pettype' => INT,
    
'petgender' => INT,
    
'petname' => STR_NOHTML
));
//##### End vB3 Pets ##### 
  #16  
Old 01-30-2004, 01:51 PM
AutomatikStudio's Avatar
AutomatikStudio AutomatikStudio is offline
 
Join Date: Dec 2003
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So I don't need to worry about functions.php now?
  #17  
Old 01-30-2004, 02:04 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The globalize function is in functions.php which will be required already, so its just that block you need.
  #18  
Old 01-30-2004, 02:08 PM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed and working but would love to see the other things that are planned, any idea when that might be btw?
  #19  
Old 01-30-2004, 02:11 PM
AutomatikStudio's Avatar
AutomatikStudio AutomatikStudio is offline
 
Join Date: Dec 2003
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by C.Birch
installed and working but would love to see the other things that are planned, any idea when that might be btw?
Depends on how much other people wanna help out . But the first order of business is to get this out of Beta, which I hope will be later today. And then after that I'll begin work on some new features.
  #20  
Old 01-30-2004, 02:13 PM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol i would say i would help but.......... im over worked has it is with a number of things plus a full time job lol.

one prob i found you got a missing img for when someone has no pet, also it might be better if it all the pet info dont show in a user's postbit who dont have a pet.
  #21  
Old 01-30-2004, 02:16 PM
AutomatikStudio's Avatar
AutomatikStudio AutomatikStudio is offline
 
Join Date: Dec 2003
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NTLDR
Instead of:

PHP Code:
//##### Begin vB3 Pets #####    
$pettype $_POST['pettype'];
$petgender $_POST['petgender'];
$petname $_POST['petname'];
//##### End vB3 Pets ##### 
Use:

PHP Code:
//##### Begin vB3 Pets #####    
globalize($_POST, array(
'pettype' => INT,
'petgender' = > INT,
'petname' => STR_NOHTML
));
//##### End vB3 Pets ##### 
I get a parse error on 'petgender' => INT...it says expecting `')''....
Closed Thread

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 09:46 PM.


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.05157 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete