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)

toxin 10-05-2011 07:14 PM

Sorry Vossi - I was referring to the post by Whity - he's trying to fix the fault with the Glossary stopping anyone from opening PMs. He's made some changes to attach.php ...

Whity 10-05-2011 07:15 PM

This is the original glossaryentry.php 11 July 2011 release of vbulletin-germany.org

Here Last Update: 17 Jun 2011

Vossi 10-05-2011 07:22 PM

Guys, DON'T replace ANY original files which came with vBulletin. There is NO NEED for that.

I'm going to add a new version by tomorrow which works with vBulletin 4.1.5 and higher. But just don't play around by changing original vBulletin files as that could cause a lot of problems with other functions. Geez....

Whity 10-05-2011 07:28 PM

Vossi

Thanks :)

Scalemotorcars 10-05-2011 07:38 PM

Vossi, as per your instruction above, (2.0.6 - Version for vBulletin 4.1.4 with small bug fixes.) I installed 2.0.6 on 4.1.4 can you please tell me the file of files to revert so attachments work for the glossary. Thanks...

alaska_av8r 10-05-2011 08:02 PM

Thanks Vossi!

inspector 10-07-2011 04:33 AM

This mod does not work. It causes PM's to not work. Uninstalled.

Vossi 10-07-2011 08:31 AM

Can anybody re-construct the PM bug for me (with vB 4.1.6) ???

dang3rzon3 10-07-2011 07:55 PM

Uninstalled.

alaska_av8r 10-07-2011 08:50 PM

Sorry Vossi I have already moved to 4.1.7

toxin 10-07-2011 10:20 PM

sorry - running 4.1.7 now

vanquish.securi 10-08-2011 04:31 AM

Works great on 4.1.7. Marked.

Vossi 10-08-2011 07:23 AM

Quote:

Originally Posted by vanquish.securi (Post 2254561)
Works great on 4.1.7. Marked.

Thats what it does with mine too. It works without problems in a fresh install, also my other addons dont harm the function. I'm quite positive that another addon skrews up and that the glossary aint responsible. That's why i need to find the common addon between those people who have problems.

What happends if ALL other addons are disabled and only the glossary is activated, is the problem still there?

toxin 10-08-2011 10:49 AM

Ok, I'm going to try disabling other addons to see what's causing the problem - and if nothing then I'll try a new install.

toxin 10-08-2011 12:40 PM

1. I disabled ALL products (including vBulletin CMS and vBulletin Blog) and left only the Glossary. When you try to view PMs I get the same 500 error.

2. I then deleted the Glossary product and all the files from the webserver - and reinstalled 2.0.6 completely. When you try to view PMs I get the same 500 error.

This is the error from my webserver error log:

2011-10-08 14:30:56: (mod_fastcgi.c.2592) FastCGI-stderr: PHP Fatal error: Declaration of vB_Attachment_Store_vBGlossary_GlossaryEntry::veri fy_permissions() must be compatible with that of vB_Attachment_Store::verify_permissions() in /usr/home/httpd/vhosts/myhost.com/httpdocs/forums/packages/vbglossary/attach/glossaryentry.php on line 363

I'm running 4.1.7 with CMS.

Vossi 10-08-2011 02:20 PM

Ooooooookay.... *confused*

This happened right after the update to 4.1.7? Which version of vB did you use before when it still worked?

toxin 10-08-2011 02:48 PM

Glossary 2.0.5 was working fine on vBulletin 4.1.3

I upgraded vBulletin to 4.1.4 and the Glossary stopped working so I disabled it.

I upgraded to vBulletin 4.1.5 and tried to use the Glossary again, but started getting problems with PMs so I upgraded Glossary to 2.0.6 and still had the PM error.

I am now running vBulletin to 4.1.7 and Glossary 2.0.6 and have the same error.

byalik 10-08-2011 09:42 PM

Anyone know how to get friendly urls with vbseo on this?

Vossi 10-09-2011 04:08 AM

Quote:

Originally Posted by toxin (Post 2254728)
Glossary 2.0.5 was working fine on vBulletin 4.1.3

I upgraded vBulletin to 4.1.4 and the Glossary stopped working so I disabled it.

I upgraded to vBulletin 4.1.5 and tried to use the Glossary again, but started getting problems with PMs so I upgraded Glossary to 2.0.6 and still had the PM error.

I am now running vBulletin to 4.1.7 and Glossary 2.0.6 and have the same error.

I'll try to fix that and check the attachment system due to that error message. Thansk for your help, I'm going to update the addon as soon as I fixed it.
Quote:

Originally Posted by byalik (Post 2254866)
Anyone know how to get friendly urls with vbseo on this?

This addon is working with vbseo ;)

byalik 10-09-2011 04:50 PM

I posted a fix to the PM error

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.

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 02:23 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.03452 seconds
  • Memory Usage 1,940KB
  • 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
  • (9)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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