vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBFavorites (https://vborg.vbsupport.ru/showthread.php?t=98808)

Arios 11-06-2005 02:54 AM

Yep I'm getting the same error when trying to delete a user

Quote:

Database error in vBulletin 3.5.0:

Invalid SQL:

DELETE FROM favorites as favorites
WHERE userid = 37
OR (entry_type = 'user' AND entry_id = 37);
However it does perform the delete though. I am on vB 3.5.0 gold. Double checked the changes made when installing and all looks good and works like a charm except for that error.

akanevsky 11-06-2005 10:22 AM

Are you using the latest version that has been uploaded yesterday? The error's been fixed in there...

TheFocusElf 11-06-2005 12:11 PM

DV -- Well you seem to feed off of praise, and deservedly so! Excellent mod. I never used your 3.0 version, but this works like a dove.

-installed-

Arios 11-07-2005 02:14 AM

I am now, thanks :up:

Lea Verou 11-09-2005 11:48 PM

I would like to disable the add user functionality and use vbfavorites only for threads & posts, how can I do that?
Thanks a lot. :)

akanevsky 11-10-2005 12:05 AM

Why would you want to disable that functionality?
Besides, if you are a coder, you should know how to do those things ;)

Lea Verou 11-10-2005 12:08 AM

Quote:

Originally Posted by Dark Visor
Why would you want to disable that functionality?
Besides, if you are a coder, you should know how to do those things ;)

Yep, but I would have to go through the code so I guess since it's your hack you'd find the answer much faster than me. :) Also, by doing it myself I might miss something. :)
I'm also upgrading my board to 3.5.1 right now so I don't currently have the time to do it... :nervous:
I want to disable the functionality in order to make the users use the buddylist. I'm also considering to add a hack I found to extend the functionality of the buddylist. :)

akanevsky 11-10-2005 12:17 AM

If you just want to hide the functionality, remove the link from memberinfo template, and replace

Code:

        // check whether an invalid entry type is specified
        if (!in_array($vbulletin->GPC['type'], array('thread', 'post', 'user')))
        {
                print_no_permission();
        }

in vbfavorites.php with

Code:

        // check whether an invalid entry type is specified
        if (!in_array($vbulletin->GPC['type'], array('thread', 'post')))
        {
                print_no_permission();
        }

If you care about data queries that will still be running, go through XML and look for places that say 'user'. Those refer to the user-type entries... Just edit or delete the associate code blocks, you'll know which it is ;)

And maybe I'll release a version that allows an admin to enable/disable each of the three parts of the hack :)

Lea Verou 11-10-2005 12:19 AM

Quote:

Originally Posted by Dark Visor
If you just want to hide the functionality, remove the link from memberinfo template, and replace

Code:

        // check whether an invalid entry type is specified
        if (!in_array($vbulletin->GPC['type'], array('thread', 'post', 'user')))
        {
                print_no_permission();
        }

in vbfavorites.php with

Code:

        // check whether an invalid entry type is specified
        if (!in_array($vbulletin->GPC['type'], array('thread', 'post')))
        {
                print_no_permission();
        }

If you care about data queries that will still be running, go through XML and look for places that say 'user'. Those refer to the user-type entries... Just edit or delete the associate code blocks, you'll know which it is ;)

And maybe I'll release a version that allows an admin to enable/disable each of the three parts of the hack :)

Yep, I was talking about the extra queries. Thanks for the info :)
That version would be really nice! :)

john1744 11-10-2005 07:26 AM

Hiya, would the easiest way to unistall this be just to perform the steps backwards?


All times are GMT. The time now is 03:03 PM.

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.01263 seconds
  • Memory Usage 1,742KB
  • 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
  • (4)bbcode_code_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