Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Latest Album Pictures - Forum Home Details »»
Latest Album Pictures - Forum Home
Version: 2.00, by Atakan KOC Atakan KOC is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.8.x Rating:
Released: 10-27-2008 Last Update: Never Installs: 658
Uses Plugins Template Edits Auto-Templates
 
No support by the author.

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

File Type: xml product-afm.xml (8.2 KB, 3102 views)

Screenshots

File Type: jpg resim3.jpg (46.4 KB, 0 views)
File Type: jpg resim4.jpg (39.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #132  
Old 01-11-2010, 04:06 PM
testbot testbot is offline
 
Join Date: Feb 2009
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]&amp;pictureid=$lpicture[pictureid]">
<img title="$lpicture[title]" class="inlineimg" src="picture.php?pictureid=$lpicture[pictureid]&amp;albumid=$lpicture[albumid]&amp;thumb=1"  border="0" alt="$lpicture[title]" />
</a>
<br />
<a href="member.php?u=$lpicture[userid]">$lpicture[musername]</a> 
<br />
$lpicture[title]
$tabler
AdminCP>Plugins & Products>Plugin Manager>Latest Album Picture
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);
}
Reply With Quote
  #133  
Old 01-11-2010, 07:55 PM
shachar47 shachar47 is offline
 
Join Date: Apr 2006
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks man!
Reply With Quote
  #134  
Old 01-11-2010, 08:20 PM
testbot testbot is offline
 
Join Date: Feb 2009
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no problem.

it's always good to help each other out when we can.
Reply With Quote
  #135  
Old 01-20-2010, 01:31 AM
DieselTruck DieselTruck is offline
 
Join Date: Feb 2008
Location: TN
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hyperspin View Post
Great mod, but how would I go about having this to only pull random images from specific albums? I have a couple albums that I would like images to pull from instead of all albums...
What about EXCLUDING different albums? Anyway to add a button on each album to that only Moderators can check to exclude it from rotation.
Reply With Quote
  #136  
Old 01-21-2010, 04:54 PM
giotis9 giotis9 is offline
 
Join Date: Jan 2010
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #137  
Old 01-27-2010, 03:07 PM
LOKIN510051's Avatar
LOKIN510051 LOKIN510051 is offline
 
Join Date: Mar 2009
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

perfecto gracias, me quedo muy bien
Reply With Quote
  #138  
Old 02-13-2010, 04:27 PM
biggeorge's Avatar
biggeorge biggeorge is offline
 
Join Date: Feb 2007
Location: The Great State of Mass!
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working in less than 2-mins. Thank you!
Reply With Quote
  #139  
Old 02-14-2010, 02:08 AM
exposed exposed is offline
 
Join Date: Apr 2005
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to use this with photopost Instead of the vb gallery?
Reply With Quote
  #140  
Old 02-16-2010, 08:21 AM
afgboy afgboy is offline
 
Join Date: Apr 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible that the guest can see this too?
Attached Images
File Type: jpg hia.jpg (87.1 KB, 0 views)
Reply With Quote
  #141  
Old 02-16-2010, 02:44 PM
testbot testbot is offline
 
Join Date: Feb 2009
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by afgboy View Post
is it possible that the guest can see this too?
guests must be able to view members AND albums in usergroup permissions.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:01 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04987 seconds
  • Memory Usage 2,342KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete