vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   PhotoPlog 1337 Thumbs (Just incase basic templates bore you.) (https://vborg.vbsupport.ru/showthread.php?t=111993)

SHANE-D-PAIN 04-01-2006 10:00 PM

PhotoPlog 1337 Thumbs (Just incase basic templates bore you.)
 
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. :)

COBRAws 04-02-2006 04:48 PM

nice!

AKapadia 04-02-2006 05:25 PM

nice.....

Hasann 04-02-2006 05:33 PM

cool! thanks for sharing

SHANE-D-PAIN 04-02-2006 05:48 PM

Your welcome. :D

If anyone has any suggestions for small edits liekt hsi then please PM me, I'll be more than happy to take a look. :)

Anyone read my blog yet? LOL

Tim Wheatley 04-02-2006 11:12 PM

Thank you.

ngontran 04-03-2006 02:55 AM

awesome

GrendelKhan{TSU 04-03-2006 02:48 PM

dang! this makes we want to uninstall vbaGallery and install photoblog JUST for this!!

nice!! nice!! :)

Jay... 04-03-2006 03:27 PM

very nice hack! cheers!

Gizmo5h1t3 04-03-2006 04:16 PM

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

bada_bing 04-03-2006 04:18 PM

Nice

apollooooooo 04-10-2006 03:11 PM

Cheers mate love it

And Now i Click Install......

SHANE-D-PAIN 04-13-2006 04:10 AM

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

defel 04-16-2006 02:50 PM

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

Gizmo5h1t3 04-16-2006 02:55 PM

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

SHANE-D-PAIN 04-17-2006 06:27 PM

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

headshotx 05-01-2006 08:28 PM

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

gavinzac 05-07-2006 06:52 PM

this doesnt show on vBadvanced pages, is there a way to make it?

GrendelKhan{TSU 06-04-2006 03:53 PM

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

HaYLaZ 06-04-2006 04:57 PM

good work:D

GrendelKhan{TSU 06-05-2006 01:28 AM

is there still support for this?

nothing is working for me....nothing appears at all... for any of the addon mods...

thumbs
forumhome
horizontal

all get nothing. :( :/

Brandon Sheley 06-05-2006 01:30 AM

nice, will this work with Photoplog pro ?

GrendelKhan{TSU 06-05-2006 01:45 AM

Quote:

Originally Posted by Loco.M
nice, will this work with Photoplog pro ?

so this worked for you?
:surprised: its doing nothing for me :(

<< photplog lite version

Brandon Sheley 06-05-2006 02:24 AM

oh, i haven't even looked at it, maybe sometime this week I'll check it out

Gizmo5h1t3 06-05-2006 03:42 PM

working fine...nice fix mate...looks pretty good as welll....

GrendelKhan{TSU 06-06-2006 09:29 AM

woot! working now. AWESOME JOB! :D :D

SHANE-D-PAIN 06-07-2006 12:06 AM

Quote:

Originally Posted by GrendelKhan{TSU
woot! working now. AWESOME JOB! :D :D

I dont understand what was wrong with it for you. :/

I do have it working on vBadvanced. if anyone needs any help then drop me a PM. ;)

GuaRRand 06-07-2006 12:53 PM

no clue why, but its not workiong at all...

Put the $photoplog_thumbs everywhere but it doesnt show at all..

GuaRRand 06-07-2006 09:56 PM

Quote:

Originally Posted by GrendelKhan{TSU
woot! working now. AWESOME JOB! :D :D

Care to enlighten me??
I still havent found the right place to put $photoplog_thumbs ...

Please people. if you find a solution..POST IT! :banana:

GuaRRand 06-07-2006 10:30 PM

Found it.

Just put in in the forumhome under $navbar

GrendelKhan{TSU 06-09-2006 04:15 AM

Quote:

Originally Posted by GuaRRand
Care to enlighten me??
I still havent found the right place to put $photoplog_thumbs ...

Please people. if you find a solution..POST IT! :banana:


turns out... I am a moron.

I didn't realize the moderation setting was on. so all the images were stuck in the moderation que. I just accept them all and waahlaa!! all better. :)

go to your ADMIN CP >> Photoplog >> usergroup Manager >>
and make the second to last two option is set to "NO"

(Moderate This Group's Files: No )


what through me off is that it shows images in the actual gallery even though they in the moderation cue. anyway.... ;)

camuca 06-10-2006 07:13 AM

Installed; good job. Working perfect!

+buG 06-10-2006 08:24 PM

thanks :) ..
But how do you upload a plugin?

SHANE-D-PAIN 06-12-2006 06:44 PM

You cannot be serious. -_-

+buG 06-13-2006 12:01 AM

Quote:

Originally Posted by SHANE-D-PAIN
You cannot be serious. -_-

I figured it out.
Would it be possible to enable this to generate images from an assigned/specific category?

darkcrunk 06-13-2006 06:09 AM

Nice one, really. But i would not install it, considering the high traffic and the amount of stress our delicate servers have to go thru everytime a page loads :P

GrendelKhan{TSU 06-14-2006 07:21 AM

Quote:

Originally Posted by darkcrunk
Nice one, really. But i would not install it, considering the high traffic and the amount of stress our delicate servers have to go thru everytime a page loads :P

does it add a lot of queries or something? what if we limit the number of images that appear?

I really love the look of this so I'd hate to have to NOT use it cause of server load.

ltaylor 08-08-2006 05:43 AM

Are you able to show the smaller thumbs on other pages within the forum? I have the orginal thums on forum home. But would like to show the smaller thumbs on CMS and other pages? thanks.

wezoo 08-19-2006 12:30 AM

great hack !!!!
im jsut about to install it :)

can it be adapted to work on a none vb page i would love something like this on my portal ?

GrendelKhan{TSU 08-28-2006 05:35 AM

love it!! :D looks GREAT!!
working on 3.6.0 gold fine :)


example: www.clantsu.org/forums

:D


All times are GMT. The time now is 06:41 AM.

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.01598 seconds
  • Memory Usage 1,826KB
  • 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
  • (5)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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