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)

Scalemotorcars 10-18-2011 10:30 AM

Thanks Vossi, Ill give it a try.

Webbstre 10-20-2011 01:10 PM

I want to thank Seductor for the fix on that file that made it so I could see notifications/private messages again. I also suggest the fix be implemented into the main modification download.

inspector 10-20-2011 08:14 PM

I was finally able to install this plugin without it messing up the PMs, thanks to Seductor's fix.

Now whenever I click on the glossary link in the navbar, it gives me the message saying I don't have permission to access the page. Insufficient permissions. This is when I'm logged in as the admin too.

Anyone have any ideas?

Webbstre 10-20-2011 11:05 PM

You still need to give even administrators permissions before you can use it.

Malcolm-X 10-22-2011 07:52 PM

Quote:

Originally Posted by Seductor (Post 2257501)
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.

Thanks a lot. Everything is good and there is no FATAL error...:up:

Seductor 10-31-2011 06:47 PM

Quote:

Originally Posted by Scalemotorcars (Post 2258524)
Thanks Vossi, Ill give it a try.

Did it work?

alaska_av8r 11-01-2011 04:09 AM

I had a strange deal with the main editor for the articles. To get it to work I would have to delete the picture, rename it and then re-insert it in the article. Don't know if that will work for you though.

alaska_av8r 11-01-2011 05:24 AM

I am having issues with the popups not being large enough for the text. I don't know what to edit but it would appear to me that maybe the text needs padding around it.

Also the lines of text shown within the popup need some distance between them.

I have attempted to edit the configuration settings in the overlib_vbglossary.js file but they don't seem to have any effect at all.

Okay so I have been all over the overlib website and attempted to figure out how to enter overlib commands into the "custom display for popups" box and also tried the "additional options for overlib link" box but to no avail.

if I want to change the cell padding to 10 pixels, can someone show me the exact command (exact sytax) to enter into the appropriate box (which of the two boxes do I enter this command into, I can't figure out the difference between the two)

Scalemotorcars 11-03-2011 04:24 PM

Quote:

Originally Posted by Scalemotorcars (Post 2249155)
Im actually still having this problem. The URL's are adding the TAG into it rather then use the full URL.

Any ideal how to fix it? Thanks...


Still having this problem but only if there are more then one result for the link. All links with a single result work fine. Any ideals???

Seductor 11-08-2011 11:19 AM

1 Attachment(s)
Quote:

Originally Posted by alaska_av8r (Post 2263388)
I have attempted to edit the configuration settings in the overlib_vbglossary.js file but they don't seem to have any effect at all.

Perhaps you haven changed the proper configuration. Check this, my pop-ups have border="5".

By the way, this should be easier to edit.


All times are GMT. The time now is 10:21 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.01491 seconds
  • Memory Usage 1,775KB
  • 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
  • (3)bbcode_php_printable
  • (4)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