Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-01-2007, 05:43 PM
lacalla lacalla is offline
 
Join Date: Aug 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Fatal error: Cannot redeclare class vBulletinHook

vbexternal works fine but when I add deluxe login, I get this error....

Fatal error: Fatal error: Cannot redeclare class vBulletinHook in /home/*****/public_html/forum/includes/class_hook.php on line 29

I searched here for this problem and from what I can gather, the only solution was to comment out 'class vBulletinHook' or some part of it from includes/class_hook.php. Well, it didn't work.

Can vb external and deluxe login be used together?

--------------- Added at 04:11 ---------------

It would be great to have both these but apparently it can't be done. <sigh>
Reply With Quote
  #2  
Old 10-02-2007, 05:27 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'll need to manually edit vBExternal.
Reply With Quote
  #3  
Old 10-02-2007, 10:30 AM
lacalla lacalla is offline
 
Join Date: Aug 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dismounted,

Thank you for your help. Is there anything I can read, articles maybe, to give me a better understanding of what I need to edit in vBExternal?
Reply With Quote
  #4  
Old 10-02-2007, 11:24 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There aren't any "direct" tutorials. If I had some time, I would've done it for you.
Reply With Quote
  #5  
Old 10-02-2007, 11:57 AM
lacalla lacalla is offline
 
Join Date: Aug 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dismounted,

That's very nice of you and is very much appreciated. <smiles>
I'll do some reading, get more familiar with how everything works together and go from there.

Thanks again for letting me know that it is possible for them to work together.
Reply With Quote
  #6  
Old 10-02-2007, 02:44 PM
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
Posts: 656
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look in deluxe login, find where the class is defined, and wrap it with a conditional:

Code:
 if (!class_exists('vBulletinHook'))
{
        // class definition here.
}
Reply With Quote
  #7  
Old 10-02-2007, 07:25 PM
lacalla lacalla is offline
 
Join Date: Aug 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"Look in deluxe login, find where the class is defined, and wrap it with a conditional:"

Asking for help is not something I'm used to and
it's embarrassing to need more information but the only two files that come with Deluxe Login are the instructions and login_inc.php. I don't get it. Where in Deluxe Login do I insert the conditional?

I really appreciate the help. I already have vBExternal on my page and it's extremely useful and Deluxe Login works great by itself so getting it going as well will just be the bees knees!

Again I apologize and again I thank you for the help.
Reply With Quote
  #8  
Old 10-02-2007, 11:31 PM
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
Posts: 656
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here you go. Just remove this line from your vBexternal.php file, and then on your pages, make sure your deluxe login code at the top of the file comes before the vBexternal code.

line 119
Code:
class vBulletinHook { function fetch_hook() { return false; } }
Reply With Quote
  #9  
Old 10-03-2007, 04:09 AM
lacalla lacalla is offline
 
Join Date: Aug 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Analogpoint,

I followed your instructions and it worked!......sorta. The page loaded and it looked like it would be fine but when I logged in, even though my name was visible on the same page where vBExternal shows forum users online, I wasn't being shown as logged in on that same page and the Pm's didn't show either.

So after reading what to do if that happens and what the cause might be, I went to the control panel and changed the cookies from /forum/ to .mydomain. It didn't solve the problem with being shown as logged in on the non-vb page and it is apparently preventing me from logging in to the control panel. When I log in to the admin cp, the successful message comes up and then I go right back to the admin cp log in. Also instead of it being remembered which template I prefer, when I log on I have to change from the default to my preference.

HELP! How do I get back in to the admin control panel?
Reply With Quote
  #10  
Old 10-03-2007, 05:48 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please upload tools.php from the 'do_not_upload' folder of your vBulletin distribution to your admincp directory. Now point your browser to admincp/tools.php.

Reset the cookie Domain and Path to the default values.

Once your problem is fixed please remove tools.php again from the server.

If this does not solve your problems, please clear your browser cookies and cache, restart your browser and try again.
Reply With Quote
Reply


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:27 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.04171 seconds
  • Memory Usage 2,245KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete