Page 4 of 35

Posted: Wed Feb 11, 2004 2:03 pm
by ycl6
I would advise you to remove all of this MOD and see if the error still occur or if you have backup (which you should always do so), recover your forum to it's original state. Then you should get your forum back to normal.

~Mac

Posted: Fri Feb 27, 2004 7:14 am
by Loco6sic6
wow thanks for the mod looks great.
If anyone wants to see it in action they can click here;
http://www.rom-crasher.com/modules.php?name=Forums

Posted: Sun Mar 21, 2004 4:51 am
by Dark Alchemist
For anyone who uses BBTech here is what I modified to get it to install (via EM).
########################################################
## MOD Title: Forum Icon with ACP Control
## MOD Version: 1.0.2
## MOD Author: Mac (Y.C. LIN) < ycl_6@sinamail.com > http://endless-tw.net
##
## MOD Description: This mod allow admin to give each forum a icon in the ACP
## Icons will show on index
##
## Installation Level: Easy
## Installation Time: 3 Minutes
##
## Files To Edit: 5
## index.php
## admin/admin_forums.php
## language/lang_english/lang_admin.php
## templates/BBTech/admin/forum_edit_body.tpl
## templates/BBTech/index_body.tpl
##
## Included Files: n/a
##
#################################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## Set your forum icon image paths as those rank images
##
##############################################################
## MOD History:
##
## 2003-11-15 - Version 1.0.2
## - Corrections were made for phpBB MOD Database submission
##
## 2003-11-08 - Version 1.0.1
## - Checked for 2.0.6 competibility, no change in coding
##
## 2003-11-04 - Version 1.0.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
ALTER TABLE `acplugins_db` ADD `forum_icon` VARCHAR( 255 ) default NULL;

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
$lang['Forum_status'] = 'Forum status';

#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Forum_icon'] = 'Forum icon'; // Forum Icon MOD

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_forums.php

#
#-----[ FIND ]------------------------------------------
#
$forumstatus = $row['forum_status'];


#
#-----[ AFTER, ADD ]------------------------------------------
#
$forumicon = $row['forum_icon']; // Forum Icon MOD

#
#-----[ FIND ]------------------------------------------
#
$forumstatus = FORUM_UNLOCKED;

#
#-----[ AFTER, ADD ]------------------------------------------
#
$forumicon = ''; // Forum Icon MOD

#
#-----[ FIND ]------------------------------------------
#
'L_FORUM_STATUS' => $lang['Forum_status'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_FORUM_ICON' => $lang['Forum_icon'], // Forum Icon MOD

#
#-----[ FIND ]------------------------------------------
#
'DESCRIPTION' => $forumdesc)

#
#-----[ REPLACE WITH ]------------------------------------------
#
'DESCRIPTION' => $forumdesc, // Forum Icon MOD
'ICON' => ( $forumicon ) ? $forumicon : '', // Forum Icon MOD
'ICON_DISPLAY' => ( $forumicon ) ? '<img src="' . $phpbb_root_path . $forumicon . '" />' : '')
// Forum Icon MOD

#
#-----[ FIND ]------------------------------------------
#
// There is no problem having duplicate forum names so we won't check for it.
$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable" . $field_sql . ")

#
#-----[ IN-LINE FIND ]------------------------------------------
#
forum_status

#
#-----[ AFTER, ADD ]------------------------------------------
#
, forum_icon

#
#-----[ FIND ]------------------------------------------
#
VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";

#
#-----[ IN-LINE FIND ]------------------------------------------
#
, " . intval($HTTP_POST_VARS['forumstatus']) . "

#
#-----[ AFTER, ADD ]------------------------------------------
#
, '" . str_replace("\'", "''", $HTTP_POST_VARS['forumicon']) . "'

#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . FORUMS_TABLE . "
SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "
WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]);
#
#-----[ IN-LINE FIND ]------------------------------------------
#
, forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . "

#
#-----[ AFTER, ADD ]------------------------------------------
#
, forum_icon = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumicon']) . "'

#
#-----[ OPEN ]------------------------------------------
#
index.php

#
#-----[ FIND ]------------------------------------------
#
$posts = $forum_data[$j]['forum_posts'];
$topics = $forum_data[$j]['forum_topics'];

#
#-----[ AFTER, ADD ]------------------------------------------
#
$icon = $forum_data[$j]['forum_icon']; // Forum Icon Mod

#
#-----[ FIND ]------------------------------------------
#
'FORUM_FOLDER_IMG' => $folder_image,

#
#-----[ AFTER, ADD ]------------------------------------------
#
'FORUM_ICON_IMG' => ($icon) ? '<img src="' . $phpbb_root_path . $icon . '" alt="'.$forum_data[$j]['forum_name'].'" title="'.$forum_data[$j]['forum_name'].'" />' : '', // Forum Icon Mod

#
#-----[ OPEN ]------------------------------------------
#
templates/BBTech/admin/forum_edit_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1">{L_FORUM_NAME}</td>
<td class="row2"><input type="text" size="25" name="forumname" value="{FORUM_NAME}" class="post" /></td>
</tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1">{L_FORUM_ICON}</td>
<td class="row2"><input type="text" size="35" name="forumicon" value="{ICON}" class="post"
/>&nbsp;&nbsp;&nbsp;{ICON_DISPLAY}</td>
</tr>

#
#-----[ OPEN ]------------------------------------------
#
templates/BBTech/index_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<th colspan="2" class="1" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</th>

#
#-----[ IN-LINE FIND ]------------------------------------------
#
colspan="2"

#
#-----[ REPLACE WITH ]------------------------------------------
#
colspan="3"

#
#-----[ FIND ]------------------------------------------
#
<td class="rowpic" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>

#
#-----[ IN-LINE FIND ]------------------------------------------
#
colspan="2"

#
#-----[ REPLACE WITH ]------------------------------------------
#
colspan="3"

#
#-----[ FIND ]------------------------------------------
#
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<td class="row1" align="center" valign="middle" height="50">{catrow.forumrow.FORUM_ICON_IMG}</td>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#

# EoM

[Réglé] Forum Icon with ACP Control help

Posted: Mon Mar 22, 2004 10:03 pm
by Hellprince
Hello I for assistance bus would please require when I have to install Categories hierarchy (a good moment ago because I am into 2.0.4 first part) Bon veiled my problem I would like to install Forum Icon with ACP Control 1.0.5 and I do not find any more plusior line that I have to change at the time of the installation of hierarchy Categories!! Veiled what I seek has to modify... index_body.tpl these line exists more, seen which this finds in index_box.tpl and who as before are seen more Categories hierarchy

templates/subSilver/index_body.tpl

Code: Select all

# 
#-----[ FIND ]------------------------------------------ 
# 
   <th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</th> 

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
colspan="2" 

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
colspan="3" 

# 
#-----[ FIND ]------------------------------------------ 
# 
   <td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td> 

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
colspan="2" 

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
colspan="3" 

# 
#-----[ FIND ]------------------------------------------ 
# 
   <td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td> 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
   <td class="row1" align="center" valign="middle" height="50">{catrow.forumrow.FORUM_ICON_IMG}</td> 

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/viewforum_body.tpl 

# 
#-----[ FIND ]------------------------------------------ 
# 
     <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a> 

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
     <td align="left" valign="bottom" colspan="2"> 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
{FORUM_ICON_IMG} 

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
my index_box.tpl

Code: Select all

<!-- mod : categories hierarchy v 2 --> 
<!-- BEGIN catrow --> 
<!-- BEGIN tablehead --> 
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> 
<tr> 
<th colspan="{catrow.tablehead.INC_SPAN}" width="100%" class="thCornerL" nowrap="nowrap">&nbsp;{catrow.tablehead.L_FORUM}&nbsp;</th> 
<th width="50" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;<br />{L_POSTS}</th> 
<th width="150" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th> 
</tr> 
<!-- END tablehead --> 
<!-- BEGIN cathead --> 
<tr> 
<!-- BEGIN inc --> 
<td width="46" class="{catrow.cathead.inc.INC_CLASS}"><img src="{SPACER}" width="46" height="0" /></td> 
<!-- END inc --> 
<td class="{catrow.cathead.CLASS_CAT}" width="100%" colspan="{catrow.cathead.INC_SPAN}"><span class="cattitle"><a href="{catrow.cathead.U_VIEWCAT}" class="cattitle">{catrow.cathead.CAT_TITLE}</a></span></td> 
<td class="{catrow.cathead.CLASS_CAT} colspan="2" " "></td> 
<td class="{catrow.cathead.CLASS_ROWPIC}" colspan="3" align="right">&nbsp;</td> 
</tr> 
<!-- END cathead --> 
<!-- BEGIN forumrow --> 
<tr> 
<!-- BEGIN inc --> 
<td width="46" class="{catrow.forumrow.inc.INC_CLASS}"><img src="{SPACER}" width="46" height="0" /></td> 
<!-- END inc --> 
<td  class="row2" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}"  alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td> 
<td class="row2" width="100%" height="50" colspan="{catrow.forumrow.INC_SPAN}" valign="top" onMouseOver="this.style.backgroundColor='#f4f6fb'; this.style.cursor='default';" onMouseOut="this.style.backgroundColor='#e1e9f2';"> 
<span class="forumlink"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br /></span> 
<span class="genmed">{catrow.forumrow.FORUM_DESC}<br /></span> 
<span class="gensmall"> 
<!-- BEGIN links --> 
{catrow.forumrow.links.L_LINKS} {catrow.forumrow.links.LINKS} 
<!-- END links --> 
</span> 
</td> 
<!-- BEGIN forum_link_no --> 
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}<br /><hr width="60">{catrow.forumrow.POSTS}</span></td> 
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td> 
<!-- END forum_link_no --> 
<!-- BEGIN forum_link --> 
<td class="row2" align="center" valign="middle" height="50" colspan="5"><span class="gensmall">{catrow.forumrow.forum_link.HIT_COUNT}</span></td> 
<!-- END forum_link --> 
</tr> 
<!-- END forumrow --> 
<!-- BEGIN catfoot --> 
<tr> 
<!-- BEGIN inc --> 
<td width="46" class="{catrow.catfoot.inc.INC_CLASS}"><img src="{SPACER}" width="46" height="0" /></td> 
<!-- END inc --> 
<td colspan="6" height="1" class="spaceRow"><img src="{SPACER}" alt="" width="1" height="1" /></td> 
</tr> 
<!-- END catfoot --> 
<!-- BEGIN tablefoot --> 
</table> 
<br class="gensmall" /> 
<!-- END tablefoot --> 
<!-- END catrow --> 
please help my :P (sorry google translate) merci

