Author Topic: Add a new New Menu-item  (Read 2146 times)

neo1967

  • SMF4Mobile Customer
  • *
  • Posts: 5
  • Karma: 0
Add a new New Menu-item
« on: October 25, 2023, 06:42:21 am »
Hello.

I use the last smf4mobile theme. Purchase today. ;)

In the hamburger menu I'm missing the action:
Code: [Select]
/index.php??action=forum So that I can get to the top of the forum and see the individual areas. The overview brings me only to new posts.
Where and how can I insert the point:
Code: [Select]
/index.php?action=forum with "Forum- Overview" in the script?

In the Screenshot is:
1. Forum Overview =
Code: [Select]
/index.php?action=forum2. Posts Overview = 
Code: [Select]
/index.php
Thanks
neo67

« Last Edit: October 25, 2023, 06:54:59 am by neo1967 »

vbgamer45

  • Administrator
  • *****
  • Posts: 217
  • Karma: 3
Re: Add a new New Menu-item
« Reply #1 on: October 25, 2023, 07:05:37 pm »
Can you send me a link to the site want to test

neo1967

  • SMF4Mobile Customer
  • *
  • Posts: 5
  • Karma: 0
Re: Add a new New Menu-item
« Reply #2 on: October 25, 2023, 11:36:56 pm »

vbgamer45

  • Administrator
  • *****
  • Posts: 217
  • Karma: 3
Re: Add a new New Menu-item
« Reply #3 on: October 26, 2023, 12:53:24 pm »
Getting this error
Forbidden

You don't have permission to access this resource.

neo1967

  • SMF4Mobile Customer
  • *
  • Posts: 5
  • Karma: 0
Re: Add a new New Menu-item
« Reply #4 on: October 26, 2023, 02:38:23 pm »
Do you have a VPN? If you're coming in via the US, we've completely blocked that, too much spam and hacking.
You don't need that either, just tell me where I can change the hamburger menu?

vbgamer45

  • Administrator
  • *****
  • Posts: 217
  • Karma: 3
Re: Add a new New Menu-item
« Reply #5 on: October 27, 2023, 04:26:33 pm »
Open the mobile themes index.template.php
Find
Code: [Select]
// Append the common controls into the navigation
$buttons = array(
'home' => array('icon' => 'home', 'url' => $scripturl, 'text' => 'home'),
);
Change to
Code: [Select]
// Append the common controls into the navigation
$buttons = array(
'home' => array('icon' => 'home', 'url' => $scripturl, 'text' => 'home'),
                'forum' => array('icon' => 'grid', 'url' => $scripturl, 'text' => 'forum'),
);

neo1967

  • SMF4Mobile Customer
  • *
  • Posts: 5
  • Karma: 0
Re: Add a new New Menu-item
« Reply #6 on: October 30, 2023, 04:55:27 am »
Hello vbgamer45,

thanks, I will try this.

Another question that is also related to this:
The following situation: someone lands on the website via google etc. with their mobile or tablet and loads a page that is not suitable for mobile devices. How can I tell the browser that there is a mobile version of the page he has just landed on?
I used the code here, but it doesn't seem to work:
Code: [Select]
<link rel="alternate" media="only screen and (max-width: 640px)" [url]https://www.linuxmintusers.de/index.php?theme=26[/url]" />
And a second question related to the first:
The code above also only points to the start page. Is there a PHP variable that has the currently accessed page as its value?


Thanks for your help
neo67
---------------------------------------
Admin
https://www.linuxmintusers.de

vbgamer45

  • Administrator
  • *****
  • Posts: 217
  • Karma: 3
Re: Add a new New Menu-item
« Reply #7 on: October 30, 2023, 08:45:27 am »
Make sure to install the mod as well found at
https://smfmobile.com/community/index.php?action=downloads;sa=view;id=3

This auto redirects to the mobile version based on the user agent


The php variable $_SERVER['REQUEST_URI']

neo1967

  • SMF4Mobile Customer
  • *
  • Posts: 5
  • Karma: 0
Re: Add a new New Menu-item
« Reply #8 on: October 30, 2023, 08:49:16 am »
After the purchase a few days ago, this mail came in the picture. Do I have the wrong version?

vbgamer45

  • Administrator
  • *****
  • Posts: 217
  • Karma: 3
Re: Add a new New Menu-item
« Reply #9 on: October 30, 2023, 08:50:51 am »
Yeah that is the older one I would uninstall and install new one.

Strange email should say
Code: [Select]
Hello! Thank you for purchasing the theme, here's a quick getting started in order to get the theme running on your SMF site

    Go to the downloads section https://smfmobile.com/community/index.php?action=downloads and download SMF4Mobile theme and SMF4Mobile mod package
    The theme is installed as a normal SMF theme and the mod is installed as a Package Manager mod
    Once both of them are setup, no configuration by itself is required. You do not need to change the default theme. The mod will automatically switch to SMF4Mobile theme when an user accesses it via a compatible device. It also allows manually switching between desktop and mobile theme. Your desktop theme is whichever theme you have as your default.
    There are some settings for colours and behaviours under Theme Settings > SMF4Mobile should you choose to play with it, but you don't need to change it for the theme to work


Link to theme: https://smfmobile.com/community/index.php?action=downloads;sa=view;id=4
Link to mod download: https://smfmobile.com/community/index.php?action=downloads;sa=view;id=3