Both encounters have a specific PIDIV correlation which needs to be present for it to be legal.
Use a RNG seed searching tool like RNG Reporter to find the values you need. Channel Jirachi also relates the Version, SID, and OT Gender, so those need to follow the correlation as well.
Ranger Manaphy cannot hatch shiny for the trainer that received the gift, so it must be traded (hence the Link Trade (Egg) being required).