Alias Boards

Started by dougiefresh, December 11, 2007, 12:39:20 AM

Previous topic - Next topic

SleePy

You could remove all child boards from appearing on the boardindex.

As well if you wanted to just hide that board, it would be a simple template change as well to not have it output that child board based on its id.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

forepro

well... I understand what you're saying, but unfortunately I am not a coder.
Could you use default theme as an example pointing me the right direction?
That will really help.

Thank you SleePY!

SleePy

You would just find in the template:

                    foreach ($board['children'] as $child)
                    {


Then add after that:
                        if ($child['id'] == xxx)
                            continue;


Of course replacing xxx with the id of the board (its a unique number not the name).

Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

forepro

Thanks for the hint, SleePy
I've found a good workaround.

cheers!  ;)

SleePy

Was it the one I posted above or another?
I am sure others may find your work around helpful :)
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

forepro

It's similar to your advice.
I disabled the display of child board names in BoardIndex and in Alias Board mod.  :D

alex111

Hi,
I believe that my problem is the same as previously discussed - links to aliased child boards are not displaying in my BoardIndex under the boards that they have been aliased to. One thing to note is that commas are appearing under the boards in the BoardIndex where the alias boards should appear. Its as if it knew that there should be another child board there, but the link info got left out. However, everything else is working great! When you have time, could you please fix this issue?

Thank you for your hard work!

SleePy

If you view the source do you see the links to those boards? It sounds like its possible they are missing their board names.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

zer0hal0

I'm having some problems with the child boards. I have the links lined in a single striaght row, but when someone makes a new post the icon to tell you when someone has made a new post doesnt show up for some reason just the text saying NEW POST.

Anyway i can fix this man?

SleePy

Hmm.
Does it show in the source of the page?
As if you where to view the source and go find the html for that aliased board, do you see the code for it to load the image?

I wonder if just the path to the image is wrong, so it is defaulting back to the text.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

zer0hal0

My site is http://dvdresurrections.com/forum/index.php, its shows the no new posts icon and when someone posts in another section of the site the new posts icons work and same goes in the child boards.

Its on the main index page that it doesnt show up. But everything else is fine.

SleePy

I don't see any aliased boards as a guest.

btw click that link, your 404 page is messed up.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

zer0hal0

sorry  put a comma at the end of the link.. The first 2 sections have child boards if ya sign up to the forum you'll see once someone makes a new post that the icon doesnt appear.

SleePy

I was referring to the missing images and other things I received on it.
I don't sign up on other peoples forums unless I want to.

Is it not showing it for a board that you aliased as a child board? It is possible that this won't work since it doesn't have the information to know if the message is new or not.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

drhamad

Forgive me if this has been previously answered, but will this mod not alias boards onto index into child boards correct?

Here we do not see "Wheels / Tires - Sponsored by Wheeldude.com" (ignore the W&T redirect that is there, that's something different):


Yet if I'm on the index I do see it:
FMVperformance:  3.51m posts, 63k members, 11 boards, 1 database

Mazda3Forums - SmallVolvos - MazdaSpeeders Mazda Club - FordFusionClubMazda CX-7 Club - MyMazda6
Now introducing: MKSdrivers.com - FocusDrivers - TaurusDrivers

SleePy

Is it is a board on the index that you are aliasing into a child board? It won't show its child boards there.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

drhamad

Category: Mazda3
=> Wheels / Tires
=> MazdaSpeed3

Alias:
Category: Mazda3
=> Wheels / Tires
=> MazdaSpeed3
==> Wheels/Tires (alias)


Can this be done properly, or will this mod not do it?
FMVperformance:  3.51m posts, 63k members, 11 boards, 1 database

Mazda3Forums - SmallVolvos - MazdaSpeeders Mazda Club - FordFusionClubMazda CX-7 Club - MyMazda6
Now introducing: MKSdrivers.com - FocusDrivers - TaurusDrivers

SleePy

There is a bug in 2.0 that is prohibiting the child board aliasing from working right. This is mostly due to the changes in 2.0, and I haven't had time to debug it.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

drhamad

Quote from: SleePy on March 04, 2009, 09:16:20 PM
There is a bug in 2.0 that is prohibiting the child board aliasing from working right. This is mostly due to the changes in 2.0, and I haven't had time to debug it.

Ah ok.  So it SHOULD do what I'm asking here, but as of right now, is broken?  So if I install this mod and set it up, I'm not doing so in vain, in the long run?
FMVperformance:  3.51m posts, 63k members, 11 boards, 1 database

Mazda3Forums - SmallVolvos - MazdaSpeeders Mazda Club - FordFusionClubMazda CX-7 Club - MyMazda6
Now introducing: MKSdrivers.com - FocusDrivers - TaurusDrivers

SleePy

It should do it, I am not 100% sure how easy it will be to get the functionality back. But I will attempt to do my best to bring it back.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Advertisement: