vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Pets (https://vborg.vbsupport.ru/showthread.php?t=61008)

JackG 02-16-2004 04:17 AM

me wants vBpets 2.0 :)

The Quibbler 02-16-2004 04:23 AM

...nice hack, except something's not working for me.

When I go to profile.php, I get this error:

PHP Code:

Parse errorparse errorexpecting `')'' in /home/quibbler/public_html/forums/profile.php on line 912 

On line 912, I see:

PHP Code:

'pettype' => INT

Around it is this code:

PHP Code:

// homepage doesn't match the [url]http://-style[/url] format in the beginning -- possible attempted exploit
            
$homepage '';
        }
    }
    
//##### Begin vB3 Pets #####     
globalize($_POST, array( 
    
'pettype' => INT
    
'petgender' => INT
    
'petowned' => INT
    
'petname' => STR_NOHTML 
)); 
//##### End vB3 Pets ##### 

Additionally, on showthread.php, I get this error:

PHP Code:

Parse errorparse error in /home/quibbler/public_html/forums/includes/functions_showthread.php on line 765

Warning
Cannot modify header information headers already sent by (output started at /home/quibbler/public_html/forums/includes/functions_showthread.php:765in /home/quibbler/public_html/forums/includes/functions.php on line 2752 

I'm following the instructions exactly as far as I can tell. Is it because I'm running vb3 RC4? Would it just be my server?

Thanks to anyone who replies. I'd really like to get this fixed. :ermm:

digitalSite 02-16-2004 12:30 PM

Quote:

Originally Posted by JackG
I just figured out my issue..maybe it will help you if you had the same problem:

I followed the great installation instructions. However when I was at the part
where it says postbit OR postbit_legacy... I figured I can do either one..so I
editied my postbit. The pet dident show up. Now I just did the same mod in
postbit_legacy and it works!

Thanks JackG!!!!!!
I am not sure why, but last time I tried to make it work, I used postbit and then made the changes to postbit_legacy, but it still didn't work for me. I tried it again today and now it works!!!

I am so happy I have this hack! Thanks again JackG for the hint! :D

JackG 02-16-2004 07:11 PM

Excellent digitalSite!

JackG 02-16-2004 07:28 PM

Does anyone know how I can limit the Pets usage to users in a specific category?

AutomatikStudio 02-16-2004 08:38 PM

Quote:

Originally Posted by JackG
Does anyone know how I can limit the Pets usage to users in a specific category?

This can be done using vB3 <if> statements. My guess is that it would be best to wrap the table where the user can change their pet info in MODIFYPROFILE in something like
Code:

<if condition="$bbuserinfo[usergroup]==2"> table stuff here </if>
That right there would only let the pets show up for user group 2. You can change the "==2" to "!=2" to make it so that all groups EXCEPT group 2 can see the pet stuff in the profile.

The Quibbler 02-16-2004 09:25 PM

Any idea why mine won't work, Josh? Do you know if this hack is suppoesd to work with RC4? Should I just try installing it again?

AutomatikStudio 02-16-2004 09:48 PM

Quote:

Originally Posted by The Quibbler
Any idea why mine won't work, Josh? Do you know if this hack is suppoesd to work with RC4? Should I just try installing it again?

The hack has been installed multiple times on RC4. Try re-installing.

The Quibbler 02-16-2004 11:31 PM

Whew! Finally got it working. Excellent hack; I can't wait for v2.0 :)

JackG 02-17-2004 05:33 PM

Awesome, I will give it a try :)


All times are GMT. The time now is 12:01 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.01259 seconds
  • Memory Usage 1,749KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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