vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - Ultimate Media Gallery LITE (https://vborg.vbsupport.ru/showthread.php?t=201533)

Coroner 01-16-2009 03:51 AM

Quote:

Originally Posted by inciarco (Post 1713858)
Family Time should Always be in First Place. :up::up::up:

I've looked in some of the .xlm files and I found one of the Codes you used to reference the Forum's root Directory, so the Code for $url in "swf" and "flv" cases on "umg_extensions.php" File should be (I've tested it and Works Fine this way):



- If you can also include on the "Media Information", on the "Category" Information, a Link to the Category, that would be very Nice, because right now the Users can only Browse to that Category on the Top Links (the ones you showed on your image), but if you see in PhotoPlog and my other Mods when the Category Info appears it also has a Link to that Category, (great for easily going back and see other Medias), also Users are not very smart using the Top Path Links; right now only appears the Name of the Category but without a Link to it. :confused:

- I've also checked the Link provided for the Medias, and I can see that it uses a URL that includes "umg_view.php" in it; that Link when included on a Post doesn't Work, so it would be better to use the simple "umg.php?m=zzz#media" URL (zzz for the number of the Media), that Works Very Well (the one Displayed on the Address Field of the Browser). :confused:

My Best Regards.

:)

Thank, for Info.
The Link: When you inside a medium/image you don't need those information (take a look at the navbar). You will see the category-link - or missunderstand it ?

Coroner 01-16-2009 03:56 AM

Quote:

Originally Posted by yourradio (Post 1714111)
Lets say I set the permissions for maximum width and height of an image to 1024 Px and file size to 200Kb. When user trying to upload an image that is bigger than these settings, is it possible that the gallery will resize it automatically to these settings I set in the permissions ?

Thank you.

That's not possible. I've upload the "original" image and I gave the permission.
Example: If uploaded an image with a width / height of 4096 ich can resize it to 1024 but ... what happend with the filesize ? Du you really think it's 200 Kb ?

Coroner 01-16-2009 04:07 AM

Quote:

Originally Posted by Dirtchamber (Post 1714170)
Hey there,

Great mod - I'm very impressed with it. I just have two questions that I hope you'll be able to help me out with:

1. When uploading a file, what would I need to change to make it so the text editor (for entering a description of the file) spawns with text already inside? So instead of just having an empty box, it would have, say, "Name, Age, Location" etc - like a form.

2. Is there an option to change the default display order on a gallery index? I know you can do it as a user, but I'd like to make a global change, that applies to all users.

Thanks for your help. And again - great work!
Dan

1.) template: umg_usercp_upload
(example) <input type="text" class="bginput" name="uploadtitle" id="tb_uploadtitle" value="enter your title" size="50" maxlength="50" />
The text in orange color ist that you need to change

2.) A global change for what ? Categories, Members Galerie .... ?

Dirtchamber 01-16-2009 04:24 AM

Quote:

Originally Posted by Coroner (Post 1714200)
1.) template: umg_usercp_upload
(example) <input type="text" class="bginput" name="uploadtitle" id="tb_uploadtitle" value="enter your title" size="50" maxlength="50" />
The text in orange color ist that you need to change

Thanks! :)

Quote:

A global change for what ? Categories, Members Galerie .... ?
Oh, sorry - for a category within a public gallery.

yourradio 01-16-2009 04:33 AM

Quote:

Originally Posted by Coroner (Post 1714183)
That's not possible. I've upload the "original" image and I gave the permission.
Example: If uploaded an image with a width / height of 4096 ich can resize it to 1024 but ... what happend with the filesize ? Du you really think it's 200 Kb ?

Let's forget about the file size.. and still, will it be possible to autoresize on upload using Imagemagick or GD library?

If not, then is it possible to make all files to be uploaded on the external server ?

Thank you.

Coroner 01-16-2009 06:02 AM

Quote:

Originally Posted by Dirtchamber (Post 1714223)
Thanks! :)



Oh, sorry - for a category within a public gallery.

Users can't create a category in a public gallery. So, only the Mod, sMod or Admin (with permission) can create it.

Coroner 01-16-2009 06:04 AM

Quote:

Originally Posted by yourradio (Post 1714233)
Let's forget about the file size.. and still, will it be possible to autoresize on upload using Imagemagick or GD library?

If not, then is it possible to make all files to be uploaded on the external server ?

Thank you.

