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

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

Category: Forum Home Enhancements - Version: 3.7.2 Rating:
Released: 03-27-2008 Last Update: 03-31-2008 Installs: 1259
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.

Mark as Installed - Nominate for MOTM


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

Show Your Support

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

Comments
  #402  
Old 10-31-2008, 06:23 PM
gim gim is offline
 
Join Date: Jun 2007
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good work but a littlebit not-compatible with aqua-soft template in some positions
Reply With Quote
  #403  
Old 10-31-2008, 07:04 PM
Cocko Cocko is offline
 
Join Date: Oct 2006
Location: Germany
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd like to ask again how to limit showing pictures only from specified usergroups
Best way would be by ACP, but also interessting with a short snippet manuelly?

Who can help?
Reply With Quote
  #404  
Old 11-02-2008, 09:45 PM
Jespah Jespah is offline
 
Join Date: Apr 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by manuelsechi View Post
does it works for registered users only?
I have the same question - the gallery can only be seen by logged-in members, I want it to "snag' new people into looking further into my site.

Jespah
Reply With Quote
  #405  
Old 11-02-2008, 09:57 PM
rob01 rob01 is offline
 
Join Date: Sep 2008
Location: Mexico
Posts: 410
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the pictures dont show up.. with windows internet explorer
any ideas?

Reply With Quote
  #406  
Old 11-03-2008, 03:16 PM
Lefteris (Athen Lefteris (Athen is offline
 
Join Date: Oct 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works fine!
Thank you
Lefteris
Reply With Quote
  #407  
Old 11-03-2008, 03:34 PM
Mr.samy's Avatar
Mr.samy Mr.samy is offline
 
Join Date: Feb 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great .... but this code $lpicture[title]

apear the album name not picture name ? ..
Reply With Quote
  #408  
Old 11-04-2008, 04:46 PM
Come2Daddy Come2Daddy is offline
 
Join Date: May 2008
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was about to suggest that you make it random instead of latest, then I found that option in the hack option, thanx a lot, great work
Reply With Quote
  #409  
Old 11-05-2008, 12:12 PM
geckoz's Avatar
geckoz geckoz is offline
 
Join Date: Aug 2007
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey all! I'm a newbie but I fixed this picture title problem. To show the picture title of an image you will have to change a few lines in the file product-afm.xml. This is what I did:

open the file product-afm.xml in a text editor and find this:

Code:
  $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']));
	eval('$resimler .= "' . fetch_template('afm_picture') . '";');
	}
    switch ($vbulletin->options['afm_yer'])
and replace it with this:

Code:
  $lpictures = $db->query("
  SELECT albumpicture.*, album.*, picture.caption, 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)
  LEFT JOIN " . TABLE_PREFIX . "picture AS picture ON(picture.pictureid = albumpicture.pictureid)
  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']));
	$lpicture['caption'] = trim(strip_quotes($lpicture['caption']));
	eval('$resimler .= "' . fetch_template('afm_picture') . '";');
	}
    switch ($vbulletin->options['afm_yer'])
Then upload / update the addon.

Then you must change the template "afm_picture". Use this variable wherever you want the title of the picture to be displayed:

Code:
$lpicture[caption]
It works for me! DEMO: Sims 3 Forum

Hope it helps!
Reply With Quote
  #410  
Old 11-05-2008, 04:24 PM
porscheman170 porscheman170 is offline
 
Join Date: Mar 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

Will do
Thanks
Reply With Quote
  #411  
Old 11-07-2008, 04:42 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
 
Quote:
Originally Posted by porscheman170 View Post
Hello, Just wanted to warn everybody and the coder of this script that there is a serious security issue with it. My website got hacked last night through this script. Please contact me for more info porscheman170 at gmail Thanks
Then it's probably not the wisest thing to announce it in this thread, as you just alerted every hacker who reads this that everyone who has it installed is now a potential target. You should contact vB.org with the potential problem and they'll take care of it with those who have installed privately.
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 05:58 PM.


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.05684 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete