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)

vBintense 08-07-2005 03:31 PM

Quote:

Originally Posted by Joe Gronlund
How do you go about uploading it as a product?

I just uploaded it directly as an XML file..

Thanks

Joe

Admincp [plugins] >> manage products >> import (at the bottom)

Joe Gronlund 08-07-2005 03:40 PM

Quote:

Originally Posted by insane-topics
Admincp [plugins] >> manage products >> import (at the bottom)

I see now,, thank you :)

ThePimp 08-08-2005 04:00 AM

This plugin has problems with DB prefixes. It's a pretty nasty error. Can't get it to work properly at all. Uninstalls until bugs are worked out.

Harald_T 08-08-2005 08:51 PM

You're right. That is still not be done. I'll fix it tomorrow.

Harald_T 08-09-2005 08:25 PM

@Pimp: Just try the latest version. It should handle prefixes now.

ThePimp 08-10-2005 09:11 AM

Is there a way to get this on the ForumDisplay under the navbar also?

ThePimp 08-10-2005 09:36 AM

Also, Rating & Filesize don't seem to be working. Is this rating system based on vb's built in rating system?

EDIT: Is there a way to remove the Thread Message box from the Gallery Forums, and make it Uploads Only?

EDIT 2: N/M on the rating thing, I had it set to 5 votes before showing a rating.

EDIT 3: Does this split into multiple pages at some point? Or is it just one long thumb gallery?

Gizmo5h1t3 08-10-2005 01:59 PM

same here, rating and filesize arent working on mine....also, usinbg the microstats hack, im getting a display of uncached templates at the base of the page...

Quote:

Uncached templates: forumdisplay_gallery (1)
Uncached templates: latestgallery (5)
Uncached templates: threadbit_gallery (11)

Joe Gronlund 08-10-2005 02:07 PM

Is there any way to get this hack to work with the seperate stickies from normal threads hack? When the gallery is turned on, all the sticky threads go back to being unseperated...

Thanks for any help you can give...

Harald_T 08-10-2005 04:39 PM

@Pimp: Rating - Atm it uses the normal rating system of vB. I'm planing of adding more rating points.

Only upload: That's a problem at the moment, as Jelsoft changed the way to build up the postbit. I'm trying to find out how the new function works.

The page breaks after a couple of postings (in my forum it's set to 20). Check out your normal vBulletin-Options, there you can set it.

@Gizmo: Yup, you're right. I think i'll make another plugin for this.

@Joe: Can you show me an example for this?

Joe Gronlund 08-10-2005 04:54 PM

Quote:

Originally Posted by Harald_T

@Joe: Can you show me an example for this?

Sure

Here is a screenshot with the stickies thread hack, without the gallery XML uploaded..

http://www.jadedsouls.net/joe/gallery_prob_1.jpg

Here is a screenshot with the stickies thread hack, with the gallery XML uploaded.. Note the threads are all together...

http://www.jadedsouls.net/joe/gallery_prob_2.jpg

-Forums are ver 3.5.0 RC2-


Thanks for any help you can provide...

Joe

Harald_T 08-10-2005 09:01 PM

I think it must be a problem of the threadbit. I'll have a look after it.

ThePimp 08-11-2005 12:50 PM

Quote:

Originally Posted by Harald_T
@Pimp: Rating - Atm it uses the normal rating system of vB. I'm planing of adding more rating points.

Only upload: That's a problem at the moment, as Jelsoft changed the way to build up the postbit. I'm trying to find out how the new function works.

The page breaks after a couple of postings (in my forum it's set to 20). Check out your normal vBulletin-Options, there you can set it.

@Gizmo: Yup, you're right. I think i'll make another plugin for this.

@Joe: Can you show me an example for this?

I'm not sure if I caught the answer to this...
Is there a way to add this to the ForumDisplay?

Also, I checked my vbOptions... And have all of my page splits set to 50. My current gallery is displaying 120 (approx) with no split yet.

Any ideas?

Harald_T 08-11-2005 03:30 PM

That's strange. I've checked it twice, and it works fine. Check out my gallery for it:

http://www.scifi-fan.net/forumdisplay.php?f=60

Otherwise, is it possible to have a look inside your forum? Or is it a local installation?

ThePimp 08-12-2005 12:55 AM

I'll dig around and see if I can figure out what's going on with the pages.

*Also.....
My Unregistered / Not Logged in users see RedXs, as I don't want to allow them to view attachments. Is there a way to show them a default graphic instead, that tells them to register to view the images?

Harald_T 08-12-2005 03:39 PM

I think there is a way to do this, yes.

My Todo-List is getting bigger. Thanks god i have a free week next week... :D

ThePimp 08-13-2005 02:55 AM

Quote:

Originally Posted by Harald_T
I think there is a way to do this, yes.

My Todo-List is getting bigger. Thanks god i have a free week next week... :D

YAY! LOL... I'll look foward to it. I think the Unregistered thing has something to do with the permissions, but I just don't know which variable to pull from, otherwise, I'd do it myself.

Harald_T 08-13-2005 10:39 AM

Did you thought on something like this (see attachment)?

Then you have to change the template "threadbit_gallery" to the following:

Code:

$ids[forumids]
        <if condition="$rows">
        <if condition="$rows == 1">
        </tr><tr>
        </if>       
        <td class="alt1Active" id="t$thread[threadid]" title="$thread[preview]" align="center" width="170" height="170">
<table>
<tr>
<if condition="$show['member']">
<td width="170" height="170" align="center">
                            <if condition="$displaythumbs">
                                    <a HREF="attachment.php?attachmentid=$thread[attachmentid]">
                                          <img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" border=0 align="center">
                                </a><br>
                            <else />
                                <img src="$stylevar[imgdir_misc]/nothumb.gif" width=75 height=56 border="0">
                            </if>
<br />
</td>
</tr>
<tr>
<td class="tborder">
                <table width="100%" cellpadding="3" cellspacing="0">
        <tr class="tcat">
        <td colspan='2' align="center">
        <div class="smallfont" align="center">
                        $thread[movedprefix]
                        $thread[typeprefix]
               
                        <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]">
                        $thread[threadtitle]
                        </a>
                </div>
        </td>
        </tr>
        <tr class="thead">
        <td class="smallfont" align="left">
        Benutzer:
        </div>
        </td>
                                <td>
        <div class="smallfont">
                        <if condition="$show['guestuser']">
                                $thread[postusername]
                        <else />
                                <span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')">$thread[postusername]</span>
                        </if>
                </div>
        </td>
                        </tr>
<tr class="alt1">
<td class="smallfont">$vbphrase[gallery_comments]</td>
<td class="smallfont">$thread[replycount]</td>
</tr>
<tr class="alt1">
<td class="smallfont">$vbphrase[gallery_views]</td>
<td class="smallfont">$thread[views]</td>
</tr>                       
<tr class="alt2">
<td>
<div class="smallfont">
Bewertung:
</div>
</td>
<td>
<if condition="$show['threadratings'] AND $show['threadrating']">
                        <span style="float:$stylevar[right]">
                        <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" />
                        </span>
</if>
</td>
</tr>
<tr class="alt2">
<td>
<div class="smallfont">
Filesize: $attachment[filesize]
</div>
</td>
<td>
&nbsp;
</td>
</tr>
</table>
</td>
<else />
<td>
<img src="images/misc/register.jpg">
</td>
</if>
</tr>
</table>
</td>
</if>

and for the review on forumhome you have to change the template "latestgallery" to:

Code:

<td class="thead" align="center">
<table align="center">
<tr>
<if condition="$show['member']">
<td align="center">
<a HREF="attachment.php?attachmentid=$gallery[attachmentid]">
<img src="attachment.php?attachmentid=$gallery[attachmentid]&stc=1&thumb=1" border=0 align="center"></a>
</td>
</tr>
<tr>
<td align="center">
<br />
<a href="showthread.php?t=$gallery[threadid]">
$gallery[title]
</a>
</td>
<else />
<td>
<img src="images/misc/register.jpg">
</td>
</if>
</tr>
</table>
</td>

be sure to upload picture called "register.jpg" to /images/misc/.

Harald_T 08-14-2005 09:10 AM

@Joe:

To remove the sticky-problem change the code for the gallery-plugin: hook->threadbit_gallery (it should be the last one in the plugin-list)

Code:

//####################Gallery-Modification######################
$pics_per_row=$foruminfo[gallery_rows];
//####################End Gallery-Modification##################


if ($thread['sticky'])
                        {
                                $threadbit =& $threadbits_sticky;
                        }
                        else if ($displaythumbs == true)
                        {               
                                $threadbit = &$threadbit_gallery;
                        }
                        else
                        {
                                $threadbit = &$threadbits;
                        }

                       
                if ($rows>=$pics_per_row)
{
                $rows=0;
                }
                $rows=$rows+1;

Now it should work fine again.

Vizionz 08-15-2005 11:51 AM

if i missed something sorry but how can i change the thumbnails shown on forum and how to make that a closeable table. *note i guess i found out how just editing the rows :( thought that was for the main gallery page and how many rows down it goes ..

okay now with that how many pictures will actually go in there will it just keep going and going and going. or is this script have pages so like 20 to 40 pictures per page ? if not should be next addition

jesus likes pie 08-15-2005 08:37 PM

I'm quite confused...

So I've done everything but the part that isnt working too hot is making the forums...

I did this:

MADE new forum and made it a category, with display order 0 and is "acting as gallery" I then made a child forum (parent is the category that I had made) and left it as display order 1 (still cant be seen cause parent is 0), acts as gallery, and has 4 rows.

When I click on the link to go there it says "Sorry! This forum is not accepting new posts."

Whats going on?

shardex 08-16-2005 01:48 AM

I am trying to convert the original hack to 3.5 and am having trouble with this code in the forumdisplay.php:

PHP Code:

$sql_threads "SELECT $votequery $previewfield    thread.threadid, thread.title AS threadtitle, ".
         
"thread.forumid, pollid, open, replycount, postusername, postuserid, ".
         
"thread.iconid AS threadiconid, $lastpost_info, thread.dateline, ".
         
"IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, ".
         
"sticky, votetotal, thread.attach,    hiddencount ".
         
iif($displaythumbs == true", MIN(attachment.attachmentid) AS attachmentid ").
         
iif($vbulletin->options['threadsubscribed'] AND $vbulletin->userinfo['userid'], ", NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed").
         
iif($deljoin", deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason").
         
iif($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid'], ', threadread.readtime AS threadread'). 
            
"$hook_query_fields ".
            
"FROM " TABLE_PREFIX "thread AS thread ".
            
"$deljoin ".            
        
iif($vbulletin->options['threadsubscribed'] AND $vbulletin->userinfo['userid'], " LEFT JOIN " TABLE_PREFIX "subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = " $vbulletin->userinfo['userid'] . ")").
            
iif($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid'], " LEFT JOIN " TABLE_PREFIX "threadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = " $vbulletin->userinfo['userid'] . ")").
            
"$previewjoin ".
            
"$tachyjoin ".
            
"$hook_query_joins ".
        
iif($displaythumbs == true"LEFT JOIN ".TABLE_PREFIX."attachment as attachment ON(attachment.postid = thread.firstpostid) ").
        
"WHERE thread.threadid IN (0$ids$hook_query_where ".
        
"ORDER BY sticky DESC, $sqlsortfield $sqlsortorder ";
    
$threads $db->query_read($sql_threads);
    unset(
$limitothers$delthreadlimit$deljoin,$datecut$votequery$sqlsortfield$sqlsortorder$threadids); 

I am basically trying to follow the original format but adapt it for 3.5 since there is a bit if a difference in the $sql_threads variable. I figure you have overcome this and so I was wondering if you could help me out?

Cheers,

Harald_T 08-16-2005 07:15 AM

Quote:

Originally Posted by jesus likes pie
I'm quite confused...

So I've done everything but the part that isnt working too hot is making the forums...

I did this:

MADE new forum and made it a category, with display order 0 and is "acting as gallery" I then made a child forum (parent is the category that I had made) and left it as display order 1 (still cant be seen cause parent is 0), acts as gallery, and has 4 rows.

When I click on the link to go there it says "Sorry! This forum is not accepting new posts."


Whats going on?

You don't need to set "Act as gallery" for the category. It isn't neccessary.
Your error sounds like you set the forum closed or something like this.

@Shardex: Do you try to convert my old gallery-hack or the thumbnail-hack? The code looks like the one for the thumbnail-hack from Delphy (i've made also an conversion for the thumbnail-on-forum-display-hack to 3.5).

Vizionz 08-16-2005 08:57 AM

how do i change it to show only 4 thumbnails instead of 5

Harald_T 08-16-2005 10:21 AM

I assume you mean on the Forumhome-Page?

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 4");

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

That's it.

Harald_T 08-16-2005 10:29 AM

Quote:

Originally Posted by Vizionz
if i missed something sorry but how can i change the thumbnails shown on forum and how to make that a closeable table. *note i guess i found out how just editing the rows :( thought that was for the main gallery page and how many rows down it goes ..

okay now with that how many pictures will actually go in there will it just keep going and going and going. or is this script have pages so like 20 to 40 pictures per page ? if not should be next addition

How many Thumbs are shown on one page is depending on how many threads are displayed on one page. You find this option in the vBulletin-Options under "Forum-Display-Options"->Maximum Displayed Threads Before Page Split. If you set it by 10 then only 10 thumbs per page will be shown (but only 10 threads also). I'm thinking of making this separate for the gallery.

Vizionz 08-16-2005 11:40 AM

thats horrible then :( so that means no matter what it will keep showing thumbs ?
so your page is gonna scroll all crazy. or you will have to have like 950 pages of posts for a big topic this should be a main concern to make this hack worth anything

Harald_T 08-16-2005 11:46 AM

It's not meant for the posts of a thread, but for the amount on threads displayed on your forumdisplay.

For example: If you set "Maximum Displayed Threads Before Page Split" to 100, then in your normal forums will be 100 threads shown, before page breaks. In the gallery there will be shown 100 thumbs. Depending on the number of rows, you've set in the gallery-options, the page won't be so long. If you set it to e. g. 5 rows, there will be 20 coloumns on the page.

But as i said, i'm thinking of making this independend from the forum.

jesus likes pie 08-16-2005 11:53 AM

Quote:

Originally Posted by Harald_T
But as i said, i'm thinking of making this independend from the forum.

That would be very good.


As for Vizionz, you may notice that each forum (not thread) has pages (if well, its an active forum). So a forum looks like a thread, except that instead of posts, you get threads. And after X amount of threads, a new page is made.

Harald_T 08-16-2005 11:57 AM

@jesus: Did you check your settings for your category? I've looked at your forum, and it could be one of the other hacks that ist "shooting" between.

Vizionz 08-16-2005 12:17 PM

i set threads before page split to 1 and it still showed 5 thumbnails

and rows in galllery 4

so i dont undertsnad it i just know this wont work for me if theres no way to control that so i can have 4 thumbnails instead of 5 or more unless i can marquee that forum home table or something :(

Harald_T 08-16-2005 02:28 PM

WHERE did it show 5 thumbnails? On forumhome or on the forumdisplay-page?

Is it a local forum for testing or can i have a look inside it?

Vizionz 08-16-2005 02:43 PM

its public and the forum home page where it shows the last gallery images

Wayne Luke 08-16-2005 02:46 PM

What is the issue if there is more than one image per thread? I have threads with many attachments with up to 5 per post. I am increasing the per post limit to 10 images.

Vizionz 08-16-2005 02:56 PM

its not a issue with vbulletin you guys are doing it right hehe ..

its a issue of the hack not being able to grab the 5 attachments and putting it in the gallery

this hack is great but needs some work..

1.ya need to be able to control the forum latest gallery so you can have 12 thumbnails or 50 or 4 if ya want..

2. multi attachments should be supported or give the actual gallery hack its own settings so that gallery forum only accepts 1 attachment while all the other forums are left alone...

3. need a definition of what the numbers are under the thumbnails in the gallery...

besides that its a great start i like the gallery i just trying to point out how to better it

jesus likes pie 08-16-2005 03:13 PM

Mine is working fine now. I was just stupid and made the gallery navbar link, link to the wrong forum......

doh!

If you upload more than one it makes seperate images on the gallery, put they are still on the same "thread"....which i like.

Vizionz 08-16-2005 03:19 PM

does it ? so if i attach 5 images it will ad them 5 images ? i thought it wouldnt!
i like the gallery i just dont like that its putting up 5 thumbnails and scrolling my forum. if it would only put up 4 then when a new one is added the oldest is not show anymore i would love this hack

Wayne Luke 08-16-2005 03:43 PM

Quote:

Originally Posted by Vizionz
its not a issue with vbulletin you guys are doing it right hehe ..

its a issue of the hack not being able to grab the 5 attachments and putting it in the gallery

I meant in regards to the addon. I absolutely need something that can pull a 100 or more attachments out of a single thread. The site is for a very fast paced MMORPG and if you take screenshots during a combat sequence you can easily get a dozen or more. I mean an 8 man team in the game can easily be facing 50 or more bad guys at a time.

Would be nice if you could pull AVIs into the gallery as well. I know you can't view them (or maybe you could) but our game also allows us to record it for as long as we want and these recordings can be changed into AVIs really easy.

Harald_T 08-16-2005 03:52 PM

@Wayne: That shouldn't be a Problem, you should be able to upload AVI's as any normal attachment, or not? The only issue is, that the gallery wouldn't display a thumbnail, i think. Or does vB produce thumbs for avi's?

Oh, Wayne, is there some documentation or something like this, where i can find out, how the new postbit-functions are working? There are some changes, so i can't switch to my own postbit anymore. With 3.03 it was working (this was my last version before upgrading).

Btw, what is the version nr. of your vB? 4.6 Beta 2? Back to the future, or what? ;)

@Vizionz: Thanks for your critics, i know that the gallery HAS lacks, but remember two things:

a - i'm not an professionell programmer, so it all takes a bit time to find out for me
b - i have a family which also wants their time to share with me.

So please, just wait.

jesus likes pie 08-16-2005 04:13 PM

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?

:)


All times are GMT. The time now is 02:40 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.02374 seconds
  • Memory Usage 1,884KB
  • 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
  • (4)bbcode_code_printable
  • (1)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)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