News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Hiding boards on Board Index

Started by codenaught, August 15, 2005, 01:12:37 AM

Previous topic - Next topic

The -L-

Atm there is one child board 32.0 and board id is 31.0..

Glad that i'm not blind xD

Arantor

Hmm, both 31 and 32 were in that list.

I have a slightly better suggestion for 2.0 though.

Sources/Subs-BoardIndex.php
Code (find) Select
WHERE {query_see_board}

Code (replace) Select
WHERE b.id_board NOT IN (31,32) AND {query_see_board}

It's a variation of my Hide Ignored Boards mod's code.

The -L-

Excellent...few more things...xD

How can i hide link three in board 32?
And is it possible to change off.png & on.png (topic icons) just for 32.0 board child boards???

Arantor

What's link 3?

As for changing the on/off, it's possible but what do you want to change them to, exactly?

The -L-

Sorry my bad i wanted to say link tree as


And I wanna change topic icons to for example mon.png and moff.png...

Arantor

Hmm, that's more than a few lines to change in Subs-BoardIndex.php and MessageIndex.php and their respective templates.

Would take me a while to figure out and to be bluntly honest I'm not sure I know how to go about doing that.

The -L-

Please take a look at problem with link tree first...i'm guessing that it can be done similar to this... (just guessing...)

I asked this question before...only for some custom php page...long time ago...this is your post:

Quote
Before the call to the template functions:

unset($context['linktree']);

That should remove it.

And it worked for that test.php page...couldn't similar be done here??

I'm just trying to help,sorry if i'm boring you ,i'm sure i am.. :/

Arantor

No, because it's a very very different chunk of code. I only played with the board loading stuff once and it took me three days to figure out something relatively straightforward :-/

Advertisement: