Some SMF functionalities not working ?

Started by SychO, November 09, 2015, 11:45:54 AM

Previous topic - Next topic

SychO

Greetings,

I am facing the following issues :

-  When setting a board Moderator, when i tape his name the list doesn't appear where i can select him

-  On the Navigation bar the "active" class doesn't work, the class doesn't appear.

Any idea how it can be fixed pls ?
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Kindred

Sounds like some of your custom edits have screwed things up...


the type-ahead of the name is a javascript function. Some mods or manual edits will screw up the javascript....    check your debugger console.

active class could be a dozen different things -- all pretty much related to manual edits that were misplaced or not fully conceived.

URL showing the issue?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SychO

Well my edits on the theme are definitely not the reason this is broken since i made my theme on a testing forum

and then uploaded it in my forum, and i don't have any of these problems in the testing forum.

and if you mean by customizing, Sources as well then "no" since i don't have enough php experience to allow myself doing that,



Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Kindred

except that prior evidence indicates that the issues are 99.999% the result of issues with edits -- so, if you made edits on a test site (where it works) and then made the same edits on the live site (where it fails) --- then you must have flubbed something.

And yes...   both of these issues are likely to be caused by something in theme/template files...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SychO

I doubt it is a theme problem :

i have changed my theme into the default smf theme and the problems are still there,

so theme problem "don't think so"
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Kindred

I don't think that you understand how themes and mods work...

Any template file which is not specifically CHANGED by the cusotm theme is pulled from the default theme (curve)

So -- if your mod additions or other edits happened to adjust something that was not in your custom theme, such adjustments would have been made to the default theme... and therefor would still affect you, even if you switched to the default theme...

I ask again...
Quote from: Kindred on November 09, 2015, 11:48:30 AM
URL showing the issue?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

margarett

Further thoughts, maybe it helps ;)

They are separate issues (and not related)
* The autosuggest feature is, as Kindred said, a JS function. It is possible that a MOD broke it (JS is a very sensitive creature ;D ). Does it fail *only* when adding moderators to boards or also in other places (eg: adding a recipient to a PM)? As Kindred said, draw your browser developer tools and fire the JS console for errors ;)
* The "active" class is built with the menu. It is possible that the CSS was lost (?) or that something on the menu was borked (in Subs.php or via hooks). Is the class really missing from the active button?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

SychO

Oh ! i forgot about that point (i'm aware of it ;--) )

I'll check my files and see if i can detect where the problem appears to be !

URL showing anything ?

the url looks normal

Quote from: margarett on November 09, 2015, 12:27:21 PM
Further thoughts, maybe it helps ;)

They are separate issues (and not related)
* The autosuggest feature is, as Kindred said, a JS function. It is possible that a MOD broke it (JS is a very sensitive creature ;D ). Does it fail *only* when adding moderators to boards or also in other places (eg: adding a recipient to a PM)? As Kindred said, draw your browser developer tools and fire the JS console for errors ;)
* The "active" class is built with the menu. It is possible that the CSS was lost (?) or that something on the menu was borked (in Subs.php or via hooks). Is the class really missing from the active button?

I'm not getting any JS errors on the console, :/

also in other places (eg: adding a recipient to a PM) ?  YES

the css of the .active isn't lost it is intact, the class itself isn't showing,
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Kindred

What I meant was not the url would be showing an error....

please provide us with a URL of a page which demonstrates the error (with the CSS class)

Also...   when you say "YES" to the PM... does that mean that it WORKS in PMs or that it FAILS there, like it does in the admin section?
If it fails in all places, the issue is pretty much certainly a javascript conflict.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SychO

Quote from: Kindred on November 09, 2015, 12:48:54 PM
What I meant was not the url would be showing an error....

please provide us with a URL of a page which demonstrates the error (with the CSS class)

Also...   when you say "YES" to the PM... does that mean that it WORKS in PMs or that it FAILS there, like it does in the admin section?
If it fails in all places, the issue is pretty much certainly a javascript conflict.

It fails everywhere ^^

you want me to provide you the URL of the site ?
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SychO

Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Kindred

as expected...

you have some odd/poor code at the top...

get rid of the onload even for the body and/or that voting div that tried to make a popup  ---  and everything works again
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SychO

Quote from: Kindred on November 09, 2015, 01:06:20 PM
as expected...

you have some odd/poor code at the top...

get rid of the onload even for the body and/or that voting div that tried to make a popup  ---  and everything works again

Sweet ! The 1st problem which is when adding a moderator and a recipient to a PM is Fixed

the "active" class problem remains :/
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Kindred

looks like you may have messed with something in the code which constructs the menu....

there are several blank "class" statements throughout the page
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

margarett

It must be something with your theme or with the menu build-up. The link does *not* get the active class. If I add it manually via Firebug, then the link becomes "active".
Later I'll suggest some debug code for you, now I must leave

edit: ninja'd :P
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

SychO

so according to what Kindred said about default templates,

i just wanna say that i uploaded the default theme folder to my forum (and kept the other one under another name)

and the problem doesn't appear to be the default templates,

regrads
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

margarett

Eh, I forgot about this :P

