News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

How to make [Add to Ignore List] appear in profile view?

Started by Mari-chi, February 07, 2011, 07:27:22 PM

Previous topic - Next topic

Mari-chi

How can I make [Add to Ignore List] appear in profile view in the left-hand column (screenshot attached)? I looked in profile.template.php, but of course, couldn't figure out how to make it appear. >_<

Thank-you very much for your help!

(Forum: http://adlucem.net)

Edit: Attaching profile.template.php as well, just in case someone wants to look. :3

Mari-chi


Arantor

Out of interest, did you add any mods for ignoring users? If not, there's actually no way to directly ignore a user purely from a link...
Holder of controversial views, all of which my own.


Mari-chi

Nope, I only have 'buddy/ignore' feature enabled. :D

Oh, well--I do have the Annoy User mod?

Arantor

Yes, but that one doesn't have that function (it has special code to handle it, the ignore system doesn't)

Which is why I had to implement it specially in http://custom.simplemachines.org/mods/index.php?mod=2299 though it's for 2.0 RC2, eek.

Unfortunately it's not as simple as just dropping in the file and making it work (though, I suspect, you could in theory add the mod to RC4 with little work and have the ignore button appear in the post itself rather than in their profile)
Holder of controversial views, all of which my own.


Mari-chi

So the only way to add a person to an ignore list is via Modify Profile > Buddies/Ignore List > Edit Ignore List, yeah? :( I just found it a bit awkward that there was a direct link to add another member to their 'buddies list', but didn't have anything to add another member to their 'ignore list'.

Darkness7148

That mod works for RC4 too. You only need to make a couple of modifications to add the link to the profile instead of message view.

Arantor

Quote from: Darkness* on February 09, 2011, 07:26:15 AM
That mod works for RC4 too. You only need to make a couple of modifications to add the link to the profile instead of message view.

Yes, it works for RC4 but it's not a simple transplant. When I originally wrote it, I made sure to have the link include the message it was coming from for the purposes of returning to the topic once the link was clicked. You'd have to have it redirect back to the profile instead.
Holder of controversial views, all of which my own.


Mari-chi

Darn. >_< Oh well, I can live with it. :)

Thanks for your inputs. :D

samborabora

Sorry for the necrobump, but I've just installed the Ignore User Button on RC 2.0.5, and I'm just trying to fiddle with the code to make it appear on the profile. The problem is it has a few ways of checking if the current post is not by the author, and this appears to be throwing it off if I just cut and paste the code from Display.template into Profile.template. I also had a look at the include php file and the Sources file, and everything appears to be really simple, but I'm not quite sure how to adjust it to display on the profile page?

Burke ♞ Knight

As far as I know, there is no RC 2.0.5
Just SMF 2.0.5 which you should upgrade to 2.0.8

samborabora

Quote from: BurkeKnight on July 09, 2014, 07:13:59 AM
As far as I know, there is no RC 2.0.5
Just SMF 2.0.5 which you should upgrade to 2.0.8

Sorry, I meant 2.0.5, and I will upgrade to 2.0.8 as soon as I fix a permissions problem on my forum. Either way, it works, I just need to know what changes I can make to it so it appears on the profile page instead of the message.

Kindred

lots....   display and profile pull a completely different set of variables.

1- if you are modifying a mod - ask in the mod support
2- if you are trying to custom code - ask in the SMF code area...
either way, what you are asking for is actually outside of support......
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

samborabora

Quote from: Kindred on July 09, 2014, 07:31:38 AM
lots....   display and profile pull a completely different set of variables.

1- if you are modifying a mod - ask in the mod support
2- if you are trying to custom code - ask in the SMF code area...
either way, what you are asking for is actually outside of support......

Have done, thanks!

Advertisement: