Subforum Arangment . . . »  Show posts from    to     

Icy Phoenix


Old Support Topics - Subforum Arangment . . .



mafridi [ Fri 08 Feb, 2008 08:16 ]
Post subject: Subforum Arangment . . .
hi,

i want to change the layout of subforum in Icy Phoenix 1.1.10.25 and also remove the "Subfourm" Title from the forum.
please help me.. how can i do this.. i wnat to arranged in 2 or 3 column.


un-arranger's subforum Icy Phoenix 1.1.10.25 Screen shot
unaranged

Arrange Subforum in column (I want like this )
arrenged


Mighty Gorgon [ Mon 18 Feb, 2008 23:34 ]
Post subject: Re: Subforum Arangment . . .
Unfortunately it isn't so easy...

If you are confident with PHP and HTML you may try to modify functions_category_hierarchy.php and index_box.tpl to get what you need.

Good luck.


Limun [ Tue 19 Feb, 2008 05:28 ]
Post subject: Re: Subforum Arangment . . .
i will show you..
but i know only to put it vertical--(i dont know yet how to put 2,3 or 4collums ..i think somehow in index_box.tpl but i will try soon)


so open functions_categories_hierarchy.php

find

$links .= (($links != '') ? ', ' : '') . $wlast_post . $link;

replace with

$links .= (($links != '') ? '<br> ' : '') . $wlast_post . $link;

find

'L_LINKS' => empty($links) ? '' : ( empty($lang['Subforums']) ? '' : '<b>' . $lang['Subforums'] . ':</b>&nbsp;' ),

replace with

'L_LINKS' => empty($links) ? '' : ( empty($lang['Subforums']) ? '' : '<b>' . $lang['Subforums'] . ':</b><br>' ),



now open your index_box.tpl (in your folder theme !!! )

step 1
find

<span class="gensmall">{catrow.forumrow.L_LINKS}&nbsp;</span>

replace with

<span class="gensmall">{catrow.forumrow.L_LINKS}</span>

if you only want to remove title -Subforums:- from forum you dont need to make step 1
step 2
find

<span class="gensmall">{catrow.forumrow.L_LINKS}&nbsp;</span>

delete it !!

i hope this gona help somehow...



and this how it looks with step 1

final_1203397252_724076



!!!Before you do anything beckup your functions_categories_hierarchy.php and index_box.tpl !!!


mafridi [ Wed 20 Feb, 2008 07:00 ]
Post subject: Re: Subforum Arangment . . .
Thank You Limun

its working


Borbarad [ Wed 20 Feb, 2008 14:09 ]
Post subject: Re: Subforum Arangment . . .
Hi Limun,

great job and it works fine!
It would be really great if you are able to get it work with 3 collums! ooops

Greetings
Borbarad


Harimau [ Wed 20 Feb, 2008 15:49 ]
Post subject: Re: Subforum Arangment . . .
Borbarad wrote: [View Post]
Hi Limun,

great job and it works fine!
It would be really great if you are able to get it work with 3 collums! ooops

Greetings
Borbarad


It works fine whit 3 collums.

Great job !!


Borbarad [ Wed 20 Feb, 2008 18:54 ]
Post subject: Re: Subforum Arangment . . .
@Harimau

To read nicely.
However, could you be so friendly and write how can one create other columns? With the code from Limun i receive only one column with subforums vertically listed.

Greetings
Borbarad


Borbarad [ Fri 22 Feb, 2008 12:44 ]
Post subject: Re: Subforum Arangment . . .
I found a snippet to get more than one column.

Use the changes that Limun posts only with one change:

Find:
Code: [Hide] [Select]
$links .= (($links != '') ? ', ' : '') . $wlast_post . $link;


Replace with:
Code: [Hide] [Select]
if($j %4)
{
$connector = '&nbsp;';
}
else
{
$connector= '<br>';
}


if ($link != '') $links .= (($links != '') ? $connector : '') . $wlast_post . $link;

4 can be changed to the number of columns that are wanted

than it looks so:
subforums

Indeed, the indicated look is not very nice! With differently long words the lines move.
To fix this in the original snippet they use an table. this is the code there for:
Code: [Hide] [Select]
if($j %2)
{
$connector = '<span style="left: 300; position:absolute">';
}
else
{
$connector= '<br>';
}
if ($link != '') $links .= (($links != '') ? $connector : '') . $wlast_post . $link;

if ($j %2){$links.='</span>';}


