PDA

View Full Version : Forum Home Enhancements - New Latest Album Pictures - Forum Home


Pages : 1 [2] 3

RobbieZ
07-30-2010, 02:49 PM
hi
how i can control the size of the pictures in this mod ?
it's show's in realy big images for me
thanks

Read my post 4 posts up ^^ :D

rares.stanescu
07-31-2010, 02:07 PM
Hey! Is any possibility to use this mod as a widget on cms page? Or can anyone suggest a widget to display pictures form albums ?

bada_bing
08-06-2010, 05:10 PM
I just installed this mod on vb 4.05 and works OK except I noticed that the spacing between each image is HUGE. I only have 2 total album pics and they are spaced apart by almost serveral images.

bada_bing
08-06-2010, 06:41 PM
I did some changes in my coding here to get the result i wanted

Replace the templates with the following code.

Template Newalbum_print

<div id="test" class="block collapse">
<h3 class="blockhead">
<b>{vb:raw resimlery}</b>
<a class="collapse" id="collapse_album_content" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_album_content_img}_40b.png" alt="{vb:rawphrase collapse_this_category}" /></a>
</h3>

<div id="album_content" class="childforum forumbit_post">
<div class="forumrow table" style="padding-right:0px">
<table class="block" cellpadding="6" cellspacing="6" border="0" width="100%" align="center">
<br />
<tr>
{vb:raw resimler}
</tr>
</table>
<br />
</div>
</div>
</div>

Template Newalbum_picture

<td align="center">
<a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}"><img src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="269" border="0" /></a>
<br />
<a href="member.php?u={vb:raw lpicture.userid}">{vb:raw lpicture.musername}</a>
<br />
{vb:raw lpicture.title}
</td>

In pluginmanager - find New Album Picture Forum Home

find the code

$template_hook['forumhome_wgo_pos1'] .= $templater->render();

and change it with

$template_hook['forumhome_above_forums'] .= $templater->render();

And voila ..you got this :D



Does anyone know how to change the background color of the Random Album Picture block as mine shows up gray but my style is black

Peter_AUS
08-13-2010, 05:41 AM
Anyone know how to get the description showing underneath the pictures to display better.

At present I have the title of the image, the owner and the date, but it displays all in one line. I have tried to add bbcode like and and <br> and </br> but can't get it to display just shows that in the line.

Any ideas greatly appreciated.

You can view what I mean here http://www.passionforpixels.com/forum/forum.php

Videx
08-13-2010, 01:21 PM
You can view what I mean here http://www.passionforpixels.com/forum/forum.phpNo we can't. You must have it turned off for Guests.

Peter_AUS
08-13-2010, 10:46 PM
Sorry about that, still coming to terms with the settings in VB. See attachment.

Would like it to display three lines like

Australian Dingo
Owner: Alan Carmicheal (aycee)
11th Auust 2010

Not display it all in one line, well wrapped one line.

RobbieZ
08-14-2010, 08:59 AM
Not sure what settings you have, I've used YBMF's and modified it, read my post further back.

Peter_AUS
08-14-2010, 11:08 PM
Not sure what settings you have, I've used YBMF's and modified it, read my post further back.

If you are talking about post 247 I have that already in the template, doesn't do anything.

I wonder why the normal formatting codes don't work when posting a new image?

Forgot to add, I am using only one Album as Admins are the only ones allowed to use albums, as we have a separate Gallery2 software that is mainly used. I am using this one album to shows Images of the Day of which I select one from the main albums and download and upload it to the forum to display in there. I wanted to keep the owner and title and date relevant to the post each day, maybe that might shed some light on this issue I am having.

NNJJ
08-22-2010, 05:50 AM
any update?

Gosef
08-24-2010, 02:54 PM
thanks ...

NNJJ
08-27-2010, 05:18 PM
any chance to change the place of it????????????

moonclamp
08-30-2010, 07:55 PM
Does this mod take album privacy into consideration?

SVTOA
09-06-2010, 08:32 PM
Hey! Is any possibility to use this mod as a widget on cms page? Or can anyone suggest a widget to display pictures form albums ?

X2, anyone?

mattyphatty
09-13-2010, 06:33 AM
X2, anyone?

x3 Anyone?

smelly
10-03-2010, 03:09 AM
great mod,working great with a tweak here and there thanks

dollster68
10-03-2010, 06:37 PM
Is there a place to change the settings in AdminCP to make only a specific usergroup's albums in the rotation?

mavigul
10-11-2010, 04:04 AM
Ok looked at this for a while.

There are no hooks from what I see in the beginning of forumhome, they all apply to wgo ( whats going on )

So as https://vborg.vbsupport.ru/showpost.php?p=1957066&postcount=106 stated, you need to cheat.

Essentially this is what I did.

Find: in product-newalbum.xml file

$template_hook['forumhome_wgo_pos2'] .= $templater->render();


Change to:

$ad_location['ad_navbar_below'] .= $templater->render();


Or use my rejigged product file :)

Enjoy.

Ste

thanks works fine

mavigul
10-11-2010, 04:33 AM
Ok looked at this for a while.

There are no hooks from what I see in the beginning of forumhome, they all apply to wgo ( whats going on )

So as https://vborg.vbsupport.ru/showpost.php?p=1957066&postcount=106 stated, you need to cheat.

Essentially this is what I did.

Find: in product-newalbum.xml file

$template_hook['forumhome_wgo_pos2'] .= $templater->render();


Change to:

$ad_location['ad_navbar_below'] .= $templater->render();


Or use my rejigged product file :)

Enjoy.

Ste

I did some changes in my coding here to get the result i wanted

Replace the templates with the following code.

Template Newalbum_print

<div id="test" class="block collapse">
<h3 class="blockhead">
<b>{vb:raw resimlery}</b>
<a class="collapse" id="collapse_album_content" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_album_content_img}_40b.png" alt="{vb:rawphrase collapse_this_category}" /></a>
</h3>

<div id="album_content" class="childforum forumbit_post">
<div class="forumrow table" style="padding-right:0px">
<table class="block" cellpadding="6" cellspacing="6" border="0" width="100%" align="center">
<br />
<tr>
{vb:raw resimler}
</tr>
</table>
<br />
</div>
</div>
</div>

Template Newalbum_picture

<td align="center">
<a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}"><img src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="269" border="0" /></a>
<br />
<a href="member.php?u={vb:raw lpicture.userid}">{vb:raw lpicture.musername}</a>
<br />
{vb:raw lpicture.title}
</td>

In pluginmanager - find New Album Picture Forum Home

find the code

$template_hook['forumhome_wgo_pos1'] .= $templater->render();

and change it with

$template_hook['forumhome_above_forums'] .= $templater->render();

And voila ..you got this :D


wow thats great:up:

spider62
10-14-2010, 05:29 PM
Hi, how to display the photos on several lines? thank you

8thos
10-15-2010, 08:20 PM
Where the hell is 'Show Albums' at? I don't even see it. Only registered members can view albums. I want guests to be able to view the random pictures, but not be able to bring up any licks if they click on them. How do I set that up?

Goonie
10-15-2010, 09:39 PM
how do i change the background colour so it matches my style?

paarmis.queen
10-15-2010, 09:48 PM
tnx installed

spider62
10-18-2010, 10:44 AM
Up !

Hi, how to display the photos on several lines? thank you

Cicada
10-21-2010, 09:48 PM
this happened to mine today -- what could be the cause?

http://img232.imageshack.us/img232/7113/oopsf.jpg

MrBig
10-21-2010, 10:32 PM
this happened to mine today -- what could be the cause?

http://img232.imageshack.us/img232/7113/oopsf.jpg

did you upgrade you forum? i upgraded my forum to 4.08 and it just went nuts

Cicada
10-21-2010, 10:56 PM
did you upgrade you forum? i upgraded my forum to 4.08 and it just went nuts

i havent upgraded to 4.0.8 yet, i'm scheduling that for this weekend.

i _did_ play with image thumbnail settings and upload settings, but i rebuit my thumbnails [after changing the settings back] , and it's still showing the full-sized images :(

The Coon
10-23-2010, 02:16 PM
Provisional arrangement after upgrading to 4.0.8:

Change template: newalbum_print

Search:
<h3>

Replace with:

<h3 class="blocksubhead">

MrBig
10-26-2010, 06:00 AM
edit template: newalbum_picture

replace all with:
<td align="center">
<a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}"><img src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="Image uploaded by: {vb:raw lpicture.musername}" border="0" /></a>
<br />
<a href="member.php?u={vb:raw lpicture.userid}">{vb:raw lpicture.musername}</a>
<br />
{vb:raw lpicture.title}
</td>

will give you a little more "tool tip" info.

nice!

ivanp
11-03-2010, 05:52 PM
SQL query is very slow, should be optimized:

mysql> explain SELECT albumpicture.*, album.*, user.username, user.usergroupid,
-> IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
-> FROM attachment AS albumpicture
-> LEFT JOIN album AS album ON(album.albumid = albumpicture.contentid)
-> LEFT JOIN user AS user ON(user.userid = album.userid)
-> WHERE album.state = 'public' and albumpicture.contenttypeid = 8
-> ORDER BY dateline DESC LIMIT 0, 5;

+----+-------------+--------------+--------+--------------------------------------+-----------+---------+---------------------+------+----------------------------------------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+--------------+--------+--------------------------------------+-----------+---------+---------------------+------+----------------------------------------------+
| 1 | SIMPLE | album | ALL | PRIMARY | NULL | NULL | NULL | 4929 | Using where; Using temporary; Using filesort |
| 1 | SIMPLE | albumpicture | ref | contentid,contenttypeid | contentid | 4 | forum.album.albumid | 3 | Using where |
| 1 | SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | forum.album.userid | 1 | |
+----+-------------+--------------+--------+--------------------------------------+-----------+---------+---------------------+------+----------------------------------------------+
3 rows in set (0.00 sec)

Polymat
11-04-2010, 06:43 PM
Where the hell is 'Show Albums' at? I don't even see it. Only registered members can view albums. I want guests to be able to view the random pictures, but not be able to bring up any licks if they click on them. How do I set that up?

I want to know that, too.

8thos
11-05-2010, 03:27 AM
SQL query is very slow, should be optimized:

mysql> explain SELECT albumpicture.*, album.*, user.username, user.usergroupid,
-> IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
-> FROM attachment AS albumpicture
-> LEFT JOIN album AS album ON(album.albumid = albumpicture.contentid)
-> LEFT JOIN user AS user ON(user.userid = album.userid)
-> WHERE album.state = 'public' and albumpicture.contenttypeid = 8
-> ORDER BY dateline DESC LIMIT 0, 5;

+----+-------------+--------------+--------+--------------------------------------+-----------+---------+---------------------+------+----------------------------------------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+--------------+--------+--------------------------------------+-----------+---------+---------------------+------+----------------------------------------------+
| 1 | SIMPLE | album | ALL | PRIMARY | NULL | NULL | NULL | 4929 | Using where; Using temporary; Using filesort |
| 1 | SIMPLE | albumpicture | ref | contentid,contenttypeid | contentid | 4 | forum.album.albumid | 3 | Using where |
| 1 | SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | forum.album.userid | 1 | |
+----+-------------+--------------+--------+--------------------------------------+-----------+---------+---------------------+------+----------------------------------------------+
3 rows in set (0.00 sec)

I'm in Admin Control Panel. I clicked on Execute SQL Query. I copy-n-pasted that code, nothing happened but an error.

ivanp
11-05-2010, 07:07 PM
I'm in Admin Control Panel. I clicked on Execute SQL Query. I copy-n-pasted that code, nothing happened but an error.

This was a remark for author of this add-on. There is nothing to do with it in Admin Panel.

Gav-n-Tn
11-18-2010, 10:13 PM
Looks good, can't wait for some more options! Also want to be able to move this below the navbar. Yes. Just like the 3.8 one.

Peter_AUS
11-21-2010, 09:43 PM
See post 106.

Derapata
11-23-2010, 11:36 PM
Provisional arrangement after upgrading to 4.0.8:

Change template: newalbum_print

Search:
<h3>

Replace with:

<h3 class="blocksubhead">

In this way, not ok..

bjarne2
11-24-2010, 07:17 AM
Replace newalbum_print with this.
This works on our site. Note the new vBullentin class "wgo_subblock section" and "h3 class blocksubhead".

<div id="wgo_onlineusers" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:raw resimlery}</h3>
<div align="center">
<table cellpadding="4" cellspacing="0" border="0" width="100%" align="center">
<tr>
{vb:raw resimler}
</tr>
</table>

</div>
</div>

Derapata
11-24-2010, 10:10 AM
Replace newalbum_print with this.
This works on our site. Note the new vBullentin class "wgo_subblock section" and "h3 class blocksubhead".

<div id="wgo_onlineusers" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:raw resimlery}</h3>
<div align="center">
<table cellpadding="4" cellspacing="0" border="0" width="100%" align="center">
<tr>
{vb:raw resimler}
</tr>
</table>

</div>
</div>

Thank's but not ok again...
Help me

Valerio

Alibass
11-24-2010, 03:26 PM
i manage to move it on different location (any location you prefer). Here's how:

1. Goto to plugin manager then search for "New Album Picture Forum Home" there are two result select the one under "forumhome_start" hook.

2. Scroll down thru the php code and find this line $template_hook['forumhome_wgo_pos1'] .= $templater->render();then replace it with this
//$template_hook['forumhome_wgo_pos1'] .= $templater->render();
$ad_location['ad_navbar_below'] .= $templater->render();then save it.

The above code means that instead of showing the album under whats going on it will now be shown under the position of the advertisement position below the navigation bar. :)
Thanks, this works great on 4.0.8 PL2

Derapata
11-25-2010, 06:31 PM
Thank's but not ok again...
Help me

Valerio

News??

The picture view extra whidt e height.

Help me
Thank
Valerio

tele955848
11-25-2010, 06:39 PM
Danke l?uft einwandfrei:D

weexto
12-05-2010, 05:44 PM
hello,
have you thought of adding a rating photos?

SBKTR
12-14-2010, 04:18 AM
I did some changes in my coding here to get the result i wanted

Replace the templates with the following code.

Template Newalbum_print

<div id="test" class="block collapse">
<h3 class="blockhead">
<b>{vb:raw resimlery}</b>
<a class="collapse" id="collapse_album_content" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_album_content_img}_40b.png" alt="{vb:rawphrase collapse_this_category}" /></a>
</h3>

<div id="album_content" class="childforum forumbit_post">
<div class="forumrow table" style="padding-right:0px">
<table class="block" cellpadding="6" cellspacing="6" border="0" width="100%" align="center">
<br />
<tr>
{vb:raw resimler}
</tr>
</table>
<br />
</div>
</div>
</div>

Template Newalbum_picture

<td align="center">
<a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}"><img src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="269" border="0" /></a>
<br />
<a href="member.php?u={vb:raw lpicture.userid}">{vb:raw lpicture.musername}</a>
<br />
{vb:raw lpicture.title}
</td>

In pluginmanager - find New Album Picture Forum Home

find the code

$template_hook['forumhome_wgo_pos1'] .= $templater->render();

and change it with

$template_hook['forumhome_above_forums'] .= $templater->render();

And voila ..you got this :D

Worked perfectly.. thank you

bada_bing
12-22-2010, 04:10 AM
Will this mod be updated to vb 4.1 I noticed that it works with 4.1 but the table wrap is missing now

kfyonur
12-22-2010, 08:18 AM
Will this mod be updated to vb 4.1 I noticed that it works with 4.1 but the table wrap is missing now

album names and usernames are not written.

VBUsers
12-29-2010, 05:38 AM
if i want to add this to the side bar column , is it possible ?

everywhere sidebar

Davey-UK
12-29-2010, 04:08 PM
Right then, after reading and reading the many solutions, of how to get this thing styled, Above forums, camera icon instead of the green man, etc, i have reworked the files slightly, and hopefully the owner will not mind.
Below is a screenshot of my new styling, and position change etc.
https://vborg.vbsupport.ru/

I have zipped all the files up, so as to keep things simple.
124998
All you need to do is uninstall the product and start again, by adding the xml file in your admincp.
Dont forget to upload the images provided into your forum/images/misc folder.

hope this clears a few things up, and maybe the mod author could update the front page with these files. :)

NNJJ
12-29-2010, 07:12 PM
the zip file not working well

Davey-UK
12-29-2010, 08:03 PM
Try again, i think it was a renamed rar file. Updated.

NNJJ
12-30-2010, 12:39 PM
it looks much better thanks!!!

problem is that its show 2 lines of them

Davey-UK
12-30-2010, 01:27 PM
it looks much better thanks!!!

problem is that its show 2 lines of them

Did you remove an old installation? Including the plugins and template files?

NNJJ
12-30-2010, 04:42 PM
i did uninstall the old one? what else do i need to do???

Davey-UK
12-30-2010, 05:07 PM
OK, here is all the files, and how they should look.

New Posting Templates -> newalbum_picture:
<td align="center" height="140px" style="background: url('images/misc/picbg.gif') no-repeat bottom; height:125px"><a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}"><img src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="{vb:raw lpicture.title}" border="0" height="70px" /></a><br /><a href="member.php?u={vb:raw lpicture.userid}">{vb:raw lpicture.musername}</a></td>

New Posting Templates -> newalbum_print:
<div class="blockhead"><img src="{vb:stylevar imgdir_misc}/camera.png"/>&nbsp;{vb:raw resimlery}</div><div class="blockbody formcontrols floatcontainer"><table class="block" cellpadding="2" cellspacing="2" border="0" width="100%" align="center"><tr>{vb:raw resimler}</tr></table></div>

Now go to plugin manager and look for
New Album Picture Forum Home ->> forumhome_start ->> Edit

Paste the following code in the plugin php code box:
if (
(
$vbulletin->options['socnet'] & $vbulletin->bf_misc_socnet['enable_albums']
AND
$permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canviewmembers']
AND
$permissions['albumpermissions'] & $vbulletin->bf_ugp_albumpermissions['canviewalbum']
AND
$vbulletin->options['new_enable_albums']
)
)
{
$displayrecords = ($vbulletin->options['new_afm_sayi'] ? $vbulletin->options['new_afm_sayi'] : 4);
switch ($vbulletin->options['new_afm_dt'])
{
case 1:
$sorgu = "ORDER BY dateline DESC LIMIT 0, $displayrecords";
$resimlery = $vbphrase['new_afm_sec5'];
break;
case 2:
$sorgu = "ORDER BY rand(NOW()) DESC LIMIT 0, $displayrecords";
$resimlery = $vbphrase['new_afm_sec6'];
break;
}
$lpictures = $db->query("
SELECT albumpicture.*, album.*, user.username, user.usergroupid,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM " . TABLE_PREFIX . "attachment AS albumpicture
LEFT JOIN " . TABLE_PREFIX . "album AS album ON(album.albumid = albumpicture.contentid)
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = album.userid)
WHERE album.state = 'public' and albumpicture.contenttypeid = 8
$sorgu
");
if ($db->num_rows($lpictures))
{
while ($lpicture = $db->fetch_array($lpictures))
{
$lpicture['musername'] = fetch_musername($lpicture);
$lpicture['title'] = trim(strip_quotes($lpicture['title']));
// eval('$resimler .= "' . fetch_template('afm_picture') . '";');
$templater_x1 = vB_Template::create('newalbum_picture');
$templater_x1->register('lpicture',$lpicture);
$resimler .= $templater_x1->render();

}

$templater = vB_Template::create('newalbum_print');
$templater->register('resimler',$resimler);
$templater->register('resimlery',$resimlery);
$template_hook['forumhome_above_forums'] .= $templater->render();

}
$db->free_result($lpictures);
}
The code in red is the name of the hook. If you know anything about how to place your own hook, you can show this wherever you wish!

Hope this helps.

