-
Content Count
10 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout eGullet
-
Rank
Member
-
eGullet started following Getting the pids of the posts being merged, Condition: link in post content and Rule on sending PM
-
I'm trying to create a rule whose condition is that the post content contains a link. I tried just setting it up to search the content for the string "http", but it never triggers. So then I tried writing a custom PHP script to do what I want, but there is a bug in it that I can't isolate -- I get no error message, the page load just crashes. Can anyone either help me figure out why the first method doesn't work, or figure out what's wrong with this PHP set up as a truth value test, "Value is TRUE"? //<?php return stripos($content->$content,'http') !== FALSE;
-
I want to create a rule that executes when a member with zero posts sends a PM to a specific account. I can't figure out how to attach a rule to that event though. Do I have to just use "content created"? How do I see the "To"?
-
Thanks. OOP I've got, it's the IPS I'm missing. DB columns as properties make sense, thanks.
-
Where can I find documentation of what those data types are? I see that the editor says that they are topics in this case. Is it just an array with the list of fields in the database?
-
Well, so, six months later I have time to dig back into this! I wasn't using PHP to access the old topic id, though, I was just using the replacement token [items:url]. I'm happy to switch to using the PHP, but I don't understand how to map from your list of available replacement tokens to PHP variables. For example, how can I tell that $items is an array of objects that have a "topic_firstpost" member? Is that data type your creation, or is it coming from Invision?
-
I've got a rule that creates a user-friendly record of topic merges, and in an ideal world I'd like to be able to provide a link to the first post that was merged in. The pid doesn't change when the topic is merged, so then I can create a findpost-type link within the new topic. I can't figure out how to figure out the individual pids, though, only the new and old tid. Is this possible?
-
eGullet changed their profile photo
-
Is it possible to access ID of created forums topic?
eGullet replied to eGullet's topic in Knowlegebase
Is it possible to access the custom profile field that I already use for that data? -
Excellent, thanks!
-
It doesn't appear that there is any way to attach a rule to a status change of a report (or a comment on a report), just on the action of making the initial report. Is this a limitation of the Suite, or might it be possible to add this to Rules?
-
I want to create a rule that creates a new topic when a member has a post hidden for the first time, and I want to store the ID of this topic in a custom profile field (or somewhere else if I have to, I can migrate the existing field if necessary). Is this possible using Rules? I can't figure out how to find the ID of a topic that a rule creates.