xF2 Template Modification how to Move Name In Top of Image in postbit Style ?

ShieldX

Well-known member
Registered
Joined
Mar 27, 2022
Messages
453
Points
53

Reputation:

Any guide in xenforo ? never seen any guide about this.
 

Attachments

  • shieldProfile.jpg
    shieldProfile.jpg
    44.6 KB · Views: 147

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
383
Points
53

Reputation:

you will need to go to your theme message_macros and look for

HTML:
<h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="name" /></h4>

and move it under
HTML:
<section itemscope itemtype="https://schema.org/Person" class="message-user">

should look like this


this-is-a-topic-te.jpg
 

ShieldX

Well-known member
Registered
Joined
Mar 27, 2022
Messages
453
Points
53

Reputation:

you will need to go to your theme message_macros and look for

HTML:
<h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="name" /></h4>

and move it under
HTML:
<section itemscope itemtype="https://schema.org/Person" class="message-user">

should look like this


View attachment 30873
one_finger_manits working but name is showing in left , Not in center.

Have look here to pictures.
 

Attachments

  • xen2.png
    xen2.png
    36.1 KB · Views: 99
  • xen1.png
    xen1.png
    74.7 KB · Views: 103

ShieldX

Well-known member
Registered
Joined
Mar 27, 2022
Messages
453
Points
53

Reputation:

thanks for the help , still there is no solution for short name ?
 

gurbet47

Member
Registered
Joined
Oct 11, 2022
Messages
8
Points
13

Reputation:

<h4 class="message-name"><center><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="name" /></center></h4 >
add
 

ShieldX

Well-known member
Registered
Joined
Mar 27, 2022
Messages
453
Points
53

Reputation:

<h4 class="message-name"><center><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="name" /></center></h4 >
add
gurbet47Naah this code doesnt work , may be it theme problem or need some extra code.
 

BadDev

New member
Registered
Joined
Oct 22, 2019
Messages
4
Points
11

Reputation:

Thank you for the little tutorial it does not hurt
 

ShieldX

Well-known member
Registered
Joined
Mar 27, 2022
Messages
453
Points
53

Reputation:

when i tested on my testing forum its working , when i try to edit code of my official forum i am getting error why this happening...

when ever i am trying to edit my , messsage_macro temple it give error. how to fix ?
 

Attachments

  • errror.png
    errror.png
    73.8 KB · Views: 106

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,514
Points
523

Reputation:

when i tested on my testing forum its working , when i try to edit code of my official forum i am getting error why this happening...

when ever i am trying to edit my , messsage_macro temple it give error. how to fix ?
ShieldXLook in the browser console for more information and post these.
 

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
383
Points
53

Reputation:

do you have mod security of on ya server that some times would interfere!
 
Top