vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade (https://vborg.vbsupport.ru/forumdisplay.php?f=170)
-   -   Why usermarkup works not on both places? (https://vborg.vbsupport.ru/showthread.php?t=326882)

boss22 11-05-2018 03:32 PM

Why usermarkup works not on both places?
 
1 Attachment(s)
Will attach picture better explanation

one user have markup username and another in game_block =not?

MrZeropage 11-05-2018 08:44 PM

I now did this for v2.7.6+

If you can't want, try this (and please tell me if this is what you wanted):

open /arcade/modules/arcade_playgame.php

search for
Code:

                $DB->query("SELECT champ_name AS name,champ_score AS score FROM ibf_games_champs WHERE champ_gid=".$id);
                $top = $DB->fetch_row();


REPLACE this with:

Code:

                $DB->query("SELECT c.champ_name AS name, c.champ_score AS score, g.opentag AS prefix, g.closetag AS suffix
                                        FROM ibf_games_champs AS c
                                        LEFT JOIN ibf_members AS m ON (m.userid=c.champ_mid)
                                        LEFT JOIN ibf_groups AS g ON (g.g_id=m.usergroupid)
                                        WHERE c.champ_gid=".$id);
                $top = $DB->fetch_row();
                $top['name'] = $top['prefix'] . $top['name'] . $top['suffix'];


boss22 11-05-2018 09:00 PM

Now usergame in game block is gone ...and score is 0

put back old code

on image above your see "lozana" username is black - no markup and my username - down is markup ...

MrZeropage 11-05-2018 09:06 PM

1 Attachment(s)
Yes I do understand what you mean :)

Try to replace /arcade/modules/arcade_playgame.php with the attached file only for ibProArcade v2.7.5+

This is working fine in my development-forum (v2.7.6+) :cool:

boss22 11-05-2018 09:12 PM

1 Attachment(s)
Yesssssssss now is fine both usernames have markup -

attach picture

nice

MrZeropage 11-05-2018 09:17 PM

will be included in v2.7.6+


All times are GMT. The time now is 01:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01063 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete