Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Wayne B Posted May 3, 2015 Posted May 3, 2015 HiIn custom blocks in IP Content I want to use the $member object in an if statement but the $member object is not currently defined in that block so if gives a fatal error.How could I define the member object to be available in all custom blocks?Thanks
Wayne B Posted May 4, 2015 Author Posted May 4, 2015 Just bumping this to see if anyone can help - whatever I try in the block code it appear that the $member object fails each time.
不中用 Posted May 4, 2015 Posted May 4, 2015 Just bumping this to see if anyone can help - whatever I try in the block code it appear that the $member object fails each time..In PHP it is something like this ..You can edit a little to fit in that block .. or use the {{ }} in a way .. <?php $member = \IPS\Member::loggedIn(); $memName = $member->name; $memEmail = $member->email; $memID = $member->member_id; .
Recommended Posts
Archived
This topic is now archived and is closed to further replies.