But it doesn`t work - with IP?
Can somebody please help to create a "output-table"?

Greetings
Borbarad


Mighty Gorgon [ Sun 24 Feb, 2008 20:45 ]
Post subject: Re: Subforum Arangment . . .
As I said it is not so easy.

  • You should have an intermediate PHP knowledge.
  • You should have good HTML knowledge and know how table works.
  • You have to create a subforum counter in the PHP file which generates subforum listing (if I remember well is includes/functions_category_hierarchy.php), so when you have more than X (depends on your taste...) subforums a new row is created.
  • You have to modify the template file (if I remember well is templates/YOUR_TEMPLATE/index_box.tpl) inserting a table and a template switch for increasing ROWS and CELLS accordingly.


You can try to verify how album category works depending on how many pictures are set by rows and columns... the logic is the same... you will realize that it is not so easy if you are not confident with PHP and HTML.


Chaotic [ Sun 23 Nov, 2008 03:44 ]
Post subject: Re: Subforum Arangment . . .
I just applied this cosmetic change and it works just fine with version 1.2.0.27c.



TheSteffen [ Tue 25 Nov, 2008 15:46 ]
Post subject: Re: Subforum Arangment . . .
Have you done the first version with 4

or the second "With differently long words the lines move"

I think only the second doesn't work


Chaotic [ Tue 25 Nov, 2008 19:59 ]
Post subject: Re: Subforum Arangment . . .
I just followed the steps in this post up above:

Spoiler: [ Show ]


Looks good too!


TheSteffen [ Wed 26 Nov, 2008 21:22 ]
Post subject: Re: Subforum Arangment . . .
Ah OK, thanks for your answer Chaotic


Chaotic [ Thu 11 Dec, 2008 03:25 ]
Post subject: Re: Subforum Arangment . . .
Moving to General Support as this cosmetic change still works.


gearhead [ Thu 11 Dec, 2008 04:26 ]
Post subject: Re: Subforum Arangment . . .
That's a great idea.

Chaotic, are those cigarettes, or clothespins?



Chaotic [ Thu 11 Dec, 2008 04:30 ]
Post subject: Re: Subforum Arangment . . .
Yeah, most people might find this very useful!

Off Topic
 gearhead: [View Post]
Chaotic, are those cigarettes, or clothespins?



Those would be permanent markers...Sharpies to be exact.


batman [ Tue 15 Mar, 2011 11:46 ]
Post subject: Re: Subforum Arangment . . .
Limun wrote: [View Post]
i will show you..
but i know only to put it vertical--(i dont know yet how to put 2,3 or 4collums ..i think somehow in index_box.tpl but i will try soon)


so open functions_categories_hierarchy.php

find

$links .= (($links != '') ? ', ' : '') . $wlast_post . $link;

replace with

$links .= (($links != '') ? '<br> ' : '') . $wlast_post . $link;

find

'L_LINKS' => empty($links) ? '' : ( empty($lang['Subforums']) ? '' : '<b>' . $lang['Subforums'] . ':</b>&nbsp;' ),

replace with

'L_LINKS' => empty($links) ? '' : ( empty($lang['Subforums']) ? '' : '<b>' . $lang['Subforums'] . ':</b><br>' ),



now open your index_box.tpl (in your folder theme !!! )

step 1
find

<span class="gensmall">{catrow.forumrow.L_LINKS}&nbsp;</span>

replace with

<span class="gensmall">{catrow.forumrow.L_LINKS}</span>

if you only want to remove title -Subforums:- from forum you dont need to make step 1
step 2
find

<span class="gensmall">{catrow.forumrow.L_LINKS}&nbsp;</span>

delete it !!

i hope this gona help somehow...



and this how it looks with step 1

final_1203397252_724076



!!!Before you do anything beckup your functions_categories_hierarchy.php and index_box.tpl !!!


Hya fellas, Ive done this on my forum and works great, the trouble is I want to put it back to normal as it doesn't appeal much to my users, I thought it would be a simple case of reversing the procedure but It isn't changing back.
I have even re uploaded the original functions_categories_hierarchy.php and index_box.tpl but still no change.
Is there something ells I need to do?
Im using latest IP and prosilver_ip

http://www.british-birds-in-avicult...orums/forum.php


spydie [ Tue 15 Mar, 2011 13:33 ]
Post subject: Re: Subforum Arangment . . .
have you tried clearing cache ??

o recompile template cache ??




Powered by Icy Phoenix