vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - New Latest Album Pictures - Forum Home (https://vborg.vbsupport.ru/showthread.php?t=228618)

zonaenlinea 04-09-2012 01:38 AM

Quote:

Originally Posted by michaelbang (Post 2318166)
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

Quote:

Originally Posted by michaelbang (Post 2318425)
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

Quote:

Originally Posted by michaelbang (Post 2318425)
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....&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

Quote:

Originally Posted by Andreas [S] (Post 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

Quote:

Originally Posted by HolyKiller (Post 2312578)
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:
Code:

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

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

<h3><img src=
Replace with:
Code:

<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

Quote:

Originally Posted by maneri (Post 2323162)
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

1 Attachment(s)
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

Quote:

Originally Posted by Front Range 4x4 (Post 2328878)
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

Quote:

Originally Posted by Front Range 4x4 (Post 2328878)
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...

Code:

<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

Quote:

Originally Posted by Front Range 4x4 (Post 2329731)
In response to PM's etc here how my newalbum_picture looks. Basic inline css...

Code:

<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

Quote:

Originally Posted by K!nG (Post 2330609)
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

Quote:

Originally Posted by Chadi (Post 2334111)
Anyone know how to get this working?

I am using it with these edits and with Front Range 4x4's very nice style edit.

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
Code:

"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

Code:

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

forumhome_start has

Code:

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.

Quote:

Originally Posted by Chadi (Post 2334274)
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

Code:

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

forumhome_start has

Code:

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

Quote:

Originally Posted by mobe00 (Post 2005793)
I did some changes in my coding here to get the result i wanted

Replace the templates with the following code.

Template Newalbum_print

Code:

<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

Code:

<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

Code:

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

Code:

$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

Code:

<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/attach...tid=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

1 Attachment(s)
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

Code:

    <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

Quote:

Originally Posted by silpher (Post 2335442)
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....&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?


All times are GMT. The time now is 05:55 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01990 seconds
  • Memory Usage 1,875KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (17)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete