vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Gallery for vBulletin 3.5.X (https://vborg.vbsupport.ru/showthread.php?t=92875)

Vizionz 08-16-2005 04:19 PM

i gave u access to the board harold so just check it out u will see the scro0ll right away and how its not good for me

Harald_T 08-16-2005 04:34 PM

Quote:

Originally Posted by jesus likes pie
is there any way harald, that instead of getting the newest additions to the gallery and show them on forumhome, it can grab random images?

I would like that...could you tell me how it can be done?

:)

There should be a way, yes. I'll check the code for it tonight, o.k.?

Harald_T 08-16-2005 04:46 PM

Quote:

Originally Posted by Vizionz
i gave u access to the board harold so just check it out u will see the scro0ll right away and how its not good for me

Check the attachment. Is it the problem i marked?

Vizionz 08-16-2005 04:49 PM

exactly

i removed a wallpaper to stop that scrolling right now. but if i can have it how it looks now if u refresh the board there this will be perfect for me and i am completely happy with the hack

Harald_T 08-16-2005 04:58 PM

I didn't found out the problem at first, cause if your using firefox, the problem isn't there. To avoid the problem you could:

- set the number of latest images displayed on forumhome to 4 or
- change the width of your forum a bit.
- decrease the width-settings of your thumbs

Vizionz 08-16-2005 05:02 PM

how do i set the latest images on forum to 4 ?

Harald_T 08-16-2005 05:04 PM

See here:

https://vborg.vbsupport.ru/showpost....&postcount=105

Vizionz 08-16-2005 05:08 PM

i cant believe i missed that :( sorry for all this time wasted man now your hack is awesome to me :) thanks for the help

clicked install :) works perfect now

Harald_T 08-16-2005 05:09 PM

No problem, that's why i'm here for.... :D

Harald_T 08-16-2005 06:52 PM

Oh, btw., the numbers under the thumbs are for:

- Comments
- Views

I've to fix this.

Wayne Luke 08-16-2005 07:00 PM

Quote:

Originally Posted by Harald_T
No problem, that's why i'm here for.... :D

Think you can answer my question?

https://vborg.vbsupport.ru/showpost....&postcount=115
https://vborg.vbsupport.ru/showpost....&postcount=119

mvigod 08-16-2005 08:19 PM

A nice addition would be a filter of some kind to optionally show all images in a particular thread.

Harald_T 08-16-2005 08:45 PM

@Wayne:
The problem is, it shows only the attachments of the first post. All other posts of the thread will be ignored. To change this, i think, the query has to be changed.

Regarding AVI's: Of course it's possible to create a new attachment-type for .avi but no thumb will be generated.

Harald_T 08-16-2005 08:49 PM

Quote:

Originally Posted by mvigod
A nice addition would be a filter of some kind to optionally show all images in a particular thread.

What do mean exactly? Could you be so kind and explain it a bit more?

Joe Gronlund 08-16-2005 10:03 PM

Quote:

Originally Posted by Harald_T
@Joe:

To remove the sticky-problem change the code for the gallery-plugin: hook.

Yes that fixed it,,

thanks :)

jesus likes pie 08-16-2005 10:43 PM

Harald if you do find otu how to make the "newest 4 additions" to just random 4, could you send me a PM with the post number?

I might miss it...and i dont want to :P

Harald_T 08-16-2005 10:55 PM

Ok. i will

jesus likes pie 08-16-2005 11:06 PM

thanks.

Harald_T 08-17-2005 03:49 PM

Change the code for the plugin: latest_gallery_images ->hook:forumhome_complete to:

Code:

// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
global $vbulletin;

$thumbs = $db->query_read("SELECT gallery, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE gallery='1' AND ". TABLE_PREFIX . "thread.forumid=". TABLE_PREFIX . "forum.forumid AND ". TABLE_PREFIX . "thread.firstpostid = ". TABLE_PREFIX . "attachment.postid AND ". TABLE_PREFIX . "attachment.dateline < " . TIME() ." ORDER BY RAND() LIMIT 4");

while ($gallery = $db->fetch_array($thumbs))
{
eval('$latestgallery .= "' . fetch_template('latestgallery') . '";');

This should do it.

Wayne Luke 08-17-2005 07:10 PM

Quote:

Originally Posted by Harald_T
@Wayne:
The problem is, it shows only the attachments of the first post. All other posts of the thread will be ignored. To change this, i think, the query has to be changed.

Hmm okay... looks nice, just won't suit my purposes.

mvigod 08-17-2005 08:49 PM

Quote:

Originally Posted by Harald_T
What do mean exactly? Could you be so kind and explain it a bit more?


Yes, let me try. The gallery as I understand it currently shows all images. What if there is a long thread of say 1000 posts and a user wants to view a gallery of all images that appear ONLY in that particular thread. This is what I meant by a filter or per thread "option". This probably would require just a modification of the current query to include only images from attachments that match the threadid.

Harald_T 08-17-2005 09:11 PM

This is, what Wayne wanted, i think. I'll give it a try and see, if i can change the query.

mooj 08-20-2005 08:13 AM

dear Harald_T,

i'm facing a prob .. could you kindly provide ur help .. :ermm:

i'm running RC2 but the board not generating the thumbs Automaticly .. i have to do ( Rebuild Attachment Thumbnails ) after adding a new post in order to display the thumbs ????
:surprised:

what could be the prob ?

Wordplay 08-20-2005 08:39 AM

you guys who have tried out the gallery for vbulletin 3.5 can you please let me know how good it is in this thread:
https://vborg.vbsupport.ru/showthread.php?t=94146

Harald_T 08-20-2005 09:15 AM

Quote:

Originally Posted by mooj
dear Harald_T,

i'm facing a prob .. could you kindly provide ur help .. :ermm:

i'm running RC2 but the board not generating the thumbs Automaticly .. i have to do ( Rebuild Attachment Thumbnails ) after adding a new post in order to display the thumbs ????
:surprised:

what could be the prob ?

Do you have Image Magick or similar installed? Check your Image-Options in your vB-Options.

lairnoc 08-20-2005 11:41 AM

anyone here to helpe me i get this error

Quote:

Warning: move_uploaded_file(/tmp/85b5492df69b3f59a90be3f3890d138e): failed to open stream: No such file or directory in \includes\class_upload.php on line 519

Warning: move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\php322D.tmp' to '/tmp/85b5492df69b3f59a90be3f3890d138e' in \includes\class_upload.php on line 519

Warning: getimagesize(/tmp/85b5492df69b3f59a90be3f3890d138e): failed to open stream: No such file or directory in \includes\class_image.php on line 1545

Warning: getimagesize(/tmp/85b5492df69b3f59a90be3f3890d138e): failed to open stream: No such file or directory in \includes\class_image.php on line 1545

Fatal error: Unable to proceed with save while $errors array is not empty in class vb_datamanager_attachment_database in \includes\class_dm.php on line 758

Harald_T 08-20-2005 01:41 PM

It sounds your SAFE_MODE is enabled.

lairnoc 08-20-2005 03:45 PM

yep fixed now thnx

small question how can i get more then 5 thumbs on the page?

Harald_T 08-20-2005 04:22 PM

On the thread itself? I think that 5 thumbs are maximum.

Or do you mean those on the forumhome-page?

lairnoc 08-21-2005 05:32 AM

forum home page

Harald_T 08-21-2005 08:39 AM

Change the code for the plugin "latest_gallery_images" Hook->forumhome_complete to:

Code:

// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
global $vbulletin;


$thumbs = $db->query_read("SELECT gallery, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE gallery='1' AND ". TABLE_PREFIX . "thread.forumid=". TABLE_PREFIX . "forum.forumid AND ". TABLE_PREFIX . "thread.firstpostid = ". TABLE_PREFIX . "attachment.postid AND ". TABLE_PREFIX . "attachment.dateline < " . TIME() ." ORDER BY ". TABLE_PREFIX . "attachment.dateline DESC LIMIT X");

while ($gallery = $db->fetch_array($thumbs))
{
eval('$latestgallery .= "' . fetch_template('latestgallery') . '";');
}

Replace 'X' with the amount of thumbs you wish.

That's it.

NuclioN 08-21-2005 10:28 AM

Does this work with SAFE MODE enabled?

Harald_T 08-21-2005 02:30 PM

Normaly: YES, because it's based on the normal Attachment-System of vBulletin. But myself i occured some strange errors after upgrading vB to 3.5.0. And i found out, that it was the SAFE-Mode. So i had to temporarily disable it.

Wordplay 08-21-2005 09:55 PM

i heard it's possible to export 4images images including the the comments, hits, ratings and all the other infos to vbgallery, if so how do i do that?

lairnoc 08-22-2005 06:52 AM

Quote:

Originally Posted by Harald_T
Change the code for the plugin "latest_gallery_images" Hook->forumhome_complete to:

Code:

// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
global $vbulletin;


$thumbs = $db->query_read("SELECT gallery, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum
WHERE gallery='1' AND ". TABLE_PREFIX . "thread.forumid=". TABLE_PREFIX . "forum.forumid AND ". TABLE_PREFIX . "thread.firstpostid = ". TABLE_PREFIX . "attachment.postid AND ". TABLE_PREFIX . "attachment.dateline < " . TIME() ." ORDER BY ". TABLE_PREFIX . "attachment.dateline DESC LIMIT X");

while ($gallery = $db->fetch_array($thumbs))
{
eval('$latestgallery .= "' . fetch_template('latestgallery') . '";');
}

Replace 'X' with the amount of thumbs you wish.

That's it.


Thnx a lot Harald_T it did the job suberb

Wordplay 08-22-2005 12:24 PM

Quote:

i heard it's possible to export 4images images including the the comments, hits, ratings and all the other infos to vbgallery, if so how do i do that?
anybody seen that question?

Harald_T 08-22-2005 08:09 PM

@Wordplay: This hack isn't vBGallery. I'm not sure, if it's possible, to convert the images. Because you need to convert them to normal attachment files, if you want to use the with this gallery-hack.

Nutz 09-02-2005 04:12 PM

Any chance at all that this could be changed to run on vB3.0.8 ?

Many Thanks
Mat

Harald_T 09-03-2005 12:44 PM

I would have to change the code, but yes, this is possible. I'll look after it next week.

Forumi Shqiptar 09-03-2005 04:46 PM

Followed all of the steps acordingly to the instructions uploaded and its giving me the message underneath any help will be appreciated:

Many thanks for ur replies
--------------------------------------------------------------------------------
Database error in vBulletin 3.5.0 Release Candidate 2:

Invalid SQL:
INSERT INTO vb3_forum
(title_clean, title, description_clean, description, link, displayorder, daysprune, parentid, newpostemail, newthreademail, options, styleid, password, minuserage, gallery, gallery_rows)
VALUES
('Prova Mbi Forumin', 'Prova Mbi Forumin', '', '', '', 0, -1, -1, '', '', 89799, 0, '', 0, '1', '5');

MySQL Error : Unknown column 'gallery' in 'field list'
Error Number : 1054
Date : Saturday, September 3rd 2005 @ 08:41:12 PM
Script : http://www.humori.net/*******/forum.php
Referrer : http://www.humori.net/******/forum.php?do=add
IP Address : *********
Username : [Elisi]
Classname : vb_database


All times are GMT. The time now is 04:59 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.01717 seconds
  • Memory Usage 1,825KB
  • 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
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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