Welcome to Admin Junkies, Guest — join our community!

Register or log in to explore all our content and services for free on Admin Junkies.

⚙️ Customization XenFOro XFMG and the ugly default titles

For discussion on custom designs and how to implement them.
Joined
Dec 22, 2022
Messages
2,256
Website
astrowhat.com
Credits
3,753
For those of us that use Xenforo and also have XFMG installed, we all are well aware of the fact that upon uploading a media item (image specifically) it automatically fills in the title of the XFMG item with the file name. And sadly, many will just use what is automatically put there.
This has a tendency to look rather crappy on the XFMG index page as when you hover over it the first thing you may see is something like Image23328492332423.webp (if using 2.3 and webp, otherwise you will see the normal extension).

Screen Shot 2024-12-26 at 2.50.54 PM.png


It's not the most attractive look, and ideally it would strip off the file name extension at the least. The best solution is one that the Xenforo developers will need to address in coding and that is requiring the user to manually enter a title. Yes, for those that upload many images at a time it means that they might have to do manual input, but there are ways around that. You could have an option in the ACP to default to forced entry but for certain groups allow the use of the file names and still strip the extension. Most of your users that will be uploading multiple images will probably have already given each image an individualized file name for their own use.

Meanwhile, if you don't want to see it on the XFMG index page, a solution is detailed on another support site I participate in and detail many of my solutions I use.

xfmg1.png


The partial solution:

The "bad" thing is, it still shows up the file/title name when you click on the image, but that will require coding to resolve.

xfmg2.png

 
Last edited:
Advertisement Placeholder
Even though the file is saved like that, if you click on the image and select the little ‘i’ icon, you can add an alt tag to help readers understand what the image is about. This also applies to regular file uploads.



Adding an alt tag can also help your images appear in Google’s search results and boost your Seo rankings.
 
Last edited:
Even though the file is saved like that, if you click on the image and select the little ‘i’ icon, you can add an alt tag to help readers understand what the image is about. This also applies to regular file uploads.

Adding an alt tag can also help your images appear in Google’s search results and boost your Seo rankings.
I don't get an i icon on the site that I can find.
As for the alt tag, that is a benefit that should be present already in the add-on itself.
 
Just for clarification... the icon referenced above does show up when the image is inserted into a post. But you do not appear to have that function available in the Media Gallery add-on.
 

Log in or register to unlock full forum benefits!

Log in or register to unlock full forum benefits!

Register

Register on Admin Junkies completely free.

Register now
Log in

If you have an account, please log in

Log in
Who read this thread (Total readers: 5)

Would You Rather #9

  • Start a forum in a popular but highly competitive niche

    Votes: 10 28.6%
  • Initiate a forum within a limited-known niche with zero competition

    Votes: 25 71.4%
Win this space by entering the Website of The Month Contest

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds