• Welcome to Simple Machines Community Forum. Please login or sign up.
October 22, 2021, 04:23:04 AM

News:

Wondering if this will always be free?  See why free is better.


Avatars on Board and/or MessageIndex

Started by Pipke, April 05, 2016, 06:27:00 PM

Previous topic - Next topic

Pipke

@jsx wich mods do you all have installed?
"If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything."
My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

jsx

@Pipke

These mods are installed:

Avatars on Board/MessageIndex 2.0.17
SMF 2.0.17 Update 1.0
Like Posts 2.2    
Download Attachment 1.0    
ShowBannedMessage 1.6    
Ohara YouTube Embed 1.2.10    
AJAX Recent Topics 1.1    
SMFPacks Shoutbox Pro 1.4.5
SimpleColorizer 1.1    
Regbar Warning 1.0.5    
Confirmation message to Mark as Read 1.00    
@mention members 1.1.2    
reCAPTCHA for SMF 2.0.0    
Image Upload 1.0.0    
Medal Honor For Years 1.0
Admin member list registration date 1.2
Tapatalk SMF 2.0 Plugin 4.5.7    
Quick Spoiler 1.2.3    
Yet Another Global Announcements Mod 2.7.5
Ultimate Menu 1.0.3    
Change All Subjects 1.3
Drafts 2.2
TinyPortal 1.6.5    
dQuoteSelection 2.6.4

pocttopus

Hello,

Is there some way to use this mod on 2.1RC2 version?

Horme Gaming

yes :) its under a different name however this mod seems to be similar:

https://custom.simplemachines.org/mods/index.php?mod=4246

Also by same author.

Pipke

"If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything."
My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats


Sectomy

hi,

i have a little PRoblem with the Sunrise theme, maybe the exact the same issue another guy have here, too.


Sectomy

oh, and the avatar on message are not centered.....maybe a problem of me ?

efk

Quote from: Sectomy on July 12, 2020, 08:20:43 AM
oh, and the avatar on message are not centered.....maybe a problem of me ?
Maybe this can help?
CSS - poster

Sectomy

nope, but i tried anything, but....nope :( nothing happens...) all is centered but not the avatar :(

Pipke

Quote from: Sectomy on July 13, 2020, 12:07:56 PM
nope, but i tried anything, but....nope :( nothing happens...) all is centered but not the avatar :(

Before we give you a lot of code that might help ... it's much easier if you share us your website url so we can take a look at what's going on there and maybe we can help further.
"If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything."
My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

Pipke

@Sectomy found your site, add this to your ...Themes/{your_theme}/index.css

div.poster div {
margin: auto;
display: block;
}


result:
"If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything."
My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

Pipke

Quote from: Sectomy on July 12, 2020, 07:59:45 AM
hi,

i have a little PRoblem with the Sunrise theme, maybe the exact the same issue another guy have here, too.



where you want that font awesome user edit icon to be placed?
"If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything."
My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

Sectomy

@pipke thank you for the index.css thing, about the icon, if its possible it looks like this:

so all is more centered and aligned properly.... the same with the abm theme problem in the DokuzHarf theme on page 9

Pipke

Quote from: Sectomy on July 14, 2020, 02:02:48 AM
...about the icon, if its possible it looks like this:

so all is more centered and aligned properly.... the same with the abm theme problem in the DokuzHarf theme on page 9

open file .../Sources/abm_code.php

Code (find) Select

'~<p>abm<!----></p>~',


Code (add after) Select

'~<i class="fas fa-user-edit"></i>~',
'~<b>'.$txt['last_post'].'</b>~',


and

Code (find) Select

$avatar = preg_replace($find[12], '', $avatar);


Code (add after) Select

$avatar = preg_replace($find[13], '', $avatar);
$avatar = preg_replace($find[14], '<i class="fas fa-user-edit"></i><b>'.$txt['last_post'].'</b>', $avatar);


good luck with the edit, make backup of the file before editing!

if you did all right you will get this result:


"If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything."
My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

Sectomy


aegersz

Getting lots of these errors in 2.0.17 and the latest version of this mod

8: Undefined index: time
File: /var/www/html/Sources/abm_code.php
Line: 353


8: Undefined offset: 32
File: /var/www/html/Sources/abm_code.php
Line: 348


The mod is working fine though. Any ideas ?
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Pipke

Quote from: aegersz on May 03, 2021, 05:10:25 AM
8: Undefined index: time
File: /var/www/html/Sources/abm_code.php
Line: 353

8: Undefined offset: 32
File: /var/www/html/Sources/abm_code.php
Line: 348


try this edit:
Code (find) Select

if ($row['id_parent'])

Code (replace by) Select

if (isset($row['id_parent']))


let me know if that solved the errors.
"If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything."
My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

aegersz

Sorry but that didn't fix the errors and it also lost the avatars.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Pipke

sorry but i dont have a test smf 2.0 setup atm, so maybe this then?
Code (find) Select

if ($row['id_parent'])

Code (replace by) Select

if (!empty($row['id_parent']))
"If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything."
My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

Advertisement: