IF-Anweisung für Portal

Please post general support questions for the phpBB3 core system on phpBB.com!
Bitte allgemeine Supportanfragen zu phpBB3 auf phpBB.de stellen!
Forum rules
Please post general support questions for the phpBB3 core system on phpBB.com!
Bitte allgemeine Supportanfragen zu phpBB3 auf phpBB.de stellen!
Locked

Topic author
andreas1823
Active Member
Posts: 11
Joined: 23. October 2012 01:00
phpBB.de User: Andreas1823

IF-Anweisung für Portal

Post by andreas1823 »

Deine Portal Version: 2.0.1
Typ Deines phpBB Forums: Standard phpBB3
MODs installiert: Ja
Dein Wissensstand: Fortgeschritten
Link zu Deinem Forum: http://aquarium-leipzig.de

Was hast Du gemacht, bevor das Problem aufgetreten ist?
nichts

Was hast Du bereits versucht um das Problem zu lösen?
im netz gesucht

Fehlerbeschreibung und Nachricht
Ich habe eigentlich nur eine relativ simple frage

Ich muss in die overall_header.html (header bereich) ein Script eintragen, welches aber nur im Portal geladen werden muss.

Nun benötige ich dazu mal die IF Anweisung damit das Script nicht auf allen Seiten geladen wird und damit unnütz traffic verursacht ;)

<!-- IF (SCRIPT_NAME == 'portal') and S_USER_LOGGED_IN and not not S_IS_BOT -->

Funktioniert diese IF Anweisung den so ??

Vielen Dank im Voraus für die Hilfe...
User avatar

Kirk
Dev
Posts: 1939
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: IF-Anweisung für Portal

Post by Kirk »

Hallo
Mach es mal so

Code: Select all

<!-- IF SCRIPT_NAME == "portal" and S_USER_LOGGED_IN and not S_IS_BOT --> script <!-- ENDIF -->
oder so

Code: Select all

<!-- IF $S_IN_PORTAL and S_USER_LOGGED_IN and not S_IS_BOT  --> script <!-- ENDIF -->
Gruß Udo
Locked

Return to “General phpBB3 Support”