Szanowna elita zna jakieś rozwiązanie?
Edytowany przez radario, 07 marzec 2008 - 18:19.
Napisany 07 marzec 2008 - 18:01
Edytowany przez radario, 07 marzec 2008 - 18:19.
Napisany 07 marzec 2008 - 21:07
IP.Board NEWS
Licencje IP.Board
Napisany 09 marzec 2008 - 18:29
IP.Board NEWS
Licencje IP.Board
Napisany 09 marzec 2008 - 21:38
/*
+----------------------------------------------------
| LI-22 SubForums Indicator Initial Release...
| ===================================================
| by Linuxboy
| (c) 2006 Vietnamese - Invision Resources/InvisionTweaks
| http://invisionviet.net/ http://invisiontweaks.com
| ===================================================
| Date Started: Thu, 30 January 2007
| Release Data: Thu, 30 January 2007
|
+----------------------------------------------------
*/
Compatibility: IPB v2.2.x
Description :
This Modificaton will Display Icons Next To Subforums Showing If There Are New Posts Or Not!
//----------------------------
Files Needs To Be Edited ??
//----------------------------
sources/classes/class_forums.php
and 2 skin template Edit :)
Step 1 :
##########################################
Open : .sources/classes/class_forums.php
#########################################
Find :
if ( ! $done_pass )
{
$forum_data['subforums'][ $data['id'] ] = $this->ipsclass->compiled_templates['skin_boards']->show_subforum_link($data['id'],$data['name']);
}
Replace It By :
if (!$done_pass)
{
//-----------------------------------------
// LI-22 Subforum Indicator;)
//-----------------------------------------
$img = $this->forums_new_posts($this->forums_calc_children($data['id'], $data, 1));
if ($img == '<{C_ON}>' || $img == '<{C_ON_CAT}>')
{
$img = '<{B_NEW}>';
}
else if ($img == '<{C_OFF}>' || $img == '<{C_OFF_CAT}>')
{
$img = '<{B_NORM}>';
}
else if ($img == '<{C_LOCKED}>')
{
$img = '<{B_HOT_NN}>';
}
else if ($img == '<{C_ON_RES}>')
{
$img = '<{B_HOT_DOT}>';
}
else if ($img == '<{C_OFF_RES}>')
{
$img = '<{B_HOT_NN_DOT}>';
}
$forum_data['subforums'][$data['id']] = $this->ipsclass->compiled_templates['skin_boards']->show_subforum_link($data['id'], $data['name'], $img);
}
Save & Upload
==============
################################################################################
########
Open : Admin CP -> Look & Feel -> Skins & Templates -> Skin Manager -> [Select Skin] ->
Edit Template HTML -> Board Index -> show_subforum_link
################################################################################
########
Click On The Arrow At The Roght Side at the Top Of The Window And Select The Option Edit Data Variable
If you are seeing This "$id="",$name=""," you are doing it right :)
Replace Bit By :
$id="",$name="", $img=""
Find :
<a href="{$this->ipsclass->base_url}showforum={$id}">{$name}</a>
Add Before :
{$img}
Save the Template
==============
################################################################################
#######
Open : Admin CP -> Look & Feel -> Skins & Templates -> Skin Manager -> [Select Skin] ->
Edit Template HTML -> Board Index -> show_subforum_all_links
################################################################################
#######
Find :
<br /><b>{$this->ipsclass->lang['sub_forum_title']}:</b> $links
================================================================================
====
Replace It By : ( You Can Choose any One Of These Acording To Your Liking )
================================================================================
====
<fieldset>
<legend><b>{$this->ipsclass->lang['sub_forum_title']}:</b></legend>
<b>$links</b>
</fieldset>
============================
Or Replace It By :
============================
<p><b>$links</b><a href="{$this->ipsclass->base_url}showforum={$id}">{$name}</a></p>
Save the Template
==============
That's all! :)
©2007 linuxboy;)
aha jak zauważyłem mod ten czerpie obrazy z tego samego miejsca co znaczniki forum...chciałbym natomiast by były to zupełnie inne gif'y pobierane z katalogu ....powiedzmy uploads
Edytowany przez radario, 10 marzec 2008 - 06:23.
Napisany 10 marzec 2008 - 06:44
$img = $this->forums_new_posts($this->forums_calc_children($data['id'], $data, 1));
if ($img == '<{C_ON}>' || $img == '<{C_ON_CAT}>')
{
$img = '<{B_NEW}>';
}
else if ($img == '<{C_OFF}>' || $img == '<{C_OFF_CAT}>')
{
$img = '<{B_NORM}>';
}
else if ($img == '<{C_LOCKED}>')
{
$img = '<{B_HOT_NN}>';
}
else if ($img == '<{C_ON_RES}>')
{
$img = '<{B_HOT_DOT}>';
}
else if ($img == '<{C_OFF_RES}>')
{
$img = '<{B_HOT_NN_DOT}>';
}
IP.Board NEWS
Licencje IP.Board
Napisany 24 marzec 2008 - 15:16
$img = $this->forums_new_posts($this->forums_calc_children($data['id'], $data, 1));
if ($img == '<{C_ON}>' || $img == '<{C_ON_CAT}>')
{
$img = '<{B_NEW}>';
}
else if ($img == '<{C_OFF}>' || $img == '<{C_OFF_CAT}>')
{
$img = '<{B_NORM}>';
Napisany 24 marzec 2008 - 19:54
IP.Board NEWS
Licencje IP.Board
Napisany 24 marzec 2008 - 21:14
Edytowany przez radario, 24 marzec 2008 - 21:29.
Napisany 25 marzec 2008 - 07:01
IP.Board NEWS
Licencje IP.Board
Napisany 25 marzec 2008 - 18:57
$forum_data['show_subforums'] = $this->ipsclass->compiled_templates['skin_boards']->show_subforum_all_links( implode( ', ', $forum_data['subforums'] ) );
$forum_data['show_subforums'] = $this->ipsclass->compiled_templates['skin_boards']->show_subforum_all_links( implode( ' ', $forum_data['subforums'] ) );
IP.Board NEWS
Licencje IP.Board
Napisany 26 marzec 2008 - 06:54
IP.Board NEWS
Licencje IP.Board
Napisany 20 grudzień 2010 - 20:01
IP.Board NEWS
Licencje IP.Board
0 użytkowników, 0 gości, 0 anonimowych użytkowników