go41

change the title tag in phpBB

von Joern am 31. Mai. 2013 | Keine Kommentare

I didn’t like the default title entry of prosilver or my current style (theme).
The default in the file overall_header.html looked like this
Code:

<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

I replaced this line with the following lines

Code:

    <!-- IF S_FORUM_ID == 0 && S_IN_MCP != 1 && S_IN_UCP != 1 -->
       <!-- Forum Index Title -->
       <title>{SITENAME} : {SITE_DESCRIPTION}</title>
    <!-- ELSEIF S_FORUM_ID != 0 && S_TOPIC_ID == 0 && S_IN_MCP != 1 && S_IN_UCP != 1 -->
       <!-- View Forum Title -->
       <title>{FORUM_NAME} Topics : <!-- IF ON_PAGE > 1 -->Page {ON_PAGE} : <!-- ENDIF -->{SITENAME}</title>
    <!-- ELSEIF S_FORUM_ID != 0 && S_TOPIC_ID != 0 && S_IN_MCP != 1 && S_IN_UCP != 1 -->
       <!-- View Topic Title -->
       <title>{TOPIC_TITLE} : <!-- IF ON_PAGE > 1 -->Page {ON_PAGE} : <!-- ENDIF -->{FORUM_NAME} : {SITENAME}</title>
    <!-- ELSE -->
       <title>{PAGE_TITLE} : <!-- IF S_IN_MCP -->{L_MCP} : <!-- ELSEIF S_IN_UCP -->{L_UCP} : <!-- ENDIF -->{SITENAME}</title>
    <!-- ENDIF -->

now it shows the sitename on home, on other views it shows the forum name or topic title first
____________________
you find me on Google+, Twitter and Facebook

(von: master)

Sorry, no posts matched your criteria.

Autor:

Du findest mich auch auf Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

weitere forum Beiträge: