vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - vBulletin-Glossary (https://vborg.vbsupport.ru/showthread.php?t=258898)

byalik 10-09-2011 05:05 PM

Is it possible to post new words without creating a new category and adding it to that category? It makes it repetitive if you only have 1 category.

alaska_av8r 10-10-2011 03:53 AM

Vossi I tried v2.0.6 again with vb 4.1.7 and still get error also: If I click notifications and inbox this is what I get:

Fatal error: Access level to vB_Attachment_Store_vBGlossary_GlossaryEntry::fetc h_associated_contentinfo() must be protected (as in class vB_Attachment_Store) or weaker in /home/marin49/public_html/packages/vbglossary/attach/glossaryentry.php on line 368

Seductor 10-15-2011 02:11 PM

Quote:

Originally Posted by Vossi (Post 2254281)
Can anybody re-construct the PM bug for me (with vB 4.1.6) ???

Hi there,

I'm using a blank vBulletin. I have not any other plugin installed and the error is showed when I try to access the PM folder.

Fatal error: Declaration of vB_Attachment_Store_vBGlossary_GlossaryEntry::veri fy_permissions() must be compatible with that of vB_Attachment_Store::verify_permissions() in /packages/vbglossary/attach/glossaryentry.php on line 363

This is verify_permissions() from the vB_Attachment_Store class:
PHP Code:

    abstract protected function verify_permissions($info = array());

    
/**
     * Verify permissions based on specified attachmentid
     *
     * @param int $attachmentid
     *
     * @return bool
     */
    
public function verify_permissions_attachmentid($attachmentid)
    {
        
$values $this->fetch_associated_contentinfo($attachmentid);
        return 
$this->verify_permissions($values);
    } 

This is yours:
PHP Code:

    /**
    * Verifies permissions to attach content to entries
    *
    * @return     boolean
    */
    
public function verify_permissions()
    {
        global 
$show;

        require_once(
DIR '/includes/functions_vbglossar.php');
        
        
$this->values['id'] = intval($this->values['id']) ? intval($this->values['id']) : intval($this->values['entryid']);

        if (
$this->values['id'])
        {
            
$this->entryinfo fetch_entryinfo($this->values['id']);
            
$this->contentid $this->values['id'];
            
$this->userinfo fetch_userinfo($this->entryinfo['userid']);
            
cache_permissions($this->userinfo);
        }
        else
        {
            if (
$userid intval($this->values['u']) AND $userinfo fetch_userinfo($userid))
            {
                
$this->userinfo $userinfo;
                
cache_permissions($this->userinfo);
            }
            else
            {
                
$this->userinfo $this->registry->userinfo;
            }
        }

        if (
            !(
$this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canentervbglossar'])
            OR
            !(
$this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canviewentry'])
            OR
            !(
$this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canattachtoentry'])
        )
        {
            
// no permission to view glossar, glossar entries or attachments
            
return false;
        }

        if (
            !(
$this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canadminvbglossar'])
            AND
            !
$this->entryinfo['status']
        )
        {
            
// no permission to moderate and entry is moderated
            
return false;
        }
        
        if (!
$this->entryinfo['groupshow'])
        {
            if (!
array_intersect(fetch_membergroupids_array($this->registry->userinfo), explode(','$this->attachmentinfo['groupshowlist'])))
            {
                
// usergroup is not allowed to access category
                
return -1;
            }
        }

        return 
true;
    } 

This is my debug info without Glossary enabled:
Quote:

Template Usage (20):
(1)USERCP_SHELL
(1)ad_footer_start
(1)ad_global_above_footer
(1)ad_global_below_navbar
(1)ad_global_header1
(1)ad_global_header2
(1)ad_navbar_below
(1)footer
(1)forumjump
(1)gobutton
(1)header
(1)headinclude
(1)headinclude_bottom
(1)navbar
(3)navbar_link
(1)option
(1)pm_messagelist
(1)spacer_close
(1)spacer_open
(3)usercp_nav_folderbit


Phrase Groups Available (7):
global
messaging
pm
postbit
posting
reputationlevel
user


Included Files (33):
./private.php
./global.php
./includes/class_bootstrap.php
./includes/init.php
./includes/class_core.php
./includes/config.php
./includes/functions.php
./includes/class_hook.php
./includes/functions_facebook.php
./includes/functions_user.php
./includes/functions_misc.php
./includes/class_bootstrap_framework.php
./vb/vb.php
./vb/phrase.php
./includes/class_friendly_url.php
./includes/functions_notice.php
./packages/vbattach/attach.php
./vb/collection/contenttype.php
./vb/collection.php
./vb/model.php
./vb/item/contenttype.php
./vb/item.php
./vb/types.php
./vb/cache.php
./vb/cache/db.php
./vb/cache/observer/db.php
./vb/cache/observer.php
./packages/vbforum/attach/album.php
./includes/functions_album.php
./packages/vbforum/attach/post.php
./includes/functions_forumlist.php
./packages/vbforum/attach/socialgroup.php
./includes/functions_socialgroup.php


Hooks Called (29):
init_startup
database_pre_fetch_array
database_post_fetch_array
fetch_userinfo_query
fetch_musername
fetch_userinfo
global_bootstrap_init_start
global_bootstrap_init_complete
cache_permissions
global_state_check
global_bootstrap_complete
global_start
style_fetch
global_setup_complete
forumjump
cache_templates
template_register_var
parse_templates
notices_check_start
friendlyurl_resolve_class
notifications_list
process_templates_complete
private_start
private_messagelist_start
usercp_nav_start
usercp_nav_complete
navbits
navbits_complete
private_complete

Seductor 10-15-2011 03:10 PM

1 Attachment(s)
I have made this fixes:

First of all, the original verify_permissions is this:

PHP Code:

abstract protected function verify_permissions($info = array()); 

So your verify_permissions should have the same arguments:

PHP Code:

    public function verify_permissions($info = array())
    {
        global 
$show;

        require_once(
DIR '/includes/functions_vbglossar.php');
        
        
$this->values['id'] = intval($this->values['id']) ? intval($this->values['id']) : intval($this->values['entryid']);

        if (
$this->values['id'])
        {
            
$this->entryinfo fetch_entryinfo($this->values['id']);
            
$this->contentid $this->values['id'];
            
$this->userinfo fetch_userinfo($this->entryinfo['userid']);
            
cache_permissions($this->userinfo);
        }
        else
        {
            if (
$userid intval($this->values['u']) AND $userinfo fetch_userinfo($userid))
            {
                
$this->userinfo $userinfo;
                
cache_permissions($this->userinfo);
            }
            else
            {
                
$this->userinfo $this->registry->userinfo;
            }
        }

        if (
            !(
$this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canentervbglossar'])
            OR
            !(
$this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canviewentry'])
            OR
            !(
$this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canattachtoentry'])
        )
        {
            
// no permission to view glossar, glossar entries or attachments
            
return false;
        }

        if (
            !(
$this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canadminvbglossar'])
            AND
            !
$this->entryinfo['status']
        )
        {
            
// no permission to moderate and entry is moderated
            
return false;
        }
        
        if (!
$this->entryinfo['groupshow'])
        {
            if (!
array_intersect(fetch_membergroupids_array($this->registry->userinfo), explode(','$this->attachmentinfo['groupshowlist'])))
            {
                
// usergroup is not allowed to access category
                
return -1;
            }
        }

        return 
true;
    } 


Now, all abstracts methods from the original class must have defined in your file. You need to define fetch_associated_contentinfo in your file:
PHP Code:

    protected function fetch_associated_contentinfo($attachmentid){
        return;
    } 


I have uploaded the new glossaryentry.php .

I don't see the Fatal error and I can browse my PMs. I think my fix is better than byalik's due to I'm not editing the attach.php original file.

byalik 10-15-2011 08:37 PM

Anyone know how to get the keywords and description on each page to match the content on the page. Right now it is all the same as on homepage of forum

toxin 10-16-2011 01:02 PM

I've uploaded the new file, and everything is working now :)

alaska_av8r 10-17-2011 03:13 AM

seductor that seems to have fixed the problem

Scalemotorcars 10-17-2011 04:27 PM

New file works great.

Vossi can I use this addon? If I can where do I upload it to?

http://overlib.boughner.us/plugins/bubble_commands.html

Seductor 10-17-2011 07:42 PM

Quote:

Originally Posted by Scalemotorcars (Post 2258244)
New file works great.

Vossi can I use this addon? If I can where do I upload it to?

http://overlib.boughner.us/plugins/bubble_commands.html


Hi guys. I'm glad to hear that it works.

I could try to add this in my spare time. I'm not a mod developer, but It doesn't seem too hard to implement.

Vossi 10-18-2011 04:44 AM

Ovberlib is already used in the AddOn, all you need is to add the additional features under:

/admincp -> vbulletin-glossary -> crosslinking -> userdefined settings.

There you can change the look-like of the popup or bubble. Actually that's what i understood you wanted to do.

The only thing which is needed to get changed is to add
PHP Code:

<script type="text/javascript" src="overlib_bubble.js"

in the headinclude-template of the glossary and upload the .js-file to ftp. That#s about it.


All times are GMT. The time now is 01:56 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.01853 seconds
  • Memory Usage 1,822KB
  • 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
  • (6)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
  • (2)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