[2.0.6] Post icons

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
34
60%
Very Good
12
21%
Good
3
5%
Fair
3
5%
Poor
5
9%
 
Total votes: 57

A.T.O.M.
Registered User
Posts: 11
Joined: Mon Mar 06, 2006 12:15 pm

Post by A.T.O.M. »

newcster68 wrote:
Ptirhiik - RPGnet-fr wrote:So just drop it directly to the trash : that is very fine with me :). But maybe people have managed to install and use it simply reading this very topic and the mods install instructions ?...


...and ooh yeah.. users shouldnt have to thumb through 15 pages of threads to find and error on the mod when you should simply then correct it yourself in the install txt.

that is my one beef about mods..we shouldnt have to search through 50-100 pages to find out why soething is not working especially when it pertains to an error on the mod itself.

@Ptirhiik - don't take this personally, as it's not addressed to you specifically...

@newcster68 - couldn't agree with you more.

as a fairly new user of phpBB, i've run into this same problem with several MODs now and it's very annoying. i run a production site and i have better things to do than read through 100+ pg MOD topics to correct issues that should have been corrected by the MOD author as an update. obviously the MOD dev's are under no obligation to maintain their MODs, and that's fine. however it is my opinion that the phpBB team ought to have some sort of policy in place that requires MOD dev's, at the very minimum, to clearly state what version of phpBB their MOD was tested with and make darn sure that it works with a vanilla install of the phpBB version for which it was developed. this info should be included in the MOD database search results, as well as in the install script(s). i think that 100, even 200+ pages being returned for MOD support ought to bolster my opinion.

and i really have trouble grasping why an author will waste their time fiddling around with multiple support requests for the same issue rather than simply updating the script! especially when it's simple syntax issues.

i realize that it's unrealistic to ask dev's to keep their work updated to be complaint with the latest phpBB version, and i'm not suggesting that at all. however i don't think it's unrealistic to require the dev's to fix glaring bugs, such as syntax errors, etc., with the penality being their MOD getting dropped from the database if they don't.

i also think that all MODs should be updated to be EM complaint because, at the very least, EM does some error checking and more could be implemented. this could eliminate/reduce the possibility of users simply copying and pasting errors, or creating new ones, when doing a manual install. less errors = less 100+ pg support topics.

regarding EM, i wonder if it's not possible to integrate MODs differently? at this point, EM injects all the code directly into the original files (as well as copying new ones). i wonder if it would be possible for EM to inject nothing more than something like "include begin: [mod id]" and "include end: [mod id]". this could potentially have several benefits:

1) you wouldn't have to uninstall MODs in reverse order to get at the one you actually want to uninstall because EM could just remove the include begin/end, mod id statements for a particular MOD.

2) you could potentially use EM to reorder the include statements if multiple statements for multiple MODs are right next to each other.

3) if multiple MODs modify the same line of code, it becomes trivial to disable any or all of them with EM without having to manually copy files.

4) all MOD code would be stored in separate files and called with the include statements leaving the original files in tact, except for the include statements of course.

5) the drain on the phpBB team and MOD dev's could be greatly reduced.
A.T.O.M.
Registered User
Posts: 11
Joined: Mon Mar 06, 2006 12:15 pm

Making Post Icons EM 0.3.0 Compatible and...

Post by A.T.O.M. »

I'm pretty new to phpBB and i know very little about PHP and even less about SQL, but i was determined to make this MOD 1) work and 2) work with EM !!!

Code: Select all

//// to make 'Post Icons' v1.0.1 MOD compatible with EasyMOD 0.3.0 ////

// this fixes some other problems as well, even if you're not using EM...

// tested with EM 0.3.0 and phpBB 2.0.20, but i'm tellin' ya right now, you're
// on your own! :)

// 'lang_extend_post_icons.php' - going by the install scripts in this package,
// it is unclear what is to be done with this file or if it's even needed. by
// default it is copied ONLY if you run the 'MOD-post_icons-upgrade_to_v101.txt'
// script. since we are installing the 1.0.1 version in the first place using
// 'MOD-post_icons-part1.txt' and 'MOD-post_icons-part2.txt', then one would
// think that we don't need to run the upgrade script (can't upgrade from 1.0.1
// to 1.0.1, can we?). so it may be likely that you'll ignore this file
// completely, as apparently several people have. in reality however, it IS
// needed and not copying it is what is causing missing text in the admin CP
// when you try to edit icons. it also causes a problem in the admin CP in the
// 'configuration+' > 'post icons' section.

//// SECTION 1 ////

// in: MOD-post_icons-part1.txt

// after the SQL section, add:

#
#-----[ COPY ]------------------------------------------------
#
copy lang_extend_post_icons.php to language/lang_english/lang_extend_post_icons.php

// change:

