News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Alias Boards

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

Previous topic - Next topic

DJ_Kukky

#20
Hi..
i have one sittuation, when my alias boards that should be displayed as a child are missing.

example.

category 1
- board 1.1
- board 1.2
- - board 1.2.1
- - board 1.2.2
- - board 1.2.3  (original)
category 2
- board 2.1
- board 2.2
- board 2.3
- - board 2.3.1  (is alias for board 1.2.3)
- - board 2.3.2

now, i set that board 1.2.3 should have an alias in board 2.3

when i enter to board 2.3, i see all childs including alias boards

BUT
on my forum home page, when there are listed child boards, alias boards (as childs) are missing
( my board 2.3.1 is missing..)

problem is in $context['category']['board']['children'] ..., there are missing alias boards, why ?
so i think problem is in Sources/BoardIndex.php

can somebody help ?  it's emergency
(sorry for my bad english)

SMF version: 1.1.4, installation of mod was successfull.., default theme..
Hrvoje Kusulja
Techno rulez !!!!
Kusulja.com | Forum - Domeka | DJ_Kukky

SleePy

The child board information isn't all there when it is loaded on the boardindex. So without some of this information it won't display correctly.
I haven't found a simple solution to that yet. The boardindex is very complicated in the way it works.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

DJ_Kukky

Quote from: SleePy on March 05, 2008, 09:11:00 PM
The child board information isn't all there when it is loaded on the boardindex. So without some of this information it won't display correctly.
I haven't found a simple solution to that yet. The boardindex is very complicated in the way it works.
i see...

i tryed to debug your mod..., in boardindex.php