Your index.template.php should have, near the end, a function called:
function template_menu()
{


After the globals declaration, add:
if ($context['user']['id'] == 1)
{
echo '
<div style="height: 300px; overflow-y: scroll;">
<pre>';
print_r($context['menu_buttons']);
echo ' </pre>
</div>';
}

(adjust the "1" to your user ID)

That will show you the menu array inside a box with scroll. Copy all the result and put it here inside code tags.
Do this in this page --> http://dzair-gaming.info/forum/index.php?action=forum
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

SychO

Sorry for taking so much time to reply, i have been away for studies, however here is what you requested :

Array
(
    [home] => Array
        (
            [title] => Home
            [href] => http://www.dzair-gaming.info
            [show] => 1
            [sub_buttons] => Array
                (
                )

            [is_last] =>
            [active_button] =>
        )

    [custom6] => Array
        (
            [title] => Portal
            [href] => http://dzair-gaming.info/forum/index.php?action=portal
            [show] => 1
            [sub_buttons] => Array
                (
                )

            [active_button] =>
        )

    [forum] => Array
        (
            [title] => Forum
            [href] => http://dzair-gaming.info/forum/index.php?action=forum
            [show] => 1
            [sub_buttons] => Array
                (
                )

            [active_button] =>
        )

    [custom2] => Array
        (
            [title] => Shop
            [href] => http://dzair-gaming.info/shop/
            [show] => 1
            [sub_buttons] => Array
                (
                )

            [active_button] =>
        )

    [admin] => Array
        (
            [title] => Admin
            [href] => http://dzair-gaming.info/forum/index.php?action=admin
            [show] => 1
            [sub_buttons] => Array
                (
                    [featuresettings] => Array
                        (
                            [title] => Features and Options
                            [href] => http://dzair-gaming.info/forum/index.php?action=admin;area=featuresettings
                            [show] => 1
                        )

                    [packages] => Array
                        (
                            [title] => Package Manager
                            [href] => http://dzair-gaming.info/forum/index.php?action=admin;area=packages
                            [show] => 1
                        )

                    [errorlog] => Array
                        (
                            [title] => Error Log
                            [href] => http://dzair-gaming.info/forum/index.php?action=admin;area=logs;sa=errorlog;desc
                            [show] => 1
                        )

                    [permissions] => Array
                        (
                            [title] => Permissions
                            [href] => http://dzair-gaming.info/forum/index.php?action=admin;area=permissions
                            [show] => 1
                            [is_last] => 1
                        )

                )

            [active_button] =>
        )

    [moderate] => Array
        (
            [title] => Moderate
            [href] => http://dzair-gaming.info/forum/index.php?action=moderate
            [show] => 1
            [sub_buttons] => Array
                (
                    [modlog] => Array
                        (
                            [title] => Moderation Log
                            [href] => http://dzair-gaming.info/forum/index.php?action=moderate;area=modlog
                            [show] => 1
                        )

                    [reports] => Array
                        (
                            [title] => Reported Posts
                            [href] => http://dzair-gaming.info/forum/index.php?action=moderate;area=reports
                            [show] => 1
                            [is_last] => 1
                        )

                )

            [active_button] =>
        )

    [profile] => Array
        (
            [title] => Profile
            [href] => http://dzair-gaming.info/forum/index.php?action=profile
            [show] => 1
            [sub_buttons] => Array
                (
                    [summary] => Array
                        (
                            [title] => Summary
                            [href] => http://dzair-gaming.info/forum/index.php?action=profile
                            [show] => 1
                        )

                    [account] => Array
                        (
                            [title] => Account Settings
                            [href] => http://dzair-gaming.info/forum/index.php?action=profile;area=account
                            [show] => 1
                        )

                    [profile] => Array
                        (
                            [title] => Forum Profile
                            [href] => http://dzair-gaming.info/forum/index.php?action=profile;area=forumprofile
                            [show] => 1
                            [is_last] => 1
                        )

                    [mentions] => Array
                        (
                            [title] => Mentions
                            [href] => http://dzair-gaming.info/forum/index.php?action=profile;area=mentions
                            [show] => 1
                        )

                )

            [active_button] =>
        )

    [pm] => Array
        (
            [title] => My Messages
            [href] => http://dzair-gaming.info/forum/index.php?action=pm
            [show] => 1
            [sub_buttons] => Array
                (
                    [pm_read] => Array
                        (
                            [title] => Read your messages
                            [href] => http://dzair-gaming.info/forum/index.php?action=pm
                            [show] => 1
                        )

                    [pm_send] => Array
                        (
                            [title] => Send a message
                            [href] => http://dzair-gaming.info/forum/index.php?action=pm;sa=send
                            [show] => 1
                            [is_last] => 1
                        )

                )

            [active_button] =>
        )

    [staff] => Array
        (
            [title] => Staff List
            [href] => http://dzair-gaming.info/forum/index.php?action=staff
            [show] => 1
            [icon] =>
            [active_button] =>
        )

    [mlist] => Array
        (
            [title] => Members
            [href] => http://dzair-gaming.info/forum/index.php?action=mlist
            [show] => 1
            [sub_buttons] => Array
                (
                    [mlist_view] => Array
                        (
                            [title] => View the memberlist
                            [href] => http://dzair-gaming.info/forum/index.php?action=mlist
                            [show] => 1
                        )

                    [mlist_search] => Array
                        (
                            [title] => Search For Members
                            [href] => http://dzair-gaming.info/forum/index.php?action=mlist;sa=search
                            [show] => 1
                            [is_last] => 1
                        )

                )

            [active_button] =>
        )

    [logout] => Array
        (
            [title] => Logout
            [href] => http://dzair-gaming.info/forum/index.php?action=logout;b7c1736f5bb4=dada0e2e1622f01d73cba5bb079e26ea
            [show] => 1
            [sub_buttons] => Array
                (
                )

            [active_button] =>
        )

    [highstaff] => Array
        (
            [title] => High Staff Room
            [href] => http://dzair-gaming.info/forum/index.php?action=highstaff
            [show] => 1
            [sub_buttons] => Array
                (
                )

            [is_last] => 1
            [active_button] =>
        )

)

   
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

margarett

Yeah the "active_button" item isn't present in any button...

Please attach Sources/Subs.php ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: