[ABD] First Topic [pic] on Forum Index v.0.0.6

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] First Topic [pic] on Forum Index v.0.0.5.a

Post by 4_seven »

if u want to have thumbs in all forums and u don't want to enter each forum id:

1 make a fake forum and set it in acp to invisible for all groups

2 open

first_x_in_forum_index_config.php

enter in settings section only this fake forum-id (@ example forum-id 53)

Code: Select all

//------------------------------------------------------------
// ----------------[img] SETTINGS--------------------
// enter here the forum id's that will show thumbing  of [img]
$affected_forum_img    = array(53); 
// enter as given: (7,8,9) 
//------------------------------------------------------------
// ------------[attachment] SETTINGS---------------
// enter here the forum id's that will show thumbing  of [attachment]
$affected_forum_att    = array(53); 
// enter as given: (7,8,9) 
//------------------------------------------------------------     
3

open

first_x_in_forum_index.php

find

Code: Select all

if (in_array(request_var('f', 0), $affected_forum_img)){
$affected_thumb_img = true;}
else{
$affected_thumb_img = false;}

if (in_array(request_var('f', 0), $affected_forum_att)){
$affected_thumb_att = true;}
else{
$affected_thumb_att = false;} 
replace with

Code: Select all

if (in_array(request_var('f', 0), $affected_forum_img)){
$affected_thumb_img = false;}
else{
$affected_thumb_img = true;}

if (in_array(request_var('f', 0), $affected_forum_att)){
$affected_thumb_att = false;}
else{
$affected_thumb_att = true;} 
open

first_x_in_forum_search.php

find

Code: Select all

if (in_array($forum_id, $affected_forum_img)){
$affected_thumb_img = true;}
else{
$affected_thumb_img = false;}

if (in_array($forum_id, $affected_forum_att)){
$affected_thumb_att = true;}
else{
$affected_thumb_att = false;} 
replace with

Code: Select all

if (in_array($forum_id, $affected_forum_img)){
$affected_thumb_img = false;}
else{
$affected_thumb_img = true;}

if (in_array($forum_id, $affected_forum_att)){
$affected_thumb_att = false;}
else{
$affected_thumb_att = true;} 
also, with this way, u have now a reverse forum-id setting section.
all forums are thumbed, except these u are enter there.
Current Mods | Mod Base | php(BB) programming | No help via PM

gronfors
Registered User
Posts: 7
Joined: Wed Jul 21, 2010 4:04 am

Re: [DEV] First Topic [pic] on Forum Index v.0.0.5.a

Post by gronfors »

Thanks for helping, I'm pretty bad at this...

Ok, I've tried adjusting first_x_in_forum_index_config.php
// enter here the forum id's that will show thumbing of [img]
$affected_forum_img = array(31);
// enter as given: (7,8,9)
//------------------------------------------------------------
// ------------[attachment] SETTINGS---------------
// enter here the forum id's that will show thumbing of [attachment]
$affected_forum_att = array(31);
// enter as given: (7,8,9)
//------------------------------------------------------------
//----------------SETTINGS - END -------------------
// First Topic [pic] on Forum Index / 4seven / 2010
(The URL for the forum is www.mysite.com/viewforum.php?f=31 so I presume that's the forum ID)

Still not working >.<

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] First Topic [pic] on Forum Index v.0.0.5.a

Post by 4_seven »

important: check, if your board have this requirements.
First Post wrote:Requirements: fopen()
the mod works 100%, so check the whole install again and clear all board-, style-,template- and browser-caches after that. make shure u create the given folder under images and give the right chmod to it.

also note: don't follow to this example, bcs. that was a special solution:
http://www.phpbb.com/community/viewtopi ... #p12845817

User avatar
jsoni
Registered User
Posts: 355
Joined: Mon Aug 02, 2010 3:55 pm
Location: Mauritius
Contact:

Re: [DEV] First Topic [pic] on Forum Index v.0.0.5.a

Post by jsoni »

Hey thanks you all frnz its working fine.. in fact there is no issue just only for knowledge if i want to use for entire forum than how can i do instead of inserting post no ID each time.. thats it otherwise this MOD work fantastically and really thanks a lot for this.
PM me for phpbb modification
Not phpbb or php master but can help you to gain my knowledge.
On your own risk :)
For graphics and animation PM me.
Forum:http://www.pixelandgrain.in/

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] First Topic [pic] on Forum Index v.0.0.5.a

Post by 4_seven »

jsoni wrote:just only for knowledge if i want to use for entire forum than how can i do instead of inserting post no ID each time.. thats it
question
jsoni wrote:I just want to know what if I want this thumbnail in each and every forum..? Is there any short way or code to do that or I have to go manually and have to add forum no every time?
answer (direct follow-up)
http://www.phpbb.com/community/viewtopi ... #p12845817

jose29
Registered User
Posts: 67
Joined: Fri Jan 08, 2010 1:21 pm
Location: Bretagne France
Contact:

Re: [DEV] First Topic [pic] on Forum Index v.0.0.5.a

Post by jose29 »

Hello,
Sorry for my bad english :oops:
Thank you for this very good mod!
Do not work with IE8? :?:
It works well with Mozilla Firefox. :D
It seems to come from the viewforum-body.html file, when they add code:

Code: Select all

<!-- IF (topicrow.S_THUMB_IMG_PRESENT and topicrow.S_THUMB_DEAD_LINK)  or (topicrow.S_THUMB_ATT_PRESENT and topicrow.S_THUMB_ATT_DEAD_LINK) -->	
			
				<dt<!-- IF topicrow.TOPIC_ICON_IMG and S_TOPIC_ICONS --> style="background-image: url({T_ICONS_PATH}{topicrow.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF --> title="{topicrow.TOPIC_FOLDER_IMG_ALT}">
				
			<span style="padding:1px;float:left;width:{topicrow.CONVERT_SIZE}px;text-align:center; background-color:#F6F4D0;">

            <!-- IF S_ATT_PRIORITY -->

			<!-- IF topicrow.S_THUMB_ATT_PRESENT and topicrow.S_THUMB_ATT_DEAD_LINK -->
			<a href="{topicrow.ORIG_ATTACH_LINK}"><img style="padding-top:2px;" src="{topicrow.PRE_ATTACH}" alt="" /></a>
			<!-- ELSE -->	
		    <a href="{topicrow.ORIG_LINK}"><img style="padding-top:2px;" src="{topicrow.PRE_IMG}" alt="" /></a>
			<!-- ENDIF -->
			
			<!-- ELSE -->	
			
			<!-- IF topicrow.S_THUMB_IMG_PRESENT and topicrow.S_THUMB_DEAD_LINK -->
		    <a href="{topicrow.ORIG_LINK}"><img style="padding-top:2px;" src="{topicrow.PRE_IMG}" alt="" /></a>
			<!-- ELSE -->	
		    <a href="{topicrow.ORIG_ATTACH_LINK}"><img style="padding-top:2px;" src="{topicrow.PRE_ATTACH}" alt="" /></a>	
			<!-- ENDIF -->
			
			<!-- ENDIF -->

			</span>	

				<span style="position:absolute; left:{topicrow.CONVERT_DIV_SIZE}px;">
				
				<!-- IF topicrow.S_UNREAD_TOPIC --><a href="{topicrow.U_NEWEST_POST}">{NEWEST_POST_IMG}</a> <!-- ENDIF --><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>
					<!-- IF topicrow.S_TOPIC_UNAPPROVED or topicrow.S_POSTS_UNAPPROVED --><a href="{topicrow.U_MCP_QUEUE}">{topicrow.UNAPPROVED_IMG}</a> <!-- ENDIF -->
					<!-- IF topicrow.S_TOPIC_REPORTED --><a href="{topicrow.U_MCP_REPORT}">{REPORTED_IMG}</a><!-- ENDIF -->
				
					<br />
					<!-- IF topicrow.PAGINATION --><strong class="pagination"><span>{topicrow.PAGINATION}</span></strong><!-- ENDIF -->
					<!-- IF topicrow.ATTACH_ICON_IMG -->{topicrow.ATTACH_ICON_IMG} <!-- ENDIF -->{L_POST_BY_AUTHOR} {topicrow.TOPIC_AUTHOR_FULL} &raquo; {topicrow.FIRST_POST_TIME}
		
				</span>	
				
				</dt>
				
				<!-- ELSE -->

				<dt<!-- IF topicrow.TOPIC_ICON_IMG and S_TOPIC_ICONS --> style="background-image: url({T_ICONS_PATH}{topicrow.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF --> title="{topicrow.TOPIC_FOLDER_IMG_ALT}">
				
				<!-- IF topicrow.S_NO_IMG_PRESENT -->
				<span style="padding:1px;float:left;width:{topicrow.CONVERT_SIZE}px;text-align:center; background-color:#F6F4D0;">
				<img style="padding-top:2px;" src="{topicrow.NO_IMG}" alt="" />
				</span>	
				<span style="position:absolute; left:{topicrow.CONVERT_DIV_SIZE}px;">
				<!-- ENDIF -->
									
				<!-- IF topicrow.S_UNREAD_TOPIC --><a href="{topicrow.U_NEWEST_POST}">{NEWEST_POST_IMG}</a> <!-- ENDIF --><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>
					<!-- IF topicrow.S_TOPIC_UNAPPROVED or topicrow.S_POSTS_UNAPPROVED --><a href="{topicrow.U_MCP_QUEUE}">{topicrow.UNAPPROVED_IMG}</a> <!-- ENDIF -->
					<!-- IF topicrow.S_TOPIC_REPORTED --><a href="{topicrow.U_MCP_REPORT}">{REPORTED_IMG}</a><!-- ENDIF --><br />
					<!-- IF topicrow.PAGINATION --><strong class="pagination"><span>{topicrow.PAGINATION}</span></strong><!-- ENDIF -->
					<!-- IF topicrow.ATTACH_ICON_IMG -->{topicrow.ATTACH_ICON_IMG} <!-- ENDIF -->{L_POST_BY_AUTHOR} {topicrow.TOPIC_AUTHOR_FULL} &raquo; {topicrow.FIRST_POST_TIME}
					
					<!-- IF topicrow.S_NO_IMG_PRESENT -->
				 </span>	
				<!-- ENDIF -->
				
				</dt>
				
				<!-- ENDIF -->
a resolution?

2 images :
Firefox :
Image

IE 8 :
Image

Thanks

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] First Topic [pic] on Forum Index v.0.0.5.a

Post by 4_seven »

it works perfect in every browser. check the edits for your template...

User avatar
juliocbcotta
Registered User
Posts: 21
Joined: Sun Jul 11, 2010 2:01 pm
Name: Júlio Cotta

Re: [DEV] First Topic [pic] on Forum Index v.0.0.5.a

Post by juliocbcotta »

Very nice MOD!
Just a suggestion..Could be nice a integration with phpbb Gallery and board3, maybe show the lasted images of each gallery ( like the 3 lasted images) in the index and in the board3.
Anyway.. keep this good work 4_seven!

jose29
Registered User
Posts: 67
Joined: Fri Jan 08, 2010 1:21 pm
Location: Bretagne France
Contact:

Re: [DEV] First Topic [pic] on Forum Index v.0.0.5.a

Post by jose29 »

Good morning,
Thanks for this quick answer.
After a little of job on my file viewforum_body.html (updating of style Ca_black and review of my mods), it is good for IE 8.
Thanks again for this very good mod!
Kénavo,

jose29
Registered User
Posts: 67
Joined: Fri Jan 08, 2010 1:21 pm
Location: Bretagne France
Contact:

Re: [DEV] First Topic [pic] on Forum Index v.0.0.5.a

Post by jose29 »

A question (or suggestion) ?
Members of my forum insert images of the gallery of the forum in their posts, (N ° id of the gallery supervised by [album] and [/album]).
These imagess are not taken into account by First Topic [pic].
Is it possible to make it?
Thank you

User avatar
jmaraujo
Registered User
Posts: 240
Joined: Fri Jun 01, 2007 9:48 pm
Location: Rivera - Uruguay
Name: Juan

Re: [DEV] First Topic [pic] on Forum Index v.0.0.5.a

Post by jmaraujo »

Hi, 4_seven. Thanks for the mod. ;) I have a question (I did a quick search but didn't find any similar question):

On my forum, some images (a few) did not generate a thumbnail. Why is that happening? Is there any specific cause for that problem?

Because if there's some sort of problem or limitation with some jpeg files, I have no problem to edit my images to a different format or whatever the solution may be. ;)

User avatar
jsoni
Registered User
Posts: 355
Joined: Mon Aug 02, 2010 3:55 pm
Location: Mauritius
Contact:

Re: [DEV] First Topic [pic] on Forum Index v.0.0.5.a

Post by jsoni »

i have found one issue with it is if i will use any other BB Code with image size setting it doesnt showing thumbnail I dont know why but its working fine with attachment and default image URL attachement.

If you will see my forums www.pixelandgrain.in and go to gallery/photography/ and try to use rimg button to link image it doesnt working i don't know why.
PM me for phpbb modification
Not phpbb or php master but can help you to gain my knowledge.
On your own risk :)
For graphics and animation PM me.
Forum:http://www.pixelandgrain.in/

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [DEV] First Topic [pic] on Forum Index v.0.0.5.a

Post by darkonia »

is there a integration with board3portal planned?
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] First Topic [pic] on Forum Index v.0.0.5.a

Post by 4_seven »

darkonia wrote:is there a integration with board3portal planned?
which kind of integration?

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [DEV] First Topic [pic] on Forum Index v.0.0.5.a

Post by darkonia »

that its shown on the newest topics
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

Locked

Return to “[3.0.x] Abandoned MODs”