what's a purpose of $alias_childs[] and $alias_boards[] ? ,
i saw some code with $alias_boards[] that you wrote.., but that array is always empty...., (but alias_childs isn't)

please, can you fix this ?
Hrvoje Kusulja
Techno rulez !!!!
Kusulja.com | Forum - Domeka | DJ_Kukky

SleePy

$alias_boards will be used if you copy a board from one category to another.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

tbh

nstalling this package will perform the following actions:
      Type    Action    Description
*    1.    Execute Modification    ./Sources/Subs-BoardIndex.php    Test failed
      1.    Add Before    ./Sources/Subs-BoardIndex.php    Test successful
      2.    Add Before    ./Sources/Subs-BoardIndex.php    Test failed
      3.    Add Before    ./Sources/Subs-BoardIndex.php    Test successful
      4.    Add Before    ./Sources/Subs-BoardIndex.php    Test successful
*    2.    Execute Modification    ./Sources/ManageBoards.php    Test successful
      1.    Add Before    ./Sources/ManageBoards.php    Test successful
      2.    Add After    ./Sources/ManageBoards.php    Test successful
      3.    Add Before    ./Sources/ManageBoards.php    Test successful
      4.    Add Before    ./Sources/ManageBoards.php    Test successful
*    3.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
      1.    Add Before    ./Sources/Subs-Boards.php    Test successful
      2.    Replace    ./Sources/Subs-Boards.php    Test successful
      3.    Add Before    ./Sources/Subs-Boards.php    Test successful
*    4.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
      1.    Add Before    ./Themes/default/ManageBoards.template.php    Test successful
*    5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Modifications.english.php    Test successful
   6.    Execute Modification    ./Themes/default/languages/Modifications.english_utf8.php    Skipping file
   7.    Adapt Database    database_install.php
---------------------------------------------
Groetjes Theo

SleePy

Do you have any other mods installed that edit the Subs-BoardIndex.php source file?
I hoped the code I would have it search for wouldn't edit this, but I guess I am wrong.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

tbh

Hiya freind.

Some more of mods say compatible but dont work how ever.

see me mods list below

Modification Packages
   Mod Name    Version    
1.    Case Insensitive Smileys    1.1    [ Uninstall ] [ List Files ] [ Delete ]
2.    No Reply Emails    1.3    [ Uninstall ] [ List Files ] [ Delete ]
3.    TopicStarter Mod    1.1    [ Uninstall ] [ List Files ] [ Delete ]
4.    Profil Moderator Managment    1.0.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    Avatar Under Membergroups Rank    1.1b    [ Uninstall ] [ List Files ] [ Delete ]
6.    SMFbuy    1.3    [ Uninstall ] [ List Files ] [ Delete ]
7.    Ad Managment    2.3.3    [ Uninstall ] [ List Files ] [ Delete ]
8.    BoardHover Mod    1.2    [ Uninstall ] [ List Files ] [ Delete ]
9.    Pie Chart Mod    1.22    [ List Files ] [ Delete ]
10.    JPG Thumbnails    2.0    [ Uninstall ] [ List Files ] [ Delete ]
11.    More Spiders    1.0    [ Uninstall ] [ List Files ] [ Delete ]
12.    Advanced Reputation System    1.4.0    [ Uninstall ] [ List Files ] [ Delete ]
13.    SSI Latest Members    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
14.    Users Online Today    1.5.1    [ Uninstall ] [ List Files ] [ Delete ]
15.    Tagging System    1.0.4    [ List Files ] [ Delete ]
16.    Coar's Skype Mod    1.5    [ List Files ] [ Delete ]
17.    Member Color Link    2.1.0    [ Uninstall ] [ List Files ] [ Delete ]
18.    autoTooltips autoLinktips for SMF    0.9    [ Uninstall ] [ List Files ] [ Delete ]
19.    SMF Gallery Lite    1.8.3    [ List Files ] [ Delete ]
20.    Group Online Status    1.0    [ Uninstall ] [ List Files ] [ Delete ]
21.    Stars And Badges    2.0    [ Apply Mod ] [ List Files ] [ Delete ]
22.    PhpInfo    1.2    [ Uninstall ] [ List Files ] [ Delete ]
23.    Digg in Topics (for 2.0 Beta 3)    1.2    [ Uninstall ] [ List Files ] [ Delete ]
24.    AjaxInlineMessagePreview    1.00    [ Uninstall ] [ List Files ] [ Delete ]
25.    Custom Action Mod    3.0    [ Uninstall ] [ List Files ] [ Delete ]
26.    YouTube BBCode    2.3    [ Uninstall ] [ List Files ] [ Delete ]
27.    More HTML tags    1.0.3    [ List Files ] [ Delete ]
28.    Auto Embed Video Clips    2.1.5    [ Uninstall ] [ List Files ] [ Delete ]
29.    Contact Form    1.0    [ Uninstall ] [ List Files ] [ Delete ]
30.    DNS Blocklist Bans    1.4    [ Uninstall ] [ List Files ] [ Delete ]
31.    MetaCafe BBCode    1.4    [ Uninstall ] [ List Files ] [ Delete ]
32.    Save PM as HTML    1.0.6    [ Uninstall ] [ List Files ] [ Delete ]
33.    Alias Boards    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
34.    MessagePreviewOnHover    1.7    [ Apply Mod ] [ List Files ] [ Delete ]
35.    Separated Birthdays from Events    1.0    [ Uninstall ] [ List Files ] [ Delete ]
36.    Todays Birthday SMF2.0    0.1.2    [ Uninstall ] [ List Files ] [ Delete ]
37.    Order News    1.0.4    [ Apply Mod ] [ List Files ] [ Delete ]
38.    AC in Black Smilies    1.0    [ Uninstall ] [ List Files ] [ Delete ]
39.    Divine Smilies    1.0    [ Uninstall ] [ List Files ] [ Delete ]
Installed mods: current version older version

Thats install  Some dont work a warning ( Apply mod)  2.0 beta 3 public but not compatible. test fail
__________________________________________________________
Quote from: SleePy on April 16, 2008, 10:26:32 PM
Do you have any other mods installed that edit the Subs-BoardIndex.php source file?
I hoped the code I would have it search for wouldn't edit this, but I guess I am wrong.
---------------------------------------------
Groetjes Theo

SleePy

Which one of those are actually installed?

Can you attach your Subs-Boardindex.php
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

tbh

Install All below list.
Not instal numers(Not comaptible are)
21.    Stars And Badges    2.0    [ Apply Mod ]

33.    Alias Boards    1.0 [ Apply Mod ]


34.    MessagePreviewOnHover    1.7 [ Apply Mod ]


37.    Order News    1.0.4    [ Apply Mod ]

---------------------------------------------
Groetjes Theo

SleePy

Try this one
The colorize members mod by johnyb was interfering with the install
I moved the code and it should install now
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

tbh

Thanks,  But dont work
------------

   Execute Modification     ./Sources/Subs-BoardIndex.php     Test failed
      1.    Add Before    ./Sources/Subs-BoardIndex.php    Test successful
      2.    Add Before    ./Sources/Subs-BoardIndex.php    Test failed

-------------



Quote from: SleePy on April 17, 2008, 07:48:48 PM
Try this one
The colorize members mod by johnyb was interfering with the install
I moved the code and it should install now
---------------------------------------------
Groetjes Theo

SleePy

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

tbh

Yep Download.
Upload to me forum 

Not work  Big red warning very strong.


so i go to bed.

Theo

Quote from: SleePy on April 17, 2008, 08:34:36 PM
Are you sure you replaced the file?
---------------------------------------------
Groetjes Theo

SleePy

Well the file I gave you has the exact sections my mod is looking for

Revert to the Subs-BoardIndex.php you uploaded, then uninstall the colorize members mod.
Install this mod and if no errors occur or anything attempt to install the colorize members mod.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

City Builder

I am told that I pass all tests, however when I apply the mod I get the following (this is a fresh 1.1.5 forum with very few mods):

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{db_prefix}boards' at line 1
File: /home/.server1/myusername/mydomain.com/Packages/temp/database_install.php
Line: 39

SleePy

Hmm,
Try the attached file..
Just drop it in the same directory as your SSI.php and run it from the browser.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

msvdm

I have other problem i try to uninstall the mod but /he still appear in the mod list i try to uninstall it agen but then i get the message *the package was not found* i also upload and run the database_remove.php but i dont succeed, now i have installed version 1.00 and i cant update to version 1.2 even to remove :(

SleePy

Did you get an error while uninstalling?
What version of SMF are you using?

It may be possible that it did uninstall, but wasn't able to edit (this wouldn't happen in SMF 2.0 though since its managed by the database) the installed.list file to show it was installed.

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

msvdm

#38
i uss SMF 2.0 Beta 3.1 Public no errors when i trying to uninstall the mod but the mod still appear in the installed mod list and when i try to uninstall agen it tells me *the package cannot be found ore miss uninstaller please contact the author of the mod *  :(

SleePy

Does deleting the package make it go away?

Do other mods do this? I wonder if its an SMF bug.
I don't mandate how SMF handles the mod list, so I am thinking it may be a bug in SMF itself.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Advertisement: