ASK ME Anything About XenForo Platform 👨

Proxybunker

Well-known member
Jan 3, 2021
2,671
1,842
120
codecanyonscripts.com
  • Love
Reactions: wwcdishtam

tivustream

Member
Nov 3, 2019
51
13
8
Italy
tivustream.com
Hello !

just to be not inopportune but if I can ask anything about Xenforo ..even if I'm still not an user of it ?

..I mean , I have a Vbulletin board (4.2.5) and I would migrate to Xenforo as easily as possible , have read about the importer from Admin panel but never used a such way so whatever tips or advices would be very welcome ..or if it is the unique way to migrate whats the best job to get it workiing ?
 

ehmjack

New member
May 5, 2022
5
1
3
Hello cyberdevil

I'm wondering how can I make the links on at forum top apear horizontal on one line like here on babiatoScreenshot_20221124-185003~2.png

I have the same theme on my forum but the links apear in separate rows
 
  • Like
Reactions: Shayan Xtreme

ehmjack

New member
May 5, 2022
5
1
3
If you did not want to show ads on subdomain, then why you added it to adsense subdomain section ?

Are you sure there's no Ad code or file exists on that subdomain ?

If no then may be it's taking from parent domain property (I'm not 100% sure though) .
Yes, with adsense, you don't need to add code on your subdomain. Ads are automatically added to it if you have auto ads enabled in parent domain.
 

Zer01ne

Well-known member
Mar 21, 2020
1,373
3,426
120
@Proxybunker @Tomz Can I Set a Secondary User Group based on forum thread counts?
If someone has created 10 posts (not comments) on a section, he will automatically be assigned to a secondary group.
 
Last edited:

ankitpokhrel

Member
Banned User
May 4, 2022
100
11
18
how to fix -
If you enable this option, the links generated by the system will not include "index.php?". However, to enable this, mod_rewrite must be available and an appropriate .htaccess file (or the equivalent for your web server) must be in place.
 

Sebrof

Member
Feb 13, 2019
37
5
8
I want to add an item to the navigation that is simply a query to the tables and then an "Add New" button at the top of the list that gets displayed. I have several of these that I want to create, each with a different query.

I know how to create the sql query, just not sure how I output the results to XF

Can I just create a php page with the sql statements to make it display in the site, or do I need to create a XF template, or ??
 

Zer01ne

Well-known member
Mar 21, 2020
1,373
3,426
120
I wanted to know how to properly make user group badges. Like the OG users forum i'd love to make groups that people can join as a secondary group to their primary group.

There's a guide explaining it: https://xenforo.com/community/resources/creating-custom-user-banner-styling.7334/

But I can't access it due to not having an active license. Does anyone have an idea of how to properly make this?

This method also works with user banner but in that case you have to edit app_user_banners.less
 

Zer01ne

Well-known member
Mar 21, 2020
1,373
3,426
120
I wanted to know how to properly make user group badges. Like the OG users forum i'd love to make groups that people can join as a secondary group to their primary group.

There's a guide explaining it: https://xenforo.com/community/resources/creating-custom-user-banner-styling.7334/

But I can't access it due to not having an active license. Does anyone have an idea of how to properly make this?
Here I explained how to add custom user Banner with default styles - https://babiato.tech/threads/how-to-add-enable-custom-badges.76601/post-1088072
 

x3mp

Member
May 23, 2019
68
22
8
x3mp.com
Here I explained how to add custom user Banner with default styles - https://babiato.tech/threads/how-to-add-enable-custom-badges.76601/post-1088072
I want to use an image as a group badge.

Like these:

This is the resource I should've linked:

my bad!
 

Zer01ne

Well-known member
Mar 21, 2020
1,373
3,426
120
I want to use an image as a group badge.

Like these:

This is the resource I should've linked:

my bad!
STEP 1: Go to: AdminCP > Appearance > Templates > and search for the "extra.less" file
Open the file and add this code (Call it anything you want. In the example here, I called it ".myBadge" ):

Adjust the settings as needed for sizing and alignment
XF2.0 :


Code:
////////////////////////////////////// START - Group Banner/Badge CSS ////////////////////////////////////

/* Adds userBanner to memberHeader-banners and memberTooltip-banners */
.userBanner.myBadge{
     background-image: url('images/myBadge.png');
     display: inline-block;
     background-position: 1.5% 0%; // adjusts image position (x% y%)
     background-size: 45px; // adjusts size of background image
     background-repeat: no-repeat;  // keeps image from repeating
     text-indent: -7px;  // shifts text left or right
     padding-top: 50px;  // adjusts distance from image to text (group name)
     text-align: left;
}

/* Adjusts image for message-userBanner only */
.userBanner.myBadge.message-userBanner {
     background-image: url('images/myBadge.png');
     display: block;
     background-repeat: no-repeat;  // keeps image from repeating
     background-size: 45px; // adjusts size of background image
     background-position: 50% 0%; // adjusts image position (x% y%)
     text-indent: 0px;  // shifts text left or right
     padding-top: 45px;  // adjusts distance from image to text (group name)
     text-align: center;
}

/* Adjust size and position, and/or remove image in mobile view */
@media (max-width: 650px){
.userBanner.myBadge.message-userBanner.userBanner {
  // background-image: none; // *** to remove background image remove "//" in front of code ***
     display: inline-block;
     background-size: 35px; // adjusts size of background image
     background-position: 0% 0%; // adjusts image position (x% y%)
     text-indent: -7px;  // shifts text left or right
     padding-top: 37px;  // adjusts distance from image to text (use with image)
  // padding-top: 0px;  // if image is set to "none", remove "//" and remove line above)
     text-align: left;
}
}

///////////////////////////////////// End - Group Banner/Badge CSS /////////////////////////////////

XF2.1

Code:
////////////////////////////////////// START - Group Banner/Badge CSS ////////////////////////////////////
/* Adds userBanner to memberHeader-banners and memberTooltip-banners */
.mybadge{
background-image: url('http://site.com/mybadge.png');
display: inline-block;
background-position: 1.5% 0%; // adjusts image position (x% y%)
background-size: 45px; // adjusts size of background image
background-repeat: no-repeat; // keeps image from repeating
text-indent: -7px; // shifts text left or right
padding-top: 50px; // adjusts distance from image to text (group name)
text-align: left;
}
/* Adjusts image for message-userBanner only */
.mybadge.message-userBanner {
background-image: url('http://site.com/mybadge.png');
display: block;
background-repeat: no-repeat; // keeps image from repeating
background-size: 45px; // adjusts size of background image
background-position: 50% 0%; // adjusts image position (x% y%)
text-indent: 0px; // shifts text left or right
padding-top: 45px; // adjusts distance from image to text (group name)
text-align: center;
}
/* Adjust size and position, and/or remove image in mobile view */
@media (max-width: 650px){
.mybadge.message-userBanner.userBanner {
// background-image: none; // *** to remove background image remove "//" in front of code ***
display: inline-block;
background-size: 35px; // adjusts size of background image
background-position: 0% 0%; // adjusts image position (x% y%)
text-indent: -7px; // shifts text left or right
padding-top: 37px; // adjusts distance from image to text (use with image)
// padding-top: 0px; // if image is set to "none", remove "//" and remove line above)
text-align: left;
}
}
///////////////////////////////////// End - Group Banner/Badge CSS /////////////////////////////////

STEP 2: Go to "Groups and Permissions > User Groups" and select the group you want to add a badge too.
Under "User banner styling," check "Other, using custom CSS class name" and enter the name you entered in the extra.less file

IMPORTANT: Be sure to remove the "." (dot) in front of the name as shown below:

1673624416207.png

 
  • Love
Reactions: x3mp

Sebrof

Member
Feb 13, 2019
37
5
8
trying to install a nulled media gallery on a licensed XF 2
When going in to ACP, big notice at the top saying i'm not authorized to use Media Gallery.
Any way around this or do I need to install a nulled XF on top of my legit xf?
 

ankitpokhrel

Member
Banned User
May 4, 2022
100
11
18
WHY DO FORUM DOESN'T OPEN WHILE CLICKING OUTSIDE OR NEAR THE TITLE,
Screenshot 2023-01-27 165932.png

But, when I click on the main title the forum opens.

Screenshot (8).png
 
Last edited:

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu