Jump to content


Post Authors Status 1.1.0


  • This topic is locked This topic is locked
30 replies to this topic

#1 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 30 July 2010 - 01:21 PM

File Name: (e$30) Post Author's Status 1.1.0
File Submitter: ibEmoney
File Submitted: 15 Jul 2009
File Updated: 18 Jul 2010
File Category: Hooks and Plugins

Title: Post Author's Status
Compatibility: This mod is compatible with IP.Board 3.1.
Resource Type: Hook
Version: 1.1.0 (00110)

Description:

Displays the post author's Profile Status on each post. You can choose to display their current status or their status at the time of the post.

Settings include:

* On/Off
* Show current status OR status at time of post
* Display as tab or in top row after IP address
* Group Permissions
* Enabled in which Forums(s)

Posted Image
Posted Image
Posted Image

Changelog:

1.1.0:
NO MORE FILE EDITS!
Updated code to work with 3.1 (since current status is no longer carried with memberData, one query was added)
(if upgrading and you've done the skin and file edits on your current board, you should remove those edits)

1.0.0:
Added second option of where to display status (after IP address)
Read for IPB 3.0 Final

0.9.0:
Initial Release (IPB RC Stage)

Click here to download this file
DogPatch Was Here :D

#2 Firewall~

Firewall~

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 11 August 2010 - 07:29 PM

Good !
Thks Nice !

#3 Mobi.House

Mobi.House

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 07 September 2010 - 08:18 AM

How can i download it, i go to that link and it say error because i must have a license key. Admin can post this one more to Mediafire pls. Thanx first ! :)

#4 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 07 September 2010 - 08:35 AM

Please see other post, and I believe this one is available at invisionmodding.com. :)
DogPatch Was Here :D

#5 miator

miator

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 02 January 2011 - 12:59 AM

Hi, I love this mod but I am making a heavily customized skin where I want to make the status text a certain color and placed next to the user display name instead of the IP address, how do I go about this since I no longer see it in the skin edit section. Many thanks!

I can see it in the cache and the xml but I am not code-savvy enough to edit them. =P

#6 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 03 January 2011 - 06:00 PM

Glad you like it!

The templates should still be there to edit. There are 2 templates, both of which in skin_topic: post_author_status and post_author_statusNoTab.

Let me know if you don't see them for some reason, perhaps you need a reinstall.
DogPatch Was Here :D

#7 miator

miator

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 03 January 2011 - 06:51 PM

I can't believe I missed that template part, haha.

Anyhow, is there a way for me to place it right after the user's display name and popup icon instead of the IP address?

#8 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 04 January 2011 - 05:13 PM

Ah, I forgot that now that I removed skin edits, it is harder to tweak where exactly to display the HTML.

I just looked, and actually it might be just as easy, or even easier, depending on the user. What you can do is go to ACP->Manage Hooks->(e$30) Post Author Status->Edit Hook. Navigate to the last tab, "Hook Files" and from there you would play with the last 3 settings: "Type of template hook", "The hook 'ID'", and "Position of template hook". Those 3 settings allow you to choose exactly where to display the PAS templates. So, you would need to open the topicViewTemplate from the Topic View templates and find where exactly you want it to display. Then find the nearest if statement and use those above 3 settings to point to that if statement (or foreach loop).

For instance, it looks like the IP stuff in topicViewTemplate is:

Quote

<if test="postIp:|:$post['post']['_show_ip']">
<span class='ip'>({$this->lang->words['ip']}:
<if test="postAdmin:|:$post['author']['g_access_cp']">
<em>{$this->lang->words['ip_private']}</em>
<else />
<a href="{parse url="app=core&amp;module=usercp&amp;tab=members&amp;area=mod_ipaddress&amp;do=custom&amp;ip={$post['post']['ip_address']}" base="public"}" title='{$this->lang->words['info_about_this_ip']}'>{$post['post']['ip_address']}</a>
</if>
)</span>
</if>

So, in those 3 settings, you could pick:
  • If Statement
  • postIp
  • pre.StartIf

Let us know how that works, I've never actually edited those in that fashion.
DogPatch Was Here :D

#9 miator

miator

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 05 January 2011 - 01:06 AM

That worked nicely, thanks for the suggestion!

Since I didn't have a use for posticon I used that to get the effect I want. :)

#10 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 06 January 2011 - 07:29 PM

Nice. :) Post a screenshot if you want, eh. I always like seeing customizations/implementations of my stuff.
DogPatch Was Here :D

#11 Silver Kitsune

Silver Kitsune

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 17 May 2011 - 07:38 PM

Any way to have it show just in the member info pane?

Posted Image
I am a sudden an quite unexpected twist. I am your Nemesis. Baby I'm life, sweet life, itself.
DA Account
Posted Image


#12 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 17 May 2011 - 10:24 PM

I installed this hook so I could test that here. I also just used the Change Member's Status shop item on you. :) I also just sent you the same item in case you want to change mine from the boring smiley face.

About your question, I just tried and it looks like it works fine. The way I did it was similar to the suggestion I mentioned above, I went to ACP->Manage Hooks and clicked Edit Hook
on the "(e$30) Post Author's Status" row. From that page click the third tab Hook Files and here are my modified settings:

Posted Image

You'll notice that one now hooks into userInfoPane (which is the leftside mini profile on the side of posts and messages and things) instead of both hooking into topicViewTemplate. It doesn't matter which of the "Template Hook" files you change. One corresponds to the Tab view and the other to the Author's IP view. Depending on which one you alter, you may need to go to ACP->Settings->Forum->(e$30) Post Author Status and change the "Placement" so it works on your freshly tweaked placement in the memberInfoPane.

Let us know (with screengrabs) how that works out for you. :)

If anyone else would prefer this view too, please post, I could release a new version with this option built-in.
DogPatch Was Here :D

#13 Silver Kitsune

Silver Kitsune

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 17 May 2011 - 10:40 PM

what do i change the placement to? it doesn't change for either that i choose..it's the way it's always been

Posted Image
I am a sudden an quite unexpected twist. I am your Nemesis. Baby I'm life, sweet life, itself.
DA Account
Posted Image


#14 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 17 May 2011 - 10:45 PM

It depends on which of the Hook Files you edit. If you make your Hook Files page look exactly like my screenshot posted above, you would set your Placement to No. And also, remember that the Current Status? setting should be set to Yes for a while if you want to see previous poster's statuses. Because it is only after you install the hook and enable it does it start collecting every poster's current status. So the poster's status will be blank for every post in the past.
DogPatch Was Here :D

#15 Silver Kitsune

Silver Kitsune

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 17 May 2011 - 10:49 PM

ok i'm not sure what i'm doing wrong. i did it exactly like you did... and nothing is showing up at all now

Posted Image
I am a sudden an quite unexpected twist. I am your Nemesis. Baby I'm life, sweet life, itself.
DA Account
Posted Image


#16 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 17 May 2011 - 11:00 PM

dunno, make sure you don't touch the Data Hook file (the third one in the screenshot). It might be worthwhile to start over, so uninstall the hook and reimport and then go step by step again, testing at each step to see what causes the status to go away if it happens again. I gotta get some sleep, but tomorrow I'll be back eh.

edit: I just tried following the above advice and it didn't show for me at first... but I changed both of the top 2 data files to the same thing then set Placement to No and Current Status to Yes, and it is displaying properly now. So maybe try that too:

Posted Image
DogPatch Was Here :D

#17 Silver Kitsune

Silver Kitsune

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 17 May 2011 - 11:18 PM

nope :(
my files are different than yours... File #1 is the one with only two settings displayed

Posted Imager

File# 2 in the pic... it changes each time i re install the hook

Posted Image
I am a sudden an quite unexpected twist. I am your Nemesis. Baby I'm life, sweet life, itself.
DA Account
Posted Image


#18 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 18 May 2011 - 09:09 AM

Yeah, disregard the number of the files. Wichever one says Data Hook, don't touch that one. The other two you should change to be like my screenshot above. :)
DogPatch Was Here :D

#19 Silver Kitsune

Silver Kitsune

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 18 May 2011 - 03:04 PM

So yea I did that.. nothing... would you like admin access? I must be doing something wrong :(


ETA: Like your new status? *Giggles*

Posted Image
I am a sudden an quite unexpected twist. I am your Nemesis. Baby I'm life, sweet life, itself.
DA Account
Posted Image


#20 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 18 May 2011 - 03:24 PM

Ha, thanks for that. :). Sure, you can pm me acp access if you want me to take a peak.
DogPatch Was Here :D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users