copy lang_settings/lang_extend_mac.php to includes/lang_extend_mac.php

// to:

copy mod-lang_settings/lang_extend_mac.php to includes/lang_extend_mac.php

// change:

		}

		if ( empty($template) )
		
// to:

		}

		if ( empty($template) || empty($theme) )

// change:

  $select_sql = ( !$submit ) ? ", t.topic_title,

// to:

  $select_sql = (!$submit) ? ', t.topic_title,

//// SECTION 2 ////

// this section applicable only if Profile Control Panel is NOT installed!

// in: MOD-mods_settings-users_choices.txt

// move file:

/mod-mods_settings/MOD-mods_settings-users_choices.txt

// to:

/mod-post_icons-101/MOD-mods_settings-users_choices.txt


// (in other words, put it in the root so EM will see it)

// change:

copy profile_options.php to profile_options.php
copy profile_options_body.tpl to templates/subSilver/profile_options_body.tpl

// to:

copy mod-mod_settings/profile_options.php to profile_options.php
copy mod-mod_settings/profile_options_body.tpl to templates/subSilver/profile_options_body.tpl

// don't forget to CHMOD 666 '/includes/def_icons.php'

//// THE END ////

// there are additional changes that have to be made in
// 'MOD-post_icons-upgrade_to_v101.txt' if you're upgrading, but you're not!
// right? right!
blackrat
Registered User
Posts: 63
Joined: Thu Mar 23, 2006 10:07 pm
Contact:

Related topics

Post by blackrat »

Can someone help me to get the icons in the related topics part.
See Related topics-Mod

The modification of viewtopic_related_body.tpl similar to viewtopic_body.tpl (part 2 of Topics Icons-Mod - I don't use Split Topic) is clear.

The only second new file in this mod is includes/functions_related.php
What parts of Post Icons-Mod I have to move to this file and how?

EDIT: Solved, trasferred the code from viewforum.php (part 2) to functions_related.php
blackrat

My board:
www.game-multimedia.com
Haros
I've Been Banned!
Posts: 97
Joined: Wed May 24, 2006 4:25 pm

Post by Haros »

I haveing problem with instalation. I don´t know why the board is show itslef as blank page. There is nothing to see..


Anyone?
sblueman
Registered User
Posts: 83
Joined: Mon Aug 02, 2004 2:01 am
Location: San Jose
Contact:

Post by sblueman »

I installed the mod and it works fine except that when I go to view the forum, the icons are not showing up:

When I View my forum:
Image

What I want for my forum:
Image

Any ideas on what to do?
sblueman
Registered User
Posts: 83
Joined: Mon Aug 02, 2004 2:01 am
Location: San Jose
Contact:

Post by sblueman »

sblueman wrote: I installed the mod and it works fine except that when I go to view the forum, the icons are not showing up:

When I View my forum:
Image

What I want for my forum:
Image

Any ideas on what to do?
bump.
sblueman
Registered User
Posts: 83
Joined: Mon Aug 02, 2004 2:01 am
Location: San Jose
Contact:

Post by sblueman »

sblueman wrote:
sblueman wrote:I installed the mod and it works fine except that when I go to view the forum, the icons are not showing up:

When I View my forum:
Image

What I want for my forum:
Image

Any ideas on what to do?
bump.
double bump.
sblueman
Registered User
Posts: 83
Joined: Mon Aug 02, 2004 2:01 am
Location: San Jose
Contact:

Post by sblueman »

sblueman wrote:
sblueman wrote:
sblueman wrote:I installed the mod and it works fine except that when I go to view the forum, the icons are not showing up:

When I View my forum:
Image

What I want for my forum:
Image

Any ideas on what to do?
bump.
double bump.
see above.
guy_enjoy
Registered User
Posts: 134
Joined: Thu Nov 03, 2005 3:57 pm

Post by guy_enjoy »

Hi!

I want to display the Icon in the

Forum index in the last post section.

I have tried it. but it installs on the forum page

Image

Please tell me how to install icon in the last post section on forum index :?:
guy_enjoy
Registered User
Posts: 134
Joined: Thu Nov 03, 2005 3:57 pm

Post by guy_enjoy »

sblueman wrote: I installed the mod and it works fine except that when I go to view the forum, the icons are not showing up:
Any ideas on what to do?


Make sure you have edited the

viewforum_body.tpl
viewforum.php


Correctly! (MOD-post_icons-part2.txt)

NICE
User avatar
NeoID
Registered User
Posts: 406
Joined: Mon Jun 06, 2005 10:12 pm
Location: Norway
Contact:

Post by NeoID »

Would it be possible make a dropdown-list where you can sort all threads
depending wich icon they have?
Norsk Anime Forum
http://www.AnimeNord.com
aydd
Registered User
Posts: 34
Joined: Thu Nov 24, 2005 10:14 pm

Post by aydd »

help pls

Image
https://camo.phpbb.com/413b523f5ece34a26cf0fc5df351e9e8bce4a864/687474703a2f2f696d6738352e696d616765736861636b2e75732f696d6738352f343732342f626f7a756b6a64302e6a7067

Code: Select all

templates/subSilver/viewforum_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<form method="post" action="{S_POST_DAYS_ACTION}">
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!-- mod : post icon -->
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
  <table
	<tr>
	  <th colspan="2"
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
colspan="2"
#
#-----[ IN-LINE REPLACE WITH ]--------------------------------
#
colspan="3"
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
	  <td class="row1" width="100%"><span class="topictitle">
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
	  <td class="row1" align="center" valign="middle" width="20">{topicrow.ICON}</td>
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
	<!-- BEGIN switch_no_topics -->
	<tr> 
	  <td class="row1" colspan="6"
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
colspan="6"
#
#-----[ IN-LINE REPLACE WITH ]--------------------------------
#
colspan="7"
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
	<!-- END switch_no_topics -->
	<tr> 
	  <td class="catBottom"
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
colspan="6"
#
#-----[ IN-LINE REPLACE WITH ]--------------------------------
#
colspan="7"
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
my templates view forum body.tpl

Code: Select all

<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="maintitle"><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
<td class="gensmall" align="right" valign="bottom">{L_MODERATOR}: {MODERATORS}<br />
{LOGGED_IN_USER_LIST}<br />
<strong><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></strong></td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr> 
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" /></a></td>
<td class="nav" width="100%">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a>
-> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a>
-> <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
<td nowrap="nowrap" class="nav">{PAGINATION}</td>
</tr>
</table>


<!-- BEGIN switch_attached_list --> 
   <br /> 
   <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> 
     <tr> 
      <th colspan="2" class="thCornerL" height="15" nowrap="nowrap">&nbsp;{switch_attached_list.L_ATTACHED_FORUM}&nbsp;</th> 
      <th width="50" class="thTop" nowrap="nowrap">&nbsp;{switch_attached_list.L_ATTACHED_TOPICS}&nbsp;</th> 
      <th width="50" class="thTop" nowrap="nowrap">&nbsp;{switch_attached_list.L_ATTACHED_POSTS}&nbsp;</th> 
      <th class="thCornerR" nowrap="nowrap">&nbsp;{switch_attached_list.L_LAST_POST}&nbsp;</th> 
     </tr> 
   <!-- BEGIN switch_attached_present --> 
   <tr> 
      <td class="row1" align="center" valign="middle" height="38"><img src="{switch_attached_list.switch_attached_present.FORUM_FOLDER_IMG}" width="46" height="25" alt="{switch_attached_list.switch_attached_present.L_FORUM_FOLDER_ALT}" title="{switch_attached_list.switch_attached_present.L_FORUM_FOLDER_ALT}" /></td> 
      <td class="row1" width="75%"><span class="forumlink"><a class="forumlink" href="{switch_attached_list.switch_attached_present.U_VIEWFORUM}">{switch_attached_list.switch_attached_present.FORUM_NAME}</a></span><br /><span class="genmed">{switch_attached_list.switch_attached_present.FORUM_DESC}</span></td> 
      <td class="row2" align="center" valign="middle"><span class="gensmall">{switch_attached_list.switch_attached_present.TOPICS}</span></td> 
      <td class="row2" align="center" valign="middle"><span class="gensmall">{switch_attached_list.switch_attached_present.POSTS}</span></td> 
      <td class="row2" align="center" nowrap="nowrap" valign="middle"><span class="gensmall">{switch_attached_list.switch_attached_present.LAST_POST_ID}</span></td> 
   </tr> 
   <!-- END switch_attached_present --> 
   </table> 
   <br /> 
<!-- END switch_attached_list --> 

<table border="0" cellpadding="2" cellspacing="1" width="100%" class="forumline">
	<tr>
		<th>&nbsp;</th>
		<th>{L_TOPICS}</th>
		<th>{L_REPLIES}</th>
		<th>{L_AUTHOR}</th>
		<th>{L_VIEWS}</th>
		<th>{L_LASTPOST}</th>
	</tr>
	<!-- BEGIN topicrow -->
<!-- BEGIN divider -->
<tr> 
   <td class="row2" colspan="6" height="28"><span class="cattitle">{topicrow.divider.L_DIV_HEADERS}</span></td>
</tr>
<!-- END divider -->
	<tr>
		<td height="30" class="row2"><a href="{topicrow.U_VIEW_TOPIC}"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></a></td>
	<td class="row1" width="100%">{topicrow.NEWEST_POST_IMG}<span class="topictitle">{topicrow.TOPIC_TYPE}</span><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a><span class="gensmall"><br />
			{topicrow.GOTO_PAGE}</span></td>
		<td class="row2" align="center"><span class="gensmall">{topicrow.REPLIES}</span></td>
		<td class="row3" align="center" nowrap="nowrap"><span class="gensmall">&nbsp;{topicrow.TOPIC_AUTHOR}&nbsp;</span></td>
		<td class="row2" align="center"><span class="gensmall">{topicrow.VIEWS}</span></td>
		<td class="row3" align="center" nowrap="nowrap"><span class="gensmall">&nbsp;{topicrow.LAST_POST_TIME}&nbsp;<br />
			{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
	</tr>
	<!-- END topicrow -->
	<!-- BEGIN switch_no_topics -->
	<tr>
		<td height="40" colspan="6" align="center" class="row1">{L_NO_TOPICS}</td>
	</tr>
	<!-- END switch_no_topics -->
	<tr>
		<td class="cat" align="center" colspan="6">
			<form method="post" action="{S_POST_DAYS_ACTION}">
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td class="gensmall">{L_DISPLAY_TOPICS}:&nbsp;</td>
						<td>{S_SELECT_TOPIC_DAYS}&nbsp;</td>
						<td><input type="submit" class="catbutton" value="{L_GO}" name="submit" />
						</td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" /></a></td>
<td class="nav" width="100%">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a>
-> <a class="nav" href="{PARENT_URL}">{PARENT_NAME}</a> 
-> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td> 
<td nowrap="nowrap" class="nav">{PAGINATION}</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><br />{JUMPBOX}</td>
<td class="gensmall" align="right" valign="top"><strong><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></strong><br />
{L_MODERATOR}: {MODERATORS}<br />
{LOGGED_IN_USER_LIST}
</td>
</tr>
</table>
<br />
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="0">
<tr>
<td valign="top">
<table border="0" cellspacing="1" cellpadding="0">
<tr>
<td><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" title="{L_NEW_POSTS}" /></td>
<td class="gensmall">&nbsp;{L_NEW_POSTS}</td>
<td>&nbsp;&nbsp;</td>
<td><img src="{FOLDER_IMG}" alt="{L_NO_NEW_POSTS}" title="{L_NO_NEW_POSTS}" /></td>
<td class="gensmall">&nbsp;{L_NO_NEW_POSTS}</td>
<td>&nbsp;&nbsp;</td>
<td><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" title="{L_ANNOUNCEMENT}" /></td>
<td class="gensmall">{L_ANNOUNCEMENT}</td>
</tr>
<tr>
<td><img src="{FOLDER_HOT_NEW_IMG}" alt="{L_NEW_POSTS_HOT}" title="{L_NEW_POSTS_HOT}" /></td>
<td class="gensmall">{L_NEW_POSTS_HOT}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_HOT_IMG}" alt="{L_NO_NEW_POSTS_HOT}" vspace="4" title="{L_NO_NEW_POSTS_HOT}" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" title="{L_STICKY}" /></td>
<td class="gensmall">{L_STICKY}</td>
</tr>
<tr>
<td><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" title="{L_NEW_POSTS_LOCKED}" /></td>
<td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_LOCKED}" title="{L_NO_NEW_POSTS_LOCKED}" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
<td align="right" valign="top"><span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
</table>
User avatar
littlepaws
Registered User
Posts: 353
Joined: Thu Mar 30, 2006 10:40 pm

Post by littlepaws »

Worked a treat Excellant Mod, had a few little install probs but was due to other mods being installed .

Other than that GREAT WORK !

Brings a little something different to the forum. :D

littlepaws
www.littlepawsdogtraining.com
website for dog lovers

www.tottenhamhotspursforum.co.uk
Football Fans forum

www.xbox360fanzone.com
Xbox 360 Forum
User avatar
LoganSix
Registered User
Posts: 32
Joined: Wed Mar 03, 2004 6:41 pm
Location: Cary, NC
Contact:

Diplay post outside of forum

Post by LoganSix »

I need to display a summary of a few posts outside of the forum.
I would like to include the post icon with the post.
What is the minimum code needed to do this?

I am getting the post icon number from the database and displaying it with the rest of the information I need. However, the number points to an array on the icon_def.php file. I included that file. What do I need to do to display the icon instead of the array number?

Thanks in advance for the help.
User avatar
xliz711x
Registered User
Posts: 47
Joined: Sun Jul 02, 2006 7:54 pm
Contact:

Post by xliz711x »

Okinesu wrote: All errors fixed. Now I have a new problem:

Whenever I post a new thread with a post icon, the icon does not show up in the second column (the column where the icon should be, the column between the column with the thread name and the column with the "no new posts" image. I have no idea where I could fix this at, any help?

See the an example of the problem here.


I'm having the same problem how did you fix this?

Or anyone else please help?
Post Reply

Return to “[2.0.x] MOD Database Cleanup”