You can't upload it on an external server. All files were upload in "umg_gallery/images/$gallery/...."

Dirtchamber 01-16-2009 09:18 AM

Quote:

Originally Posted by Coroner (Post 1714314)
Users can't create a category in a public gallery. So, only the Mod, sMod or Admin (with permission) can create it.

Okay, but as admin, how can I set it so that a category in a public gallery displays images in a certain way (in this case, lastest first) as default?

Coroner 01-16-2009 02:40 PM

There is NO option for a sortorder inside a category.

you can try this:
in umg_global.php search for:
Code:

                        if ($vbulletin->GPC['sort'] == 'name' OR $vbulletin->GPC['sort'] == 'date')
                        {
                                if ($vbulletin->GPC['sort'] == 'name') $sort_by = ' ORDER BY media.title ' . $vbulletin->GPC['sortwho'] . ' ';
                                if ($vbulletin->GPC['sort'] == 'date') $sort_by = ' ORDER BY media.dateline ' . $vbulletin->GPC['sortwho'] . ' ';
                        }

and change it into
Code:

                        if ($vbulletin->GPC['sort'] == 'name' OR $vbulletin->GPC['sort'] == 'date')
                        {
                                if ($vbulletin->GPC['sort'] == 'name') $sort_by = ' ORDER BY media.title ' . $vbulletin->GPC['sortwho'] . ' ';
                                if ($vbulletin->GPC['sort'] == 'date') $sort_by = ' ORDER BY media.dateline ' . $vbulletin->GPC['sortwho'] . ' ';
                        }
                        else
                        {
                                $sort_by = ' ORDER BY media.dateline ASC';
                        }

were ASC stands for oldest - change into DESC for newest

inciarco 01-16-2009 08:20 PM

Quote:

Originally Posted by Coroner (Post 1714179)
Thank, for Info.
The Link: When you inside a medium/image you don't need those information (take a look at the navbar). You will see the category-link - or missunderstand it ?

In the Navbar the Link is always Ok, (vBulletin Generated), what I mean Coroner is in the Media Information, where is the Title, Description, Uploader (her appears Link to Forumer Ok), Category (here is where is missing the Link to the Category, for fast Browsing of Viewers), Uploaded, Hits, Filesize and the rest of the Media Info. Here, in this Table, in that Particular Cell of Category is where the Link if missing. :confused:

Not much People use the Navbar too well, so that Link is important for them to Browse back to the Category and look for other Medias. ;)

(That Link appears Ok in other Tables like in the UMG Home under "Newest Images / Medias" under each New Media, you see Information like the Title (with Link to Media Ok), Category (with Link to Category where the Media Uploaded, this is the Link that is missing in the Media Page), Uploader (Link to Forumer Ok), Filesize, Hits and Rating. ;)

My Best Regards, I'll be waiting for the Next Release of the Media Gallery. :up:

:)

inciarco 01-16-2009 08:38 PM

One More Thing I Just Noticed Playing with the Options: On UMG Home, on the List of "Newest Images / Medias", the medias don't organize themselves in rows but occupy as much columns as Number of Medias are chosen to be displayed on "Ultimate Media Gallery - Global" Options; is important for you to set another Option for Max. number of Columns to use to Display the "Newest Thumbnails"; you provide the option for "Number of newest thumbnails to display on index", so you'll calculate the number of rows as you do with the Option "Thumbnail Columns of the Category Display" to Display the Medias on the Categories and the option for "Number of Thumbnails" which are the ones Displayed per page on each Category. I also noticed that the First Column of the "Newest Images / Medias" (for that First New Media) gets affected and Visually not Good when Choosing few New Medias to Display, you'll see that the width is Way Larger than the other Ones, they don't distribute nor get centered when there are too few to be Displayed. :confused:

I Hope you can include that on your Next Update, Coroner. ;)

My Best Regards.

:)

Coroner 01-17-2009 09:09 AM

Quote:

Originally Posted by inciarco (Post 1715074)
One More Thing I Just Noticed Playing with the Options: On UMG Home, on the List of "Newest Images / Medias", the medias don't organize themselves in rows but occupy as much columns as Number of Medias are chosen to be displayed on "Ultimate Media Gallery - Global" Options; is important for you to set another Option for Max. number of Columns to use to Display the "Newest Thumbnails"; you provide the option for "Number of newest thumbnails to display on index", so you'll calculate the number of rows as you do with the Option "Thumbnail Columns of the Category Display" to Display the Medias on the Categories and the option for "Number of Thumbnails" which are the ones Displayed per page on each Category. I also noticed that the First Column of the "Newest Images / Medias" (for that First New Media) gets affected and Visually not Good when Choosing few New Medias to Display, you'll see that the width is Way Larger than the other Ones, they don't distribute nor get centered when there are too few to be Displayed. :confused:

