jQ Username BBCode with Group Colours

Mod Support

Moderators: BNa, Sekuro, 4seven

jQ Username BBCode with Group Colours

Postby martin123456 » 29 Sep 2012, 00:32

Is there any way to make this work on the quick reply ?

viewtopic.php?f=7&t=115


Solved done it.
martin123456

Tiptop

Tiptop
 
Posts: 14
Joined: 17 Aug 2012, 17:45
 
Resolution: 1366x768


Re: jQ Username BBCode with Group Colours

Postby 4seven » 29 Sep 2012, 16:59

Let us know, how you make that ;)
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: jQ Username BBCode with Group Colours

Postby martin123456 » 30 Sep 2012, 21:30

Viewtopic.php

find
Code: Select all
page_footer(); 

add before it
Code: Select all
// Username [BBCode] / (c) 4seven / 2011
      $sql = "SELECT user_id, username, user_colour
         FROM "
 . USERS_TABLE . "
         WHERE user_type IN ("
 . USER_FOUNDER . ', ' . USER_NORMAL . ")
         ORDER BY username_clean"
;
      $result  = $db->sql_query($sql);
   
      while 
($row = $db->sql_fetchrow($result)){

      $row['user_colour'] = (!empty($row['user_colour'])) ? $row['user_colour'] : '000000';
      $style_bold         = ($row['user_colour'] == '000000') ? 'normal' : 'bold';
      
      $template
->assign_block_vars('username_bb', array(
      'USERNAME_BB_BOLD'  => $style_bold,      
      
'USERNAME_BB_VALUE' => '|#' . $row['user_colour'] . '|' . $style_bold . '|'. $row['user_id'],
      'USERNAME_BB_USER'  => $row['username']));}
      $db->sql_freeresult($result);
      // Username [BBCode] / (c) 4seven / 2011   


My quickreply_editor file contains this line <!-- INCLUDE posting_buttons.html -->

so the out come is this (Note my qr file is modded)

qr.png


I also had it on mchat at one time but have lost the edits :roll:
martin123456

Tiptop

Tiptop
 
Posts: 14
Joined: 17 Aug 2012, 17:45
 
Resolution: 1366x768

Re: jQ Username BBCode with Group Colours

Postby martin123456 » 27 Jan 2013, 20:40

also got it working im mchat il post the edits later today when im on the right machine.

4seven.png
Last edited by martin123456 on 03 May 2014, 21:15, edited 1 time in total.
martin123456

Tiptop

Tiptop
 
Posts: 14
Joined: 17 Aug 2012, 17:45
 
Resolution: 1366x768


Re: jQ Username BBCode with Group Colours

Postby 4seven » 28 Jan 2013, 16:14

Thanks for this addition from our team.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080



Return to Support Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron