Show style in viewtopic

A perfect place for code snippets to small to be a MOD or a library.
Or for examples on how to use our libraries.
Post Reply
Elglobo
Past Contributor
Past Contributor
Posts: 119
Joined: 15 Jul 2008, 19:42

Show style in viewtopic

Post by Elglobo »

This post was originally posted by Kenny at 6 String MODs, I have made some adjustments.

OPEN viewtopic.php:
FIND:

Code: Select all

   'SELECT'   => 'u.*, z.friend, z.foe, p.*',

INLINE-FIND:

Code: Select all

'u.*, z.friend, z.foe, p.*

INLINE AFTER ADD:

Code: Select all

, s.style_name

FIND:

Code: Select all

      POSTS_TABLE      => 'p',

AFTER ADD

Code: Select all

      STYLES_TABLE   => 's',

FIND:

Code: Select all

      AND u.user_id = p.poster_id'

BEFORE ADD:

Code: Select all

      AND u.user_style = s.style_id

FIND:

Code: Select all

      if ($poster_id == ANONYMOUS)

FIND:

Code: Select all

            'user_colour'      => $row['user_colour'],

AFTER ADD:

Code: Select all

            'user_style'      => $row['style_name'],

FIND: (Not a duplicate here, there's an array for guests and an array for registered users ;))

Code: Select all

            'user_colour'      => $row['user_colour'],

AFTER ADD:

Code: Select all

            'user_style'      => $row['style_name'],

FIND:

Code: Select all

      'POSTER_FROM'      => $user_cache[$poster_id]['from'],

AFTER ADD:

Code: Select all

      'POSTER_STYLE'      => $user_cache[$poster_id]['user_style'],

OPEN language/en/viewtopic.php:
FIND:

Code: Select all

    'SUBMIT_VOTE'            => 'Submit vote',

AFTER ADD:

Code: Select all

    'STYLE'                => 'Style',

OPEN styles/prosilver/template/viewtopic_body.html:
FIND:

Code: Select all

      <!-- IF postrow.POSTER_FROM --><dd><strong>{L_LOCATION}:</strong> {postrow.POSTER_FROM}</dd><!-- ENDIF -->

AFTER ADD:

Code: Select all

      <!-- IF postrow.POSTER_STYLE --><dd><strong>{L_STYLE}:</strong> {postrow.POSTER_STYLE}</dd><!-- ENDIF -->

OPEN styles/subsilver2/template/viewtopic_body.html:
FIND:

Code: Select all

               <!-- IF postrow.POSTER_FROM --><br /><b>{L_LOCATION}:</b> {postrow.POSTER_FROM}<!-- ENDIF -->

AFTER ADD:

Code: Select all

               <!-- IF postrow.POSTER_STYLE --><br /><b>{L_STYLE}:</b> {postrow.POSTER_STYLE}<!-- ENDIF -->
phpBB-Services.com: L'hébergement et l'assistance de votre forum phpBB en toute tranquillité.

Myff.fr - My First forum, créer votre forum phpBB3 facilement !
Post Reply