NNJJ
12-31-2010, 07:07 PM
i did all correct yet its etting 2 lines of album :(

NNJJ
01-01-2011, 01:54 PM
kindly check attached

Davey-UK
01-01-2011, 07:50 PM
It is only one out of your four skins that has the double row problem.
The mod is working ok.

akxt660
01-02-2011, 12:03 AM
Hello colleagues, I need a help!

The blocks of the forum are superimposed on the thumbnails of this plugin.
I like to put the right blocks on the side of the forums block, as shown in red line.
Can anyone help me do this? The layout is drastically compromised.

Thanks in advance.
Grettings and Happy 2011!


See the image:
https://vborg.vbsupport.ru/external/2011/01/59.jpg

Davey-UK
01-02-2011, 08:42 AM
Hello colleagues, I need a help!

The blocks of the forum are superimposed on the thumbnails of this plugin.
I like to put the right blocks on the side of the forums block, as shown in red line.
Can anyone help me do this? The layout is drastically compromised.


Goto your forumhome template and search for this:
<div id="pagetitle">
<h1>{vb:raw vboptions.bbtitle}</h1>
<p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
</div>

Underneath that, put this:
{vb:raw template_hook.forumhome_above_forumsandsidebar}

Now goto your plugins manager. Look for
New Album Picture Forum Home Forumhome_start

Click edit, and look near the bottom of the php code for:
forumhome_above_forums

Change it to:
forumhome_above_forumsandsidebar

That should work.

I think its about time this was re written with options in ACP. Not seen the original author around here though.

NNJJ

I would need to see your forumhome template code to see what the problem with your skin is.

NNJJ
01-02-2011, 04:50 PM
Davey!!!

thank you sooooooooooo much for help it was style issue :) as you said

denman75
01-03-2011, 11:11 AM
some of my users that use internet explorer see red crosses and no image chrome is oke firefox is oke only not internet explorer
,i dont get it

Davey-UK
01-03-2011, 12:22 PM
some of my users that use internet explorer see red crosses and no image chrome is oke firefox is oke only not internet explorer
,i dont get it
Right click on the red cross, and click properties, or image info, and make sure that the path to the image actually has an image in it. Firefox doesnt show a missing image cross thats all.

If you are using my adapted version, have you uploaded the enclosed background image?

denman75
01-03-2011, 12:48 PM
Right click on the red cross, and click properties, or image info, and make sure that the path to the image actually has an image in it. Firefox doesnt show a missing image cross thats all.

If you are using my adapted version, have you uploaded the enclosed background image?

the image is in the correct path if u like i can send u my details

i do not use your adapted version
or wil it help if i do use your version ?

in firefox chrome opera all work fine except in that IE its broken , with others browsers i can look in every album .no problem what so ever .but since most of my users still use ie i cant let it like this
i really dont know whats up here

Davey-UK
01-03-2011, 04:19 PM
the image is in the correct path if u like i can send u my details

i do not use your adapted version
or wil it help if i do use your version ?

in firefox chrome opera all work fine except in that IE its broken , with others browsers i can look in every album .no problem what so ever .but since most of my users still use ie i cant let it like this
i really dont know whats up here

Send me a link. I will take a look for you.

denman75
01-04-2011, 08:02 AM
this is what i see
difference between Firefox and Iternet Explorer

http://img205.imageshack.us/img205/6163/firefoxx.th.jpg (http://img205.imageshack.us/i/firefoxx.jpg/)
http://img839.imageshack.us/img839/8494/explorers.th.jpg (http://img839.imageshack.us/i/explorers.jpg/)



edit
Davey-UK send link and login to u
thanks for helping me out a bit here

ehsanix
01-04-2011, 10:56 AM
How can I
Latest images do show the B-side?

Davey-UK
01-04-2011, 02:45 PM
How can I
Latest images do show the B-side?

B-Side?

explain

ehsanix
01-04-2011, 06:26 PM
sorry
Latest images do show the SIDEBAR
help pls

denman75
01-04-2011, 07:34 PM
jay i fixed it finally

some where on the way it seems that some old settings had to be renewed in the attachment manager ;)

Content-type: unknown/unknown images in some IE browsers show as red X

Content-type: image/jpeg new setting and its working now

MAdotcom
01-04-2011, 09:04 PM
Very Nice Thank you!

ehsanix
01-05-2011, 11:34 AM
How can I
Latest images do show the sidebar?
help pls :(

Davey-UK
01-05-2011, 04:56 PM
How can I
Latest images do show the sidebar?
help pls :(

Unfortunately i have not looked at the sidebar workings.

safakuygur
01-09-2011, 09:37 PM
How do I show pictures under navbar?
not part of the on-line

VBUsers
01-10-2011, 07:47 AM
i also want to put this under the nav bar

Davey-UK
01-10-2011, 02:41 PM
How do I show pictures under navbar?
not part of the on-line

Download my update, which is a couple of pages back. Then read the posts after it. :)

punchbowl
01-10-2011, 04:13 PM
OK, here is all the files, and how they should look.

New Posting Templates -> newalbum_picture:
<td align="center" height="140px" style="background: url('images/misc/picbg.gif') no-repeat bottom; height:125px"><a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}"><img src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="{vb:raw lpicture.title}" border="0" height="70px" /></a><br /><a href="member.php?u={vb:raw lpicture.userid}">{vb:raw lpicture.musername}</a></td>

New Posting Templates -> newalbum_print:
<div class="blockhead"><img src="{vb:stylevar imgdir_misc}/camera.png"/>&nbsp;{vb:raw resimlery}</div><div class="blockbody formcontrols floatcontainer"><table class="block" cellpadding="2" cellspacing="2" border="0" width="100%" align="center"><tr>{vb:raw resimler}</tr></table></div>

Now go to plugin manager and look for
New Album Picture Forum Home ->> forumhome_start ->> Edit

Paste the following code in the plugin php code box:
if (
(
$vbulletin->options['socnet'] & $vbulletin->bf_misc_socnet['enable_albums']
AND
$permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canviewmembers']
AND
$permissions['albumpermissions'] & $vbulletin->bf_ugp_albumpermissions['canviewalbum']
AND
$vbulletin->options['new_enable_albums']
)
)
{
$displayrecords = ($vbulletin->options['new_afm_sayi'] ? $vbulletin->options['new_afm_sayi'] : 4);
switch ($vbulletin->options['new_afm_dt'])
{
case 1:
$sorgu = "ORDER BY dateline DESC LIMIT 0, $displayrecords";
$resimlery = $vbphrase['new_afm_sec5'];
break;
case 2:
$sorgu = "ORDER BY rand(NOW()) DESC LIMIT 0, $displayrecords";
$resimlery = $vbphrase['new_afm_sec6'];
break;
}
$lpictures = $db->query("
SELECT albumpicture.*, album.*, user.username, user.usergroupid,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM " . TABLE_PREFIX . "attachment AS albumpicture
LEFT JOIN " . TABLE_PREFIX . "album AS album ON(album.albumid = albumpicture.contentid)
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = album.userid)
WHERE album.state = 'public' and albumpicture.contenttypeid = 8
$sorgu
");
if ($db->num_rows($lpictures))
{
while ($lpicture = $db->fetch_array($lpictures))
{
$lpicture['musername'] = fetch_musername($lpicture);
$lpicture['title'] = trim(strip_quotes($lpicture['title']));
// eval('$resimler .= "' . fetch_template('afm_picture') . '";');
$templater_x1 = vB_Template::create('newalbum_picture');
$templater_x1->register('lpicture',$lpicture);
$resimler .= $templater_x1->render();

}

$templater = vB_Template::create('newalbum_print');
$templater->register('resimler',$resimler);
$templater->register('resimlery',$resimlery);
$template_hook['forumhome_above_forums'] .= $templater->render();

}
$db->free_result($lpictures);
}
The code in red is the name of the hook. If you know anything about how to place your own hook, you can show this wherever you wish!

Hope this helps.

best post in the world ever:up::D

ellinofatsa
02-06-2011, 01:52 PM
https://vborg.vbsupport.ru/external/2011/02/45.jpg


i dont see image only the name of the member from the image
any help for that?
i have vb 4,1,1

Davey-UK
02-07-2011, 04:46 AM
Have you got a link to your forum, PM me if you want :)

Dont worry, found it, but dont see the latest pics as a guest.

MrBig
02-07-2011, 10:02 AM
Ok so I've been wanting this above my forum as alot of people and seeing the one post that told how to do it got me wanting it more, but I have an ad and don't want to replace it. So here is what I did to get it up on the top of the forum, and can be collapsed. this does take a decent amount of editing to do, and use these steps at your own risk, and I hope im not imposing too much by sharing these changes to get the result I was looking for

Go to products and edit the New Album Picture Forum Home product
replace

$template_hook['forumhome_wgo_pos1'] .= $templater->render();

with

$newpics2 = $templater->render();
vB_Template::preRegister('navbar', array('resimler' => $newpics2));

Then replace the entire newalbum_picture template with this


<td align="center">
<a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}"><img src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="Image uploaded by: {vb:raw lpicture.username}" border="0" /></a>
<br />
<a href="member.php?u={vb:raw lpicture.userid}">{vb:raw lpicture.username}</a>
<br />
{vb:raw lpicture.title}
</td>


And replace the entire newalbum_print template with this


<div class="floatcontainer forumbit_nopost">
<div class="forumhead foruminfo collapse">
<div class="cat_ls"></div>
<h3>
{vb:raw resimlery}
<a class="collapse" id="collapse_album_content" href="#top">
<img src="buttons/collapse_40b.png">
</a>
</h3>
<div class="cat_rs"></div>
</div>
<div id="album_content" class="childforum forumbit_post">
<div class="forumrow table" style="padding-right:0px">
<table class="block" cellpadding="6" cellspacing="6" border="0" width="100%" align="center">
<tr>
{vb:raw resimler}
</tr>
</table>

</div>
</div>
</div>


And Finally edit your navbar template and add this as the last line


{vb:raw resimler}


Here is my result using the above steps

https://vborg.vbsupport.ru/external/2011/02/43.jpg

tagged, thanks

akoj
02-07-2011, 05:36 PM
I have zipped all the files up, so as to keep things simple.
124998
All you need to do is uninstall the product and start again, by adding the xml file in your admincp.
Dont forget to upload the images provided into your forum/images/misc folder.

hope this clears a few things up, and maybe the mod author could update the front page with these files. :)

THANK YOU! For some reason this .zip keeps downloading as empty.

ellinofatsa
02-08-2011, 12:37 PM
any help please? i dont see image only names

Davey-UK
02-08-2011, 02:17 PM
Here is the zip file again.
If you have problems with the old files, simply rename the archive to .rar
126532

Try again.

akoj
02-08-2011, 08:40 PM
Thanks!

Noerenberg
02-09-2011, 03:29 AM
Hei,

what i have to do that the guest can see the pictures?

MrBig
02-09-2011, 04:21 AM
Hei,

what i have to do that the guest can see the pictures?

usergroup permissions :up:

MrBig
02-11-2011, 06:01 AM
how can i move it to other parts of the forum?

Wajdan
02-12-2011, 11:25 AM
Can this mod show pictures on the top of the forums just below top buttons ?

MrBig
02-13-2011, 07:55 AM
how can i move it to other parts of the forum?


let me be a bit more specific ;] id like to add this to members profile page under the navigation. but also show on the forum home page.

any help would be great :]

Davey-UK
02-13-2011, 09:05 AM
let me be a bit more specific ;] id like to add this to members profile page under the navigation. but also show on the forum home page.

any help would be great :]

https://vborg.vbsupport.ru/showpost.php?p=2141419&postcount=303

See the red bit to change the hook location

karacali
02-13-2011, 06:34 PM
aktifleştirdigimde hata veriyo neden db hatasi

Unknown column 'albumpicture.contenttypeid' in 'where clause'

kiafaq
02-22-2011, 06:51 PM
I have installed the mod VSA - Advanced Forum Statistics and need to locate the block below, what code should I use to put in that position?

Bisha
02-23-2011, 01:17 AM
Great Mod, any update for 4.1.2?

zeus_r6
03-02-2011, 02:06 AM
https://vborg.vbsupport.ru/showpost.php?p=2141419&postcount=303

See the red bit to change the hook location

Very good :) Works like a champ so far :)

zeus_r6
03-02-2011, 02:06 AM
Running on 4.1.2 by the way and displays on the top of forumhome as well :)

Rofo
03-03-2011, 11:28 PM
Wow, what an easy install that was. Thought I did something wrong cause it was so easy. Thanks to everyone that started this and helped update it, Really appreciate it!

working great on 4.1.1

After searching the thread, Is this the only setting for displaying the album to GUESTS? I want guest to have be able to view.

https://vborg.vbsupport.ru/external/2011/03/13.gif

Rofo
03-04-2011, 04:07 PM
Can anyone help me with the guest viewing?

MrBig
03-08-2011, 06:50 AM
Can anyone help me with the guest viewing?


i would try user group permissions / Unregistered / Not Logged In

pinoypot
03-08-2011, 04:29 PM
am i missing something here?

i installed the mod as instructed. but i noticed that the Latest Album Picture and Random Album Pictures are not even changing. The area always display the same 4 pictures even though there are many pictures available on other albums. I also set my number of results to 10 but still the result is the same display of 4 pictures.

I am using vBulletin 4.1.2.

FTDave
03-10-2011, 02:30 AM
Works great on my site.
Thanks.
http://www.teenbay.net

VBUsers
03-11-2011, 03:07 AM
tagged, thanks

nice and thanks

nerowolfe
03-15-2011, 04:12 PM
nice and thanks.

Only a question: how I put a space between the line of the table and the bottom of the picture?
See my photo inside please.

TY

zeus_r6
03-16-2011, 02:04 AM
Any way to put this into a block like the forums are?

zeus_r6
04-18-2011, 02:51 PM
Has anybody run into the problem of a random image showing full size on forumhome rather than being a thumbnail? Is there a fix for this? Is it the way the image is named?

ThomasR
05-06-2011, 03:39 PM
About this mod, but also other usage of thumbnails in the forum, how is it possible to have fixed size/cropped thumbnails?
As an example, I would like to have all my thumbnails at 150x100 px, then the image fit on the larger side and crop the other side to fit these 150x100?

It would avoid having weird results with this product :)

Now, it misses the same product, but with the last attachement + last album pixtures :p

zlMark
05-06-2011, 06:42 PM
Is anyone using this on 4.1.3?

Polymat
05-06-2011, 08:10 PM
Is anyone using this on 4.1.3?

Yes, it runs! :up:

zeus_r6
05-19-2011, 11:27 PM
Has anybody run into the problem of a random image showing full size on forumhome rather than being a thumbnail? Is there a fix for this? Is it the way the image is named?

Is there a fix for this problem?

Videx
05-19-2011, 11:40 PM
Has anybody run into the problem of a random image showing full size on forumhome rather than being a thumbnail? Is there a fix for this? Is it the way the image is named?I've never seen this on my forums and I don't recall seeing it in this thread. If it's one specific image you might try resizing it and reuploading it. I doubt the name has anything to do with it.

zeus_r6
05-20-2011, 12:10 AM
I'm trying to rebuild attachment thumbnails now even though I don't use thumbnails in my forums

There are so many attachment images...it would take way too long to do that for each and every one

zeus_r6
05-20-2011, 04:26 AM
Well now it's worse...almost all of them are full size on forumhome after rebuilding the attachment thumbnails.. :(

Videx
05-20-2011, 12:04 PM
Check your thumbnail settings in AdminCP. Check that GD/Imagemagick is working properly on the server (maybe try swapping them). Be sure to read this entire thread again carefully for clues. Try searching at vb.com for thumbnail size problems.

Eventually you may want to actually give us a link too so we can see for ourselves; this may require a test account depending on your settings.

zeus_r6
05-20-2011, 11:44 PM
Here's what I did.

Replace contents of template newalbum_print with (same as before):

<div id="wgo_onlineusers" class="wgo_subblock">

<h3><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:raw resimlery}</h3>
<div>
<table class="block" cellpadding="6" cellspacing="6" border="0" width="100%" align="center">
<tr>
{vb:raw resimler}
</tr>
</table>

</div>
</div>



Replace contents of template newalbum_picture with:
<td align="center" height="140px" style="background: url('images/misc/frontdrop.gif') no-repeat bottom; height:125px">
<a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}"><img src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="269" border="0" /></a>
<br />
<a href="member.php?u={vb:raw lpicture.userid}">{vb:raw lpicture.musername}</a>
<br />
{vb:raw lpicture.title}
</td>



And put the attached image within your 'root/images/misc' directory.

Thanks for the fix...should have read the entire thread :)

Android 18
05-25-2011, 06:01 AM
Ok, I'm sure this is the right thread - thumbnails look correct.

The forum I'm an admin of has had complaints from members: they don't want to see the pictures at the bottom of the screen. The head admin wants it there, so there's no getting rid of it altogether. Happy medium: having a minimize button somewhere to allow members the option of seeing the pictures or not. Is this at all possible for a future update?

Videx
05-25-2011, 08:41 AM
Mine has a collapse button. Go to the upper right and select "Search this mod" for "collapse".

While you're looking you may also want to look for the edits that move it to the top of the forum where it can actually be seen (by those that don't collapse it).

mshadm
05-28-2011, 11:51 AM
Thank you so much :)

gonzek
06-13-2011, 03:08 PM
it works on 4.1.4 - www.se-center.info/forum.php

but... how can I put that mod on the top of forum?
I dont understand it https://vborg.vbsupport.ru/showpost.php?p=2141419&postcount=303

Markos
06-20-2011, 09:52 AM
it works on 4.1.4 - www.se-center.info/forum.php

but... how can I put that mod on the top of forum?
I dont understand it https://vborg.vbsupport.ru/showpost.php?p=2141419&postcount=303

try this one
Here is the zip file again.
If you have problems with the old files, simply rename the archive to .rar
126532

Try again.
works fine in 4.1.4

Gemma
06-20-2011, 10:31 AM
Thanks, works well :)

Brendon1215
07-15-2011, 06:31 PM
I installed it on my forum and it's not even showing up?

Jake99
07-17-2011, 02:00 PM
why do the pictures run off the page?!??!?!?!?!?!?!?!?!?!??!?!!?!?!?

MAdotcom
08-08-2011, 12:12 AM
Finally got this working after switching servers. Works great, I'm gonna see if there's a way to adjust the thumbnail size so that they're all the same.

gonzek
10-12-2011, 05:57 PM
try this one

works fine in 4.1.4

It works, but look bad...
How can I for example add the borders from zip archive?
website here: www.se-center.info/forum.php
and... is it possible to add the border from forum template like this on the that post attachment?

Zepta
10-20-2011, 02:23 AM
AdminCP>Usergroups>Usergroup Manager>edit the 'not logged in' group>User Album Permissions>Can View Albums.

I've been pulling my hair the past few days trying to figure out how to enable unregistered members/guests to see the images from the albums. It seems the above answer is only half the solution.

You must also allow guests/unregistered users the ability to view member info if you want them to see the albums.


'AdminCP>Usergroups>Usergroup Manager>edit the 'not logged in' group>General Permissions>Can View Member Info' --> must set this to yes also.

Manoel J?nior
11-15-2011, 03:34 PM
How to insert postbit_legacy???

Manoel J?nior
11-16-2011, 11:47 PM
How to insert in postbit_legacy??? Please!

Manoel J?nior
11-22-2011, 10:02 PM
Someone help-me?

How to insert in this postbit_legacy? Please!!!

Gamelobby
11-27-2011, 06:24 PM
Someone help-me?

How to insert in this postbit_legacy? Please!!!
I cant help you, but why would you want this in postbit legacy.?
You want others pictures to show up in each person's postbit.!?

Gamelobby
11-27-2011, 06:36 PM
Right then, after reading and reading the many solutions, of how to get this thing styled, Above forums, camera icon instead of the green man, etc, i have reworked the files slightly, and hopefully the owner will not mind.
Below is a screenshot of my new styling, and position change etc.
http://learn-to-tattoo.co.uk/forum/images/misc/Screenshot.jpg

I have zipped all the files up, so as to keep things simple.
124998
All you need to do is uninstall the product and start again, by adding the xml file in your admincp.
Dont forget to upload the images provided into your forum/images/misc folder.

hope this clears a few things up, and maybe the mod author could update the front page with these files. :)
Can i use this without the green box img.?


*edit*
nvrmnd, i just photoshop'd the image. :)

Manoel J?nior
11-27-2011, 07:58 PM
See my idea, after this plugin after first post:

http://img26.imageshack.us/img26/6092/afeterfirstpost.png

Manoel J?nior
11-30-2011, 04:19 PM
can anyone help me?

Gamelobby
12-02-2011, 02:27 AM
You want it to show up after every post or after every 1st post.!?
I'm no expert, but I dont think you can do that, unless maybe putting it in as an advertisement.