I Hope you can include that on your Next Update, Coroner. ;)

My Best Regards.

:)

Furst, the post before - I understand and it's in Upgrade.

And this QUOTE - sorry, don't understand what you mean :confused:
You can set the number of images/medias to display. And this is what it shows.
Did you mean rows/columns ?

inciarco 01-17-2009 12:03 PM

Quote:

Originally Posted by Coroner (Post 1715525)
Furst, the post before - I understand and it's in Upgrade.

And this QUOTE - sorry, don't understand what you mean :confused:
You can set the number of images/medias to display. And this is what it shows.
Did you mean rows/columns ?

In my case, if I set more than 5 Thumbnails/Medias to Display on UMG Home then they're presented on the same row (getting out of the screen). I can see that You've Limited on your Code the Display of Maximum 9 Thumbnails (Random at the Top and Newest at the Bottom of the Page), but in my case with more than 5 they get out of the screen (the Newest); I'd also be nice not to limit the Number of Newest Medias/Thumbnails to Display (in case someone wishes to Display more than 9).

My Best Regards.

:)

Dirtchamber 01-18-2009 03:19 AM

Quote:

Originally Posted by Coroner (Post 1714738)
There is NO option for a sortorder inside a category.

you can try this...

That worked perfectly! Thank you!

That said, I tried your suggestion for making a text editor appear with text already inside, and I realise I didn't properly explain what I meant.

What I wanted to do - and still want to do - is make it so that the "Description" WYSIWYG editor on the upload page appears with text already inside. Is that possible?

Also, I notice that the text editor on that page doesn't have WYSIWYG enabled by default. Is there a way I can toggle that?

I apologise for asking so many questions, and I'm grateful for any help you can provide. If I can do anything in return, let me know.

Thanks,
Dan

Coroner 01-18-2009 08:16 AM

Texteditor in Upload-form.

search in umg_upload.php
Code:

$vbulletin->userinfo['showvbcode'] = 1;
$editorid = construct_edit_toolbar ('', $umg_html_allowed, 'nonforum', $umg_smilie_allowed, 12345678 + $vbulletin->GPC['c']);

and change into
Code:

$vbulletin->userinfo['showvbcode'] = 2;
$editorid = construct_edit_toolbar ('your text here', $umg_html_allowed, 'nonforum', $umg_smilie_allowed, 12345678 + $vbulletin->GPC['c']);


inciarco 01-28-2009 04:08 AM

I'm Testing the Last Version 1.4.4, Coroner.

So Far Ok. I've Noticed that You Corrected the Main Page Presentation of the Videos (To be able to Present more than 5 Videos, the Only Thing is that the Left Videos's Tables are Wider than the others) and the FLV Player Runs Ok Now. :up::up::up:

I've noticed that on Template "umg_usercp_category" is Still the Sentence "?do=usercp" that is Causing the Problem to Create Categories, so I Quote Again your Solution for this so that Forumers Using your Mod can Solve that Problem (if it presents it self on their Boards) :confused::

Quote:

Search the template "umg_usercp_category" and locate this line:
<form action="umg.php?do=usercp" method="post">

pls change it into:
<form action="umg.php" method="post">
I Installed Overwriting the Files and Also Overwriting the Old Product on ACP Product Import.

My Best Regards. I'll Keep Testing and I'll Share You Anything I Find.

:)

inciarco 01-28-2009 05:06 AM

There are some Bugs on the Comments System, Coroner:

When Posting the Comments via Quick Reply to the Medias on WYSIWYG Editor Mode, the Post is made with HTML Code and Displayed like this :confused::

Quote:

<P>Prueba 2</P>
<P> </P>
<P>:)</P>
And the Signatures Pics Below are Always Displayed Like This, No Matter the Editor Mode :confused::



On Normal Mode the Posts are made Ok, but the Signature Pics are Not Displayed Well :confused:.

The Complete Reply with the Complete Editor has a Bug when on WYSIWYG mode, when Entering a Reply that is too Short and Going Back to Change it, it Shows HTML Code.

Also on Complete Reply when on Normal Editor the Mod Allows Postings of Any Lenght Even if is too Short :confused:.

I Hope You Can Fix those Bugs (I'll Keep Testing).

My Best Regards.

:)

Coroner 01-28-2009 12:20 PM

Thx for testing, will take a look and try to fix it.

inciarco 01-28-2009 04:35 PM

I'm Glad To Help. ;)

I Like This Mod a Lot, being able to Upload Medias (Audio, Video and also Images) is Very Useful for Many Purposes. :up:

I forgot to mentione it on my Previous Posts, I think the Option Menus would look nicer Centered; I tried it and Found the Template to do it, I share the part of that Template where I applied/added the Code to Center the Options/Titles/Texts:

Template umg_main:

Code:

$gal_active
$gallery_random
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" class="tborder" style="width:100%">
 <tr>
  <td class="thead" align="center">$vbphrase[umg_title]</td>
 </tr>
 <tr>
  <td class="alt1" align="center">$vbphrase[umg_navigation]</td>
 </tr>
</table>
<div class="tborder" style="padding:1px; border-top-width:0px" align="center">

I added the Three (3) align="center" Codes to Center the Three Rows of the Table that Contains the Title, the Navigation Text, and the Menus.

My Best Regards, Coroner.

:)

Coroner 01-28-2009 06:47 PM

I know :) And I've did the Update for you.
Please, check the Editor out. I've test it - without any bugs.
The signaturepics on my wife's forum are all ok :confused:

So, I'll be waiting for your feedback

Regards inciarco

inciarco 01-29-2009 05:50 PM

The Signature Pics are still Not Displaying; perhaps you did something on the Pro Version and not on the Lite Version. :confused: Is Displayed as :(

The Problem with the WYSIWYG Editor with HTML Tags seems to be corrected.

I found another Bug on WYSIWYG Editor and is that if you set a BB Code on Normal Editor and Switch to WYSIWYG Editor then it doesn't get converted to the Icon, the same with other BB Codes. :confused:

On "umg_newest_pics" I Found that $colspan isn't being calculated well; if I introduce the code colspan="4" with the number of columns of Latest Medias of the Options, then the Width isn't Affected on the first column, (I saw that on Pro Version on your Web Site is working fine so there's something on the Pro that you didn't changed on the Lite Version).

I'll Keep Testing and Sharing my Results.

My Best Regards.

:)

Coroner 01-31-2009 04:32 AM

For BBCodes and Smilies:

In the product add this:
Code:

    <plugin active="1" product="umg">
      <title>UMG - parse Smilies</title>
      <hookname>bbcode_parse_start</hookname>
      <phpcode><![CDATA[
if ($forumid == 'umgeditor')
{
        $dohtml        = $this->registry->options['umg_com_html'];
        $dobbimagecode = $this->registry->options['umg_com_images'];
        $dosmilies    = $this->registry->options['umg_com_smilies'];
        $dobbcode      = $this->registry->options['umg_com_bbcode'];
}
      ]]></phpcode>
    </plugin>

This will parse the smilies. It's include in the next update

inciarco 01-31-2009 05:02 AM

I added the Plugin as "UMG - parse Smilies" and Works Fine when Switching the Editors.

But the [SIGPIC ][ /SIGPIC] still shows as BBCode not as Image. (Perhaps you did that Update on the Pro Version and not in this Lite one).

My Best Regards.

:)

Coroner 02-01-2009 04:31 PM

Fix the Problem with the SIGPIC.

subte 02-13-2009 02:35 PM

just installed it, works fine, and looks like a great mod, In this lite version there are only 5 categories? thanks!

Coroner 02-13-2009 04:22 PM

Yes, that's true.

slowphantom 02-19-2009 04:28 AM

thx for the mod its realy nice
i got 2 error
frist
Warning: Invalid argument supplied for foreach() in [path]/umg_gallery/umg_page.php on line 324
and secend
the page is left to right
i want it to be right to left any idea ?
th

whem 03-03-2009 08:22 AM

hi
thank you for this great mod ..

I install it in my local server ..
when I try to upload swf file I see this error :

Filename CivicChoir.swf has the wrong extension, is too big or has the wrong dimensions!

any Idea ?

thank you ..

Coroner 03-03-2009 09:09 AM

How is the filesize of your SWF and what filesize is allowed ?

SVTCobraLTD 03-03-2009 03:32 PM

Going to install on 3.6.11. If this works as it seems, its exactly what I wanted. A picture and video gallery.

SVTCobraLTD 03-04-2009 12:59 PM

Do I install the Highslide Javascript and video player in the forums folder or where?

Coroner 03-04-2009 01:42 PM

Upload the files and folders as they are.

Highslide is in:
a.) clientscript/
b.) umg_gallery/images/highslide

whem 03-07-2009 08:03 AM

thanks Coroner

now I upgrade to vb 3.8.1 and now I can upload swf and flv files

but I cant see the player

http://c4upload.com/w1/2009/03/07/c4...m_39093876.jpg

and when click on it I see just black secreen

http://c4upload.com/w1/2009/03/07/c4...m_19145437.jpg

please help and thank to you :)

Coroner 03-07-2009 08:52 AM

You can try the following:
open umg_extensions.php

locate:
Code:

case 'flv':
                $width  = $ext['flv']['width'];
                $height = $ext['flv']['height'];
                $url    = $vbulletin->options['bburl'] . '/' . $media_url;
                $src    = 'umg_gallery/player/flvplayer.swf';
                $mtpl  = 'flashext';
                $mime  = 'application/x-shockwave-flash';
                break;

a.) if your code is the NOT the same, change it like this
b.) if your code IS the same like this, change:
Code:

$url    = $vbulletin->options['bburl'] . '/' . $media_url;
into
Code:

$url    = $media_url;

whem 03-08-2009 08:13 AM

Hi ..

thanks Coroner
it was the same like that code
and I make the change to

Code:

$url    = $media_url;
but it still the same problem ..

can use the player like youtube view the player in the page NOT by clicke on the icone ?

Coroner 03-08-2009 09:14 AM

We had this problem without: $vbulletin->options['bburl']

I've testet it in the Lite and the PRO - no problems. Sorry :(

stieger 03-16-2009 08:24 PM

I have installed the gallery at Flugzone.ch where can i find the link to the Galler? I see nowhere th elink sorry for this question and my english but i cant see th eLinkks ?:mad:

Coroner 03-17-2009 06:32 AM

Quote:

Originally Posted by stieger (Post 1769955)
I have installed the gallery at Flugzone.ch where can i find the link to the Galler? I see nowhere th elink sorry for this question and my english but i cant see th eLinkks ?:mad:

You need to create yourself the link in the navbar

stieger 03-17-2009 07:19 PM

hello,

i need a link to which file ? umg.php ?
i can't see something by flugzone.ch/umg.php > the system say > you have no rights to see this page!
But i'm the Admin of the Page ?

Sorry for my English normal i speak Swiss German :-)

SVTCobraLTD 03-20-2009 04:10 PM

Database Error

Code:

Database error in vBulletin 3.6.10:

Invalid SQL:

SELECT
userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
language.phrasegroup_album AS phrasegroup_album,
language.phrasegroup_user AS phrasegroup_user,
language.phrasegroup_search AS phrasegroup_search,
language.phrasegroup_posting AS phrasegroup_posting,
language.phrasegroup_umg AS phrasegroup_umg,
language.phrasegroup_showthread AS phrasegroup_showthread,
language.phrasegroup_global AS phrasegroup_global,
language.options AS lang_options,
language.languagecode AS lang_code,
language.charset AS lang_charset,
language.locale AS lang_locale,
language.imagesoverride AS lang_imagesoverride,
language.dateoverride AS lang_dateoverride,
language.timeoverride AS lang_timeoverride,
language.registereddateoverride AS lang_registereddateoverride,
language.calformat1override AS lang_calformat1override,
language.calformat2override AS lang_calformat2override,
language.logdateoverride AS lang_logdateoverride,
language.decimalsep AS lang_decimalsep,
language.thousandsep AS lang_thousandsep

FROM user AS user
LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid)
LEFT JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) LEFT JOIN language AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid))

WHERE user.userid = 1;

MySQL Error  : Unknown column 'language.phrasegroup_album' in 'field list'
Error Number : 1054
Date        : Friday, March 20th 2009 @ 12:17:42 PM
Script      : http://www.XXXXXX.com/forums/umg.php
Referrer    :
IP Address  : XX.XXX.XXX.XXX
Username    :
Classname    : vB_Database


What am I missing?


All times are GMT. The time now is 08:00 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.01637 seconds
  • Memory Usage 1,874KB
  • 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
  • (11)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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