[BETA] Display virtual albums within the normal board

Forum rules
Support ended: 31.12.2011

Re: [BETA] Display virtual albums within the normal board

Postby vindex » Wed Jun 24, 2009 12:50 pm

oh.. crap. sorry. Yes one brace is missing in the modx-xml, the
Code: Select all
if ($subforum_row['display'] && $subforum_row['name'])
clause needs to be closed:

Code: Select all
            if ($subforum_row['display'] && $subforum_row['name'])
            {
               if ($subforum_row['forum_type'] == FORUM_ALBUM)
               {
                  $sub_album_overtake = check_sub_album($subforum_row['forum_album']);
                  $subforum_unread = $sub_album_overtake['sub_album_unread'];
                  $subforums_list[] = array(
                     'link'      => $sub_album_overtake['sub_album_link'],
                     'name'      => ($sub_album_overtake['sub_album_name']) ? $sub_album_overtake['sub_album_name'] : $subforum_row['name'],
                     'unread'   => $subforum_unread,
                  );
               }
               else
               {
                  $subforums_list[] = array(
                     'link'      => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $subforum_id),
                     'name'      => $subforum_row['name'],
                     'unread'   => $subforum_unread,
                  );
               }
            }
IE8 is pretty reliable. It finished downloading Firefox without a single crash.
User avatar
vindex
Posts 30 - 40
Posts 30 - 40
 
Posts: 38
Topics: 2
Images: 4
Joined: Tue Jun 16, 2009 3:18 pm
Location: Wuppertal - Germany
phpBB.com: vindex

Re: [BETA] Display virtual albums within the normal board

Postby Andrewsha » Wed Jun 24, 2009 4:31 pm

Hello, vindex!

It's not clear for me where to configure forums as album.
As far as I understand it should be here:
ACP -> Forums -> Manage Forums -> Edit

somewhere above "Forum rules" ?

I've made all changes but couldn't see anything new in ACP.

Please tell me what files should I pay attention to re-check.
Andrewsha
Posts 10 - 20
Posts 10 - 20
 
Posts: 19
Topics: 2
Images: 2
Joined: Tue Jun 16, 2009 3:36 pm

Re: [BETA] Display virtual albums within the normal board

Postby vindex » Wed Jun 24, 2009 4:45 pm

You still have to manage your albums in
.MODS -> Gallery

What's new: When you create a new or edit an existing forum, you can choose a 4th Forum Type:
CATEGORY
FORUM
LINK
VIRTUAL ALBUM


This is what the top part of the page should look like once you have selected 'virtual ALbum':
437
IE8 is pretty reliable. It finished downloading Firefox without a single crash.
User avatar
vindex
Posts 30 - 40
Posts 30 - 40
 
Posts: 38
Topics: 2
Images: 4
Joined: Tue Jun 16, 2009 3:18 pm
Location: Wuppertal - Germany
phpBB.com: vindex

Re: [BETA] Display virtual albums within the normal board

Postby Andrewsha » Wed Jun 24, 2009 11:01 pm

vindex,
thank you. Now it's clear where to find it.
But in my forum I still don't see new type in ACP.
Should I look in adm/style/acp_forums.html only ?
Andrewsha
Posts 10 - 20
Posts 10 - 20
 
Posts: 19
Topics: 2
Images: 2
Joined: Tue Jun 16, 2009 3:36 pm

Re: [BETA] Display virtual albums within the normal board

Postby vindex » Thu Jun 25, 2009 10:54 am

:oops: I forgot to add the essential edit for a new forum-type to the modx. I am sorry!

OPEN /includes/acp/acp_forums.php
FIND
Code: Select all
$forum_type_ary = array(FORUM_CAT => 'CAT', FORUM_POST => 'FORUM', FORUM_LINK => 'LINK');

REPLACE WITH
Code: Select all
$forum_type_ary = array(FORUM_CAT => 'CAT', FORUM_POST => 'FORUM', FORUM_LINK => 'LINK', FORUM_ALBUM => 'ALBUM');


:roll:


=> Update to version 0.5 includes this edit-step and the manual for subsilver2; no changes to the included files
=> virtual_albums_v0.5.zip
IE8 is pretty reliable. It finished downloading Firefox without a single crash.
User avatar
vindex
Posts 30 - 40
Posts 30 - 40
 
Posts: 38
Topics: 2
Images: 4
Joined: Tue Jun 16, 2009 3:18 pm
Location: Wuppertal - Germany
phpBB.com: vindex

Re: [BETA] Display virtual albums within the normal board

Postby 40kforums » Thu Jun 25, 2009 11:10 am

Hello - I have just changed the edit as you suggested above, and indeed the Virtual Album option is now appearing.