Manoel J?nior
12-02-2011, 08:24 PM
You want it to show up after every post or after every 1st post.!?
I'm no expert, but I dont think you can do that, unless maybe putting it in as an advertisement.
I can only first post!!

How to?

Gamelobby
12-03-2011, 01:26 AM
Sorry, i dont understand.

Manoel J?nior
12-09-2011, 03:03 AM
Anyone???

LeventX
12-12-2011, 08:52 AM
Your sharing the beautiful.Thank You Atakan Koc

Paylaşımlarınız çok güzel..Teşekkür Ederim Atakan Koç

Dayı Bey
12-15-2011, 08:49 PM
Thank You Atakan Koc

Manoel J?nior
12-15-2011, 09:19 PM
Anyone know:

https://vborg.vbsupport.ru/showpost.php?p=2272499&postcount=378

MrBig
12-29-2011, 06:16 AM
How can i add it at the top of a users profile?

leffe
02-05-2012, 06:06 PM
Hi
Has someone tested this mod whith 4.1.10 ?

I can only get it to work at the bottom of forum ,not above where i whant it . Displays nothing.

$template_hook['forumhome_above_forumsandsidebar'] .= $templater->render();

Tested on a default style with no mods or nothing done to it.

Thanks Leffe

leffe
02-06-2012, 08:52 PM
Got it to work sort of ,

$template_hook['forumhome_above_forumsandsidebar'] .= $templater->render();

i deleted "andsidebar" to get it to work but that will of course interfer whith sideblocks.

Could someone help me out whith this please.

Leffe

Videx
02-06-2012, 11:19 PM
To move the block above the forums you want the last code change in this post: https://vborg.vbsupport.ru/showpost.php?p=2005793&postcount=199

K!nG
02-23-2012, 02:39 AM
Hello guys,

I just installed this mod on 4.1.10 and it does work but here is the problem.. Images are running off the forum page and way too big. also how can i have them to set as one size and show on top of the forum instead of bottom.
One most important thing for me to know is there any way possible that i can just set it up to pick up latest pictures from one specific section instead of random ????

Thanks in advance.

http://img708.imageshack.us/img708/1264/newalbumh.png

Toorak Times
02-23-2012, 03:20 AM
Love this, Thanks

wizzie
02-23-2012, 03:07 PM
Hi guys, can you please tell me where I can find this template

Template Newalbum_print

Thanks
Graham

Jpolola
03-03-2012, 11:46 PM
Installed and Thank you! Working fine at vb 4.1.8

Mopar1973Man
03-05-2012, 11:47 PM
Hi guys, can you please tell me where I can find this template

Template Newalbum_print

Thanks
Graham

Go to template search and type in the newalbum string and it will take you there... It not where you think its going to be... :eek:

ywwz
03-23-2012, 02:03 AM
Pls update ah...4.1.11 now la.

HolyKiller
03-23-2012, 06:24 PM
It works fine with vB 4.1.11. Anyway here is a small fix for the following bug:

https://vborg.vbsupport.ru/external/2012/04/17.png

After fix:
https://vborg.vbsupport.ru/external/2012/04/18.png

Edit template: newalbum_print

Find:
<div id="wgo_onlineusers" class="wgo_subblock">

Replace with:
<div id="wgo_onlineusers" class="wgo_subblock section">

Find:
<h3><img src=

Replace with:
<h3 class="blocksubhead"><img src=

zonaenlinea
04-06-2012, 03:41 AM
I have a problem my squad: newalbum_print

<div id="test" class="block collapse">
<h3 class="blockhead">
<b>{vb:raw resimlery}</b>
<a class="collapse" id="collapse_album_content" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_album_content_img}_40b.png" alt="{vb:rawphrase collapse_this_category}" /></a>
</h3>

<div id="album_content" class="childforum forumbit_post">
<div class="forumrow table" style="padding-right:0px">
<table class="block" cellpadding="6" cellspacing="6" border="0" width="100%" align="center">
<br />
<tr>
{vb:raw resimler}
</tr>
</table>
<br />
</div>
</div>
</div>

this well and I find that I have to change please and thank you very much

AndrewRich
04-06-2012, 11:10 PM
Installed on MousePad (see signature) with modifications from post 199 (https://vborg.vbsupport.ru/showpost.php?p=2005793&postcount=199). However, several of the current "most recent five" images are broken and the plugin doesn't seem to verify that the images are valid before it displays them. Any ideas?

michaelbang
04-08-2012, 11:53 PM
I did some changes in my coding here to get the result i wanted

Replace the templates with the following code.

Template Newalbum_print

<div id="test" class="block collapse">
<h3 class="blockhead">
<b>{vb:raw resimlery}</b>
<a class="collapse" id="collapse_album_content" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_album_content_img}_40b.png" alt="{vb:rawphrase collapse_this_category}" /></a>
</h3>

<div id="album_content" class="childforum forumbit_post">
<div class="forumrow table" style="padding-right:0px">
<table class="block" cellpadding="6" cellspacing="6" border="0" width="100%" align="center">
<br />
<tr>
{vb:raw resimler}
</tr>
</table>
<br />
</div>
</div>
</div>

Template Newalbum_picture

<td align="center">
<a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}"><img src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="269" border="0" /></a>
<br />
<a href="member.php?u={vb:raw lpicture.userid}">{vb:raw lpicture.musername}</a>
<br />
{vb:raw lpicture.title}
</td>

In pluginmanager - find New Album Picture Forum Home

find the code

$template_hook['forumhome_wgo_pos1'] .= $templater->render();

and change it with

$template_hook['forumhome_above_forums'] .= $templater->render();

And voila ..you got this :D

I can't seem to find template Newalbum_print nor Newalbum_picture. I'm looking in Options>Edit Templates> ??

Am I doing it wrong? Thank. :)

zonaenlinea
04-09-2012, 01:38 AM
I can't seem to find template Newalbum_print nor Newalbum_picture. I'm looking in Options>Edit Templates> ??

Am I doing it wrong? Thank. :)

All this work or not work? to place as indicastes:confused:

michaelbang
04-09-2012, 07:26 PM
Is it possible to do so that, in the bar with the latest album pictures, a user can only be shown once?

Right now, when a user uploads 5 or more pictures to their album, only pictures from their album shows. Would be nice you had the option to limit it, so that a users name only will come up once, so that there always will be 5 different names.

Possible?

Besides that, thanks for an awesome mod! :)

AndrewRich
04-10-2012, 09:35 PM
Is it possible to do so that, in the bar with the latest album pictures, a user can only be shown once?

Another vote for this as well.

michaelbang
04-16-2012, 08:50 PM
Is it possible to do so that, in the bar with the latest album pictures, a user can only be shown once?

Right now, when a user uploads 5 or more pictures to their album, only pictures from their album shows. Would be nice you had the option to limit it, so that a users name only will come up once, so that there always will be 5 different names.

Possible?

Besides that, thanks for an awesome mod! :)

Nothing on this? :)

alhidaya
04-19-2012, 02:43 PM
It 's work for vbulletin 4.1.1.2

Thank's

mrt12345
04-20-2012, 02:51 AM
hi there i followed these instructions " In pluginmanager - find New Album Picture Forum Home" and look for code https://vborg.vbsupport.ru/showpost.php?p=2005793&postcount=199

JUst cant fine the code in the pluginmanager. Bet even that the mod works well at the bottom and clean it up realy nice. thanks

Andreas [S]
04-20-2012, 12:16 PM
Is there a way to place the previews on top of the forum?

Videx
04-20-2012, 03:04 PM
;2321884']Is there a way to place the previews on top of the forum?Yes. I may have done it manually, but I'm pretty sure the instructions are buried in this thread somewhere. Possibly even in one of my own posts. If you find it, remind us where it's at.

K!nG
04-23-2012, 12:38 AM
It works fine with vB 4.1.11. Anyway here is a small fix for the following bug:

https://vborg.vbsupport.ru/external/2012/04/17.png

After fix:
https://vborg.vbsupport.ru/external/2012/04/18.png

Edit template: newalbum_print

Find:
<div id="wgo_onlineusers" class="wgo_subblock">

Replace with:
<div id="wgo_onlineusers" class="wgo_subblock section">

Find:
<h3><img src=

Replace with:
<h3 class="blocksubhead"><img src=


I was able to move it on top of my forum but pictures are in random sizes and looks very bad... they in small & very big size... if anyone can help me fixing the size... will be appreciated.. Thanks

Here is the picture.

http://img163.imageshack.us/img163/8582/albumzn.png

maneri
04-24-2012, 07:14 PM
I would like to place this plugin all around my VB community, I mean the whole forum, cms and blogs.

I have been trying it by changing the Hook Location (i.e.plugin hook location) and using "parse_templates" instead of "forumhome_start", but it does not work. The template hook has already been changed to location "ad_navbar_below" for the plugin to be shown in every page of my community.

Is "parse_templates" the right plugin hook location instead of "forumhome_start" in order last/random pics to be shown in every page ?

Thanks

Videx
04-24-2012, 07:30 PM
I would like to place this plugin all around my VB community, I mean the whole forum, cms and blogs. ...I don't know the answer, but be very careful as doing this could cause a lot of server load. Especially if you're on a shared server - don't try it.

maneri
04-25-2012, 08:14 AM
I understand,

Many thanks for your answer, Videx.

Greetings

mgurain
04-27-2012, 06:24 PM
How can we show the album images in the sidebar ? (as a block).
Or is there another mod that can do that ?

Thanks,,

Front Range 4x4
05-09-2012, 01:20 AM
I've searched, browsed, read and know this has to have been mentioned but I sure can't find it. I just want to put a simple wide white border around the photos. Can someone help me out?

Videx
05-09-2012, 01:48 AM
I don't recall ever seeing it mentioned. Probably not a huge server load to do this on the fly, but I wonder if it's even possible in gd.

Front Range 4x4
05-09-2012, 02:19 AM
I know it could be done in past versions because I did it Videx. The embarrassing thing is I've forgotten more in the past couple years than I'll admit. Now that I'm Admin again I'd like to add it but have wasted hours trying. :o

Front Range 4x4
05-13-2012, 01:55 AM
Here's what I did to style mine. I finally figured out how I put the frame around the photos...

victorvu
05-13-2012, 03:10 AM
Hi:

I installed this and it works fine. A few suggestions for the upgrade:

1) should have arrow back and forth.
2) should able to change to different album by clicking on the album display.

Thanks.

Installed and voted.

Victor:up:

blazinchuck
05-15-2012, 03:21 PM
Here's what I did to style mine. I finally figured out how I put the frame around the photos...

that looks beautiful...care to share how? thanks

Front Range 4x4
05-16-2012, 12:37 AM
Here's what I did to style mine. I finally figured out how I put the frame around the photos...

In response to PM's etc here how my newalbum_picture looks. Basic inline css...


<td align="center">
<a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}">
<img src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="Front Range 4x4 Member Rig" style="border:1px solid #000000;background:white;padding:4px;-webkit-box-shadow:0px 2px 2px rgba(0,0,0,0.8);-moz-box-shadow:0px 2px 2px rgba(0,0,0,0.8);box-shadow:0px 2px 2px rgba(0,0,0,0.8);border-image:initial;"/>
</a>
<br />
<a href="member.php?u={vb:raw lpicture.userid}">
{vb:raw lpicture.musername}
</a>
</td>



It's the same code I used in my albums, I like consistency.

dsantana
05-16-2012, 11:16 PM
How can I control the size of the images for this? They are showing up large as in my forum and not as thumbnails.

canna01
05-18-2012, 09:41 PM
Thank you Atakan KOC for this Mod.

Perfect and easy install. Hell I'm a beginner and only took like 2 min.

Does it only change pics on refresh/reload or can it be set to change at a set period of time? Have looked but haven't found the answer yet so any advise would be appreciated.

Again thanks loads.

K!nG
05-19-2012, 04:06 AM
In response to PM's etc here how my newalbum_picture looks. Basic inline css...


<td align="center">
<a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}">
<img src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="Front Range 4x4 Member Rig" style="border:1px solid #000000;background:white;padding:4px;-webkit-box-shadow:0px 2px 2px rgba(0,0,0,0.8);-moz-box-shadow:0px 2px 2px rgba(0,0,0,0.8);box-shadow:0px 2px 2px rgba(0,0,0,0.8);border-image:initial;"/>
</a>
<br />
<a href="member.php?u={vb:raw lpicture.userid}">
{vb:raw lpicture.musername}
</a>
</td>



It's the same code I used in my albums, I like consistency.

Hi Front Range,,,

I am probably asking for too much but is it possible for you to share ur xml files with all the updates ??? If u can will really appreciate it or if u can send me via pm. .. Thanks in advance.

Chadi
05-24-2012, 09:01 PM
Not sure why, this is not showing up (its enabled though). Using vb 4.2.0

Front Range 4x4
05-27-2012, 11:28 PM
Hi Front Range,,,

I am probably asking for too much but is it possible for you to share ur xml files with all the updates ??? If u can will really appreciate it or if u can send me via pm. .. Thanks in advance.

I'm not sure what you're asking. :o

Chadi
05-29-2012, 12:50 AM
Anyone know how to get this working?

CharlieDelta
05-29-2012, 01:46 AM
Anyone know how to get this working?
I am using it with these edits (https://vborg.vbsupport.ru/showpost.php?p=2005793&postcount=199) and with Front Range 4x4's very nice style edit. (https://vborg.vbsupport.ru/showthread.php?p=2329731#post2329731)

Chadi
05-29-2012, 03:30 AM
Thanks, but those 2 templates do not even exist in my template area. The plugin is installed otherwise.

Btw, is it normal to have this option in admincp > options area

" vB3 Member Album"

I only have this plugin installed and and this mod:
https://vborg.vbsupport.ru/showthread.php?t=237931

I don't know why the vb3 one is there. I uninstalled all plugins 100% prior to upgrading from 3.8x

CharlieDelta
05-29-2012, 12:47 PM
The templates do exist you are just not looking in the right spot. (assuming you still have the mod installed) ;)
Look under "New Posting Templates" and they are at the very top. :)

Sorry I can't help you with the VB3 issue but I would suggest you remove the link located inside "Help" as it directs to your admincp.

Chadi
05-29-2012, 12:58 PM
I don't see this in plugin manager > New Album Picture Forum Home (there are 2 of these), none have those codes

the cache template one has only

if (THIS_SCRIPT == "index")
{
// global $cache;
$cache[] = 'newalbum_picture';
$cache[] = 'newalbum_print';
}forumhome_start has

if (
(
$vbulletin->options['socnet'] & $vbulletin->bf_misc_socnet['enable_albums']
AND
$permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canviewmembers']
AND
$permissions['albumpermissions'] & $vbulletin->bf_ugp_albumpermissions['canviewalbum']
AND
$vbulletin->options['new_enable_albums']
)
)
{
$displayrecords = ($vbulletin->options['new_afm_sayi'] ? $vbulletin->options['new_afm_sayi'] : 4);
switch ($vbulletin->options['new_afm_dt'])
{
case 1:
$sorgu = "ORDER BY dateline DESC LIMIT 0, $displayrecords";
$resimlery = $vbphrase['new_afm_sec5'];
break;
case 2:
$sorgu = "ORDER BY rand(NOW()) DESC LIMIT 0, $displayrecords";
$resimlery = $vbphrase['new_afm_sec6'];
break;
}
$lpictures = $db->query("
SELECT albumpicture.*, album.*, user.username, user.usergroupid,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM " . TABLE_PREFIX . "attachment AS albumpicture
LEFT JOIN " . TABLE_PREFIX . "album AS album ON(album.albumid = albumpicture.contentid)
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = album.userid)
WHERE album.state = 'public' and albumpicture.contenttypeid = 8
$sorgu
");
if ($db->num_rows($lpictures))
{
while ($lpicture = $db->fetch_array($lpictures))
{
$lpicture['musername'] = fetch_musername($lpicture);
$lpicture['title'] = trim(strip_quotes($lpicture['title']));
// eval('$resimler .= "' . fetch_template('afm_picture') . '";');
$templater_x1 = vB_Template::create('newalbum_picture');
$templater_x1->register('lpicture',$lpicture);
$resimler .= $templater_x1->render();

}

$templater = vB_Template::create('newalbum_print');
$templater->register('resimler',$resimler);
$templater->register('resimlery',$resimlery);
$template_hook['forumhome_wgo_pos2'] .= $templater->render();

}
$db->free_result($lpictures);
}


Even so, nothing shows up on my forumhome regardless :(

CharlieDelta
05-29-2012, 01:23 PM
I see the code. :D I highlighted it in red for you.
If you have custom styles you have to make the template edits in all styles.

I don't see this in plugin manager > New Album Picture Forum Home (there are 2 of these), none have those codes

the cache template one has only

if (THIS_SCRIPT == "index")
{
// global $cache;
$cache[] = 'newalbum_picture';
$cache[] = 'newalbum_print';
}forumhome_start has

if (
(
$vbulletin->options['socnet'] & $vbulletin->bf_misc_socnet['enable_albums']
AND
$permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canviewmembers']
AND
$permissions['albumpermissions'] & $vbulletin->bf_ugp_albumpermissions['canviewalbum']
AND
$vbulletin->options['new_enable_albums']
)
)
{
$displayrecords = ($vbulletin->options['new_afm_sayi'] ? $vbulletin->options['new_afm_sayi'] : 4);
switch ($vbulletin->options['new_afm_dt'])
{
case 1:
$sorgu = "ORDER BY dateline DESC LIMIT 0, $displayrecords";
$resimlery = $vbphrase['new_afm_sec5'];
break;
case 2:
$sorgu = "ORDER BY rand(NOW()) DESC LIMIT 0, $displayrecords";
$resimlery = $vbphrase['new_afm_sec6'];
break;
}
$lpictures = $db->query("
SELECT albumpicture.*, album.*, user.username, user.usergroupid,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM " . TABLE_PREFIX . "attachment AS albumpicture
LEFT JOIN " . TABLE_PREFIX . "album AS album ON(album.albumid = albumpicture.contentid)
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = album.userid)
WHERE album.state = 'public' and albumpicture.contenttypeid = 8
$sorgu
");
if ($db->num_rows($lpictures))
{
while ($lpicture = $db->fetch_array($lpictures))
{
$lpicture['musername'] = fetch_musername($lpicture);
$lpicture['title'] = trim(strip_quotes($lpicture['title']));
// eval('$resimler .= "' . fetch_template('afm_picture') . '";');
$templater_x1 = vB_Template::create('newalbum_picture');
$templater_x1->register('lpicture',$lpicture);
$resimler .= $templater_x1->render();

}

$templater = vB_Template::create('newalbum_print');
$templater->register('resimler',$resimler);
$templater->register('resimlery',$resimlery);
$template_hook['forumhome_wgo_pos2'] .= $templater->render();

}
$db->free_result($lpictures);
}


Even so, nothing shows up on my forumhome regardless :(

Chadi
05-29-2012, 01:32 PM
Thanks, did that and template edits but still nothing shows up

CharlieDelta
05-29-2012, 01:35 PM
Does anyone have albums uploaded? It won't show any pictures until you do.

Chadi
05-29-2012, 03:08 PM
I did some changes in my coding here to get the result i wanted

Replace the templates with the following code.

Template Newalbum_print

<div id="test" class="block collapse">
<h3 class="blockhead">
<b>{vb:raw resimlery}</b>
<a class="collapse" id="collapse_album_content" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_album_content_img}_40b.png" alt="{vb:rawphrase collapse_this_category}" /></a>
</h3>

<div id="album_content" class="childforum forumbit_post">
<div class="forumrow table" style="padding-right:0px">
<table class="block" cellpadding="6" cellspacing="6" border="0" width="100%" align="center">
<br />
<tr>
{vb:raw resimler}
</tr>
</table>
<br />
</div>
</div>
</div>Template Newalbum_picture

<td align="center">
<a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}"><img src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="269" border="0" /></a>
<br />
<a href="member.php?u={vb:raw lpicture.userid}">{vb:raw lpicture.musername}</a>
<br />
{vb:raw lpicture.title}
</td>In pluginmanager - find New Album Picture Forum Home

find the code

$template_hook['forumhome_wgo_pos1'] .= $templater->render(); and change it with

