I got it. Put this into the bundled-libs/Smarty/libs/plugins. Please contact me, because it is too long to put it here.
At at the .tpl page:
{mobiledetect}
{if $device->isMobile}
{include 'myincludes/mainmenuMobiCell.php'}
{else}
{include 'myincludes/mainmenuMobiBlog.php'}
{/if}
Search found 62 matches
- Mon Oct 12, 2020 7:10 pm
- Forum: Development
- Topic: Smarty problem with {php}
- Replies: 8
- Views: 20565
- Mon Oct 12, 2020 5:02 pm
- Forum: Development
- Topic: Smarty problem with {php}
- Replies: 8
- Views: 20565
Re: Smarty problem with {php}
Onli you can do me a favor. Please write the code where it belongs, I'll hand it over. I don't want anything from the smarty. Please help !!!
- Mon Oct 12, 2020 4:26 pm
- Forum: Development
- Topic: Smarty problem with {php}
- Replies: 8
- Views: 20565
Re: Smarty problem with {php}
I tried myself here. I only get to the point that the word {detectMobile} must be wrong. Everything else works one {detectMobile} of course no switching is made. <li><a href="#">Services</a> {detectMobile} {if $is_mobile} {include 'myincludes/mainmenuMobiCell.php'} {else} {include 'myinclu...
- Mon Oct 12, 2020 1:57 am
- Forum: Development
- Topic: Smarty problem with {php}
- Replies: 8
- Views: 20565
Re: Smarty problem with {php}
The PHP should be in the index.tpl "/ templates / timeline" which only Smarty recognizes as PHP.
- Mon Oct 12, 2020 1:48 am
- Forum: Development
- Topic: Smarty problem with {php}
- Replies: 8
- Views: 20565
Re: Smarty problem with {php}
Yes that is correct. I have to get the above PHP script configured in Smarty, because I use two menus, one for laptop and one for mobile.
- Sun Oct 11, 2020 7:50 pm
- Forum: Development
- Topic: Smarty problem with {php}
- Replies: 8
- Views: 20565
Smarty problem with {php}
Hi, I have a problem with Smarty. I think there was no problem using {php} {/ php} up to version 3.1. Now that this is over I need a little help. I have to adjust this php snippet for the inserted customer menu. The snippet is as follows: require_once 'libs/Mobile_Detect.php'; $detect = new Mobile_D...
- Sat Oct 10, 2020 4:22 pm
- Forum: Generelles in Deutsch
- Topic: smarty 3.1 kann kein php benutzen
- Replies: 1
- Views: 4693
Re: smarty 3.1 kann kein php benutzen
Ware net wenn man mir helfen koennte. Dieser Passus ist in einem header integriert "templates/timeline/index.tpl"
- Fri Oct 09, 2020 9:44 pm
- Forum: Generelles in Deutsch
- Topic: smarty 3.1 kann kein php benutzen
- Replies: 1
- Views: 4693
smarty 3.1 kann kein php benutzen
Hi ich habe eine Frage. Als erstes moechte ich mich nicht daran gewoehnen Smarty kennenzulernen. Mein Problem ist dieser PHP snipsel. require_once 'libs/Mobile_Detect.php'; $detect = new Mobile_Detect; if ($detect->isMobile() ) { include('myincludes/mainmenuMobiCell.php'); }else{ include('myincludes...
- Fri Jun 26, 2020 4:57 pm
- Forum: Generelles in Deutsch
- Topic: Tag Kopfzeilen Problem
- Replies: 0
- Views: 49767
Tag Kopfzeilen Problem
Hallo, meine site ist www.blog.corcons.com, benutze Serendipity 2.3.0 and PHP 7.2.31 und habe den Blog in Englisch und Deutch (doppelte installation). Ein Problem welches nur bei der Englischen Installation auftritt ist folgendes. Wenn ich aus dem Seiten menue einen Tag anklicke ist die ertste Kopfz...
- Sat Aug 24, 2019 4:14 am
- Forum: Generelles in Deutsch
- Topic: embedded Problem mit Tags
- Replies: 12
- Views: 6743
Re: embedded Problem mit Tags
Ich habe jetzt nochmal gescheckt und festgestellt dass bei der alten paginaten und upgedatet auf version 2.3.1 die oberen Pfeile falsch liegen, jedoch die unteren liegen richtig. Es mus etwas mit dem core zusammenhaengen, denn die alte pagination funktionierte unten und oben perfekt wenn ich Unverän...
- Sat Aug 24, 2019 3:44 am
- Forum: Generelles in Deutsch
- Topic: embedded Problem mit Tags
- Replies: 12
- Views: 6743
Re: embedded Problem mit Tags
OK, dann werde ich in der de variante wieder die alt pagination einbinden und hoffe das dieses Problem mal gefixed wird.
- Fri Aug 23, 2019 3:55 pm
- Forum: Generelles in Deutsch
- Topic: embedded Problem mit Tags
- Replies: 12
- Views: 6743
Re: embedded Problem mit Tags
Hi, ich sehe gerade die alte pagination www.blog.corcons.com funktioniert oben korrekt jedoch hat diese am footer das gleiche Problem wie eben beschrieben wie die neue pagination in version 2.3.1. Dieser blog is ebenfalls upgraded zu version 2.3.1 jedoch mit der alten timeline/index datei. Vergleich...
- Fri Aug 23, 2019 3:29 pm
- Forum: Generelles in Deutsch
- Topic: embedded Problem mit Tags
- Replies: 12
- Views: 6743
Re: embedded Problem mit Tags
Hallo yellowled, die pagination in Version 2.3.1 scheint behoben zu sein, jedoch sind dort zwei Fehler 1.) Wenn in der Konfiguration "Unveränderliche Archiv-Seiten" auf NEIN gesetzt ist ist die Seite 1 selektiert mit dem Pfeil <= nach links. Der Pfeil muss auf der rechten Seite sein um auf...
- Fri Aug 23, 2019 1:15 am
- Forum: Generelles in Deutsch
- Topic: embedded Problem mit Tags
- Replies: 12
- Views: 6743
Re: embedded Problem mit Tags
Es ist klar das du die Fehler nicht mehr nachvolziehen kontest da ich den header und footer mitlerweile in die timeline/index.php eingebunden habe. Es kann nicht mit dieser Variante <?php ob_start(); require("index.php"); $serendipity_contents = ob_get_contents(); ob_end_clean(); require(&...
- Tue Aug 20, 2019 5:30 am
- Forum: Generelles in Deutsch
- Topic: embedded Problem mit Tags
- Replies: 12
- Views: 6743
Re: embedded Problem mit Tags
Hallo, hier kommt ein weiteres Problem mit dem Einbindn der Webseite. Dieser optin-Link wird ebenfalls nicht umgeschrieben:
https://blog.corcons.com/comment.php?op ... fc43d746f8
https://blog.corcons.com/comment.php?op ... fc43d746f8