hello

Posted: Fri Apr 16, 2004 6:52 pm
by Trollie
Is there a webpage who has this mod installed ?
I want my categories split and new names in the top...

I had this

Image

Then i have split categories

Image

Then i put flags in like this

Image

color=red]But what i want is this :[/color]

Image

So i am looking for this mod who can do that, but i am not sure if this mod here does do the same..

tnx for your replay

Posted: Fri Apr 16, 2004 7:26 pm
by ycl6
I think you can play around with your TPL to get the right position you want. Simple cosmetic work :wink:

~Mac

ok, but...

Posted: Fri Apr 16, 2004 7:30 pm
by Trollie
So your mod is different.. i don't have to use it ?

Re: ok, but...

Posted: Fri Apr 16, 2004 8:18 pm
by ycl6
Trollie wrote: So your mod is different.. i don't have to use it ?

I meant, you can still use my MOD to configure your country flags for each forum
but you have to edit templates/subSilver/index_body.tpl to get the output you want

{FORUM_ICON_IMG} is what you need to move around

~Mac

Posted: Sat Apr 17, 2004 11:49 am
by Trollie
don't get it to work, but it seems i used 1.02 and there is a 1.05 version..

i try that one right away now

yes

Posted: Sat Apr 17, 2004 12:31 pm
by Trollie
Yes tnx

i get this http://cureboy.dynu.com/forumtest/index.php

now let me find a way to get it next to the word forum, and change that word forum

Re: yes

Posted: Sat Apr 17, 2004 12:46 pm
by ycl6
Trollie wrote: now let me find a way to get it next to the word forum, and change that word forum

Ya, just play around with the below code in templates/subSilver/index_body.tpl will do

Code: Select all

<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
  <tr> 
	<th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</th>
	<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
	<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
	<th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
  </tr>
  <!-- BEGIN catrow -->
  <tr> 
	<td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
	<td class="rowpic" colspan="3" align="right">&nbsp;</td>
  </tr>
  <!-- BEGIN forumrow -->
  <tr> 
	<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
	<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
	  </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
	  </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
	<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
  </tr>
  <!-- END forumrow -->
  <!-- END catrow -->
</table>
~Mac

but

Posted: Sat Apr 17, 2004 3:45 pm
by Trollie
Well..
I did put that line with

{FORUM_ICON_IMG}

in many places and got the icon on many places.
But never in the blue forum border

I give up...

tnx anyway for the lessons

hmm

Posted: Mon Apr 19, 2004 6:55 pm
by Trollie
i have tried something else, and i like it so far,...

So i will keep this.....

Tnx

Posted: Mon Apr 26, 2004 6:15 am
by Magnotta
can someoen make this compatible with categories hierarchy?

look here

Posted: Mon Apr 26, 2004 8:42 am
by Trollie
Here is a site who has the thing i want...

http://www.modelspoorbouw.org/phpbb2/index.php

If you go to this page and scroll down, you will find flags.

That's exactly what i mented...

But what is the name of the mod ???