The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Latest Album Pictures - Forum Home Details »» | |||||||||||||||||||||||||||||||
Latest Album Pictures - Forum Home
It shows the pictures added to the albums on the main page. It shows only the public mentioned files. If not shows the reasons are: vbulletin settings show albums must be enabled. The user grup that owns the pictures must be enabled show picture setting. Or there is no picture to show. You can show the pictures in 4 different sections: Navbar Bellow, Forums Above, Forums Below, Whois Online Below Additionally you can slect the number of pictures that can be shown. Hope it works for you as I like it very much. install Go to your admin cp, then: Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-afm.xml' from your computer then press 'Import' Modifications Info Plugin : 2 Phrases : 12 Template : 2 Setting : 3 Query : 1 Query Latest Posts Setting Go to your admin cp, then: vBulletin Options -> Latest Album Picture - Forum Home -> Versions: v1.0 - 28 March 2008 -First release v1.1 - 29 March 2008 - collapsible box - Display type "random, latest" v1.2 - 29 March 2008 - collapsible box on/off options v1.3 - 01 April 2008 - Small (template and phrase) change v2.0 - 13 Octaber 2008 - vBulletin 3.8.0 Download Now
Screenshots
Show Your Support
|
Comments |
#132
|
|||
|
|||
here's a quick dirty way to do it.
AdminCP> Styles & Templates> afm_picture change to: Code:
<td align="center"> <a href="album.php?albumid=$lpicture[albumid]&pictureid=$lpicture[pictureid]"> <img title="$lpicture[title]" class="inlineimg" src="picture.php?pictureid=$lpicture[pictureid]&albumid=$lpicture[albumid]&thumb=1" border="0" alt="$lpicture[title]" /> </a> <br /> <a href="member.php?u=$lpicture[userid]">$lpicture[musername]</a> <br /> $lpicture[title] $tabler change to: 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['afm_onoff'] ) ) { $displayrecords = ($vbulletin->options['afm_sayi'] ? $vbulletin->options['afm_sayi'] : 4); switch ($vbulletin->options['afm_dt']) { case 1: $sorgu = "ORDER BY dateline DESC LIMIT 0, $displayrecords"; break; case 2: $sorgu = "ORDER BY rand(NOW()) DESC LIMIT 0, $displayrecords"; break; } $lpictures = $db->query(" SELECT albumpicture.*, album.*, user.username, user.usergroupid, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid FROM " . TABLE_PREFIX . "albumpicture AS albumpicture LEFT JOIN " . TABLE_PREFIX . "album AS album ON(album.albumid = albumpicture.albumid) LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = album.userid) WHERE album.state = 'public' $sorgu "); if ($db->num_rows($lpictures)) { while ($lpicture = $db->fetch_array($lpictures)) { $lpicture['musername'] = fetch_musername($lpicture); $lpicture['title'] = trim(strip_quotes($lpicture['title'])); if ($pic_count >= 4){ $tabler = '</td></tr><tr>'; $pic_count = ''; }else{ $tabler = '</td>'; $pic_count++; } eval('$resimler .= "' . fetch_template('afm_picture') . '";'); } switch ($vbulletin->options['afm_yer']) { case 1: $vbulletin->templatecache['navbar'] .= $vbulletin->templatecache['afm_latestfm']; break; case 2: $vbulletin->templatecache['FORUMHOME'] = str_replace('<!-- main -->', '<!-- what\'s going on box -->'.$vbulletin->templatecache['afm_latestfm'], $vbulletin->templatecache['FORUMHOME']); break; case 3: $vbulletin->templatecache['FORUMHOME'] = str_replace('<!-- what\'s going on box -->', '<!-- end what\'s going on box -->'.$vbulletin->templatecache['afm_latestfm'], $vbulletin->templatecache['FORUMHOME']); break; case 4: $vbulletin->templatecache['FORUMHOME'] = str_replace('<!-- end what\'s going on box -->', '<!-- end what\'s going on box -->'.$vbulletin->templatecache['afm_latestfm'], $vbulletin->templatecache['FORUMHOME']); break; } } $db->free_result($lpictures); } |
#133
|
|||
|
|||
thanks man!
|
#134
|
|||
|
|||
no problem.
it's always good to help each other out when we can. |
#135
|
|||
|
|||
What about EXCLUDING different albums? Anyway to add a button on each album to that only Moderators can check to exclude it from rotation.
|
#136
|
|||
|
|||
Thanks for the grate mod but I cant seem to make this work with my site. I cant even see the box for the images. I use vbull 3.8.4 fresh installation but there are some pics that I have edited. I have enabled albums I have even updated counters but nothing...
Can you please tell me what I am doing wrong and assist? Thank you for our time. |
#137
|
||||
|
||||
perfecto gracias, me quedo muy bien
|
#138
|
||||
|
||||
Installed and working in less than 2-mins. Thank you!
|
#139
|
|||
|
|||
is there a way to use this with photopost Instead of the vb gallery?
|
#140
|
|||
|
|||
is it possible that the guest can see this too?
|
#141
|
|||
|
|||
guests must be able to view members AND albums in usergroup permissions.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|