Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
PhotoPlog 1337 Thumbs (Just incase basic templates bore you.) Details »»
PhotoPlog 1337 Thumbs (Just incase basic templates bore you.)
Version: 1.00, by SHANE-D-PAIN SHANE-D-PAIN is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-01-2006 Last Update: 04-16-2006 Installs: 94
Uses Plugins Template Edits
 
No support by the author.

Right well I did not like the way the Thumbnails appeared on the Forum Index from PhotoPlog, just made it look like every other site. I also was not happy with the fact that they ONLY showed on the Forum Index.

This is just a nice little change, also my first released plugin of any kind so any virtual bullying will be counter attacked with an onslaught of mouldy oranges.

So here is a little plugin by me, basically just an edit of the original so credit must go to Calorie too. Wonderful thing he/she/it has done with this gallery.

For examples see the screenshots.

By the way this requires that you actually have the PhotoPlog Gallery Installed. (Go Get it!)

Installation Instructions:
  1. Upload the Plugin.
  2. Add the following code to any Template. For best results add it somewhere such as the Very Bottom of the navbar or soemthign else which is included throughout the site.
    Code:
    $photoplog_thumbs
  3. Your done.
If you would like to edit the appearance or number of thumbnails shown then this next part is for you.

Editing the appearance of the Thumbnails.
Open the PhotoPlog 1337 Thumbs Plugin for editing.
Search for this Code:
Code:
<img src=\"".$photoplog_location."/file.php?".$vbulletin->session->vars['sessionurl']."n=".$photoplog_fileid."&amp;w=s\" style=\"width: 55px; height: 55px; padding: 1px; margin: 0px; border: 1px solid #CCCCCC;\" />
Edit anything in the 'style' tag to suit.

To edit the number of Thumbnails Shown.
Open the PhotoPlog 1337 Thumbs Plugin for editing.
Search for this Code:
Code:
 LIMIT 10
And simply change the number to the number of Thumbnails you would like to appear.


To show on vBadvanced (If you are displaying thumbs in header or navbar etc..)
Admin CP > vBA CMPS > Edit Pages > Home Page > Portal Output Global Variables > add: photoplog_thumbs



Feel free to read my blog if you want, not asking for much and I know you will love it, about as much as Honey Loves Ants . www.ShaneRounce.com



Updates:
To install updates simply upload the new plugin over your old one and redo file edits.

17th April 2006 - v1.5
- Fixed Problem with Alignment of more than 5 Images.
- All XHTML Valid now too.

Show Your Support

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

Comments
  #12  
Old 04-03-2006, 04:18 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice
Reply With Quote
  #13  
Old 04-10-2006, 03:11 PM
apollooooooo apollooooooo is offline
 
Join Date: Nov 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cheers mate love it

And Now i Click Install......
Reply With Quote
  #14  
Old 04-13-2006, 04:10 AM
SHANE-D-PAIN's Avatar
SHANE-D-PAIN SHANE-D-PAIN is offline
 
Join Date: Sep 2003
Location: Sheffield, Uk
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gizmo5h1t3
cracking addition, only problem is, while it looks pretty good at 800 x 600 res, any higher, and the pics are all over the place...ie....not aligned equally....

even your screen shot shows this....

could be a problem where ppl have sites like mine, with varying width styles....

ive adjusted width in the plugin, so its exactly ok with 8 images in 800 x 600 res, but in 1280 x 1024, it looks bobbins.

cracking addition tho m8
Yeah i saw that but just sorta rushed and whapped this up. If you could PM me the solution you cam up with then I will update this.
I don't usually have the time for things like this. :P

Updated my Blog the other day, by the way. :P
Reply With Quote
  #15  
Old 04-16-2006, 02:50 PM
defel defel is offline
 
Join Date: Nov 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I edited the code for performance reasons, to output links to the static images on filesystem ..

the sql-query:
Code:
	$photoplog_file_infos = $db->query_read("SELECT fileid, userid, username, title, description, filename
						FROM photoplog_fileuploads
						WHERE moderate = 0
						ORDER BY RAND()
						LIMIT 15
	");
and the part of the variables:
Code:
		$photoplog_fileid = $photoplog_file_info['fileid'];
		$photoplog_userid = $photoplog_file_info['userid'];
		$photoplog_username = $photoplog_file_info['username'];
		$photoplog_linkto = $photoplog_location."/index.php?".$vbulletin->session->vars['sessionurl']."n=".$photoplog_fileid;
		$photoplog_url    = $photoplog_location."/images/".$photoplog_userid."/small/".$photoplog_file_info['filename'];

		$photoplog_row_top .= "
		<td align=\"center\" width=\"20%\">
			<a href=\"$photoplog_linkto\">
				<img src=\"$photoplog_url\" style=\"width: 75px; height: 75px; padding: 1px; margin: 0px; border: 1px solid #CCCCCC;\" />
			</a>
		</td>
maybe this helps someone .. i did this changes because I display the images in the header of each page ..

is there a way to cache this bit? please pm me
Reply With Quote
  #16  
Old 04-16-2006, 02:55 PM
Gizmo5h1t3's Avatar
Gizmo5h1t3 Gizmo5h1t3 is offline
 
Join Date: Aug 2005
Location: ROCHDALE LANCS UK
Posts: 650
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SHANE-D-PAIN
Yeah i saw that but just sorta rushed and whapped this up. If you could PM me the solution you cam up with then I will update this.
I don't usually have the time for things like this. :P

Updated my Blog the other day, by the way. :P
the solution i came up with, was to uninstall it til it gets fixed...lmao
Reply With Quote
  #17  
Old 04-17-2006, 06:27 PM
SHANE-D-PAIN's Avatar
SHANE-D-PAIN SHANE-D-PAIN is offline
 
Join Date: Sep 2003
Location: Sheffield, Uk
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gizmo5h1t3
the solution i came up with, was to uninstall it til it gets fixed...lmao
Well its fixed.

Props to defel for his/her help too. I got stuck with soem stuff, I'm generally not a coder. :P
Reply With Quote
  #18  
Old 05-01-2006, 08:28 PM
headshotx headshotx is offline
 
Join Date: Apr 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i install this .. but y can't view this .. all images is upload whit permision 600 and i can't view this tumbails .. :S .. view attachment help please :S
Reply With Quote
  #19  
Old 05-07-2006, 06:52 PM
gavinzac's Avatar
gavinzac gavinzac is offline
 
Join Date: Jan 2006
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this doesnt show on vBadvanced pages, is there a way to make it?
Reply With Quote
  #20  
Old 06-04-2006, 03:53 PM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could get this to work at all. nothing appeared.
no effect that I could find.

I tried puting $photoplog_forumhome AND $photoplog_thumbs like...everywhere.

I tried these templates (in several locations)
-forumhome under navbar
-header
-forumdisplay
-navbar

nothing! I'm sure I did something stupid and just not seeing it. but for now.. I really can't figure out why it won't work.

any help would be greatly appreciated.

ps. also couldn't find "LIMIT 10" anywhere in the code. :.
Reply With Quote
  #21  
Old 06-04-2006, 04:57 PM
HaYLaZ's Avatar
HaYLaZ HaYLaZ is offline
 
Join Date: Apr 2005
Posts: 349
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good work
Reply With Quote
Reply

Thread Tools

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 06:16 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.05223 seconds
  • Memory Usage 2,311KB
  • 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
  • (5)bbcode_code
  • (3)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
  • (3)pagenav_pagelink
  • (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