However when I add a "forum" as a Virtual Album, I get this error on my Board Index:

Code: Select all
SQL ERROR [ mysql4 ]

[0]

SQL

No values specified for SQL IN comparison

BACKTRACE

FILE: includes/db/dbal.php
LINE: 379
CALL: dbal->sql_error()

FILE: gallery/virtual_albums.php
LINE: 63
CALL: dbal->sql_in_set()

FILE: includes/functions_display.php
LINE: 302
CALL: include('gallery/virtual_albums.php')

FILE: index.php
LINE: 77
CALL: display_forums()
User avatar
40kforums
Posts 10 - 20
Posts 10 - 20
 
Posts: 16
Topics: 3
Joined: Wed Jun 10, 2009 5:40 pm

Re: [BETA] Display virtual albums within the normal board

Postby vindex » Thu Jun 25, 2009 11:24 am

Okay please re-upload the virtual_albums.php from package 6 : virtual_albums_v0.6.zip

UPDATE 0.6 -> fixed a variable
IE8 is pretty reliable. It finished downloading Firefox without a single crash.
User avatar
vindex
Posts 30 - 40
Posts 30 - 40
 
Posts: 38
Topics: 2
Images: 4
Joined: Tue Jun 16, 2009 3:18 pm
Location: Wuppertal - Germany
phpBB.com: vindex

Re: [BETA] Display virtual albums within the normal board

Postby 40kforums » Thu Jun 25, 2009 11:36 am

Ok.

That works now.

However, two things:

If you have no albums to display (I only use Personal Albums, not specific albums), it displays as No Albums and No Images - although obviously you can then click through to view Personal Albums from there.

The other:

I set up a test Album (not a Personal one) to make sure it was working, which it is. But the formatting is a bit off. The right-column for me at least, is pushing through the table, see: http://40kforums.com/imageupload/images ... 8cadfe.jpg - (This is Subsilver, by the way, I will poke around with it though)
User avatar
40kforums
Posts 10 - 20
Posts 10 - 20
 
Posts: 16
Topics: 3
Joined: Wed Jun 10, 2009 5:40 pm

Re: [BETA] Display virtual albums within the normal board

Postby vindex » Thu Jun 25, 2009 12:12 pm

40kforums wrote:If you have no albums to display (I only use Personal Albums, not specific albums), it displays as No Albums and No Images - although obviously you can then click through to view Personal Albums from there.

well, yah this mod does not intend to display personal albums. I don't see the reason why you would want to create a "forum" only for one user's personal album?
Or do you only want the recent image displaying an image from any personal album?
This could be done and connected to the gallery-setting "View personal albums as album on the index", but it takes some more coding, the current version does not support it.

40kforums wrote:I set up a test Album (not a Personal one) to make sure it was working, which it is. But the formatting is a bit off. The right-column for me at least, is pushing through the table, see: http://40kforums.com/imageupload/images ... 8cadfe.jpg

This is more of a style-problem with your style - it doesn't look like prosilver or subsilver2.
Do you have a fixed width for your board? :o
Sorry I have no idea on what style your forum is based on nor how the forumlist_body.html looks like, I cannot help you there.
You can try putting a <div style="width:100%"></div> around the last-image-part or the same with a fixed width in pixel (<div style="width:80px"></div>) in case you have a fix forum-width.
IE8 is pretty reliable. It finished downloading Firefox without a single crash.
User avatar
vindex
Posts 30 - 40
Posts 30 - 40
 
Posts: 38
Topics: 2
Images: 4
Joined: Tue Jun 16, 2009 3:18 pm
Location: Wuppertal - Germany
phpBB.com: vindex

Re: [BETA] Display virtual albums within the normal board

Postby 40kforums » Thu Jun 25, 2009 12:35 pm

Ok, no probs.

I have sorted the style-problem, as yes that's a problem on my end :P

- umm, I use Personal Albums since I just prefer people to be able to upload images into their own gallery, rather than being limited as to where or what they can upload, depending on categories - would be good to use the function of this mod to show when a new image has been added (rather than having to go to the gallery and check for updates that way - obviously scrolling down the forumlist and seeing a new picture on the main page would promote people then going to visit the gallery, rather than mostly ignoring the feature at the moment)

Would be cool if that was added in the future, as the mod is really nice. :)

Edit: Oh! One thing: If you have a "Contest" Album running, it shows the Username for the last posted image, when a Contest should keep that anonymous until the contest is finished
User avatar
40kforums
Posts 10 - 20
Posts 10 - 20
 
Posts: 16
Topics: 3
Joined: Wed Jun 10, 2009 5:40 pm

PreviousNext

Return to Supported Addons

Who is online

Users browsing this forum: No registered users and 0 guests

 

cron