BBCodeBox3

prosilver | subsilver2

Willkommen und Guten Tag, Guest  Beim nächsten Piep ist es zwischen 13:00 und 14:00 Uhr

It is currently Sun 23. Feb 2025, 14:46

All times are UTC + 1 hour [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
PostPosted: Sun 27. Dec 2009, 05:40 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

Last X [attachments] on Forum

MOD-Title: Last X [attachments] on Forum
MOD-Version: 0.0.4
MOD-Author: 4seven

Credits: irdem for a little code part of Attached taken photos by you
Credits: John Davenport Scheuer for Crawl Script
Credits: Beta-Tester: jonnilaumann

MOD-Description: This Mod shows the last X [attachments] on Viewforum or Index

phpBB-Version: phpBB 3.0.x
phpBB-Languages: en (at this time hardcoded, bcs. of little language entrys), de follows
phpBB-Styles: all Styles, that are based on prosilver, (subsilver2 follows)

Demos:
http://4seven.bplaced.net/phpbb3/index.php ----------------------- (Crawl-Script - prosilver)
http://4seven.bplaced.net/phpbb3/index.php?style=3 -------------- (Crawl-Script - subsilver2)
http://4seven.bplaced.net/phpbb3/index.php?style=4 -------------- (Crawl-Script - AeroBlue)

Features:
- shows the last X [attachments] from topics on viewforum or index
- attachments only shown from forums the user have rights to read
- if user have no rights to read in any forum the div was invisible (new in v.0.0.2)
- auto-fit the number of thumbs to screen-resolution
- real attach-thumbs without client-resizing
- centered and prosilver-styled
- thread-title in link title-tag
- direct link from attach to post
- dead link check
- min-thumbing -function
- cleaned and optimized script
- two versions available (Standard Script and Crawl Script)

NEW in v.0.0.3
- subsilver added
- css added (now it looks like on testforum (css-image-hover))
- Little structural changes to main includes
- Delete-orphaned-thumbs Module in Postbox (under 'Lock topic' in 'Options')

NEW in v.0.0.4
- min-thumbing -function
no pic is thumbing under given size of $convert_mx_size = 100; - adjustable in include/last_x_attachments_on_forum.php and include/last_x_attachments_on_forum_crawl.php - no matter if its the width or height that is under 100
- increase performance of thumbing-process bcs. of new include/thumb_resize.php
- increase board performance bcs.of smaller pic-size:
http://www.phpbb.com/community/viewtopi ... #p11908835

Planned for v.0.0.5
- new "mix" size-option - squares the pic to exact fit (takes always the very center part of every pic (if not squared allready))
- time-controlled orphan function by request: http://www.phpbb.com/community/viewtopi ... #p11909265

Planned:
- ACP??
- ??

Image follows

Download:

Attachment:


Instruction:

see >> install.txt



Top
 Profile  
 
PostPosted: Fri 8. Jan 2010, 18:53 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

Hint:

Until the ACP is not ready, you find the Settings under
Code:
//---------SETTINGS-------------------------
Section
in
Code:
includes/last_x_attachments_on_forum.php
and
Code:
includes/last_x_attachments_on_forum_crawl.php


Make all settings to your desire, before you ask anything

Hint
Detect screen-resolution is per default set to no
Code:
$detect_java_screen  = 'no';
Activate it, if u want to detect it


Top
 Profile  
 
PostPosted: Mon 18. Jan 2010, 03:02 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44



Tricks and Tweaks for "Last X [attachments] on Forum"
A special Tweak for this Mod

Here u see an oversight in index.php of all "Last X Attachments" from all forums
http://4seven.bplaced.net/phpbb3/index.php

In viewforum.php you will see only those "Last X Attachments" from the forum you looking at
http://4seven.bplaced.net/phpbb3/viewforum.php?f=9
http://4seven.bplaced.net/phpbb3/viewforum.php?f=7

If u need this for your forum, follow the Instruction (its simple, so dont be afraid)



Instruction

- Make the normal Install for crawl-script on index (with forum-id's u want to show)
- But change a little part for index_body.html

Find

Code:
<strong>Last {NUMBER_OF_SHOWN_ATTACH} Attachments in Forum</strong> 
<!-- IF S_NO_JAVA_DETECTION --><!-- IF S_NO_JAVA_PRESENT --><br />Crawl Script - Calculated on your Screen Resolution of {SCREEN_WIDTH}x{SCREEN_HEIGHT}<!-- ELSE --><br />You have Javascript disabled - Activate it to see the Crawl Script<!-- ENDIF --><!-- ENDIF --> 


Replace with

Code:
<span style="color:grey;">Last Attachments in all Forums
<!-- IF S_NO_JAVA_DETECTION --><!-- IF S_NO_JAVA_PRESENT --><!-- ELSE --><br />You have Javascript disabled - Activate it to let the pics fit to your screen<!-- ENDIF --><!-- ENDIF --></span> 


- Than make copy of last_x_attachments_on_forum_crawl.php and name it last_x_attachments_on_viewforum_crawl.php
- Than open last_x_attachments_on_viewforum_crawl.php and make following changes

Find

Code:
//---------SETTINGS------------------------------------------------------
// here u can enter the foren id's to show
$forum_ids_to_show = '7,9,10';
// enter as given: '7,9,10'
//----------------------------------            


Replace with

Code:
//---------SETTINGS------------------------------------------------------
// here u can enter the foren id's to show
// $forum_ids_to_show = '7,9,10';
$forum_ids_to_show = request_var('f', 0);
// enter as given: '7,9,10'
//----------------------------------            


- Upload last_x_attachments_on_viewforum_crawl.php to includes/last_x_attachments_on_viewforum_crawl.php

- Than make the normal install for crawl-script on viewforum
- But change a little part for viewforum.php

Open

viewforum.php

Code:
    $s_type_switch = 0;
    foreach ($topic_list as $topic_id)
    { 


Before add

Code:
// 4seven / Last X [attachments] on Forum / 2010
include_once($phpbb_root_path . 'includes/last_x_attachments_on_viewforum_crawl.' . $phpEx);    
// 4seven / Last X [attachments] on Forum / 2010          


- And, change a little part for viewforum_body.html

Put the crawl-script part for viewforum_body.html after

Code:
<!-- INCLUDE overall_header.html --> 


Than (after insert) find

Code:
<strong>Last {NUMBER_OF_SHOWN_ATTACH} Attachments in Forum</strong> 
<!-- IF S_NO_JAVA_DETECTION --><!-- IF S_NO_JAVA_PRESENT --><br />Crawl Script - Calculated on your Screen Resolution of {SCREEN_WIDTH}x{SCREEN_HEIGHT}<!-- ELSE --><br />You have Javascript disabled - Activate it to see the Crawl Script<!-- ENDIF --><!-- ENDIF --> 


Replace with

Code:
<span style="color:grey;">Last Attachments in</span> <span style="color:darkred;">{FORUM_NAME}
<!--
 IF S_NO_JAVA_DETECTION --><!-- IF S_NO_JAVA_PRESENT --><!-- ELSE --><br />You have Javascript disabled - Activate it to see the Crawl Script<!-- ENDIF --><!-- ENDIF --></span> 


- Clear all Board- and Browser-Caches


Top
 Profile  
 
PostPosted: Sat 13. Feb 2010, 18:50 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

Function Update v.0.0.3 > v.0.0.4

- min-thumbing -function
no pic is thumbing under given size of $convert_mx_size = 100; - adjustable in include/last_x_attachments_on_forum.php and include/last_x_attachments_on_forum_crawl.php - no matter if its the width or height that is under 100
- increase performance of thumbing-process bcs. of new include/thumb_resize.php
- increase board performance bcs.of smaller pic-size:
http://www.phpbb.com/community/viewtopi ... #p11908835

To Update delete, load up again from new package

thumb_resize.php
include/thumb_resize.php
include/last_x_attachments_on_forum.php
include/last_x_attachments_on_forum_crawl.php


but before u re-pload the new files (include/last_x_attachments_on_forum.php and include/last_x_attachments_on_forum_crawl.php), make shure u enter your "old settings" in the
Code:
//---------SETTINGS------------------------------------------------------
area of the updated files


further .. find

in your viewforum_body.html or index_body.html all

Code:
<!-- BEGIN forum_pics -->


after all add

Code:
<!-- IF forum_pics.S_2_SMALL -->


find all

Code:
<!-- END forum_pics -->


before all add

Code:
<!-- ENDIF -->


- clear all board- and browser-caches

Note
if u enter new settings in include/last_x_attachments_on_forum.php and include/last_x_attachments_on_forum_crawl.php delete all existing files in images/last_x_att (exclude index.htm) and clear all board- and browser-caches..


Top
 Profile  
 
PostPosted: Sun 14. Feb 2010, 15:32 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

Note

a little hurry-up-error in v.0.0.4 > so download package again.
but clear your browser-caches before u visit my download-link

load up this files again

includes/last_x_attachments_on_forum_crawl.php
includes/last_x_attachments_on_forum_index_crawl.php

or edit this two files from your last downloaded v.0.0.4 package and

find in both files

Code:
$phpbb_root_path . 'thumb_resize.' . $phpEx


replace with

Code:
$phpbb_root_path . 'includes/thumb_resize.' . $phpEx


upload files again. clear all caches. thats it


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
POWERED_BY
[ Time : 0.017s | 24 Queries | GZIP : Off | Board-Version: 3.0.7 PL1 ]