vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Photo Popup - Insert pictures easily from vB Albums, Photopost, vBGallery, Photoplog (https://vborg.vbsupport.ru/showthread.php?t=202385)

cellarius 04-11-2009 06:52 AM

Quote:

Originally Posted by woffie (Post 1777149)
Added this to my test forum. Does not seem to work right. Click on the images and it does nothing. And yes, I did the edits

Quote:

Originally Posted by woffie (Post 1778702)
Nope, just the vbgallery

Quote:

Originally Posted by woffie (Post 1788617)
Still does not work. Oh well

The information you provide makes bugfixing somewhat - difficult ;)
What version of vB and vBG? Heaviliy modified skin? Which browser? Why don't you paste the debug-information the mod provides?
Have you tried it on a clean out-of-the-box installation?

cellarius 04-11-2009 07:09 AM

Quote:

Originally Posted by macc (Post 1766114)
could not get image button on my editor and no link also to use this mod ...
some help?

use only albums and photoplog.

Quote:

Originally Posted by jdougher (Post 1779037)
Same here. Did the install, followed directions, added code to templates.

No image in threads to access albums/pictures.

Have both photopost and albums, latest vB.

The display of the button or the link to open the popup window in the editors is independent of products used. If you did the template edits and upload of the image file properly, it will show up. If it does not, there may be several causes you have to check for yourself, since nobody here knows your independant setup:
  • you use a custom made style or custom buttons and therefore use a different than standard directory for your button image files. This mod looks for the image file in the directory you have defined in AdminCP->StyleManager->StyleVars->Imagepaths->Button Images Folder.
  • Your style is heavily modified. If this is the case, the reference code given (i.e.: insert after XY, replace XY) may not work for you. In this case, you'll have to find out yourself or ask the person who provided your style
  • You use another mod that modifies the editors - there are quite some of them out there. If this is the case, read the note in the second post of this thread.

cellarius 04-11-2009 08:23 AM

I made some changes to the config file for vBGallery. Up to now there was an issue I was not aware of concerning user categories: user categories not belonging to the current user were visible in the albums drop down menu as an empty line. This should be fixed now: only user categories belonging to the user are shown and, of course, with title.

The .zip file in the first post has been updated. If you already downloaded 3.1, you can download just the attached config file and upload it to your includes folder. If you modified your vBG config file (because you use an older version and needed to account for the different data folder structure), you can also do the following file edit:

Find:
Code:

    $albums_select = "
        SELECT catid, title_clean
        FROM " . $db_prefix . "categories
        WHERE hasimages = 1
        ORDER BY title_clean

Replace with:
Code:

        SELECT catid, title
        FROM " . $db_prefix . "categories
        WHERE hasimages = 1 AND (catuserid = 0 OR catuserid = $userid)
        ORDER BY parent, displayorder



File removed for newer version. Check following posts! Please note that there are further improvements going on, so it is recommended not to do the file edit, but to upload the updated config file.

mr3oobqatar 04-11-2009 10:34 AM

thanks....

Mark.B 04-11-2009 11:57 AM

I did say this earlier, but it needs saying again, this is one of the most useful and practical mods for vB for a long time.

It provides another much needed "link" between the vb album functionality and the forum posts, which is sadly lacking in many ways by default. It also works perfectly out of the box and looks like it came as part of vB.

The default nonsense about copying and pasting URLS from the album into the post is just impractical and nobody uses it. Now lots of my members are utilising the albims a lot more.

On that basis I have now nominated this mod for "Mod Of The Month".

A note for the future, it would be good to have something similar for "Add picture to group" as that also requires this nonsense of pasting in a URL which you don't at that point have access to. It's messy.

nohuhu 04-11-2009 04:20 PM

1 Attachment(s)
cellarius,

a) i've made russian translation for this hack, there are two language files since it is customary to run cyrillic forums either in windows-1251 (ansi) codepage or utf-8. i've attached them to this message.
b) i've made a little patch to make the script itself more friendly to non-ansi codepages. the diff is attached as well.

NetRover 04-11-2009 10:20 PM

Quote:

Originally Posted by Mark.B (Post 1788844)
I did say this earlier, but it needs saying again, this is one of the most useful and practical mods for vB for a long time.

It provides another much needed "link" between the vb album functionality and the forum posts, which is sadly lacking in many ways by default. It also works perfectly out of the box and looks like it came as part of vB.

The default nonsense about copying and pasting URLS from the album into the post is just impractical and nobody uses it. Now lots of my members are utilising the albims a lot more.

On that basis I have now nominated this mod for "Mod Of The Month".

I second these comments. This is going to be one of those must have mods. Probably one of the ones you would think twice about upgrading your forums if it no longer worked.

That's what I think anyway as my members would hate me if they lost it. :)

arcadian_girl 04-12-2009 09:08 AM

Can I just say I love this mod? It was always such a pain before when I want to post images in a certain order, and with attachments you cant, theyre just all on the bottom - no way to say "ok here is what happened first", and "then in this pic this happened" and "this is the pic I took last tuesday". Now with this mod, I can place pics wherever I want - love it :) and yeah, my members are suddenly using their photo albums a lot more :cool:

KenDude 04-12-2009 08:12 PM

Your vbgallery directory structure is not parsed correctly. For example I have a member who selected a photo and he gets this:

http://www.planetporsche.net/gallery...tige_thumb.jpg

What it "should" be is the following:

http://www.planetporsche.net/gallery...tige_thumb.jpg

The number corresponding to the memberid isn't a single directory (like 170 in this case for member #170) but rather it is parsed by each digit 1/7/0

Please fix and distribute an update! :)

Thx!

KenDude 04-12-2009 11:21 PM

Quote:

Originally Posted by wottech (Post 1730028)
Well, I was having some issues with vbGallery and it not showing any images. After looking at the debug code, I realized that the directory structure wasn't the same as what mine is. I have an older version of vbGallery, so the structure might have changed. Mine is setup such that the userid is split into single characters, so a user with an id of 1234 has images in a dir starting with /1/2/3/4/ instead of /1234/. Anyway, I'm attaching part of the code that needs to be changed in case anyone else has a file structure like this.

Code:

/*
###### Construct image bits ######
*/
function imagebits ()
{
        global $array;
        global $data_dir;
        global $url_path;
               
        $new_userid = '';
        for($i=0; $i<strlen($array['userid']); $i++)
        {
        $new_userid .= $array['userid'][$i] . "/";
        }
        $img['orig'] = $data_dir . $new_userid . $array['filename'];
        $filename_parts = pathinfo($array['filename']);
        $img['thumb'] = $data_dir . $new_userid . $filename_parts['filename'] . "_thumb." . $filename_parts['extension'] ;
        $img['med'] = "";
        $img['gallery'] = $url_path . "showimage.php?i=" . $array['imageid'];       

        return $img;
}

Everything works great now! Now its time to attempt the config file for the garage module. ;)


FYI I have the latest and greatest vbgallery, and it needed this too!


All times are GMT. The time now is 08:04 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.01309 seconds
  • Memory Usage 1,760KB
  • 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_code_printable
  • (7)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