$template_hook['forumhome_above_forums'] .= $templater->render(); And voila ..you got this :D


I tried this again on a forum home album mod using your code

I have it set as

<div class="vbcat">
<div class="vbcat_left">
<div class="vbcat_right">
<a class="collapse" id="collapse_album_content" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_album_content_img}_40b.png" alt="{vb:rawphrase collapse_this_category}" /></a>
</div>
</div>
</div>
<div id="album_content" class="childforum forumbit_post">
<div class="forumrow table" style="padding-right:0px">
<table class="block" cellpadding="6" cellspacing="6" border="0" width="100%" align="center">
<br />
<tr>
{vb:raw resimler}
</tr>
</table>
<div class="vbcat_bottom"><div class="vbcat_bottom_left"><div class="vbcat_bottom_right"></div></div></div>
</div>
</div>

But, this is how it appears

http://www.vbstyles.com/forum/attachment.php?attachmentid=1984&stc=1


Noticed few problems:

its not properly aligned with sideblock
the collapse button, that row/table section is not properly widened to rest of table.
footer of table, extra purple row?

Thanks in advance.

Chadi
05-30-2012, 01:08 AM
Got the template working, Just a question - how can I insert this in a custom location? I tried copying the newalbum_picture template into a custom forumhome spot and this is all it outputs:

THis is the entire code I'm using in forumhome, for the 2 columned table for my shoutbox and this gallery

<div class="vbcat">
<div class="vbcat_left">
<div class="vbcat_right">
<a class="collapse" id="collapse_shoutbox" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_album_content_img}_40b.png" alt="{vb:rawphrase collapse_this_category}" /></a>
</div>
</div>
</div>
<table border="0" width="100%" align="center" columns="2">
<tr>
<td>
<div id="shoutbox">
<iframe frameborder="0" style="height: 185px; overflow:auto; width: 95%" src="http://www.cbox.ws/box/?boxid=439&boxtag=7868&sec=main" name="cboxmain" id="cboxmain" seamless="seamless" scrolling="auto" frameborder="0"></iframe>
<iframe frameborder="0" width="95%" height="55" src="http://www.cbox.ws/box/?boxid=439&boxtag=7868&sec=form&wmsg=350&nme=$cbox _nme&nmekey=$cbox_key" marginheight="1" marginwidth="1" scrolling="no" allowtransparency="yes" name="cboxform" id="cboxform"></iframe>
</div>
</td>
<td align="center">
<a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}">
<img src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="Front Range 4x4 Member Rig" style="border:1px solid #ddd;background:white;padding:4px;-webkit-box-shadow:0px 2px 2px rgba(0,0,0,0.8);-moz-box-shadow:0px 2px 2px rgba(0,0,0,0.8);box-shadow:0px 2px 2px rgba(0,0,0,0.8);border-image:initial;"/>
</a>
<br />
<a href="member.php?u={vb:raw lpicture.userid}">
{vb:raw lpicture.musername}
</a>
</td>
</tr>
</table>
<div class="vbcat_bottom"><div class="vbcat_bottom_left"><div class="vbcat_bottom_right"></div></div></div>

Bisha
05-30-2012, 09:23 AM
Anyone have the modification for thumbnails??
Thank you!

Toorak Times
05-31-2012, 03:45 AM
Works fine in my Fluid skins but breaks the Fixed skins up. Is there any fix or is this mod for Fluid skins only?

silpher
06-01-2012, 02:57 PM
how to put this on the TOP of Forum Home?

Videx
06-01-2012, 04:28 PM
how to put this on the TOP of Forum Home?This is a common request, but despite telling people to search for the answer nobody recently has come back with the link so I went looking myself. It was only slightly more difficult than simply searching for "top".

https://vborg.vbsupport.ru/showpost.php?p=1962025&postcount=120

Obviously you won't want to use the file as it's so old, but I sure hope someone tries the edit and reports back if it still works. Mine's still at the top in 4.1.8 and this must have been the way I got it there.

Chadi
06-02-2012, 02:12 PM
How can I place this in a custom area?

Chadi
06-03-2012, 01:58 AM
Any one know how to replicate this photo look?

https://vborg.vbsupport.ru/external/2012/06/52.jpg (http://postimage.org/image/bdlo28r4l/)

car20
06-07-2012, 02:40 AM
good mod thanks.

I have one problem whit this mod , when mouse over on picture tool tip show 269 for all of the image .

pkease see my forum.http://www.forum.car20.com/forum.php

Mr_Running
06-07-2012, 10:23 AM
good mod thanks.

I have one problem whit this mod , when mouse over on picture tool tip show 269 for all of the image .

pkease see my forum.http://www.forum.car20.com/forum.php

vBAdmin
Styles & Templates --> Search in Templates --> newalbum_picture

find alt="269"

Change 269 to what ever you would like it to be. :)

Manoel J?nior
06-08-2012, 06:40 PM
Anyone know:

https://vborg.vbsupport.ru/showpost.php?p=2272499&postcount=378

Anyone?

Manoel J?nior
06-09-2012, 05:33 PM
Very BIG images in Forum home, how to fix?

Chadi
06-09-2012, 11:35 PM
Can you please add a feature not to display pictures in moderation queue? Thanks :)

Bisha
06-13-2012, 03:14 PM
I don't understand why stopped displaying for guests ?!

car20
06-14-2012, 05:04 PM
vBAdmin
Styles & Templates --> Search in Templates --> newalbum_picture

find alt="269"

Change 269 to what ever you would like it to be. :)

Solved Problem ,

Thanks Man

Chadi
06-20-2012, 05:20 PM
Can you please add a feature not to display pictures in moderation queue? Thanks :)

Anyone know how to add this option?

Rideharder
07-17-2012, 06:51 PM
This is a common request, but despite telling people to search for the answer nobody recently has come back with the link so I went looking myself. It was only slightly more difficult than simply searching for "top".

https://vborg.vbsupport.ru/showpost.php?p=1962025&postcount=120

Obviously you won't want to use the file as it's so old, but I sure hope someone tries the edit and reports back if it still works. Mine's still at the top in 4.1.8 and this must have been the way I got it there.


Thanks worked for 4.1.12

M.C.
08-02-2012, 08:40 AM
anyone? how to move it from statistic area upto under navbar?

LgsOfChampions
08-02-2012, 12:49 PM
dont think it works with 4.2p2

Videx
08-02-2012, 01:40 PM
It's working here in 4.2. My last post (https://vborg.vbsupport.ru/showpost.php?p=2335496&postcount=439) links to instructions how to move it to the top and someone subsequently verified the method still works.

legion!
08-03-2012, 04:39 AM
uninstalled until i can get it under the shoutbox where it serves better purpose rather then stuffed at the bottm great hack though

Videx
08-03-2012, 01:40 PM
uninstalled until i can get it under the shoutbox where it serves better purpose rather then stuffed at the bottm great hack thoughIs that your way of saying the method I just linked to in the post just before yours didn't work for you? If not, it would be good to find out why so a different solution can be figured out.

CharlieDelta
08-04-2012, 01:53 AM
The method Videx is mentioning still does work as I have it working in 4.2. If you follow the instructions it will work.

Noerenberg
08-06-2012, 05:39 AM
Hi,

right now i have this under the navbar but over my sidebar, is it possible thet my sidebar will go exactly near the picture?

Toorak Times
08-06-2012, 12:06 PM
I've been trolling through the thread and can't find answers. Please help.

Have Fixed skin and the pics are really huge! I'm not good with code but is there a fix?

Cheers

Gemma
08-06-2012, 04:53 PM
I've been trolling through the thread and can't find answers. Please help.

Have Fixed skin and the pics are really huge! I'm not good with code but is there a fix?

Cheers

In the newalbum_picture template find border="0" add height="X px" width="X px" or you can just add height="X px" (changing the X's to suit your needs)

Toorak Times
08-08-2012, 11:02 AM
In the newalbum_picture template find border="0" add height="X px" width="X px" or you can just add height="X px" (changing the X's to suit your needs)


Thanks a lot Gemma, worked a treat for me, now I'll try and get the frames in. Cheers, made my day! Another box ticked and a lesson...fixed the issue I had with my fixed skins too, two birds with one stone!

Chadi
08-09-2012, 04:43 PM
Can you please add a feature not to display pictures in moderation queue? Thanks :)

Anyone know how to accomplish this? Thanks in advance.

samichina
10-13-2012, 03:30 PM
Dear all,
This mod do not work with 4.1.10. Album do not show exactly in forum. I just see number 269 in near online member (bottom of forum).
Please help me.
Thanks.
141690

M.C.
10-15-2012, 12:32 PM
how make pictures to be shown in 2+ rows?

Paolitus
11-26-2012, 04:03 PM
my previews are larger than the attachments album
You solution..??. work with vbulletin 4.2

Thank

FTG LIQUID CL
01-05-2013, 02:48 PM
works with 4.1.12

Toorak Times
01-06-2013, 12:52 AM
my previews are larger than the attachments album
You solution..??. work with vbulletin 4.2

Thank


Originally Posted by Gemma
In the newalbum_picture template find border="0" add height="X px" width="X px" or you can just add height="X px" (changing the X's to suit your needs)

Thanks a lot Gemma, worked a treat for me, now I'll try and get the frames in. Cheers, made my day! Another box ticked and a lesson...fixed the issue I had with my fixed skins too, two birds with one stone!

Mark4865
01-09-2013, 06:59 AM
Simply, easy to use, works perfectly on 4.2 P3

thanks for effort nice add on

fxdigi-cash
01-23-2013, 11:08 PM
Thanks for the mod. works great on vb.4.2

however, I want to know if it is possible to add a background at the back of pictures in forum home so they show up as one horizontal line

this is an example: https://vborg.vbsupport.ru/external/2013/01/15.png

is there a place in the mod where I can add this code??

any idea?

fxdigi-cash
01-24-2013, 02:03 AM
surprisingly, I did what I was looking for.

here it is attached just in case someone wants to have it modified.

and here you can find the example on top of the navbar: http://www.forexmegacashback.com/ar/

Note that this one is for the top side, not bottom one as the original attachment.

important: you need to upload a png file named vertical_line.png to your style dir so the background works.

Good luck,

Steve

RFViet
03-21-2013, 10:37 PM
It doesn't work for me. I'm using vb 4.2 p3, after importing the plug-in and turn it on. It shows nothing but the picture links as shown in the attachment. Any idea about this problem ?

pokusek
04-05-2013, 08:03 PM
Is there a way to display the name of the image?

pokusek
04-05-2013, 08:52 PM
Got it. $lpicture['mpicname'] = trim(strip_quotes($lpicture['caption']));

fxdigi-cash
04-06-2013, 02:38 PM
It doesn't work for me. I'm using vb 4.2 p3, after importing the plug-in and turn it on. It shows nothing but the picture links as shown in the attachment. Any idea about this problem ?

are you using vbseo mod or shortening url mod??

if yes, disable it and try it again to see if it works or not.

If things are fine, then you'll need to check the links that are brought to your main forum.

And then check the permissions to viewing attachments

RFViet
04-07-2013, 06:24 PM
are you using vbseo mod or shortening url mod??

if yes, disable it and try it again to see if it works or not.

If things are fine, then you'll need to check the links that are brought to your main forum.

And then check the permissions to viewing attachments\

Thanks for the advice, actually I ran rebuild album update and that fixed my problem :D

RFViet
04-07-2013, 06:50 PM
Got it. $lpicture['mpicname'] = trim(strip_quotes($lpicture['caption']));

I added that line but it doesn't work for me.

Chadi
04-25-2013, 02:56 AM
Hey guys,

How can I put this in a custom location?

fxdigi-cash
05-06-2013, 08:21 PM
I added that line but it doesn't work for me.

where did you add this line?? to the product as additional code? or where?

RFViet
05-06-2013, 11:54 PM
where did you add this line?? to the product as additional code? or where?

In the Hook Location : forumhome_start -> add that line in the while loop as shown below:

while ($lpicture = $db->fetch_array($lpictures))
{
$lpicture['musername'] = fetch_musername($lpicture);
$lpicture['title'] = trim(strip_quotes($lpicture['title']));
$lpicture['mpicname'] = trim(strip_quotes($lpicture['caption']));
// eval('$resimler .= "' . fetch_template('afm_picture') . '";');
$templater_x1 = vB_Template::create('newalbum_picture');
$templater_x1->register('lpicture',$lpicture);
$resimler .= $templater_x1->render();

}

pokusek
05-07-2013, 06:49 AM
I added that line but it doesn't work for me.

Are you using it in the product's plugin that is hooked to "forumhome_start"?


Hey guys,

How can I put this in a custom location?

I am using this: {vb:raw template_hook.forumhome_wgo_posX}

Replace X with a number that is assigned to the template. In the .xml file it seems to be 2 but my number is higher.

RFViet
05-07-2013, 05:34 PM
Are you using it in the product's plugin that is hooked to "forumhome_start"?


Yes !!. Go to plug-in manager -> under New Album Picture forum Home.
I don't know where else to place that line ?

pokusek
05-07-2013, 06:53 PM
Yes !!. Go to plug-in manager -> under New Album Picture forum Home.
I don't know where else to place that line ?

What doesn't work for you then? You can use the variable $lpicture['mpicname'] and do whatever you want to do with it (I assume that you want to print it - use echo $lpicture['mpicname']; for that).

RFViet
05-07-2013, 07:12 PM
What doesn't work for you then? .

It doesn't show the captions as it's supposed !!!

blackie58
05-08-2013, 10:41 AM
Thanks very much mobe

Even with my limited programming knowledge it works

Excellent

www.desmocorse.net



I did some changes in my coding here to get the result i wanted

Replace the templates with the following code.

Template Newalbum_print

<div id="test" class="block collapse">
<h3 class="blockhead">
<b>{vb:raw resimlery}</b>
<a class="collapse" id="collapse_album_content" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_album_content_img}_40b.png" alt="{vb:rawphrase collapse_this_category}" /></a>
</h3>

<div id="album_content" class="childforum forumbit_post">
<div class="forumrow table" style="padding-right:0px">
<table class="block" cellpadding="6" cellspacing="6" border="0" width="100%" align="center">
<br />
<tr>
{vb:raw resimler}
</tr>
</table>
<br />
</div>
</div>
</div>

Template Newalbum_picture

<td align="center">
<a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}"><img src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="269" border="0" /></a>
<br />
<a href="member.php?u={vb:raw lpicture.userid}">{vb:raw lpicture.musername}</a>
<br />
{vb:raw lpicture.title}
</td>

In pluginmanager - find New Album Picture Forum Home

find the code

$template_hook['forumhome_wgo_pos1'] .= $templater->render();

and change it with

$template_hook['forumhome_above_forums'] .= $templater->render();

And voila ..you got this :D

mgurain
05-19-2013, 09:53 PM
Any update for 4.2.1 ?

RichieBoy67
05-21-2013, 05:59 PM
Thanks very much mobe

Even with my limited programming knowledge it works

Excellent

www.desmocorse.net (http://www.desmocorse.net)

I gotta look into this because it causes my sidebar to get pushed down....

K!nG
06-16-2013, 11:57 PM
Hey everyone,
When i installed this mod. It not showing my album pics in same size, they all are in different size some are way too big and some are normal. Please see the attached screenshot and see if anyone can help me in showing these pics in one same size.

https://vborg.vbsupport.ru/

MAdotcom
06-26-2013, 06:15 PM
It doesn't work for me. I'm using vb 4.2 p3, after importing the plug-in and turn it on. It shows nothing but the picture links as shown in the attachment. Any idea about this problem ?

I am having a similar problem. Some pictures are not displaying and others are. I have a bunch of pictures and one will randomly show '269'

Any ideas?

RFViet
06-26-2013, 07:22 PM
I am having a similar problem. Some pictures are not displaying and others are. I have a bunch of pictures and one will randomly show '269'

Any ideas?

Run Album Rebuild Update. It works for me !!

MAdotcom
06-27-2013, 05:26 PM
Thank you I will give that a shot :)

Toorak Times
06-28-2013, 10:42 AM
Hey everyone,
When i installed this mod. It not showing my album pics in same size, they all are in different size some are way too big and some are normal. Please see the attached screenshot and see if anyone can help me in showing these pics in one same size.

http://img545.imageshack.us/img545/5961/867g.png


Early in this thread you'll find a fix, how do we get a sticky of the fixes and modifications to this modification, I have to go find it myself so I'll get back to you if I do find it

tonmo
08-11-2013, 01:21 PM
This does not seem to uninstall from vb5. Following the uninstall option yields apparent success, but it still appears as an option under Settings, and when you go back to >Products it's there again...

Edit: disabling seems to work, but not uninstalling.

placeshifter
08-28-2013, 10:16 PM
Unless I am missing something, which is entirely possible, the mod doesn't currently respect profile privacy settings. As an example, if a member selects that only friends can see their album the thumbnails from that album may still be displayed. Arguably if the member has selected that option then the thumbnails shouldn't be displayed either.

To fix this the main SQL select needs to change to include:

LEFT OUTER JOIN profileblockprivacy AS pbp ON (pbp.userid = album.userid AND pbp.blockid = 'album')

and

AND (pbp.requirement = 0 OR pbp.requirement IS null)

Has this been included in the mod or is it still a privacy nightmare?

Where should this be added ? Thanks!

Pop's Stang
10-16-2013, 06:01 PM
I have installed this mod on my site. Everything seems to be working fine, and thanks to the help from post #140 I now have it on the navbar. The problem I am having is that I have a few random pictures that show up larger than others. I ran the "Rebuild Recently Updated Albums" as others have suggested, but that didn't seem to solve the problem.

Does anyone have a suggestion? Thanks.

vb: 4.2.0
www.stangalley.com/forum.php


https://vborg.vbsupport.ru/external/2013/10/39.png (http://s1230.photobucket.com/user/PopsStang/media/Website%20Images/RandomPicture_zpsbbdc6019.png.html)

Pop's Stang
10-19-2013, 12:52 AM
I have installed this mod on my site. Everything seems to be working fine, and thanks to the help from post #140 I now have it on the navbar. The problem I am having is that I have a few random pictures that show up larger than others. I ran the "Rebuild Recently Updated Albums" as others have suggested, but that didn't seem to solve the problem.

Does anyone have a suggestion? Thanks.

vb: 4.2.0
www.stangalley.com/forum.php


https://vborg.vbsupport.ru/external/2013/10/39.png (http://s1230.photobucket.com/user/PopsStang/media/Website%20Images/RandomPicture_zpsbbdc6019.png.html)

Never mind...some how it fixed itself. :confused:

Reece^B
10-19-2013, 05:06 PM
How do you let guests view this? So far only members.

Pop's Stang
10-22-2013, 08:14 AM
How do you let guests view this? So far only members.

Adminup>Usergroup>Usergroupmanger>Unregistered/notonline> user album permisson click yes.

Reece^B
10-26-2013, 12:49 PM
I've selected can view albums / can have albums.

Still displays nothing?

giorgioarmani
01-16-2014, 07:24 PM
How can I move this from the What's Going On section to below the navbar?

mudrunner
03-31-2014, 01:23 AM
Ok so I've been wanting this above my forum as alot of people and seeing the one post that told how to do it got me wanting it more, but I have an ad and don't want to replace it. So here is what I did to get it up on the top of the forum, and can be collapsed. this does take a decent amount of editing to do, and use these steps at your own risk, and I hope im not imposing too much by sharing these changes to get the result I was looking for

Go to products and edit the New Album Picture Forum Home product
replace

$template_hook['forumhome_wgo_pos1'] .= $templater->render();

with

$newpics2 = $templater->render();
vB_Template::preRegister('navbar', array('resimler' => $newpics2));


This is from page 10 post 140

So I've been wanting to do this, but I can't figure out how to edit the product.
If I edit the XML file I see $template_hook['forumhome_wgo_pos2'] .= $templater->render();

NOT: 'forumhome_wgo_pos1'

is that the correct line? Or am I looking in the wrong place?
The only way I figured out how to edit the product was the XML file itself then re-upload it.

I can handle editing the templates.

Thanks

RichieBoy67
03-31-2014, 04:28 AM
You edit the product in the plug in manager.

------------------------------

BTW - I have recently disabled this plug in due to it not showing images correctly in Internet Explorer. I have not yet gone through this though to see if it is something else with in my site causing the issue other than this plug in.