News:

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

Main Menu

Ant's Mutant Curve

Started by Antechinus, February 26, 2020, 11:02:14 PM

Previous topic - Next topic

Antechinus

The jQuery/Superfish javascript in 2.1 seems to be fine with touchscreen, so the sensible option would be to nick that and insert it into this theme. It's only jQuery itself, a couple of plug-ins, and some minor template edits (menu CSS may need a slight touch-up too).

The template edits are basically the ones listed in this post, for index.tempate.php.

Antechinus

Quote from: Sir Osis of Liver on January 04, 2022, 05:28:54 PM2.0.19 upgrade is balking at this in index.template.php:

Find -


// If we're viewing a topic, these should be the previous and next topics, respectively.
    if (!empty($context['current_topic']))
        echo '
    <link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
    <link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';

    // If we're in a board, or a topic for that matter, the index will be the board's index.


Replace -


// If we're in a board, or a topic for that matter, the index will be the board's index.


What's there is this -


    // If we're viewing a topic, these should be the previous and next topics, respectively.
    if (!empty($context['links']['next']))
        echo '
    <link rel="next" href="', $context['links']['next'], '" />';
    else if (!empty($context['current_topic']))
        echo '
    <link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';
    if (!empty($context['links']['prev']))
        echo '
    <link rel="prev" href="', $context['links']['prev'], '" />';
    else if (!empty($context['current_topic']))
        echo '
    <link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />';

    // If we're in a board, or a topic for that matter, the index will be the board's index.


Just delete the first comment and following links?
Just got around to checking this. Yes, that would be the way to do it. Have tested on local and it seems ok. I assume those links are now handled somewhere in Sources.

Sir Osis of Liver

Ok, thanks.  Have a couple forums holding at .18 pending confirmation on this.  Will bump them up.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: