Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Indeed, there is a compromised WordPress site on the same server. The host also discovered that php 5.4 was not removed when php 7 was installed (5.4 was still available from the CLI) so, that probably explains that.
@Ben, I’ll save you a sample. I could probably send it via encrypted zip file. Can I find your email address here somewhere? Otherwise, I can zip it and post a link
update. Doing some digging and found some odd php files.
In addition (despite have ing favicon turned off everywhere) My site is littered with files that have names like the above:.42ff19c8.ico
and cracking them open with Bbedit, they all start with <?php
Presumably these are malicious and I should whack them.
If support could confirm they are not part of backlight, I will whack them promptly
Every few days, I have a failure on my site, which manifests itself when I load any of the top level pages:
Something went wrong
Unexpected error: unserialize(): Error at offset 0 of 18 bytes in .42ff19c8.ico(2) : runtime-created function on line 4
Please report error at http://community.theturninggate.net
If I run the "update album files" function it is repaired for some amount of time. But it returns (possibly as soon as overnight). I just verified that (by updating album files) so don't bother looking today (03-30-2020). I will reply as soon as I see it do it again.
My site is https://www.lightsmithy.com
if you select any of the top level pages from the menu, it will re-occur (probably by tomorrow morning). For example, any of the first level items under "places" for example: https://www.lightsmithy.com/collections/parks/ (it does error when going to the URL directly as well)
I have reinstalled 'all' and made sure it is up to date.
I am guessing this is not actually a backlight issue, but something my host is doing. I need a clue of what to point them at.
Thanks!
Thank you Matt!
YES! That works Daniel!!!!
Rod, you should write this up for your tips site.
If I understand pseudo selection correctly (which I doubt), what Daniel is selecting for is the 'sub-menu' of the 2nd item of his menu (i.e. his Galleries) and forcing display. Is that correct? Which is not at all why I am trying to do
I want to suppress every li.menu.item, not every second one or anything, so not sure how it applies
Sorry Rod, I don't understand how to apply that in this context. is a LI a child of UL? or is li.menu-item a child of page__pallet__T1?
if the latter, is this what you mean?:
#page__pallet__T1:nth-child(2) > li.menu-item {
display: none;
}
which still doesn't work
You need to use the child pseudo selector.
I have no idea what a child pseudo selector is (I looked at his CSS, but I wouldn't know if I saw it)
no luck, still displays children. however;
(from my page)
<div id="page__pallet__T1" class="page__column page__pallet" data-position="T1">
<div class="content clearfix">
<nav class="nav nav_v">
<ul class="primary-menu menu mouseable"><li class="menu-item menu-item-has-children"><a href="/portfolio/"><b>Portfolios</b></a><ul class="sub-menu"><li class="menu-item"><a href="/portfolio/age/">Age</a></li>
<li class="menu-item"><a href="/portfolio/artifacts/">Artifacts</a></li>
These are what needs to be suppressed:
<li class="menu-item"><a href="/portfolio/artifacts/">Artifacts</a></li>
I tried:
#page__pallet__T1 li.menu-item {
display: none;
}
but that doesn't do it either. I don't know enough about CSS to know if I can just switch it like that. It does feel like this is the road to go down though.
Fair enough, thank you!
That could be a perfect solution. I'll poke at that tomorrow
That is just a custom CSS call, correct?
yeah, that looks terrible and unbalanced in 2 column
that kinda defeats the point of that big beautiful slideshow then unless I can make the right column really narrow (or 3 column and both narrow)
does the:
Pallet Content via phplugins
This is content added via phplugins to fill this awkward space. Don't laugh at me.
need to be there?
Does not work on mine.
Does not show at all if 1 Column Layout. Does not show at all if vertical nav disabled
';
return false;
} // END /**/
at teh end I assume...
Using the navigation() hook, one can replace the menu. But this affects horizontal and mobile menus
thus defeating the whole point of separate menus (one complex for desktop, one simplified for mobile)
If I use a two column layout, I have a two column page instead of a nicely centered one column page. That does however, kinda get menu showing.... I get both, overlapping each other.
I don't know if there is a way to force pallet01 to show on mobile only.
The problem is started by there not being a way to force pallet01 to NOT replace Navigation on mobile.
It's frustrating that Matt has given us such a great way to make elegant useable menus on desktop, but if we use them we cripple navigation on mobile (I dare you to try navigating my site on a phone).
While digging around here find all the various complaints and solutions to mobile menus I had a thought of a simple (from the user end) solution:
Since one can style the Vertical menu separate from the Horizontal menu and one can (theoretically) use PHPlugins to insert a different menu into the Vertical menu (pallet 1), would it be possible to just be able to, in the Vertical Menu styling section, select a different menu set for it? The default should obviously be the "same as Horizontal menu" but this would allow for an easy way to have a simplified mobile menu, or even a site menu separated from a galleries menu or other creative uses.
I realize that there may be a compelling programatical reason not to do this and Matthew has already tripped those landmines for us. If that is that case, please shut this down.
If not, this offers an elegant solution to the conundrum of having to make a choice of hobbling your desktop menu in order to not cripple your mobile menu.
function main_top () {
echo 'hello scott frey';
}
Perfect test. Yes, it works
A link to your page could be helpful too.
are you starting with the phplugins-pangolin-sample.php file?
Are you leaving in all the existing code at the top (the stuff that makes this work)?
In your page template have you enabled phplugins and chosen the correct file?
All good questions, and initially I had not, but I figured that part out on my own ;) Yes, to all those. Daniel's sample code is showing on the page. (that might be something to leave uncommented in the sample, like the RED background in the custom CSS sample). PHPlugins is clearly working now with the sample code, but not writing in the menu code
Here is a link to the full phplugins file: https://www.dropbox.com/s/whzw5a7941koo … y.php?dl=0
Thus:
// mobile navigation
function pallet01_top () {
echo '
<div id="page__pallet__T1" class="page__column page__pallet" data-position="T1">
<div class="content clearfix">
<nav class="nav nav_v">
<ul class="primary-menu menu mouseable"><li class="menu-item"><a href="/portfolio/"><b>Portfolios</b></a></li><li class="menu-item"><a href="/collections/">Places</a></li><li class="menu-item"><a href="/events/">Events</a></li><li class="menu-item"><a href="/about/">About</a></li><li class="menu-item"><a href="/backlight/search/">Search</a></li></ul>
</nav>
</div>
</div>
';
return false;
} // END /**/
Makes no change, same exact behavior.
Then try not disabling it. The phplugins function should replace it.
it does not.
I'm still missing something. How can I tell if phpplugins is actually doing anything at all?
I'm trying to implement Daniel's suggestion from this thread: http://community.theturninggate.net/vie … hp?id=9243
post #7:
I would design a dedicated menu-set for mobile that uses a simpler structure. First I would design this alternative menu in Backlight (create a new menu-set for that!), then copy the generated source code that is enclosed by the nav divs:
I've done that, and added the following to my phpplugins;
// mobile navigation
function pallet01_top () {
echo '
<nav class="nav nav_v">
<div id="page__pallet__T1" class="page__column page__pallet" data-position="T1">
<div class="content clearfix">
<nav class="nav nav_v">
<ul class="primary-menu menu mouseable"><li class="menu-item"><a href="/portfolio/"><b>Portfolios</b></a></li><li class="menu-item"><a href="/collections/">Places</a></li><li class="menu-item"><a href="/events/">Events</a></li><li class="menu-item"><a href="/about/">About</a></li><li class="menu-item"><a href="/backlight/search/">Search</a></li></ul>
</nav>
</div>
</div>
</nav>
';
return true;
} // END /**/
However, I've done something wrong, as I still get the pages' normal navigation.
ALSO:
And then obviously you need to revert your site back to the original menu and disable the mobile menu.
If I disable Vertical navigation (as opposed to pallet1) I no longer get any navigation for mobile (and no hamburger menu button).
Any news? (not pushing or rushing, just hoping to keep this alive)
I have that set. Still not fast with 223 albums. Also, Lightroom has started throwing C errors when I try to update a lot at once. Pretty tedious
Got it. I was looking for the older icon I guess.
kolohe280, I agree (hence not being able to find it), I put your code at the end of my custom CSS file, but it doesn't seem to do anything.