Pm stats and Sysmenu not on minicms pages... Pm stats and Sysmenu not on minicms pages...
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Pm stats and Sysmenu not on minicms pages...

Started by streetart, June 29, 2008, 02:05:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

streetart

Hello

I use the modpack and the PM stats after login and the Minicms plugin. But I want display the PM Stats and the Sysmenu only on the mainpage ---> index.php and not on the minicmspages...is there possible?

pls help is important.

Stramm

copy function loginForm() from include/themes.inc.php to the theme.php you're actually using and modify it


add
$this_page = basename($_SERVER['REQUEST_URI']);
if (strpos($this_page, "?") !== false) $this_page = reset(explode("?", $this_page));
if ($this_page != "index.php") return $loginFormHtml = "";


right after
//if (!$CONFIG['enable_loginform']) return $loginFormHtml = "";



streetart

yes..thats but only for the pm stats..and is there possible also for www.mydomain.ch/  without index.php?

how I can make that with the sysmenu?

Stramm

How to do it in general you've seen now. Look further down within this function and modify what you need (by eg. adding an if clause)

To let it trigger if no site name is given... try
if ($this_page != "index.php" OR $this_page != "")